@dxos/app-framework 0.7.5-main.499c70c → 0.7.5-main.5ae2ba8

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 (383) hide show
  1. package/dist/lib/browser/app-graph-builder-S4MYSHQA.mjs +137 -0
  2. package/dist/lib/browser/app-graph-builder-S4MYSHQA.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-BCMEJONP.mjs +1432 -0
  4. package/dist/lib/browser/chunk-BCMEJONP.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-QS4J6O47.mjs +285 -0
  6. package/dist/lib/browser/chunk-QS4J6O47.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-SRZH2PQ2.mjs +32 -0
  8. package/dist/lib/browser/chunk-SRZH2PQ2.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +119 -642
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/intent-dispatcher-GFBH7T2J.mjs +11 -0
  12. package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs +39 -0
  13. package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs.map +7 -0
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/store-L3VRR7II.mjs +29 -0
  16. package/dist/lib/browser/store-L3VRR7II.mjs.map +7 -0
  17. package/dist/lib/browser/testing/index.mjs +77 -0
  18. package/dist/lib/browser/testing/index.mjs.map +7 -0
  19. package/dist/lib/browser/worker.mjs +77 -0
  20. package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs +146 -0
  21. package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs.map +7 -0
  22. package/dist/lib/node/chunk-7Y6KJ3OK.cjs +1466 -0
  23. package/dist/lib/node/chunk-7Y6KJ3OK.cjs.map +7 -0
  24. package/dist/lib/node/chunk-B65NJEIJ.cjs +308 -0
  25. package/dist/lib/node/chunk-B65NJEIJ.cjs.map +7 -0
  26. package/dist/lib/node/{chunk-FCMHRU3M.cjs → chunk-VCIHQZSN.cjs} +23 -35
  27. package/dist/lib/node/chunk-VCIHQZSN.cjs.map +7 -0
  28. package/dist/lib/node/index.cjs +125 -665
  29. package/dist/lib/node/index.cjs.map +4 -4
  30. package/dist/lib/node/{plugin-settings-W6UHMH5M.cjs → intent-dispatcher-PRCC4KZT.cjs} +10 -14
  31. package/dist/lib/node/intent-dispatcher-PRCC4KZT.cjs.map +7 -0
  32. package/dist/lib/node/intent-resolver-OZDKCHPW.cjs +46 -0
  33. package/dist/lib/node/intent-resolver-OZDKCHPW.cjs.map +7 -0
  34. package/dist/lib/node/meta.json +1 -1
  35. package/dist/lib/node/store-BVUKNVKL.cjs +44 -0
  36. package/dist/lib/node/store-BVUKNVKL.cjs.map +7 -0
  37. package/dist/lib/node/testing/index.cjs +101 -0
  38. package/dist/lib/node/testing/index.cjs.map +7 -0
  39. package/dist/lib/node/worker.cjs +99 -0
  40. package/dist/lib/node/worker.cjs.map +7 -0
  41. package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs +138 -0
  42. package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs.map +7 -0
  43. package/dist/lib/node-esm/chunk-CBT75GCX.mjs +34 -0
  44. package/dist/lib/node-esm/chunk-CBT75GCX.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs +286 -0
  46. package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs.map +7 -0
  47. package/dist/lib/node-esm/chunk-TVIR2PHY.mjs +1434 -0
  48. package/dist/lib/node-esm/chunk-TVIR2PHY.mjs.map +7 -0
  49. package/dist/lib/node-esm/index.mjs +119 -642
  50. package/dist/lib/node-esm/index.mjs.map +4 -4
  51. package/dist/lib/node-esm/intent-dispatcher-LGACN32C.mjs +12 -0
  52. package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs +40 -0
  53. package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs.map +7 -0
  54. package/dist/lib/node-esm/meta.json +1 -1
  55. package/dist/lib/node-esm/store-PHTOEREN.mjs +30 -0
  56. package/dist/lib/node-esm/store-PHTOEREN.mjs.map +7 -0
  57. package/dist/lib/node-esm/testing/index.mjs +78 -0
  58. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  59. package/dist/lib/node-esm/worker.mjs +78 -0
  60. package/dist/types/src/App.d.ts +22 -13
  61. package/dist/types/src/App.d.ts.map +1 -1
  62. package/dist/types/src/common/capabilities.d.ts +304 -0
  63. package/dist/types/src/common/capabilities.d.ts.map +1 -0
  64. package/dist/types/src/common/events.d.ts +52 -0
  65. package/dist/types/src/common/events.d.ts.map +1 -0
  66. package/dist/types/src/common/file.d.ts +14 -0
  67. package/dist/types/src/common/file.d.ts.map +1 -0
  68. package/dist/types/src/common/graph.d.ts +21 -0
  69. package/dist/types/src/common/graph.d.ts.map +1 -0
  70. package/dist/types/src/common/index.d.ts +8 -0
  71. package/dist/types/src/common/index.d.ts.map +1 -0
  72. package/dist/types/src/common/layout.d.ts +262 -0
  73. package/dist/types/src/common/layout.d.ts.map +1 -0
  74. package/dist/types/src/{plugins/plugin-surface/SurfaceContext.d.ts → common/surface.d.ts} +12 -29
  75. package/dist/types/src/common/surface.d.ts.map +1 -0
  76. package/dist/types/src/common/translations.d.ts +11 -0
  77. package/dist/types/src/common/translations.d.ts.map +1 -0
  78. package/dist/types/src/core/capabilities.d.ts +94 -0
  79. package/dist/types/src/core/capabilities.d.ts.map +1 -0
  80. package/dist/types/src/core/capabilities.test.d.ts +2 -0
  81. package/dist/types/src/core/capabilities.test.d.ts.map +1 -0
  82. package/dist/types/src/core/events.d.ts +58 -0
  83. package/dist/types/src/core/events.d.ts.map +1 -0
  84. package/dist/types/src/core/index.d.ts +5 -0
  85. package/dist/types/src/core/index.d.ts.map +1 -0
  86. package/dist/types/src/core/manager.d.ts +119 -0
  87. package/dist/types/src/core/manager.d.ts.map +1 -0
  88. package/dist/types/src/core/manager.test.d.ts +2 -0
  89. package/dist/types/src/core/manager.test.d.ts.map +1 -0
  90. package/dist/types/src/core/plugin.d.ts +97 -0
  91. package/dist/types/src/core/plugin.d.ts.map +1 -0
  92. package/dist/types/src/helpers.d.ts +10 -0
  93. package/dist/types/src/helpers.d.ts.map +1 -0
  94. package/dist/types/src/helpers.test.d.ts +2 -0
  95. package/dist/types/src/helpers.test.d.ts.map +1 -0
  96. package/dist/types/src/index.d.ts +5 -1
  97. package/dist/types/src/index.d.ts.map +1 -1
  98. package/dist/types/src/playground/debug/Debug.d.ts +5 -0
  99. package/dist/types/src/playground/debug/Debug.d.ts.map +1 -0
  100. package/dist/types/src/playground/debug/index.d.ts +2 -0
  101. package/dist/types/src/playground/debug/index.d.ts.map +1 -0
  102. package/dist/types/src/playground/debug/plugin.d.ts +2 -0
  103. package/dist/types/src/playground/debug/plugin.d.ts.map +1 -0
  104. package/dist/types/src/playground/generator/Main.d.ts +5 -0
  105. package/dist/types/src/playground/generator/Main.d.ts.map +1 -0
  106. package/dist/types/src/playground/generator/Toolbar.d.ts +5 -0
  107. package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -0
  108. package/dist/types/src/playground/generator/generator.d.ts +7 -0
  109. package/dist/types/src/playground/generator/generator.d.ts.map +1 -0
  110. package/dist/types/src/playground/generator/index.d.ts +3 -0
  111. package/dist/types/src/playground/generator/index.d.ts.map +1 -0
  112. package/dist/types/src/playground/generator/plugin.d.ts +2 -0
  113. package/dist/types/src/playground/generator/plugin.d.ts.map +1 -0
  114. package/dist/types/src/playground/layout/Layout.d.ts +8 -0
  115. package/dist/types/src/playground/layout/Layout.d.ts.map +1 -0
  116. package/dist/types/src/playground/layout/index.d.ts +2 -0
  117. package/dist/types/src/playground/layout/index.d.ts.map +1 -0
  118. package/dist/types/src/playground/layout/plugin.d.ts +2 -0
  119. package/dist/types/src/playground/layout/plugin.d.ts.map +1 -0
  120. package/dist/types/src/playground/logger/Toolbar.d.ts +5 -0
  121. package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -0
  122. package/dist/types/src/playground/logger/index.d.ts +2 -0
  123. package/dist/types/src/playground/logger/index.d.ts.map +1 -0
  124. package/dist/types/src/playground/logger/plugin.d.ts +2 -0
  125. package/dist/types/src/playground/logger/plugin.d.ts.map +1 -0
  126. package/dist/types/src/playground/logger/schema.d.ts +13 -0
  127. package/dist/types/src/playground/logger/schema.d.ts.map +1 -0
  128. package/dist/types/src/playground/playground.stories.d.ts +9 -0
  129. package/dist/types/src/playground/playground.stories.d.ts.map +1 -0
  130. package/dist/types/src/plugin-intent/IntentPlugin.d.ts +2 -0
  131. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -0
  132. package/dist/types/src/plugin-intent/actions.d.ts +23 -0
  133. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -0
  134. package/dist/types/src/plugin-intent/errors.d.ts +16 -0
  135. package/dist/types/src/plugin-intent/errors.d.ts.map +1 -0
  136. package/dist/types/src/plugin-intent/index.d.ts +5 -0
  137. package/dist/types/src/plugin-intent/index.d.ts.map +1 -0
  138. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +113 -0
  139. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -0
  140. package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts.map +1 -0
  141. package/dist/types/src/{plugins/plugin-intent → plugin-intent}/intent.d.ts +8 -28
  142. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -0
  143. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +2 -0
  144. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -0
  145. package/dist/types/src/plugin-settings/actions.d.ts +27 -0
  146. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -0
  147. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
  148. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
  149. package/dist/types/src/plugin-settings/index.d.ts +3 -0
  150. package/dist/types/src/plugin-settings/index.d.ts.map +1 -0
  151. package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
  152. package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
  153. package/dist/types/src/plugin-settings/store.d.ts +5 -0
  154. package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
  155. package/dist/types/src/plugin-settings/translations.d.ts +11 -0
  156. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
  157. package/dist/types/src/{plugins/plugin-surface → react}/ErrorBoundary.d.ts +1 -1
  158. package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -0
  159. package/dist/types/src/{plugins/plugin-intent → react}/IntentContext.d.ts +2 -2
  160. package/dist/types/src/react/IntentContext.d.ts.map +1 -0
  161. package/dist/types/src/react/PluginManagerProvider.d.ts +10 -0
  162. package/dist/types/src/react/PluginManagerProvider.d.ts.map +1 -0
  163. package/dist/types/src/react/Surface.d.ts +12 -0
  164. package/dist/types/src/react/Surface.d.ts.map +1 -0
  165. package/dist/types/src/react/Surface.stories.d.ts +15 -0
  166. package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
  167. package/dist/types/src/react/common.d.ts +13 -0
  168. package/dist/types/src/react/common.d.ts.map +1 -0
  169. package/dist/types/src/react/index.d.ts +7 -0
  170. package/dist/types/src/react/index.d.ts.map +1 -0
  171. package/dist/types/src/react/useCapabilities.d.ts +13 -0
  172. package/dist/types/src/react/useCapabilities.d.ts.map +1 -0
  173. package/dist/types/src/react/useIntentResolver.d.ts +3 -0
  174. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
  175. package/dist/types/src/testing/index.d.ts +2 -0
  176. package/dist/types/src/testing/index.d.ts.map +1 -0
  177. package/dist/types/src/testing/withPluginManager.d.ts +12 -0
  178. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -0
  179. package/dist/types/src/testing/withPluginManager.stories.d.ts +5 -0
  180. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -0
  181. package/dist/types/src/worker.d.ts +4 -0
  182. package/dist/types/src/worker.d.ts.map +1 -0
  183. package/dist/types/tsconfig.tsbuildinfo +1 -1
  184. package/package.json +40 -19
  185. package/project.json +5 -3
  186. package/src/App.tsx +140 -34
  187. package/src/common/capabilities.ts +101 -0
  188. package/src/common/events.ts +77 -0
  189. package/src/common/file.ts +22 -0
  190. package/src/common/graph.ts +30 -0
  191. package/src/{plugins/common → common}/index.ts +3 -2
  192. package/src/common/layout.ts +238 -0
  193. package/src/{plugins/plugin-surface/SurfaceContext.ts → common/surface.ts} +6 -37
  194. package/src/common/translations.ts +17 -0
  195. package/src/core/capabilities.test.ts +116 -0
  196. package/src/core/capabilities.ts +222 -0
  197. package/src/core/events.ts +58 -0
  198. package/src/core/index.ts +8 -0
  199. package/src/core/manager.test.ts +516 -0
  200. package/src/core/manager.ts +511 -0
  201. package/src/core/plugin.ts +131 -0
  202. package/src/helpers.test.ts +97 -0
  203. package/src/helpers.ts +45 -0
  204. package/src/index.ts +6 -3
  205. package/src/playground/debug/Debug.tsx +39 -0
  206. package/src/playground/debug/index.ts +5 -0
  207. package/src/playground/debug/plugin.ts +17 -0
  208. package/src/playground/generator/Main.tsx +71 -0
  209. package/src/playground/generator/Toolbar.tsx +46 -0
  210. package/src/playground/generator/generator.ts +48 -0
  211. package/src/playground/generator/index.ts +6 -0
  212. package/src/playground/generator/plugin.ts +23 -0
  213. package/src/playground/layout/Layout.tsx +33 -0
  214. package/src/playground/layout/index.ts +5 -0
  215. package/src/playground/layout/plugin.ts +17 -0
  216. package/src/playground/logger/Toolbar.tsx +29 -0
  217. package/src/playground/logger/index.ts +5 -0
  218. package/src/playground/logger/plugin.ts +36 -0
  219. package/src/playground/logger/schema.ts +12 -0
  220. package/src/playground/playground.stories.tsx +34 -0
  221. package/src/plugin-intent/IntentPlugin.tsx +20 -0
  222. package/src/plugin-intent/actions.ts +22 -0
  223. package/src/plugin-intent/errors.ts +39 -0
  224. package/src/plugin-intent/index.ts +8 -0
  225. package/src/{plugins/plugin-intent → plugin-intent}/intent-dispatcher.test.ts +83 -63
  226. package/src/{plugins/plugin-intent → plugin-intent}/intent-dispatcher.ts +118 -95
  227. package/src/{plugins/plugin-intent → plugin-intent}/intent.ts +10 -26
  228. package/src/plugin-settings/SettingsPlugin.ts +35 -0
  229. package/src/plugin-settings/actions.ts +27 -0
  230. package/src/plugin-settings/app-graph-builder.ts +122 -0
  231. package/src/plugin-settings/index.ts +6 -0
  232. package/src/plugin-settings/intent-resolver.ts +34 -0
  233. package/src/plugin-settings/store.ts +30 -0
  234. package/src/plugin-settings/translations.ts +17 -0
  235. package/src/{plugins/plugin-intent → react}/IntentContext.tsx +13 -5
  236. package/src/react/PluginManagerProvider.ts +22 -0
  237. package/src/react/Surface.stories.tsx +96 -0
  238. package/src/react/Surface.tsx +75 -0
  239. package/src/react/common.ts +12 -0
  240. package/src/react/index.ts +10 -0
  241. package/src/react/useCapabilities.ts +40 -0
  242. package/src/react/useIntentResolver.ts +22 -0
  243. package/src/testing/index.ts +5 -0
  244. package/src/testing/withPluginManager.stories.tsx +47 -0
  245. package/src/testing/withPluginManager.tsx +91 -0
  246. package/src/worker.ts +11 -0
  247. package/tsconfig.json +19 -13
  248. package/dist/lib/browser/chunk-3E7RY3CE.mjs +0 -72
  249. package/dist/lib/browser/chunk-3E7RY3CE.mjs.map +0 -7
  250. package/dist/lib/browser/chunk-QG25ZU2N.mjs +0 -320
  251. package/dist/lib/browser/chunk-QG25ZU2N.mjs.map +0 -7
  252. package/dist/lib/browser/chunk-SPDTXTOV.mjs +0 -163
  253. package/dist/lib/browser/chunk-SPDTXTOV.mjs.map +0 -7
  254. package/dist/lib/browser/chunk-WBOXEHBE.mjs +0 -51
  255. package/dist/lib/browser/chunk-WBOXEHBE.mjs.map +0 -7
  256. package/dist/lib/browser/plugin-intent-T7Y3MJ5C.mjs +0 -32
  257. package/dist/lib/browser/plugin-settings-5U2L2NRU.mjs +0 -15
  258. package/dist/lib/browser/plugin-surface-OKPF3EQI.mjs +0 -24
  259. package/dist/lib/node/chunk-BW3RNEVI.cjs +0 -185
  260. package/dist/lib/node/chunk-BW3RNEVI.cjs.map +0 -7
  261. package/dist/lib/node/chunk-FCMHRU3M.cjs.map +0 -7
  262. package/dist/lib/node/chunk-QBM42OQ6.cjs +0 -97
  263. package/dist/lib/node/chunk-QBM42OQ6.cjs.map +0 -7
  264. package/dist/lib/node/chunk-VWHAALIN.cjs +0 -344
  265. package/dist/lib/node/chunk-VWHAALIN.cjs.map +0 -7
  266. package/dist/lib/node/plugin-intent-F3TQZIUR.cjs +0 -53
  267. package/dist/lib/node/plugin-intent-F3TQZIUR.cjs.map +0 -7
  268. package/dist/lib/node/plugin-settings-W6UHMH5M.cjs.map +0 -7
  269. package/dist/lib/node/plugin-surface-CCSIONYW.cjs +0 -45
  270. package/dist/lib/node/plugin-surface-CCSIONYW.cjs.map +0 -7
  271. package/dist/lib/node-esm/chunk-3T5UIJY3.mjs +0 -53
  272. package/dist/lib/node-esm/chunk-3T5UIJY3.mjs.map +0 -7
  273. package/dist/lib/node-esm/chunk-4GX7V5ZE.mjs +0 -164
  274. package/dist/lib/node-esm/chunk-4GX7V5ZE.mjs.map +0 -7
  275. package/dist/lib/node-esm/chunk-CFOUYXQ6.mjs +0 -321
  276. package/dist/lib/node-esm/chunk-CFOUYXQ6.mjs.map +0 -7
  277. package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs +0 -74
  278. package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs.map +0 -7
  279. package/dist/lib/node-esm/plugin-intent-W2HQC6LC.mjs +0 -33
  280. package/dist/lib/node-esm/plugin-settings-H5RHNFVC.mjs +0 -16
  281. package/dist/lib/node-esm/plugin-settings-H5RHNFVC.mjs.map +0 -7
  282. package/dist/lib/node-esm/plugin-surface-V3YET3UL.mjs +0 -25
  283. package/dist/lib/node-esm/plugin-surface-V3YET3UL.mjs.map +0 -7
  284. package/dist/types/src/plugins/common/file.d.ts +0 -22
  285. package/dist/types/src/plugins/common/file.d.ts.map +0 -1
  286. package/dist/types/src/plugins/common/graph.d.ts +0 -51
  287. package/dist/types/src/plugins/common/graph.d.ts.map +0 -1
  288. package/dist/types/src/plugins/common/index.d.ts +0 -7
  289. package/dist/types/src/plugins/common/index.d.ts.map +0 -1
  290. package/dist/types/src/plugins/common/layout.d.ts +0 -176
  291. package/dist/types/src/plugins/common/layout.d.ts.map +0 -1
  292. package/dist/types/src/plugins/common/metadata.d.ts +0 -16
  293. package/dist/types/src/plugins/common/metadata.d.ts.map +0 -1
  294. package/dist/types/src/plugins/common/navigation.d.ts +0 -243
  295. package/dist/types/src/plugins/common/navigation.d.ts.map +0 -1
  296. package/dist/types/src/plugins/common/translations.d.ts +0 -22
  297. package/dist/types/src/plugins/common/translations.d.ts.map +0 -1
  298. package/dist/types/src/plugins/helpers.d.ts +0 -41
  299. package/dist/types/src/plugins/helpers.d.ts.map +0 -1
  300. package/dist/types/src/plugins/index.d.ts +0 -7
  301. package/dist/types/src/plugins/index.d.ts.map +0 -1
  302. package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts +0 -16
  303. package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts.map +0 -1
  304. package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts +0 -14
  305. package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts.map +0 -1
  306. package/dist/types/src/plugins/plugin-host/PluginContext.d.ts +0 -47
  307. package/dist/types/src/plugins/plugin-host/PluginContext.d.ts.map +0 -1
  308. package/dist/types/src/plugins/plugin-host/index.d.ts +0 -6
  309. package/dist/types/src/plugins/plugin-host/index.d.ts.map +0 -1
  310. package/dist/types/src/plugins/plugin-host/plugin.d.ts +0 -104
  311. package/dist/types/src/plugins/plugin-host/plugin.d.ts.map +0 -1
  312. package/dist/types/src/plugins/plugin-host/plugin.test.d.ts +0 -35
  313. package/dist/types/src/plugins/plugin-host/plugin.test.d.ts.map +0 -1
  314. package/dist/types/src/plugins/plugin-intent/IntentContext.d.ts.map +0 -1
  315. package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts +0 -8
  316. package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts.map +0 -1
  317. package/dist/types/src/plugins/plugin-intent/index.d.ts +0 -7
  318. package/dist/types/src/plugins/plugin-intent/index.d.ts.map +0 -1
  319. package/dist/types/src/plugins/plugin-intent/intent-dispatcher.d.ts +0 -107
  320. package/dist/types/src/plugins/plugin-intent/intent-dispatcher.d.ts.map +0 -1
  321. package/dist/types/src/plugins/plugin-intent/intent-dispatcher.test.d.ts.map +0 -1
  322. package/dist/types/src/plugins/plugin-intent/intent.d.ts.map +0 -1
  323. package/dist/types/src/plugins/plugin-intent/meta.d.ts +0 -6
  324. package/dist/types/src/plugins/plugin-intent/meta.d.ts.map +0 -1
  325. package/dist/types/src/plugins/plugin-intent/provides.d.ts +0 -16
  326. package/dist/types/src/plugins/plugin-intent/provides.d.ts.map +0 -1
  327. package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts +0 -4
  328. package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts.map +0 -1
  329. package/dist/types/src/plugins/plugin-settings/index.d.ts +0 -4
  330. package/dist/types/src/plugins/plugin-settings/index.d.ts.map +0 -1
  331. package/dist/types/src/plugins/plugin-settings/meta.d.ts +0 -5
  332. package/dist/types/src/plugins/plugin-settings/meta.d.ts.map +0 -1
  333. package/dist/types/src/plugins/plugin-settings/provides.d.ts +0 -26
  334. package/dist/types/src/plugins/plugin-settings/provides.d.ts.map +0 -1
  335. package/dist/types/src/plugins/plugin-surface/ErrorBoundary.d.ts.map +0 -1
  336. package/dist/types/src/plugins/plugin-surface/Surface.d.ts +0 -7
  337. package/dist/types/src/plugins/plugin-surface/Surface.d.ts.map +0 -1
  338. package/dist/types/src/plugins/plugin-surface/SurfaceContext.d.ts.map +0 -1
  339. package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts +0 -7
  340. package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts.map +0 -1
  341. package/dist/types/src/plugins/plugin-surface/helpers.d.ts +0 -21
  342. package/dist/types/src/plugins/plugin-surface/helpers.d.ts.map +0 -1
  343. package/dist/types/src/plugins/plugin-surface/index.d.ts +0 -8
  344. package/dist/types/src/plugins/plugin-surface/index.d.ts.map +0 -1
  345. package/dist/types/src/plugins/plugin-surface/meta.d.ts +0 -5
  346. package/dist/types/src/plugins/plugin-surface/meta.d.ts.map +0 -1
  347. package/dist/types/src/plugins/plugin-surface/provides.d.ts +0 -17
  348. package/dist/types/src/plugins/plugin-surface/provides.d.ts.map +0 -1
  349. package/src/plugins/common/file.ts +0 -36
  350. package/src/plugins/common/graph.ts +0 -70
  351. package/src/plugins/common/layout.ts +0 -173
  352. package/src/plugins/common/metadata.ts +0 -29
  353. package/src/plugins/common/navigation.ts +0 -214
  354. package/src/plugins/common/translations.ts +0 -36
  355. package/src/plugins/helpers.ts +0 -92
  356. package/src/plugins/index.ts +0 -11
  357. package/src/plugins/plugin-host/HostPlugin.tsx +0 -88
  358. package/src/plugins/plugin-host/PluginContainer.tsx +0 -120
  359. package/src/plugins/plugin-host/PluginContext.tsx +0 -79
  360. package/src/plugins/plugin-host/index.ts +0 -12
  361. package/src/plugins/plugin-host/plugin.test.ts +0 -158
  362. package/src/plugins/plugin-host/plugin.ts +0 -133
  363. package/src/plugins/plugin-intent/IntentPlugin.tsx +0 -75
  364. package/src/plugins/plugin-intent/index.ts +0 -13
  365. package/src/plugins/plugin-intent/meta.ts +0 -11
  366. package/src/plugins/plugin-intent/provides.ts +0 -26
  367. package/src/plugins/plugin-settings/SettingsPlugin.tsx +0 -22
  368. package/src/plugins/plugin-settings/index.ts +0 -9
  369. package/src/plugins/plugin-settings/meta.ts +0 -9
  370. package/src/plugins/plugin-settings/provides.ts +0 -34
  371. package/src/plugins/plugin-surface/Surface.tsx +0 -62
  372. package/src/plugins/plugin-surface/SurfacePlugin.tsx +0 -45
  373. package/src/plugins/plugin-surface/helpers.ts +0 -22
  374. package/src/plugins/plugin-surface/index.ts +0 -14
  375. package/src/plugins/plugin-surface/meta.ts +0 -9
  376. package/src/plugins/plugin-surface/provides.ts +0 -27
  377. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
  378. /package/dist/lib/browser/{plugin-intent-T7Y3MJ5C.mjs.map → intent-dispatcher-GFBH7T2J.mjs.map} +0 -0
  379. /package/dist/lib/browser/{plugin-settings-5U2L2NRU.mjs.map → worker.mjs.map} +0 -0
  380. /package/dist/lib/{browser/plugin-surface-OKPF3EQI.mjs.map → node-esm/intent-dispatcher-LGACN32C.mjs.map} +0 -0
  381. /package/dist/lib/node-esm/{plugin-intent-W2HQC6LC.mjs.map → worker.mjs.map} +0 -0
  382. /package/dist/types/src/{plugins/plugin-intent → plugin-intent}/intent-dispatcher.test.d.ts +0 -0
  383. /package/src/{plugins/plugin-surface → react}/ErrorBoundary.tsx +0 -0
@@ -0,0 +1,78 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ Capabilities,
4
+ Events,
5
+ FileInfoSchema,
6
+ INTENT_ACTION,
7
+ INTENT_PLUGIN,
8
+ IntentAction,
9
+ IntentPlugin,
10
+ LAYOUT_ACTION,
11
+ LAYOUT_PLUGIN,
12
+ Label,
13
+ LayoutAction,
14
+ Plugin,
15
+ PluginManager,
16
+ PluginModule,
17
+ PluginsContext,
18
+ Resource,
19
+ ResourceKey,
20
+ ResourceLanguage,
21
+ allOf,
22
+ chain,
23
+ contributes,
24
+ createDispatcher,
25
+ createIntent,
26
+ createResolver,
27
+ createSurface,
28
+ defaultFileTypes,
29
+ defineCapability,
30
+ defineEvent,
31
+ defineModule,
32
+ definePlugin,
33
+ eventKey,
34
+ getEvents,
35
+ isAllOf,
36
+ isOneOf,
37
+ lazy,
38
+ oneOf
39
+ } from "./chunk-TVIR2PHY.mjs";
40
+ export {
41
+ Capabilities,
42
+ Events,
43
+ FileInfoSchema,
44
+ INTENT_ACTION,
45
+ INTENT_PLUGIN,
46
+ IntentAction,
47
+ IntentPlugin,
48
+ LAYOUT_ACTION,
49
+ LAYOUT_PLUGIN,
50
+ Label,
51
+ LayoutAction,
52
+ Plugin,
53
+ PluginManager,
54
+ PluginModule,
55
+ PluginsContext,
56
+ Resource,
57
+ ResourceKey,
58
+ ResourceLanguage,
59
+ allOf,
60
+ chain,
61
+ contributes,
62
+ createDispatcher,
63
+ createIntent,
64
+ createResolver,
65
+ createSurface,
66
+ defaultFileTypes,
67
+ defineCapability,
68
+ defineEvent,
69
+ defineModule,
70
+ definePlugin,
71
+ eventKey,
72
+ getEvents,
73
+ isAllOf,
74
+ isOneOf,
75
+ lazy,
76
+ oneOf
77
+ };
78
+ //# sourceMappingURL=worker.mjs.map
@@ -1,30 +1,39 @@
1
- import React from 'react';
2
- import { type HostPluginParams } from './plugins';
1
+ import { type ReactNode } from 'react';
2
+ import { PluginManager, type PluginManagerOptions, type Plugin } from './core';
3
+ import { ErrorBoundary } from './react';
4
+ export type CreateAppOptions = {
5
+ pluginManager?: PluginManager;
6
+ pluginLoader?: PluginManagerOptions['pluginLoader'];
7
+ plugins?: Plugin[];
8
+ core?: string[];
9
+ defaults?: string[];
10
+ placeholder?: ReactNode;
11
+ fallback?: ErrorBoundary['props']['fallback'];
12
+ cacheEnabled?: boolean;
13
+ };
3
14
  /**
4
15
  * Expected usage is for this to be the entrypoint of the application.
5
16
  * Initializes plugins and renders the root components.
6
17
  *
7
18
  * @example
8
- * const meta = [LayoutMeta, MyPluginMeta];
9
- * const plugins = {
10
- * [LayoutMeta.id]: Plugin.lazy(() => import('./plugins/LayoutPlugin/plugin')),
11
- * [MyPluginMeta.id]: Plugin.lazy(() => import('./plugins/MyPlugin/plugin')),
12
- * };
13
- * const core = [LayoutMeta.id];
14
- * const default = [MyPluginMeta.id];
19
+ * const plugins = [LayoutPlugin(), MyPlugin()];
20
+ * const core = [LayoutPluginId];
21
+ * const default = [MyPluginId];
15
22
  * const fallback = <div>Initializing Plugins...</div>;
16
- * const App = createApp({ order, plugins, core, default, fallback });
23
+ * const App = createApp({ plugins, core, default, fallback });
17
24
  * createRoot(document.getElementById('root')!).render(
18
25
  * <StrictMode>
19
26
  * <App />
20
27
  * </StrictMode>,
21
28
  * );
22
29
  *
30
+ * @param params.pluginLoader A function which loads new plugins.
23
31
  * @param params.plugins All plugins available to the application.
24
- * @param params.meta All plugin metadata.
25
32
  * @param params.core Core plugins which will always be enabled.
26
33
  * @param params.defaults Default plugins are enabled by default but can be disabled by the user.
27
- * @param params.fallback Fallback component to render while plugins are initializing.
34
+ * @param params.placeholder Placeholder component to render during startup.
35
+ * @param params.fallback Fallback component to render if an error occurs during startup.
36
+ * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.
28
37
  */
29
- export declare const createApp: ({ meta, plugins, core, ...params }: HostPluginParams) => () => React.JSX.Element;
38
+ export declare const createApp: ({ pluginManager, pluginLoader: _pluginLoader, plugins, core, defaults, placeholder, fallback, cacheEnabled, }: CreateAppOptions) => () => import("react/jsx-runtime").JSX.Element;
30
39
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,WAAW,CAAC;AAKtE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,SAAS,uCAAwC,gBAAgB,4BAuB7E,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA0B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/E,OAAO,EAAE,aAAa,EAA0C,MAAM,SAAS,CAAC;AAIhF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,kHASnB,gBAAgB,kDAiDlB,CAAC"}
@@ -0,0 +1,304 @@
1
+ import { type Schema as S } from '@effect/schema';
2
+ import { type FC, type PropsWithChildren } from 'react';
3
+ import { type GraphBuilder } from '@dxos/app-graph';
4
+ import { type ArtifactDefinition, type Tool } from '@dxos/artifact';
5
+ import { type Space } from '@dxos/client-protocol';
6
+ import { type RootSettingsStore } from '@dxos/local-storage';
7
+ import { type FileInfo } from './file';
8
+ import { type NodeSerializer } from './graph';
9
+ import { type SurfaceDefinition } from './surface';
10
+ import { type PluginManager } from '../core';
11
+ import { type AnyIntentResolver, type IntentContext } from '../plugin-intent';
12
+ export declare namespace Capabilities {
13
+ const PluginManager: import("..").InterfaceDef<PluginManager>;
14
+ const Null: import("..").InterfaceDef<null>;
15
+ type ReactContext = Readonly<{
16
+ id: string;
17
+ dependsOn?: string[];
18
+ context: FC<PropsWithChildren>;
19
+ }>;
20
+ const ReactContext: import("..").InterfaceDef<Readonly<{
21
+ id: string;
22
+ dependsOn?: string[];
23
+ context: FC<PropsWithChildren>;
24
+ }>>;
25
+ type ReactRoot = Readonly<{
26
+ id: string;
27
+ root: FC<PropsWithChildren>;
28
+ }>;
29
+ const ReactRoot: import("..").InterfaceDef<Readonly<{
30
+ id: string;
31
+ root: FC<PropsWithChildren>;
32
+ }>>;
33
+ type ReactSurface = SurfaceDefinition | readonly SurfaceDefinition[];
34
+ const ReactSurface: import("..").InterfaceDef<ReactSurface>;
35
+ type IntentResolver = AnyIntentResolver | readonly AnyIntentResolver[];
36
+ const IntentResolver: import("..").InterfaceDef<IntentResolver>;
37
+ const IntentDispatcher: import("..").InterfaceDef<IntentContext>;
38
+ type Layout = Readonly<{
39
+ mode: string;
40
+ dialogOpen: boolean;
41
+ sidebarOpen: boolean;
42
+ complementarySidebarOpen: boolean;
43
+ /**
44
+ * The id of the active workspace, where a workspace is a set of active items.
45
+ */
46
+ workspace: string;
47
+ /**
48
+ * Identifiers of items which are currently active in the application.
49
+ */
50
+ active: string[];
51
+ /**
52
+ * Identifiers of items which were previously active in the application.
53
+ */
54
+ inactive: string[];
55
+ /**
56
+ * Identifier of the item which should be scrolled into view.
57
+ */
58
+ scrollIntoView: string | undefined;
59
+ }>;
60
+ const Layout: import("..").InterfaceDef<Readonly<{
61
+ mode: string;
62
+ dialogOpen: boolean;
63
+ sidebarOpen: boolean;
64
+ complementarySidebarOpen: boolean;
65
+ /**
66
+ * The id of the active workspace, where a workspace is a set of active items.
67
+ */
68
+ workspace: string;
69
+ /**
70
+ * Identifiers of items which are currently active in the application.
71
+ */
72
+ active: string[];
73
+ /**
74
+ * Identifiers of items which were previously active in the application.
75
+ */
76
+ inactive: string[];
77
+ /**
78
+ * Identifier of the item which should be scrolled into view.
79
+ */
80
+ scrollIntoView: string | undefined;
81
+ }>>;
82
+ const Translations: import("..").InterfaceDef<readonly {
83
+ readonly [x: string]: {
84
+ readonly [x: string]: string | {
85
+ readonly [x: string]: any;
86
+ };
87
+ };
88
+ }[]>;
89
+ const AppGraph: import("..").InterfaceDef<Readonly<Pick<GraphBuilder, "graph" | "explore">>>;
90
+ const AppGraphBuilder: import("..").InterfaceDef<Readonly<{
91
+ id: string;
92
+ position: import("@dxos/util").Position;
93
+ resolver?: import("@dxos/app-graph").ResolverExtension;
94
+ connector?: import("@dxos/app-graph").ConnectorExtension;
95
+ relation?: import("@dxos/app-graph").Relation;
96
+ type?: string;
97
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
98
+ }> | Readonly<{
99
+ id: string;
100
+ position: import("@dxos/util").Position;
101
+ resolver?: import("@dxos/app-graph").ResolverExtension;
102
+ connector?: import("@dxos/app-graph").ConnectorExtension;
103
+ relation?: import("@dxos/app-graph").Relation;
104
+ type?: string;
105
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
106
+ }>[] | (Readonly<{
107
+ id: string;
108
+ position: import("@dxos/util").Position;
109
+ resolver?: import("@dxos/app-graph").ResolverExtension;
110
+ connector?: import("@dxos/app-graph").ConnectorExtension;
111
+ relation?: import("@dxos/app-graph").Relation;
112
+ type?: string;
113
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
114
+ }> | Readonly<{
115
+ id: string;
116
+ position: import("@dxos/util").Position;
117
+ resolver?: import("@dxos/app-graph").ResolverExtension;
118
+ connector?: import("@dxos/app-graph").ConnectorExtension;
119
+ relation?: import("@dxos/app-graph").Relation;
120
+ type?: string;
121
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
122
+ }>[] | (Readonly<{
123
+ id: string;
124
+ position: import("@dxos/util").Position;
125
+ resolver?: import("@dxos/app-graph").ResolverExtension;
126
+ connector?: import("@dxos/app-graph").ConnectorExtension;
127
+ relation?: import("@dxos/app-graph").Relation;
128
+ type?: string;
129
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
130
+ }> | Readonly<{
131
+ id: string;
132
+ position: import("@dxos/util").Position;
133
+ resolver?: import("@dxos/app-graph").ResolverExtension;
134
+ connector?: import("@dxos/app-graph").ConnectorExtension;
135
+ relation?: import("@dxos/app-graph").Relation;
136
+ type?: string;
137
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
138
+ }>[] | (Readonly<{
139
+ id: string;
140
+ position: import("@dxos/util").Position;
141
+ resolver?: import("@dxos/app-graph").ResolverExtension;
142
+ connector?: import("@dxos/app-graph").ConnectorExtension;
143
+ relation?: import("@dxos/app-graph").Relation;
144
+ type?: string;
145
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
146
+ }> | Readonly<{
147
+ id: string;
148
+ position: import("@dxos/util").Position;
149
+ resolver?: import("@dxos/app-graph").ResolverExtension;
150
+ connector?: import("@dxos/app-graph").ConnectorExtension;
151
+ relation?: import("@dxos/app-graph").Relation;
152
+ type?: string;
153
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
154
+ }>[] | (Readonly<{
155
+ id: string;
156
+ position: import("@dxos/util").Position;
157
+ resolver?: import("@dxos/app-graph").ResolverExtension;
158
+ connector?: import("@dxos/app-graph").ConnectorExtension;
159
+ relation?: import("@dxos/app-graph").Relation;
160
+ type?: string;
161
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
162
+ }> | Readonly<{
163
+ id: string;
164
+ position: import("@dxos/util").Position;
165
+ resolver?: import("@dxos/app-graph").ResolverExtension;
166
+ connector?: import("@dxos/app-graph").ConnectorExtension;
167
+ relation?: import("@dxos/app-graph").Relation;
168
+ type?: string;
169
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
170
+ }>[] | (Readonly<{
171
+ id: string;
172
+ position: import("@dxos/util").Position;
173
+ resolver?: import("@dxos/app-graph").ResolverExtension;
174
+ connector?: import("@dxos/app-graph").ConnectorExtension;
175
+ relation?: import("@dxos/app-graph").Relation;
176
+ type?: string;
177
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
178
+ }> | Readonly<{
179
+ id: string;
180
+ position: import("@dxos/util").Position;
181
+ resolver?: import("@dxos/app-graph").ResolverExtension;
182
+ connector?: import("@dxos/app-graph").ConnectorExtension;
183
+ relation?: import("@dxos/app-graph").Relation;
184
+ type?: string;
185
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
186
+ }>[] | (Readonly<{
187
+ id: string;
188
+ position: import("@dxos/util").Position;
189
+ resolver?: import("@dxos/app-graph").ResolverExtension;
190
+ connector?: import("@dxos/app-graph").ConnectorExtension;
191
+ relation?: import("@dxos/app-graph").Relation;
192
+ type?: string;
193
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
194
+ }> | Readonly<{
195
+ id: string;
196
+ position: import("@dxos/util").Position;
197
+ resolver?: import("@dxos/app-graph").ResolverExtension;
198
+ connector?: import("@dxos/app-graph").ConnectorExtension;
199
+ relation?: import("@dxos/app-graph").Relation;
200
+ type?: string;
201
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
202
+ }>[] | (Readonly<{
203
+ id: string;
204
+ position: import("@dxos/util").Position;
205
+ resolver?: import("@dxos/app-graph").ResolverExtension;
206
+ connector?: import("@dxos/app-graph").ConnectorExtension;
207
+ relation?: import("@dxos/app-graph").Relation;
208
+ type?: string;
209
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
210
+ }> | Readonly<{
211
+ id: string;
212
+ position: import("@dxos/util").Position;
213
+ resolver?: import("@dxos/app-graph").ResolverExtension;
214
+ connector?: import("@dxos/app-graph").ConnectorExtension;
215
+ relation?: import("@dxos/app-graph").Relation;
216
+ type?: string;
217
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
218
+ }>[] | (Readonly<{
219
+ id: string;
220
+ position: import("@dxos/util").Position;
221
+ resolver?: import("@dxos/app-graph").ResolverExtension;
222
+ connector?: import("@dxos/app-graph").ConnectorExtension;
223
+ relation?: import("@dxos/app-graph").Relation;
224
+ type?: string;
225
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
226
+ }> | Readonly<{
227
+ id: string;
228
+ position: import("@dxos/util").Position;
229
+ resolver?: import("@dxos/app-graph").ResolverExtension;
230
+ connector?: import("@dxos/app-graph").ConnectorExtension;
231
+ relation?: import("@dxos/app-graph").Relation;
232
+ type?: string;
233
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
234
+ }>[] | (Readonly<{
235
+ id: string;
236
+ position: import("@dxos/util").Position;
237
+ resolver?: import("@dxos/app-graph").ResolverExtension;
238
+ connector?: import("@dxos/app-graph").ConnectorExtension;
239
+ relation?: import("@dxos/app-graph").Relation;
240
+ type?: string;
241
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
242
+ }> | Readonly<{
243
+ id: string;
244
+ position: import("@dxos/util").Position;
245
+ resolver?: import("@dxos/app-graph").ResolverExtension;
246
+ connector?: import("@dxos/app-graph").ConnectorExtension;
247
+ relation?: import("@dxos/app-graph").Relation;
248
+ type?: string;
249
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
250
+ }>[] | (Readonly<{
251
+ id: string;
252
+ position: import("@dxos/util").Position;
253
+ resolver?: import("@dxos/app-graph").ResolverExtension;
254
+ connector?: import("@dxos/app-graph").ConnectorExtension;
255
+ relation?: import("@dxos/app-graph").Relation;
256
+ type?: string;
257
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
258
+ }> | Readonly<{
259
+ id: string;
260
+ position: import("@dxos/util").Position;
261
+ resolver?: import("@dxos/app-graph").ResolverExtension;
262
+ connector?: import("@dxos/app-graph").ConnectorExtension;
263
+ relation?: import("@dxos/app-graph").Relation;
264
+ type?: string;
265
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
266
+ }>[] | (Readonly<{
267
+ id: string;
268
+ position: import("@dxos/util").Position;
269
+ resolver?: import("@dxos/app-graph").ResolverExtension;
270
+ connector?: import("@dxos/app-graph").ConnectorExtension;
271
+ relation?: import("@dxos/app-graph").Relation;
272
+ type?: string;
273
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
274
+ }> | Readonly<{
275
+ id: string;
276
+ position: import("@dxos/util").Position;
277
+ resolver?: import("@dxos/app-graph").ResolverExtension;
278
+ connector?: import("@dxos/app-graph").ConnectorExtension;
279
+ relation?: import("@dxos/app-graph").Relation;
280
+ type?: string;
281
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
282
+ }>[] | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
283
+ const AppGraphSerializer: import("..").InterfaceDef<NodeSerializer[]>;
284
+ const SettingsStore: import("..").InterfaceDef<RootSettingsStore>;
285
+ type Settings = {
286
+ schema: S.Schema.All;
287
+ prefix: string;
288
+ value?: Record<string, any>;
289
+ };
290
+ const Settings: import("..").InterfaceDef<Settings>;
291
+ type Metadata = Readonly<{
292
+ id: string;
293
+ metadata: Record<string, any>;
294
+ }>;
295
+ const Metadata: import("..").InterfaceDef<Readonly<{
296
+ id: string;
297
+ metadata: Record<string, any>;
298
+ }>>;
299
+ const Tools: import("..").InterfaceDef<Tool[]>;
300
+ const ArtifactDefinition: import("..").InterfaceDef<ArtifactDefinition>;
301
+ type FileUploader = (file: File, space: Space) => Promise<FileInfo | undefined>;
302
+ const FileUploader: import("..").InterfaceDef<FileUploader>;
303
+ }
304
+ //# 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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"}
@@ -0,0 +1,52 @@
1
+ export declare namespace Events {
2
+ /**
3
+ * Fired when the app is started.
4
+ */
5
+ const Startup: import("..").ActivationEvent;
6
+ /**
7
+ * Fired to load any newly available surfaces.
8
+ */
9
+ const SetupReactSurface: import("..").ActivationEvent;
10
+ /**
11
+ * Fired to load any newly available metadata.
12
+ */
13
+ const SetupMetadata: import("..").ActivationEvent;
14
+ /**
15
+ * Fired before the intent dispatcher is activated.
16
+ */
17
+ const SetupIntentResolver: import("..").ActivationEvent;
18
+ /**
19
+ * Fired before the settings store is activated.
20
+ */
21
+ const SetupSettings: import("..").ActivationEvent;
22
+ /**
23
+ * Fired before the graph is created.
24
+ */
25
+ const SetupAppGraph: import("..").ActivationEvent;
26
+ /**
27
+ * Fired before the translations provider is created.
28
+ */
29
+ const SetupTranslations: import("..").ActivationEvent;
30
+ /**
31
+ * Fired to load any newly available artifacts definitions.
32
+ */
33
+ const SetupArtifactDefinition: import("..").ActivationEvent;
34
+ /**
35
+ * Fired after the intent dispatcher is ready.
36
+ */
37
+ const DispatcherReady: import("..").ActivationEvent;
38
+ /**
39
+ * Fired after the settings store is ready.
40
+ */
41
+ const SettingsReady: import("..").ActivationEvent;
42
+ /**
43
+ * Fired when the graph is ready.
44
+ */
45
+ const AppGraphReady: import("..").ActivationEvent;
46
+ /**
47
+ * Fired when plugin state is ready.
48
+ */
49
+ const createStateEvent: (specifier: string) => import("..").ActivationEvent;
50
+ const LayoutReady: import("..").ActivationEvent;
51
+ }
52
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/common/events.ts"],"names":[],"mappings":"AAOA,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACI,MAAM,OAAO,8BAAsD,CAAC;IAM3E;;OAEG;IACI,MAAM,iBAAiB,8BAAkE,CAAC;IAEjG;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,mBAAmB,8BAAoE,CAAC;IAErG;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,8BAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,iBAAiB,8BAAiE,CAAC;IAEhG;;OAEG;IACI,MAAM,uBAAuB,8BAAwE,CAAC;IAM7G;;OAEG;IACI,MAAM,eAAe,8BAA+D,CAAC;IAE5F;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,8BAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,gBAAgB,cAAe,MAAM,iCAAiE,CAAC;IAC7G,MAAM,WAAW,8BAAmD,CAAC;CAC7E"}
@@ -0,0 +1,14 @@
1
+ import { Schema as S } from '@effect/schema';
2
+ export declare const defaultFileTypes: {
3
+ images: string[];
4
+ media: string[];
5
+ text: string[];
6
+ };
7
+ export declare const FileInfoSchema: S.Struct<{
8
+ name: typeof S.String;
9
+ type: typeof S.String;
10
+ url: S.optional<typeof S.String>;
11
+ cid: S.optional<typeof S.String>;
12
+ }>;
13
+ export type FileInfo = S.Schema.Type<typeof FileInfoSchema>;
14
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { Node } from '@dxos/app-graph';
2
+ import { type MaybePromise, type Position } from '@dxos/util';
3
+ export type SerializedNode = {
4
+ name: string;
5
+ data: string;
6
+ type?: string;
7
+ };
8
+ export type NodeSerializer<T = any> = {
9
+ inputType: string;
10
+ outputType: string;
11
+ position?: Position;
12
+ /**
13
+ * Takes a node and serializes it into a format that can be stored.
14
+ */
15
+ serialize: (node: Node<T>) => MaybePromise<SerializedNode>;
16
+ /**
17
+ * Takes a serialized node and deserializes it into the application.
18
+ */
19
+ deserialize: (data: SerializedNode, ancestors: unknown[]) => MaybePromise<T>;
20
+ };
21
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/common/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG9D,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,cAAc,CAAC,CAAC;IAE3D;;OAEG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC;CAC9E,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './capabilities';
2
+ export * from './events';
3
+ export * from './file';
4
+ export * from './graph';
5
+ export * from './layout';
6
+ export * from './surface';
7
+ export * from './translations';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}