@dxos/app-framework 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446

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 (326) hide show
  1. package/dist/lib/browser/{app-graph-builder-6E7NCZ77.mjs → app-graph-builder-576BHZC7.mjs} +23 -23
  2. package/dist/lib/browser/app-graph-builder-576BHZC7.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-2KSDY3EZ.mjs → chunk-6AVTZPMT.mjs} +267 -325
  4. package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-K3HOLGVH.mjs → chunk-PPIBZ5N4.mjs} +28 -40
  6. package/dist/lib/browser/chunk-PPIBZ5N4.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-KPRHX73H.mjs → chunk-SFPT4Z2C.mjs} +9 -9
  8. package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +8 -10
  10. package/dist/lib/browser/index.mjs.map +1 -1
  11. package/dist/lib/browser/{intent-dispatcher-VGUJBPPN.mjs → intent-dispatcher-3Q67MHZZ.mjs} +2 -2
  12. package/dist/lib/browser/{intent-resolver-QLFZY5R5.mjs → intent-resolver-O763LCLG.mjs} +3 -3
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/{store-QGVXOY4T.mjs → store-URSN7DZI.mjs} +6 -7
  15. package/dist/lib/browser/store-URSN7DZI.mjs.map +7 -0
  16. package/dist/lib/browser/testing/index.mjs +3 -7
  17. package/dist/lib/browser/testing/index.mjs.map +3 -3
  18. package/dist/lib/browser/worker.mjs +3 -5
  19. package/dist/lib/node/app-graph-builder-JZCSKYPY.cjs +146 -0
  20. package/dist/lib/node/app-graph-builder-JZCSKYPY.cjs.map +7 -0
  21. package/dist/lib/node/{chunk-JQMNABMK.cjs → chunk-JUSEAFDU.cjs} +4 -4
  22. package/dist/lib/node/chunk-JUSEAFDU.cjs.map +7 -0
  23. package/dist/lib/node/{chunk-2EBZ2ICH.cjs → chunk-YIFTVCOR.cjs} +247 -304
  24. package/dist/lib/node/chunk-YIFTVCOR.cjs.map +7 -0
  25. package/dist/lib/node/{chunk-7J66KH2T.cjs → chunk-YNTKVTVX.cjs} +67 -79
  26. package/dist/lib/node/chunk-YNTKVTVX.cjs.map +7 -0
  27. package/dist/lib/node/index.cjs +79 -81
  28. package/dist/lib/node/index.cjs.map +1 -1
  29. package/dist/lib/node/{intent-dispatcher-TASJBG5M.cjs → intent-dispatcher-H334XLFD.cjs} +8 -8
  30. package/dist/lib/node/{intent-dispatcher-TASJBG5M.cjs.map → intent-dispatcher-H334XLFD.cjs.map} +2 -2
  31. package/dist/lib/node/{intent-resolver-5CG5NIJY.cjs → intent-resolver-3F4POWAM.cjs} +12 -12
  32. package/dist/lib/node/meta.json +1 -1
  33. package/dist/lib/node/{store-IF3UR2KA.cjs → store-OFDHTDCB.cjs} +9 -10
  34. package/dist/lib/node/store-OFDHTDCB.cjs.map +7 -0
  35. package/dist/lib/node/testing/index.cjs +9 -14
  36. package/dist/lib/node/testing/index.cjs.map +3 -3
  37. package/dist/lib/node/worker.cjs +38 -40
  38. package/dist/lib/node/worker.cjs.map +2 -2
  39. package/dist/lib/node-esm/{app-graph-builder-LYCG5CO3.mjs → app-graph-builder-VYKLSMSZ.mjs} +23 -23
  40. package/dist/lib/node-esm/app-graph-builder-VYKLSMSZ.mjs.map +7 -0
  41. package/dist/lib/node-esm/{chunk-BOEJMAVK.mjs → chunk-AHKIPS2L.mjs} +267 -325
  42. package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +7 -0
  43. package/dist/lib/node-esm/{chunk-JUJF5L4G.mjs → chunk-PHOUQACM.mjs} +9 -9
  44. package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +7 -0
  45. package/dist/lib/node-esm/{chunk-ISNBS46Y.mjs → chunk-R6A7Z4LU.mjs} +28 -40
  46. package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +7 -0
  47. package/dist/lib/node-esm/index.mjs +8 -10
  48. package/dist/lib/node-esm/index.mjs.map +1 -1
  49. package/dist/lib/node-esm/{intent-dispatcher-ZUSNX2OY.mjs → intent-dispatcher-YDE2ONZA.mjs} +2 -2
  50. package/dist/lib/node-esm/{intent-resolver-NGDHUKDD.mjs → intent-resolver-LAGJ7LXM.mjs} +3 -3
  51. package/dist/lib/node-esm/meta.json +1 -1
  52. package/dist/lib/node-esm/{store-NCRSE25X.mjs → store-EYSUVNCS.mjs} +6 -7
  53. package/dist/lib/node-esm/store-EYSUVNCS.mjs.map +7 -0
  54. package/dist/lib/node-esm/testing/index.mjs +3 -7
  55. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  56. package/dist/lib/node-esm/worker.mjs +3 -5
  57. package/dist/types/src/App.d.ts +1 -3
  58. package/dist/types/src/App.d.ts.map +1 -1
  59. package/dist/types/src/common/capabilities.d.ts +196 -6
  60. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  61. package/dist/types/src/common/events.d.ts.map +1 -1
  62. package/dist/types/src/common/file.d.ts +7 -7
  63. package/dist/types/src/common/file.d.ts.map +1 -1
  64. package/dist/types/src/common/index.d.ts +0 -1
  65. package/dist/types/src/common/index.d.ts.map +1 -1
  66. package/dist/types/src/common/layout.d.ts +158 -164
  67. package/dist/types/src/common/layout.d.ts.map +1 -1
  68. package/dist/types/src/common/surface.d.ts.map +1 -1
  69. package/dist/types/src/common/translations.d.ts +7 -7
  70. package/dist/types/src/common/translations.d.ts.map +1 -1
  71. package/dist/types/src/core/capabilities.d.ts +15 -33
  72. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  73. package/dist/types/src/core/events.d.ts +1 -4
  74. package/dist/types/src/core/events.d.ts.map +1 -1
  75. package/dist/types/src/core/manager.d.ts +11 -14
  76. package/dist/types/src/core/manager.d.ts.map +1 -1
  77. package/dist/types/src/core/plugin.d.ts +3 -4
  78. package/dist/types/src/core/plugin.d.ts.map +1 -1
  79. package/dist/types/src/helpers.d.ts.map +1 -1
  80. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  81. package/dist/types/src/playground/logger/schema.d.ts +6 -6
  82. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  83. package/dist/types/src/plugin-intent/actions.d.ts +14 -14
  84. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  85. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +3 -29
  86. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  87. package/dist/types/src/plugin-intent/intent.d.ts +20 -14
  88. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  89. package/dist/types/src/plugin-settings/actions.d.ts +10 -10
  90. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  91. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +195 -2
  92. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
  93. package/dist/types/src/plugin-settings/store.d.ts +2 -2
  94. package/dist/types/src/plugin-settings/store.d.ts.map +1 -1
  95. package/dist/types/src/react/IntentContext.d.ts.map +1 -1
  96. package/dist/types/src/react/Surface.d.ts +2 -2
  97. package/dist/types/src/react/Surface.d.ts.map +1 -1
  98. package/dist/types/src/react/useCapabilities.d.ts +2 -2
  99. package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
  100. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -1
  101. package/dist/types/src/testing/withPluginManager.d.ts +2 -5
  102. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  103. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  104. package/dist/types/tsconfig.tsbuildinfo +1 -1
  105. package/package.json +20 -29
  106. package/project.json +1 -2
  107. package/src/App.tsx +4 -16
  108. package/src/common/capabilities.ts +4 -7
  109. package/src/common/file.ts +7 -7
  110. package/src/common/index.ts +0 -1
  111. package/src/common/layout.ts +128 -159
  112. package/src/common/translations.ts +7 -7
  113. package/src/core/capabilities.test.ts +36 -55
  114. package/src/core/capabilities.ts +58 -82
  115. package/src/core/events.ts +1 -4
  116. package/src/core/manager.test.ts +22 -22
  117. package/src/core/manager.ts +16 -24
  118. package/src/core/plugin.ts +3 -4
  119. package/src/playground/generator/generator.ts +4 -4
  120. package/src/playground/logger/schema.ts +5 -5
  121. package/src/playground/playground.stories.tsx +1 -1
  122. package/src/plugin-intent/actions.ts +9 -9
  123. package/src/plugin-intent/intent-dispatcher.test.ts +42 -23
  124. package/src/plugin-intent/intent-dispatcher.ts +13 -25
  125. package/src/plugin-intent/intent.ts +20 -22
  126. package/src/plugin-settings/actions.ts +8 -8
  127. package/src/plugin-settings/app-graph-builder.ts +94 -129
  128. package/src/plugin-settings/store.ts +17 -20
  129. package/src/react/Surface.stories.tsx +1 -1
  130. package/src/react/Surface.tsx +3 -3
  131. package/src/react/useCapabilities.ts +19 -9
  132. package/src/testing/withPluginManager.stories.tsx +1 -0
  133. package/src/testing/withPluginManager.tsx +3 -11
  134. package/tsconfig.json +0 -3
  135. package/dist/lib/browser/app-graph-builder-6E7NCZ77.mjs.map +0 -7
  136. package/dist/lib/browser/chunk-2KSDY3EZ.mjs.map +0 -7
  137. package/dist/lib/browser/chunk-K3HOLGVH.mjs.map +0 -7
  138. package/dist/lib/browser/chunk-KPRHX73H.mjs.map +0 -7
  139. package/dist/lib/browser/store-QGVXOY4T.mjs.map +0 -7
  140. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs +0 -146
  141. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs.map +0 -7
  142. package/dist/lib/node/chunk-2EBZ2ICH.cjs.map +0 -7
  143. package/dist/lib/node/chunk-7J66KH2T.cjs.map +0 -7
  144. package/dist/lib/node/chunk-JQMNABMK.cjs.map +0 -7
  145. package/dist/lib/node/store-IF3UR2KA.cjs.map +0 -7
  146. package/dist/lib/node-esm/app-graph-builder-LYCG5CO3.mjs.map +0 -7
  147. package/dist/lib/node-esm/chunk-BOEJMAVK.mjs.map +0 -7
  148. package/dist/lib/node-esm/chunk-ISNBS46Y.mjs.map +0 -7
  149. package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +0 -7
  150. package/dist/lib/node-esm/store-NCRSE25X.mjs.map +0 -7
  151. package/dist/types/src/common/collaboration.d.ts +0 -26
  152. package/dist/types/src/common/collaboration.d.ts.map +0 -1
  153. package/src/common/collaboration.ts +0 -24
  154. package/typedoc/.nojekyll +0 -1
  155. package/typedoc/assets/hierarchy.js +0 -1
  156. package/typedoc/assets/highlight.css +0 -106
  157. package/typedoc/assets/icons.js +0 -18
  158. package/typedoc/assets/icons.svg +0 -1
  159. package/typedoc/assets/main.js +0 -60
  160. package/typedoc/assets/navigation.js +0 -1
  161. package/typedoc/assets/search.js +0 -1
  162. package/typedoc/assets/style.css +0 -1640
  163. package/typedoc/classes/CollaborationActions.InsertContent.html +0 -460
  164. package/typedoc/classes/ErrorBoundary.html +0 -125
  165. package/typedoc/classes/IntentAction.ShowUndo.html +0 -227
  166. package/typedoc/classes/IntentAction.Track.html +0 -266
  167. package/typedoc/classes/LayoutAction.AddToast.html +0 -265
  168. package/typedoc/classes/LayoutAction.Close.html +0 -382
  169. package/typedoc/classes/LayoutAction.Expose.html +0 -265
  170. package/typedoc/classes/LayoutAction.Open.html +0 -1123
  171. package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
  172. package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
  173. package/typedoc/classes/LayoutAction.Set.html +0 -460
  174. package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -499
  175. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
  176. package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
  177. package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -811
  178. package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
  179. package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
  180. package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -616
  181. package/typedoc/classes/Plugin.html +0 -6
  182. package/typedoc/classes/PluginContext.html +0 -38
  183. package/typedoc/classes/PluginManager.html +0 -43
  184. package/typedoc/classes/PluginModule.html +0 -18
  185. package/typedoc/classes/SettingsAction.Open.html +0 -226
  186. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +0 -265
  187. package/typedoc/functions/Events.createStateEvent.html +0 -2
  188. package/typedoc/functions/IntentPlugin.html +0 -1
  189. package/typedoc/functions/SettingsPlugin.html +0 -1
  190. package/typedoc/functions/allOf.html +0 -2
  191. package/typedoc/functions/chain.html +0 -3
  192. package/typedoc/functions/contributes.html +0 -2
  193. package/typedoc/functions/createApp.html +0 -6
  194. package/typedoc/functions/createDispatcher.html +0 -3
  195. package/typedoc/functions/createIntent.html +0 -6
  196. package/typedoc/functions/createResolver.html +0 -2
  197. package/typedoc/functions/createSurface.html +0 -2
  198. package/typedoc/functions/defineCapability.html +0 -2
  199. package/typedoc/functions/defineEvent.html +0 -2
  200. package/typedoc/functions/defineModule.html +0 -2
  201. package/typedoc/functions/definePlugin.html +0 -2
  202. package/typedoc/functions/eventKey.html +0 -2
  203. package/typedoc/functions/getEvents.html +0 -2
  204. package/typedoc/functions/isAllOf.html +0 -2
  205. package/typedoc/functions/isOneOf.html +0 -2
  206. package/typedoc/functions/isSurfaceAvailable.html +0 -2
  207. package/typedoc/functions/lazy.html +0 -2
  208. package/typedoc/functions/oneOf.html +0 -2
  209. package/typedoc/functions/useAppGraph.html +0 -1
  210. package/typedoc/functions/useCapabilities.html +0 -3
  211. package/typedoc/functions/useCapability.html +0 -4
  212. package/typedoc/functions/useIntentDispatcher.html +0 -1
  213. package/typedoc/functions/useIntentResolver.html +0 -1
  214. package/typedoc/functions/useLayout.html +0 -1
  215. package/typedoc/functions/usePluginManager.html +0 -2
  216. package/typedoc/hierarchy.html +0 -1
  217. package/typedoc/index.html +0 -16
  218. package/typedoc/interfaces/LayoutAction.Toast.html +0 -10
  219. package/typedoc/media/LICENSE +0 -8
  220. package/typedoc/modules/Capabilities.html +0 -1
  221. package/typedoc/modules/CollaborationActions.html +0 -1
  222. package/typedoc/modules/Events.html +0 -1
  223. package/typedoc/modules/IntentAction.html +0 -1
  224. package/typedoc/modules/LayoutAction.html +0 -2
  225. package/typedoc/modules/SettingsAction.html +0 -1
  226. package/typedoc/modules.html +0 -1
  227. package/typedoc/types/ActivationEvent.html +0 -8
  228. package/typedoc/types/ActivationEvents.html +0 -2
  229. package/typedoc/types/AnyCapability.html +0 -1
  230. package/typedoc/types/AnyIntent.html +0 -1
  231. package/typedoc/types/AnyIntentChain.html +0 -1
  232. package/typedoc/types/AnyIntentEffectResult.html +0 -1
  233. package/typedoc/types/AnyIntentResolver.html +0 -1
  234. package/typedoc/types/AnyIntentResult.html +0 -1
  235. package/typedoc/types/Capabilities.FileUploader.html +0 -1
  236. package/typedoc/types/Capabilities.IntentResolver.html +0 -1
  237. package/typedoc/types/Capabilities.Layout.html +0 -1
  238. package/typedoc/types/Capabilities.Metadata.html +0 -1
  239. package/typedoc/types/Capabilities.ReactContext.html +0 -1
  240. package/typedoc/types/Capabilities.ReactRoot.html +0 -1
  241. package/typedoc/types/Capabilities.ReactSurface.html +0 -1
  242. package/typedoc/types/Capabilities.Settings.html +0 -4
  243. package/typedoc/types/Capability.html +0 -9
  244. package/typedoc/types/CreateAppOptions.html +0 -10
  245. package/typedoc/types/FileInfo.html +0 -1
  246. package/typedoc/types/Intent.html +0 -10
  247. package/typedoc/types/IntentChain.html +0 -6
  248. package/typedoc/types/IntentContext.html +0 -5
  249. package/typedoc/types/IntentData.html +0 -1
  250. package/typedoc/types/IntentDispatcher.html +0 -2
  251. package/typedoc/types/IntentDispatcherResult.html +0 -2
  252. package/typedoc/types/IntentEffectDefinition.html +0 -2
  253. package/typedoc/types/IntentEffectResult.html +0 -15
  254. package/typedoc/types/IntentParams.html +0 -3
  255. package/typedoc/types/IntentResolver.html +0 -2
  256. package/typedoc/types/IntentResultData.html +0 -1
  257. package/typedoc/types/IntentSchema.html +0 -1
  258. package/typedoc/types/IntentUndo.html +0 -2
  259. package/typedoc/types/InterfaceDef.html +0 -4
  260. package/typedoc/types/Label.html +0 -1
  261. package/typedoc/types/NodeSerializer.html +0 -8
  262. package/typedoc/types/PluginManagerOptions.html +0 -6
  263. package/typedoc/types/PluginMeta.html +0 -21
  264. package/typedoc/types/PromiseIntentDispatcher.html +0 -2
  265. package/typedoc/types/PromiseIntentUndo.html +0 -2
  266. package/typedoc/types/Resource.html +0 -1
  267. package/typedoc/types/ResourceKey.html +0 -1
  268. package/typedoc/types/ResourceLanguage.html +0 -1
  269. package/typedoc/types/SerializedNode.html +0 -4
  270. package/typedoc/types/SurfaceComponent.html +0 -2
  271. package/typedoc/types/SurfaceDefinition.html +0 -2
  272. package/typedoc/types/SurfaceProps.html +0 -4
  273. package/typedoc/variables/Capabilities.AppGraph.html +0 -1
  274. package/typedoc/variables/Capabilities.AppGraphBuilder.html +0 -1
  275. package/typedoc/variables/Capabilities.AppGraphSerializer.html +0 -1
  276. package/typedoc/variables/Capabilities.ArtifactDefinition.html +0 -1
  277. package/typedoc/variables/Capabilities.FileUploader.html +0 -1
  278. package/typedoc/variables/Capabilities.IntentDispatcher.html +0 -1
  279. package/typedoc/variables/Capabilities.IntentResolver.html +0 -1
  280. package/typedoc/variables/Capabilities.Layout.html +0 -1
  281. package/typedoc/variables/Capabilities.Metadata.html +0 -1
  282. package/typedoc/variables/Capabilities.Null.html +0 -1
  283. package/typedoc/variables/Capabilities.PluginManager.html +0 -1
  284. package/typedoc/variables/Capabilities.ReactContext.html +0 -1
  285. package/typedoc/variables/Capabilities.ReactRoot.html +0 -1
  286. package/typedoc/variables/Capabilities.ReactSurface.html +0 -1
  287. package/typedoc/variables/Capabilities.RxRegistry.html +0 -1
  288. package/typedoc/variables/Capabilities.Settings.html +0 -1
  289. package/typedoc/variables/Capabilities.SettingsStore.html +0 -1
  290. package/typedoc/variables/Capabilities.Tools.html +0 -1
  291. package/typedoc/variables/Capabilities.Translations.html +0 -1
  292. package/typedoc/variables/Events.AppGraphReady.html +0 -2
  293. package/typedoc/variables/Events.DispatcherReady.html +0 -2
  294. package/typedoc/variables/Events.LayoutReady.html +0 -1
  295. package/typedoc/variables/Events.SettingsReady.html +0 -2
  296. package/typedoc/variables/Events.SetupAppGraph.html +0 -2
  297. package/typedoc/variables/Events.SetupArtifactDefinition.html +0 -2
  298. package/typedoc/variables/Events.SetupIntentResolver.html +0 -2
  299. package/typedoc/variables/Events.SetupMetadata.html +0 -2
  300. package/typedoc/variables/Events.SetupReactSurface.html +0 -2
  301. package/typedoc/variables/Events.SetupSettings.html +0 -2
  302. package/typedoc/variables/Events.SetupTranslations.html +0 -2
  303. package/typedoc/variables/Events.Startup.html +0 -2
  304. package/typedoc/variables/FileInfoSchema.html +0 -1
  305. package/typedoc/variables/INTENT_ACTION.html +0 -1
  306. package/typedoc/variables/INTENT_PLUGIN.html +0 -1
  307. package/typedoc/variables/LAYOUT_ACTION.html +0 -1
  308. package/typedoc/variables/LAYOUT_PLUGIN.html +0 -1
  309. package/typedoc/variables/Label.html +0 -1
  310. package/typedoc/variables/LayoutAction.Toast.html +0 -1
  311. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +0 -1
  312. package/typedoc/variables/PluginManagerProvider.html +0 -2
  313. package/typedoc/variables/Resource.html +0 -2
  314. package/typedoc/variables/ResourceKey.html +0 -1
  315. package/typedoc/variables/ResourceLanguage.html +0 -1
  316. package/typedoc/variables/SETTINGS_ACTION.html +0 -1
  317. package/typedoc/variables/SETTINGS_ID.html +0 -1
  318. package/typedoc/variables/SETTINGS_KEY.html +0 -1
  319. package/typedoc/variables/SETTINGS_PLUGIN.html +0 -1
  320. package/typedoc/variables/Surface.html +0 -2
  321. package/typedoc/variables/defaultFileTypes.html +0 -1
  322. /package/dist/lib/browser/{intent-dispatcher-VGUJBPPN.mjs.map → intent-dispatcher-3Q67MHZZ.mjs.map} +0 -0
  323. /package/dist/lib/browser/{intent-resolver-QLFZY5R5.mjs.map → intent-resolver-O763LCLG.mjs.map} +0 -0
  324. /package/dist/lib/node/{intent-resolver-5CG5NIJY.cjs.map → intent-resolver-3F4POWAM.cjs.map} +0 -0
  325. /package/dist/lib/node-esm/{intent-dispatcher-ZUSNX2OY.mjs.map → intent-dispatcher-YDE2ONZA.mjs.map} +0 -0
  326. /package/dist/lib/node-esm/{intent-resolver-NGDHUKDD.mjs.map → intent-resolver-LAGJ7LXM.mjs.map} +0 -0
@@ -26,10 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_2EBZ2ICH_exports = {};
30
- __export(chunk_2EBZ2ICH_exports, {
29
+ var chunk_YIFTVCOR_exports = {};
30
+ __export(chunk_YIFTVCOR_exports, {
31
31
  Capabilities: () => Capabilities,
32
- CollaborationActions: () => CollaborationActions,
33
32
  Events: () => Events,
34
33
  FileInfoSchema: () => FileInfoSchema,
35
34
  INTENT_ACTION: () => INTENT_ACTION,
@@ -41,9 +40,9 @@ __export(chunk_2EBZ2ICH_exports, {
41
40
  Label: () => Label,
42
41
  LayoutAction: () => LayoutAction,
43
42
  Plugin: () => Plugin,
44
- PluginContext: () => PluginContext,
45
43
  PluginManager: () => PluginManager,
46
44
  PluginModule: () => PluginModule,
45
+ PluginsContext: () => PluginsContext,
47
46
  Resource: () => Resource,
48
47
  ResourceKey: () => ResourceKey,
49
48
  ResourceLanguage: () => ResourceLanguage,
@@ -67,30 +66,27 @@ __export(chunk_2EBZ2ICH_exports, {
67
66
  lazy: () => lazy,
68
67
  oneOf: () => oneOf
69
68
  });
70
- module.exports = __toCommonJS(chunk_2EBZ2ICH_exports);
69
+ module.exports = __toCommonJS(chunk_YIFTVCOR_exports);
71
70
  var import_effect = require("effect");
72
71
  var import_live_object = require("@dxos/live-object");
73
72
  var import_log = require("@dxos/log");
74
73
  var import_util = require("@dxos/util");
75
74
  var import_effect2 = require("effect");
76
75
  var import_effect3 = require("effect");
77
- var import_rx_react = require("@effect-rx/rx-react");
76
+ var import_signals_core = require("@preact/signals-core");
78
77
  var import_effect4 = require("effect");
79
78
  var import_async = require("@dxos/async");
80
79
  var import_invariant = require("@dxos/invariant");
80
+ var import_live_object2 = require("@dxos/live-object");
81
81
  var import_log2 = require("@dxos/log");
82
- var import_rx_react2 = require("@effect-rx/rx-react");
83
- var import_signals_core = require("@preact/signals-core");
82
+ var import_signals_core2 = require("@preact/signals-core");
84
83
  var import_effect5 = require("effect");
85
84
  var import_async2 = require("@dxos/async");
86
- var import_live_object2 = require("@dxos/live-object");
85
+ var import_live_object3 = require("@dxos/live-object");
87
86
  var import_log3 = require("@dxos/log");
88
87
  var import_effect6 = require("effect");
89
- var import_echo_schema = require("@dxos/echo-schema");
90
- var import_keys = require("@dxos/keys");
91
88
  var import_effect7 = require("effect");
92
89
  var import_effect8 = require("effect");
93
- var import_effect9 = require("effect");
94
90
  var createIntent = (schema, data = {}, params = {}) => {
95
91
  const _ = import_effect3.Schema.validateSync(schema.fields.input)(data);
96
92
  const intent = {
@@ -200,33 +196,9 @@ var lazy = (c) => async (props) => {
200
196
  const { default: getCapability } = await c();
201
197
  return async () => getCapability(props);
202
198
  };
203
- var PluginContext = class {
204
- constructor({ registry, activate, reset }) {
205
- this._capabilityImpls = import_rx_react.Rx.family(() => {
206
- return import_rx_react.Rx.make([]).pipe(import_rx_react.Rx.keepAlive);
207
- });
208
- this._capabilities = import_rx_react.Rx.family((id) => {
209
- return import_rx_react.Rx.make((get) => {
210
- const current = get(this._capabilityImpls(id));
211
- return current.map((c) => c.implementation);
212
- });
213
- });
214
- this._capability = import_rx_react.Rx.family((id) => {
215
- return import_rx_react.Rx.make((get) => {
216
- const current = get(this._capabilities(id));
217
- (0, import_invariant.invariant)(current.length > 0, `No capability found for ${id}`, {
218
- F: __dxlog_file,
219
- L: 117,
220
- S: this,
221
- A: [
222
- "current.length > 0",
223
- "`No capability found for ${id}`"
224
- ]
225
- });
226
- return current[0];
227
- });
228
- });
229
- this._registry = registry;
199
+ var PluginsContext = class {
200
+ constructor({ activate, reset }) {
201
+ this._definedCapabilities = /* @__PURE__ */ new Map();
230
202
  this.activate = activate;
231
203
  this.reset = reset;
232
204
  }
@@ -234,22 +206,22 @@ var PluginContext = class {
234
206
  * @internal
235
207
  */
236
208
  contributeCapability({ module: moduleId, interface: interfaceDef, implementation }) {
237
- const current = this._registry.get(this._capabilityImpls(interfaceDef.identifier));
238
- const capability = new CapabilityImpl(moduleId, implementation);
239
- if (current.includes(capability)) {
240
- return;
209
+ let current = this._definedCapabilities.get(interfaceDef.identifier);
210
+ if (!current) {
211
+ const object = (0, import_live_object2.create)({
212
+ value: []
213
+ });
214
+ current = (0, import_signals_core.untracked)(() => object.value);
215
+ this._definedCapabilities.set(interfaceDef.identifier, current);
241
216
  }
242
- this._registry.set(this._capabilityImpls(interfaceDef.identifier), [
243
- ...current,
244
- capability
245
- ]);
217
+ current.push(new CapabilityImpl(moduleId, implementation));
246
218
  (0, import_log2.log)("capability contributed", {
247
219
  id: interfaceDef.identifier,
248
220
  moduleId,
249
- count: current.length
221
+ count: (0, import_signals_core.untracked)(() => current.length)
250
222
  }, {
251
223
  F: __dxlog_file,
252
- L: 161,
224
+ L: 142,
253
225
  S: this,
254
226
  C: (f, a) => f(...a)
255
227
  });
@@ -258,19 +230,19 @@ var PluginContext = class {
258
230
  * @internal
259
231
  */
260
232
  removeCapability(interfaceDef, implementation) {
261
- const current = this._registry.get(this._capabilityImpls(interfaceDef.identifier));
262
- if (current.length === 0) {
233
+ const current = this._definedCapabilities.get(interfaceDef.identifier);
234
+ if (!current) {
263
235
  return;
264
236
  }
265
- const next = current.filter((c) => c.implementation !== implementation);
266
- if (next.length !== current.length) {
267
- this._registry.set(this._capabilityImpls(interfaceDef.identifier), next);
237
+ const index = current.findIndex((i) => i.implementation === implementation);
238
+ if (index !== -1) {
239
+ current.splice(index, 1);
268
240
  (0, import_log2.log)("capability removed", {
269
241
  id: interfaceDef.identifier,
270
- count: current.length
242
+ count: (0, import_signals_core.untracked)(() => current.length)
271
243
  }, {
272
244
  F: __dxlog_file,
273
- L: 180,
245
+ L: 161,
274
246
  S: this,
275
247
  C: (f, a) => f(...a)
276
248
  });
@@ -279,64 +251,63 @@ var PluginContext = class {
279
251
  id: interfaceDef.identifier
280
252
  }, {
281
253
  F: __dxlog_file,
282
- L: 182,
254
+ L: 163,
283
255
  S: this,
284
256
  C: (f, a) => f(...a)
285
257
  });
286
258
  }
287
259
  }
288
260
  /**
289
- * Get the Rx reference to the available capabilities for a given interface.
290
- * Primarily useful for deriving other Rx values based on the capabilities or
291
- * for subscribing to changes in the capabilities.
292
- * @returns An Rx reference to the available capabilities.
293
- */
294
- capabilities(interfaceDef) {
295
- return this._capabilities(interfaceDef.identifier);
296
- }
297
- /**
298
- * Get the Rx reference to the available capabilities for a given interface.
299
- * Primarily useful for deriving other Rx values based on the capability or
300
- * for subscribing to changes in the capability.
301
- * @returns An Rx reference to the available capability.
302
- * @throws If no capability is found.
303
- */
304
- capability(interfaceDef) {
305
- return this._capability(interfaceDef.identifier);
306
- }
307
- /**
308
- * Get capabilities from the plugin context.
261
+ * Requests capabilities from the plugin context.
309
262
  * @returns An array of capabilities.
263
+ * @reactive
310
264
  */
311
- getCapabilities(interfaceDef) {
312
- return this._registry.get(this.capabilities(interfaceDef));
265
+ requestCapabilities(interfaceDef, filter) {
266
+ let current = this._definedCapabilities.get(interfaceDef.identifier);
267
+ if (!current) {
268
+ const object = (0, import_live_object2.create)({
269
+ value: []
270
+ });
271
+ current = (0, import_signals_core.untracked)(() => object.value);
272
+ this._definedCapabilities.set(interfaceDef.identifier, current);
273
+ }
274
+ const capabilities = filter ? current.filter((c) => filter(c.implementation, c.moduleId)) : current;
275
+ return capabilities.map((c) => c.implementation);
313
276
  }
314
277
  /**
315
278
  * Requests a single capability from the plugin context.
316
279
  * @returns The capability.
317
280
  * @throws If no capability is found.
281
+ * @reactive
318
282
  */
319
- getCapability(interfaceDef) {
320
- return this._registry.get(this.capability(interfaceDef));
283
+ requestCapability(interfaceDef, filter) {
284
+ const capability = this.requestCapabilities(interfaceDef, filter)[0];
285
+ (0, import_invariant.invariant)(capability, `No capability found for ${interfaceDef.identifier}`, {
286
+ F: __dxlog_file,
287
+ L: 199,
288
+ S: this,
289
+ A: [
290
+ "capability",
291
+ "`No capability found for ${interfaceDef.identifier}`"
292
+ ]
293
+ });
294
+ return capability;
321
295
  }
322
296
  /**
323
- * Waits for a capability to be available.
297
+ * Waits for a capability to be contributed.
324
298
  * @returns The capability.
325
299
  */
326
- async waitForCapability(interfaceDef) {
327
- const [capability] = this.getCapabilities(interfaceDef);
328
- if (capability) {
329
- return capability;
330
- }
300
+ async waitForCapability(interfaceDef, filter) {
331
301
  const trigger = new import_async.Trigger();
332
- const cancel = this._registry.subscribe(this.capabilities(interfaceDef), (capabilities) => {
333
- if (capabilities.length > 0) {
302
+ const unsubscribe = (0, import_signals_core.effect)(() => {
303
+ const capabilities = this.requestCapabilities(interfaceDef, filter);
304
+ if (capabilities[0]) {
334
305
  trigger.wake(capabilities[0]);
335
306
  }
336
307
  });
337
- const result = await trigger.wait();
338
- cancel();
339
- return result;
308
+ const capability = await trigger.wait();
309
+ unsubscribe();
310
+ return capability;
340
311
  }
341
312
  async activatePromise(event) {
342
313
  return this.activate(event).pipe(import_effect4.Effect.runPromise);
@@ -370,17 +341,15 @@ var isPromise = (value) => {
370
341
  return value !== null && typeof value === "object" && "then" in value;
371
342
  };
372
343
  var PluginManager = class {
373
- constructor({ pluginLoader, plugins = [], core = plugins.map(({ meta }) => meta.id), enabled = [], registry }) {
344
+ constructor({ pluginLoader, plugins = [], core = plugins.map(({ meta }) => meta.id), enabled = [] }) {
374
345
  this.activation = new import_async2.Event();
375
- this._capabilities = /* @__PURE__ */ new Map();
376
- this.registry = registry ?? import_rx_react2.Registry.make();
377
- this.context = new PluginContext({
378
- registry: this.registry,
346
+ this.context = new PluginsContext({
379
347
  activate: (event) => this._activate(event),
380
348
  reset: (id) => this._reset(id)
381
349
  });
350
+ this._capabilities = /* @__PURE__ */ new Map();
382
351
  this._pluginLoader = pluginLoader;
383
- this._state = (0, import_live_object2.live)({
352
+ this._state = (0, import_live_object3.create)({
384
353
  plugins,
385
354
  core,
386
355
  enabled,
@@ -454,12 +423,12 @@ var PluginManager = class {
454
423
  * @param id The id of the plugin.
455
424
  */
456
425
  async add(id) {
457
- return (0, import_signals_core.untracked)(async () => {
426
+ return (0, import_signals_core2.untracked)(async () => {
458
427
  (0, import_log3.log)("add plugin", {
459
428
  id
460
429
  }, {
461
430
  F: __dxlog_file2,
462
- L: 154,
431
+ L: 146,
463
432
  S: this,
464
433
  C: (f, a) => f(...a)
465
434
  });
@@ -473,12 +442,12 @@ var PluginManager = class {
473
442
  * @param id The id of the plugin.
474
443
  */
475
444
  enable(id) {
476
- return (0, import_signals_core.untracked)(async () => {
445
+ return (0, import_signals_core2.untracked)(async () => {
477
446
  (0, import_log3.log)("enable plugin", {
478
447
  id
479
448
  }, {
480
449
  F: __dxlog_file2,
481
- L: 167,
450
+ L: 159,
482
451
  S: this,
483
452
  C: (f, a) => f(...a)
484
453
  });
@@ -499,7 +468,7 @@ var PluginManager = class {
499
468
  ]
500
469
  }, {
501
470
  F: __dxlog_file2,
502
- L: 182,
471
+ L: 174,
503
472
  S: this,
504
473
  C: (f, a) => f(...a)
505
474
  });
@@ -514,12 +483,12 @@ var PluginManager = class {
514
483
  * @param id The id of the plugin.
515
484
  */
516
485
  remove(id) {
517
- return (0, import_signals_core.untracked)(() => {
486
+ return (0, import_signals_core2.untracked)(() => {
518
487
  (0, import_log3.log)("remove plugin", {
519
488
  id
520
489
  }, {
521
490
  F: __dxlog_file2,
522
- L: 200,
491
+ L: 192,
523
492
  S: this,
524
493
  C: (f, a) => f(...a)
525
494
  });
@@ -536,12 +505,12 @@ var PluginManager = class {
536
505
  * @param id The id of the plugin.
537
506
  */
538
507
  disable(id) {
539
- return (0, import_signals_core.untracked)(async () => {
508
+ return (0, import_signals_core2.untracked)(async () => {
540
509
  (0, import_log3.log)("disable plugin", {
541
510
  id
542
511
  }, {
543
512
  F: __dxlog_file2,
544
- L: 217,
513
+ L: 209,
545
514
  S: this,
546
515
  C: (f, a) => f(...a)
547
516
  });
@@ -569,7 +538,7 @@ var PluginManager = class {
569
538
  * @returns Whether the activation was successful.
570
539
  */
571
540
  activate(event) {
572
- return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._activate(event)));
541
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._activate(event)));
573
542
  }
574
543
  /**
575
544
  * Deactivates all of the modules for a plugin.
@@ -577,7 +546,7 @@ var PluginManager = class {
577
546
  * @returns Whether the deactivation was successful.
578
547
  */
579
548
  deactivate(id) {
580
- return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._deactivate(id)));
549
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._deactivate(id)));
581
550
  }
582
551
  /**
583
552
  * Re-activates the modules that were activated by the event.
@@ -585,15 +554,15 @@ var PluginManager = class {
585
554
  * @returns Whether the reset was successful.
586
555
  */
587
556
  reset(event) {
588
- return (0, import_signals_core.untracked)(() => import_effect5.Effect.runPromise(this._reset(event)));
557
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._reset(event)));
589
558
  }
590
559
  _addPlugin(plugin) {
591
- (0, import_signals_core.untracked)(() => {
560
+ (0, import_signals_core2.untracked)(() => {
592
561
  (0, import_log3.log)("add plugin", {
593
562
  id: plugin.meta.id
594
563
  }, {
595
564
  F: __dxlog_file2,
596
- L: 270,
565
+ L: 262,
597
566
  S: this,
598
567
  C: (f, a) => f(...a)
599
568
  });
@@ -603,12 +572,12 @@ var PluginManager = class {
603
572
  });
604
573
  }
605
574
  _removePlugin(id) {
606
- (0, import_signals_core.untracked)(() => {
575
+ (0, import_signals_core2.untracked)(() => {
607
576
  (0, import_log3.log)("remove plugin", {
608
577
  id
609
578
  }, {
610
579
  F: __dxlog_file2,
611
- L: 279,
580
+ L: 271,
612
581
  S: this,
613
582
  C: (f, a) => f(...a)
614
583
  });
@@ -619,12 +588,12 @@ var PluginManager = class {
619
588
  });
620
589
  }
621
590
  _addModule(module2) {
622
- (0, import_signals_core.untracked)(() => {
591
+ (0, import_signals_core2.untracked)(() => {
623
592
  (0, import_log3.log)("add module", {
624
593
  id: module2.id
625
594
  }, {
626
595
  F: __dxlog_file2,
627
- L: 289,
596
+ L: 281,
628
597
  S: this,
629
598
  C: (f, a) => f(...a)
630
599
  });
@@ -634,12 +603,12 @@ var PluginManager = class {
634
603
  });
635
604
  }
636
605
  _removeModule(id) {
637
- (0, import_signals_core.untracked)(() => {
606
+ (0, import_signals_core2.untracked)(() => {
638
607
  (0, import_log3.log)("remove module", {
639
608
  id
640
609
  }, {
641
610
  F: __dxlog_file2,
642
- L: 298,
611
+ L: 290,
643
612
  S: this,
644
613
  C: (f, a) => f(...a)
645
614
  });
@@ -665,7 +634,7 @@ var PluginManager = class {
665
634
  return this._getInactiveModules().filter((module2) => getEvents(module2.activatesOn).map(eventKey).includes(key));
666
635
  }
667
636
  _setPendingResetByModule(module2) {
668
- return (0, import_signals_core.untracked)(() => {
637
+ return (0, import_signals_core2.untracked)(() => {
669
638
  const activationEvents = getEvents(module2.activatesOn).map(eventKey).filter((key) => this._state.eventsFired.includes(key));
670
639
  const pendingReset = Array.from(new Set(activationEvents)).filter((event) => !this._state.pendingReset.includes(event));
671
640
  if (pendingReset.length > 0) {
@@ -673,7 +642,7 @@ var PluginManager = class {
673
642
  events: pendingReset
674
643
  }, {
675
644
  F: __dxlog_file2,
676
- L: 336,
645
+ L: 328,
677
646
  S: this,
678
647
  C: (f, a) => f(...a)
679
648
  });
@@ -692,7 +661,7 @@ var PluginManager = class {
692
661
  key
693
662
  }, {
694
663
  F: __dxlog_file2,
695
- L: 349,
664
+ L: 341,
696
665
  S: this,
697
666
  C: (f, a) => f(...a)
698
667
  });
@@ -713,7 +682,7 @@ var PluginManager = class {
713
682
  key
714
683
  }, {
715
684
  F: __dxlog_file2,
716
- L: 365,
685
+ L: 357,
717
686
  S: this,
718
687
  C: (f, a) => f(...a)
719
688
  });
@@ -727,7 +696,7 @@ var PluginManager = class {
727
696
  modules: modules.map((module2) => module2.id)
728
697
  }, {
729
698
  F: __dxlog_file2,
730
- L: 372,
699
+ L: 364,
731
700
  S: this,
732
701
  C: (f, a) => f(...a)
733
702
  });
@@ -769,7 +738,7 @@ var PluginManager = class {
769
738
  key
770
739
  }, {
771
740
  F: __dxlog_file2,
772
- L: 406,
741
+ L: 398,
773
742
  S: this,
774
743
  C: (f, a) => f(...a)
775
744
  });
@@ -785,7 +754,7 @@ var PluginManager = class {
785
754
  module: module2.id
786
755
  }, {
787
756
  F: __dxlog_file2,
788
- L: 421,
757
+ L: 413,
789
758
  S: this,
790
759
  C: (f, a) => f(...a)
791
760
  });
@@ -814,7 +783,7 @@ var PluginManager = class {
814
783
  module: module2.id
815
784
  }, {
816
785
  F: __dxlog_file2,
817
- L: 444,
786
+ L: 436,
818
787
  S: this,
819
788
  C: (f, a) => f(...a)
820
789
  });
@@ -843,7 +812,7 @@ var PluginManager = class {
843
812
  id
844
813
  }, {
845
814
  F: __dxlog_file2,
846
- L: 471,
815
+ L: 463,
847
816
  S: this,
848
817
  C: (f, a) => f(...a)
849
818
  });
@@ -852,7 +821,7 @@ var PluginManager = class {
852
821
  for (const capability of capabilities) {
853
822
  this.context.removeCapability(capability.interface, capability.implementation);
854
823
  const program = capability.deactivate?.();
855
- yield* import_effect5.Match.value(program).pipe(import_effect5.Match.when(import_effect5.Effect.isEffect, (effect) => effect), import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
824
+ yield* import_effect5.Match.value(program).pipe(import_effect5.Match.when(import_effect5.Effect.isEffect, (effect2) => effect2), import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
856
825
  try: () => promise,
857
826
  catch: (error) => error
858
827
  })), import_effect5.Match.orElse((program2) => import_effect5.Effect.succeed(program2)));
@@ -867,7 +836,7 @@ var PluginManager = class {
867
836
  id
868
837
  }, {
869
838
  F: __dxlog_file2,
870
- L: 497,
839
+ L: 489,
871
840
  S: this,
872
841
  C: (f, a) => f(...a)
873
842
  });
@@ -881,7 +850,7 @@ var PluginManager = class {
881
850
  key
882
851
  }, {
883
852
  F: __dxlog_file2,
884
- L: 505,
853
+ L: 497,
885
854
  S: this,
886
855
  C: (f, a) => f(...a)
887
856
  });
@@ -920,7 +889,6 @@ var Capabilities;
920
889
  (function(Capabilities2) {
921
890
  Capabilities2.PluginManager = defineCapability("dxos.org/app-framework/capability/plugin-manager");
922
891
  Capabilities2.Null = defineCapability("dxos.org/app-framework/capability/null");
923
- Capabilities2.RxRegistry = defineCapability("dxos.org/app-framework/capability/rx-registry");
924
892
  Capabilities2.ReactContext = defineCapability("dxos.org/app-framework/capability/react-context");
925
893
  Capabilities2.ReactRoot = defineCapability("dxos.org/app-framework/capability/react-root");
926
894
  Capabilities2.ReactSurface = defineCapability("dxos.org/app-framework/common/react-surface");
@@ -938,22 +906,6 @@ var Capabilities;
938
906
  Capabilities2.ArtifactDefinition = defineCapability("dxos.org/app-framework/capability/artifact-definition");
939
907
  Capabilities2.FileUploader = defineCapability("dxos.org/app-framework/capability/file-uploader");
940
908
  })(Capabilities || (Capabilities = {}));
941
- var CollaborationActions;
942
- (function(CollaborationActions2) {
943
- class InsertContent extends import_effect6.Schema.TaggedClass()("assistant/intent-content", {
944
- input: import_effect6.Schema.Struct({
945
- spaceId: import_keys.SpaceId,
946
- target: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
947
- object: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
948
- label: import_effect6.Schema.String.pipe(import_effect6.Schema.optional)
949
- }).annotations({
950
- [import_effect6.SchemaAST.DescriptionAnnotationId]: "Enables plugins to inject content blocks or references into a related entity."
951
- }),
952
- output: import_effect6.Schema.Void
953
- }) {
954
- }
955
- CollaborationActions2.InsertContent = InsertContent;
956
- })(CollaborationActions || (CollaborationActions = {}));
957
909
  var Events;
958
910
  (function(Events2) {
959
911
  Events2.Startup = defineEvent("dxos.org/app-framework/event/startup");
@@ -989,11 +941,11 @@ var defaultFileTypes = {
989
941
  "md"
990
942
  ]
991
943
  };
992
- var FileInfoSchema = import_effect7.Schema.Struct({
993
- name: import_effect7.Schema.String,
994
- type: import_effect7.Schema.String,
995
- url: import_effect7.Schema.optional(import_effect7.Schema.String),
996
- cid: import_effect7.Schema.optional(import_effect7.Schema.String)
944
+ var FileInfoSchema = import_effect6.Schema.Struct({
945
+ name: import_effect6.Schema.String,
946
+ type: import_effect6.Schema.String,
947
+ url: import_effect6.Schema.optional(import_effect6.Schema.String),
948
+ cid: import_effect6.Schema.optional(import_effect6.Schema.String)
997
949
  });
998
950
  var IntentPlugin = () => definePlugin({
999
951
  id: INTENT_PLUGIN,
@@ -1008,7 +960,7 @@ var IntentPlugin = () => definePlugin({
1008
960
  activatesAfter: [
1009
961
  Events.DispatcherReady
1010
962
  ],
1011
- activate: lazy(() => import("./intent-dispatcher-TASJBG5M.cjs"))
963
+ activate: lazy(() => import("./intent-dispatcher-H334XLFD.cjs"))
1012
964
  })
1013
965
  ]);
1014
966
  var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
@@ -1016,338 +968,328 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
1016
968
  var LayoutAction;
1017
969
  (function(LayoutAction2) {
1018
970
  LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
1019
- class UpdateLayout extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1020
- input: import_effect8.Schema.Struct({
1021
- part: import_effect8.Schema.String.annotations({
971
+ class UpdateLayout extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
972
+ input: import_effect7.Schema.Struct({
973
+ part: import_effect7.Schema.String.annotations({
1022
974
  description: "The part of the layout to mutate."
1023
975
  }),
1024
- subject: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
976
+ subject: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
1025
977
  description: "The subject of the layout update."
1026
978
  })),
1027
- options: import_effect8.Schema.optional(import_effect8.Schema.Record({
1028
- key: import_effect8.Schema.String,
1029
- value: import_effect8.Schema.Any
979
+ options: import_effect7.Schema.optional(import_effect7.Schema.Record({
980
+ key: import_effect7.Schema.String,
981
+ value: import_effect7.Schema.Any
1030
982
  }).annotations({
1031
983
  description: "Additional options for the layout action."
1032
984
  }))
1033
985
  }),
1034
- output: import_effect8.Schema.Void
986
+ output: import_effect7.Schema.Void
1035
987
  }) {
1036
988
  }
1037
989
  LayoutAction2.UpdateLayout = UpdateLayout;
1038
- class SetLayoutMode extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1039
- input: import_effect8.Schema.Struct({
1040
- part: import_effect8.Schema.Literal("mode").annotations({
990
+ class SetLayoutMode extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
991
+ input: import_effect7.Schema.Struct({
992
+ part: import_effect7.Schema.Literal("mode").annotations({
1041
993
  description: "Setting the layout mode."
1042
994
  }),
1043
- subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
995
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1044
996
  description: "Item which is the subject of the new layout mode."
1045
997
  })),
1046
- options: import_effect8.Schema.Union(import_effect8.Schema.Struct({
1047
- mode: import_effect8.Schema.String.annotations({
998
+ options: import_effect7.Schema.Union(import_effect7.Schema.Struct({
999
+ mode: import_effect7.Schema.String.annotations({
1048
1000
  description: "The new layout mode."
1049
1001
  })
1050
- }), import_effect8.Schema.Struct({
1051
- revert: import_effect8.Schema.Boolean.annotations({
1002
+ }), import_effect7.Schema.Struct({
1003
+ revert: import_effect7.Schema.Boolean.annotations({
1052
1004
  description: "Revert to the previous layout mode."
1053
1005
  })
1054
1006
  }))
1055
1007
  }),
1056
- output: import_effect8.Schema.Void
1008
+ output: import_effect7.Schema.Void
1057
1009
  }) {
1058
1010
  }
1059
1011
  LayoutAction2.SetLayoutMode = SetLayoutMode;
1060
- class UpdateSidebar extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1061
- input: import_effect8.Schema.Struct({
1062
- part: import_effect8.Schema.Literal("sidebar").annotations({
1012
+ class UpdateSidebar extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1013
+ input: import_effect7.Schema.Struct({
1014
+ part: import_effect7.Schema.Literal("sidebar").annotations({
1063
1015
  description: "Updating the sidebar."
1064
1016
  }),
1065
- subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1017
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1066
1018
  description: "URI of the component to display in the sidebar."
1067
1019
  })),
1068
- options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1069
- state: import_effect8.Schema.Literal("closed", "collapsed", "expanded").annotations({
1020
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1021
+ state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1070
1022
  description: "Whether the sidebar is closed, collapsed, or expanded."
1071
1023
  })
1072
1024
  }))
1073
1025
  }),
1074
- output: import_effect8.Schema.Void
1026
+ output: import_effect7.Schema.Void
1075
1027
  }) {
1076
1028
  }
1077
1029
  LayoutAction2.UpdateSidebar = UpdateSidebar;
1078
- class UpdateComplementary extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1079
- input: import_effect8.Schema.Struct({
1080
- part: import_effect8.Schema.Literal("complementary").annotations({
1030
+ class UpdateComplementary extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1031
+ input: import_effect7.Schema.Struct({
1032
+ part: import_effect7.Schema.Literal("complementary").annotations({
1081
1033
  description: "Updating the complementary sidebar."
1082
1034
  }),
1083
- subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1035
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1084
1036
  description: "URI of the component to display in the complementary area."
1085
1037
  })),
1086
- options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1087
- state: import_effect8.Schema.Literal("closed", "collapsed", "expanded").annotations({
1038
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1039
+ state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1088
1040
  description: "Whether the complementary sidebar is closed, collapsed, or expanded."
1089
1041
  })
1090
1042
  }))
1091
1043
  }),
1092
- output: import_effect8.Schema.Void
1044
+ output: import_effect7.Schema.Void
1093
1045
  }) {
1094
1046
  }
1095
1047
  LayoutAction2.UpdateComplementary = UpdateComplementary;
1096
- class UpdateDialog extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1097
- input: import_effect8.Schema.Struct({
1098
- part: import_effect8.Schema.Literal("dialog").annotations({
1048
+ class UpdateDialog extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1049
+ input: import_effect7.Schema.Struct({
1050
+ part: import_effect7.Schema.Literal("dialog").annotations({
1099
1051
  description: "Updating the dialog."
1100
1052
  }),
1101
- subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1053
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1102
1054
  description: "URI of the component to display in the dialog."
1103
1055
  })),
1104
- options: import_effect8.Schema.Struct({
1105
- state: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1056
+ options: import_effect7.Schema.Struct({
1057
+ state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1106
1058
  description: "Whether the dialog is open or closed."
1107
1059
  })),
1108
- blockAlign: import_effect8.Schema.optional(import_effect8.Schema.Literal("start", "center", "end").annotations({
1060
+ blockAlign: import_effect7.Schema.optional(import_effect7.Schema.Literal("start", "center", "end").annotations({
1109
1061
  description: "The alignment of the dialog."
1110
1062
  })),
1111
- type: import_effect8.Schema.optional(import_effect8.Schema.Literal("default", "alert").annotations({
1063
+ type: import_effect7.Schema.optional(import_effect7.Schema.Literal("default", "alert").annotations({
1112
1064
  description: "The type of dialog."
1113
1065
  })),
1114
- props: import_effect8.Schema.optional(import_effect8.Schema.Record({
1115
- key: import_effect8.Schema.String,
1116
- value: import_effect8.Schema.Any
1066
+ props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1067
+ key: import_effect7.Schema.String,
1068
+ value: import_effect7.Schema.Any
1117
1069
  }).annotations({
1118
1070
  description: "Additional props for the dialog."
1119
1071
  }))
1120
1072
  })
1121
1073
  }),
1122
- output: import_effect8.Schema.Void
1074
+ output: import_effect7.Schema.Void
1123
1075
  }) {
1124
1076
  }
1125
1077
  LayoutAction2.UpdateDialog = UpdateDialog;
1126
- class UpdatePopover extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1127
- input: import_effect8.Schema.Struct({
1128
- part: import_effect8.Schema.Literal("popover").annotations({
1078
+ class UpdatePopover extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1079
+ input: import_effect7.Schema.Struct({
1080
+ part: import_effect7.Schema.Literal("popover").annotations({
1129
1081
  description: "Updating the popover."
1130
1082
  }),
1131
- subject: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
1132
- description: "URI of the component to display in the popover or data to pass to the popover."
1083
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1084
+ description: "URI of the component to display in the popover."
1133
1085
  })),
1134
- options: import_effect8.Schema.Struct({
1135
- side: import_effect8.Schema.optional(import_effect8.Schema.Literal("top", "right", "bottom", "left").annotations({
1086
+ options: import_effect7.Schema.Struct({
1087
+ anchorId: import_effect7.Schema.String.annotations({
1088
+ description: "The id of the element to anchor the popover to."
1089
+ }),
1090
+ side: import_effect7.Schema.optional(import_effect7.Schema.Literal("top", "right", "bottom", "left").annotations({
1136
1091
  description: "The side of the anchor."
1137
1092
  })),
1138
- state: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1093
+ state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1139
1094
  description: "Whether the popover is open or closed."
1140
1095
  })),
1141
- props: import_effect8.Schema.optional(import_effect8.Schema.Record({
1142
- key: import_effect8.Schema.String,
1143
- value: import_effect8.Schema.Any
1096
+ props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1097
+ key: import_effect7.Schema.String,
1098
+ value: import_effect7.Schema.Any
1144
1099
  }).annotations({
1145
1100
  description: "Additional props for the popover."
1146
1101
  }))
1147
- }).pipe(import_effect8.Schema.extend(import_effect8.Schema.Union(import_effect8.Schema.Struct({
1148
- variant: import_effect8.Schema.Literal("virtual"),
1149
- anchor: import_effect8.Schema.Any.annotations({
1150
- description: "The DOM element to anchor the popover to."
1151
- })
1152
- }), import_effect8.Schema.Struct({
1153
- variant: import_effect8.Schema.optional(import_effect8.Schema.Literal("react")),
1154
- anchorId: import_effect8.Schema.String.annotations({
1155
- description: "An id that can be used to determine whether to render the anchor subcomponent."
1156
- })
1157
- }))))
1102
+ })
1158
1103
  }),
1159
- output: import_effect8.Schema.Void
1104
+ output: import_effect7.Schema.Void
1160
1105
  }) {
1161
1106
  }
1162
1107
  LayoutAction2.UpdatePopover = UpdatePopover;
1163
- LayoutAction2.Toast = import_effect8.Schema.Struct({
1164
- id: import_effect8.Schema.String.annotations({
1108
+ LayoutAction2.Toast = import_effect7.Schema.Struct({
1109
+ id: import_effect7.Schema.String.annotations({
1165
1110
  description: "The id of the toast."
1166
1111
  }),
1167
- title: import_effect8.Schema.optional(Label.annotations({
1112
+ title: import_effect7.Schema.optional(Label.annotations({
1168
1113
  description: "The title of the toast."
1169
1114
  })),
1170
- description: import_effect8.Schema.optional(Label.annotations({
1115
+ description: import_effect7.Schema.optional(Label.annotations({
1171
1116
  description: "The description of the toast."
1172
1117
  })),
1173
- icon: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1118
+ icon: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1174
1119
  description: "The icon of the toast."
1175
1120
  })),
1176
- duration: import_effect8.Schema.optional(import_effect8.Schema.Number.annotations({
1121
+ duration: import_effect7.Schema.optional(import_effect7.Schema.Number.annotations({
1177
1122
  description: "The duration of the toast."
1178
1123
  })),
1179
- closeLabel: import_effect8.Schema.optional(Label.annotations({
1124
+ closeLabel: import_effect7.Schema.optional(Label.annotations({
1180
1125
  description: "The label of the close button."
1181
1126
  })),
1182
- actionLabel: import_effect8.Schema.optional(Label.annotations({
1127
+ actionLabel: import_effect7.Schema.optional(Label.annotations({
1183
1128
  description: "The label of the action button."
1184
1129
  })),
1185
- actionAlt: import_effect8.Schema.optional(Label.annotations({
1130
+ actionAlt: import_effect7.Schema.optional(Label.annotations({
1186
1131
  description: "The alt text of the action button."
1187
1132
  })),
1188
- onAction: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
1133
+ onAction: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
1189
1134
  description: "The action to perform when the action button is clicked."
1190
1135
  }))
1191
1136
  });
1192
- class AddToast extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1193
- input: import_effect8.Schema.Struct({
1194
- part: import_effect8.Schema.Literal("toast").annotations({
1137
+ class AddToast extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1138
+ input: import_effect7.Schema.Struct({
1139
+ part: import_effect7.Schema.Literal("toast").annotations({
1195
1140
  description: "Adding a toast."
1196
1141
  }),
1197
1142
  subject: LayoutAction2.Toast.annotations({
1198
1143
  description: "The toast to add."
1199
1144
  })
1200
1145
  }),
1201
- output: import_effect8.Schema.Void
1146
+ output: import_effect7.Schema.Void
1202
1147
  }) {
1203
1148
  }
1204
1149
  LayoutAction2.AddToast = AddToast;
1205
- class SwitchWorkspace extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1206
- input: import_effect8.Schema.Struct({
1207
- part: import_effect8.Schema.Literal("workspace").annotations({
1150
+ class SwitchWorkspace extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1151
+ input: import_effect7.Schema.Struct({
1152
+ part: import_effect7.Schema.Literal("workspace").annotations({
1208
1153
  description: "Switching the workspace."
1209
1154
  }),
1210
- subject: import_effect8.Schema.String.annotations({
1155
+ subject: import_effect7.Schema.String.annotations({
1211
1156
  description: "The id of the workspace to switch to."
1212
1157
  })
1213
1158
  }),
1214
- output: import_effect8.Schema.Void
1159
+ output: import_effect7.Schema.Void
1215
1160
  }) {
1216
1161
  }
1217
1162
  LayoutAction2.SwitchWorkspace = SwitchWorkspace;
1218
- class RevertWorkspace extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1219
- input: import_effect8.Schema.Struct({
1220
- part: import_effect8.Schema.Literal("workspace").annotations({
1163
+ class RevertWorkspace extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1164
+ input: import_effect7.Schema.Struct({
1165
+ part: import_effect7.Schema.Literal("workspace").annotations({
1221
1166
  description: "Switching the workspace."
1222
1167
  }),
1223
- options: import_effect8.Schema.Struct({
1224
- revert: import_effect8.Schema.Literal(true).annotations({
1168
+ options: import_effect7.Schema.Struct({
1169
+ revert: import_effect7.Schema.Literal(true).annotations({
1225
1170
  description: "Revert to the previous workspace."
1226
1171
  })
1227
1172
  })
1228
1173
  }),
1229
- output: import_effect8.Schema.Void
1174
+ output: import_effect7.Schema.Void
1230
1175
  }) {
1231
1176
  }
1232
1177
  LayoutAction2.RevertWorkspace = RevertWorkspace;
1233
- class Open extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1234
- input: import_effect8.Schema.Struct({
1235
- part: import_effect8.Schema.Literal("main").annotations({
1178
+ class Open extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1179
+ input: import_effect7.Schema.Struct({
1180
+ part: import_effect7.Schema.Literal("main").annotations({
1236
1181
  description: "Opening an item in the main content area."
1237
1182
  }),
1238
- subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1183
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1239
1184
  description: "Ids of the items to open."
1240
1185
  })),
1241
- options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1242
- state: import_effect8.Schema.optional(import_effect8.Schema.Literal(true).annotations({
1186
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1187
+ state: import_effect7.Schema.optional(import_effect7.Schema.Literal(true).annotations({
1243
1188
  description: "The items are being added."
1244
1189
  })),
1245
- variant: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1190
+ variant: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1246
1191
  description: "The variant of the item to open."
1247
1192
  })),
1248
- key: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1193
+ key: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1249
1194
  description: "If provided, will replace item with a matching key (id prefix)."
1250
1195
  })),
1251
- workspace: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1252
- description: "The workspace to open the items in."
1253
- })),
1254
- scrollIntoView: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1196
+ scrollIntoView: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1255
1197
  description: "Scroll the items into view."
1256
1198
  })),
1257
- pivotId: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1199
+ pivotId: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1258
1200
  description: "The id of the item to place new items next to."
1259
1201
  })),
1260
- positioning: import_effect8.Schema.optional(import_effect8.Schema.Union(import_effect8.Schema.Literal("start").annotations({
1202
+ positioning: import_effect7.Schema.optional(import_effect7.Schema.Union(import_effect7.Schema.Literal("start").annotations({
1261
1203
  description: "The items are being added before the pivot item."
1262
- }), import_effect8.Schema.Literal("end").annotations({
1204
+ }), import_effect7.Schema.Literal("end").annotations({
1263
1205
  description: "The items are being added after the pivot item."
1264
1206
  })))
1265
1207
  }))
1266
1208
  }),
1267
- output: import_effect8.Schema.Void
1209
+ output: import_effect7.Schema.Void
1268
1210
  }) {
1269
1211
  }
1270
1212
  LayoutAction2.Open = Open;
1271
- class Set2 extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1272
- input: import_effect8.Schema.Struct({
1273
- part: import_effect8.Schema.Literal("main").annotations({
1213
+ class Set2 extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1214
+ input: import_effect7.Schema.Struct({
1215
+ part: import_effect7.Schema.Literal("main").annotations({
1274
1216
  description: "Setting items in the main content area."
1275
1217
  }),
1276
- subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1218
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1277
1219
  description: "Ids of the items to set."
1278
1220
  })),
1279
- options: import_effect8.Schema.Struct({
1280
- override: import_effect8.Schema.Literal(true).annotations({
1221
+ options: import_effect7.Schema.Struct({
1222
+ override: import_effect7.Schema.Literal(true).annotations({
1281
1223
  description: "Override the current items in the main content area."
1282
1224
  })
1283
1225
  })
1284
1226
  }),
1285
- output: import_effect8.Schema.Void
1227
+ output: import_effect7.Schema.Void
1286
1228
  }) {
1287
1229
  }
1288
1230
  LayoutAction2.Set = Set2;
1289
- class Close extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1290
- input: import_effect8.Schema.Struct({
1291
- part: import_effect8.Schema.Literal("main").annotations({
1231
+ class Close extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1232
+ input: import_effect7.Schema.Struct({
1233
+ part: import_effect7.Schema.Literal("main").annotations({
1292
1234
  description: "Closing items in the main content area."
1293
1235
  }),
1294
- subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1236
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1295
1237
  description: "Ids of the items to close."
1296
1238
  })),
1297
- options: import_effect8.Schema.Struct({
1298
- state: import_effect8.Schema.Literal(false).annotations({
1239
+ options: import_effect7.Schema.Struct({
1240
+ state: import_effect7.Schema.Literal(false).annotations({
1299
1241
  description: "The items are being removed."
1300
1242
  })
1301
1243
  })
1302
1244
  }),
1303
- output: import_effect8.Schema.Void
1245
+ output: import_effect7.Schema.Void
1304
1246
  }) {
1305
1247
  }
1306
1248
  LayoutAction2.Close = Close;
1307
- class ScrollIntoView extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1308
- input: import_effect8.Schema.Struct({
1309
- part: import_effect8.Schema.Literal("current").annotations({
1249
+ class ScrollIntoView extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1250
+ input: import_effect7.Schema.Struct({
1251
+ part: import_effect7.Schema.Literal("current").annotations({
1310
1252
  description: "Setting the current item"
1311
1253
  }),
1312
- subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1254
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1313
1255
  description: "The id of the item to set as current."
1314
1256
  })),
1315
- options: import_effect8.Schema.optional(import_effect8.Schema.Record({
1316
- key: import_effect8.Schema.String,
1317
- value: import_effect8.Schema.Any
1257
+ options: import_effect7.Schema.optional(import_effect7.Schema.Record({
1258
+ key: import_effect7.Schema.String,
1259
+ value: import_effect7.Schema.Any
1318
1260
  }).annotations({
1319
1261
  description: "Additional options for the scroll into view."
1320
1262
  }))
1321
1263
  }),
1322
- output: import_effect8.Schema.Void
1264
+ output: import_effect7.Schema.Void
1323
1265
  }) {
1324
1266
  }
1325
1267
  LayoutAction2.ScrollIntoView = ScrollIntoView;
1326
- class Expose extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1327
- input: import_effect8.Schema.Struct({
1328
- part: import_effect8.Schema.Literal("navigation").annotations({
1268
+ class Expose extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1269
+ input: import_effect7.Schema.Struct({
1270
+ part: import_effect7.Schema.Literal("navigation").annotations({
1329
1271
  description: "Exposing an item in the navigation area."
1330
1272
  }),
1331
- subject: import_effect8.Schema.String.annotations({
1273
+ subject: import_effect7.Schema.String.annotations({
1332
1274
  description: "The id of the item to expose."
1333
1275
  })
1334
1276
  }),
1335
- output: import_effect8.Schema.Void
1277
+ output: import_effect7.Schema.Void
1336
1278
  }) {
1337
1279
  }
1338
1280
  LayoutAction2.Expose = Expose;
1339
1281
  })(LayoutAction || (LayoutAction = {}));
1340
1282
  var createSurface = (definition) => definition;
1341
- var ResourceKey = import_effect9.Schema.Union(import_effect9.Schema.String, import_effect9.Schema.Record({
1342
- key: import_effect9.Schema.String,
1343
- value: import_effect9.Schema.Any
1283
+ var ResourceKey = import_effect8.Schema.Union(import_effect8.Schema.String, import_effect8.Schema.Record({
1284
+ key: import_effect8.Schema.String,
1285
+ value: import_effect8.Schema.Any
1344
1286
  }));
1345
- var ResourceLanguage = import_effect9.Schema.Record({
1346
- key: import_effect9.Schema.String,
1287
+ var ResourceLanguage = import_effect8.Schema.Record({
1288
+ key: import_effect8.Schema.String,
1347
1289
  value: ResourceKey
1348
1290
  });
1349
- var Resource = import_effect9.Schema.Record({
1350
- key: import_effect9.Schema.String,
1291
+ var Resource = import_effect8.Schema.Record({
1292
+ key: import_effect8.Schema.String,
1351
1293
  value: ResourceLanguage
1352
1294
  });
1353
1295
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
@@ -1358,12 +1300,12 @@ var isUndoable = (historyEntry) => historyEntry.length > 0 && historyEntry.every
1358
1300
  var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, historyLimit = HISTORY_LIMIT } = {}) => {
1359
1301
  const historyRef = import_effect.Effect.runSync(import_effect.Ref.make([]));
1360
1302
  const handleIntent = (intent) => import_effect.Effect.gen(function* () {
1361
- const candidates = getResolvers().filter((resolver) => resolver.intent._tag === intent.id).filter((resolver) => !resolver.filter || resolver.filter(intent.data)).toSorted(import_util.byPosition);
1303
+ const candidates = getResolvers(intent.module).filter((resolver) => resolver.intent._tag === intent.id).filter((resolver) => !resolver.filter || resolver.filter(intent.data)).toSorted(import_util.byPosition);
1362
1304
  if (candidates.length === 0) {
1363
1305
  yield* import_effect.Effect.fail(new NoResolversError(intent.id));
1364
1306
  }
1365
- const effect = candidates[0].resolve(intent.data, intent.undo ?? false);
1366
- const result = import_effect.Effect.isEffect(effect) ? yield* effect : yield* import_effect.Effect.promise(async () => effect);
1307
+ const effect2 = candidates[0].resolve(intent.data, intent.undo ?? false);
1308
+ const result = import_effect.Effect.isEffect(effect2) ? yield* effect2 : yield* import_effect.Effect.promise(async () => effect2);
1367
1309
  return {
1368
1310
  _intent: intent,
1369
1311
  ...result
@@ -1423,7 +1365,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
1423
1365
  })).catch((error) => {
1424
1366
  import_log.log.catch(error, void 0, {
1425
1367
  F: __dxlog_file3,
1426
- L: 270,
1368
+ L: 254,
1427
1369
  S: void 0,
1428
1370
  C: (f, a) => f(...a)
1429
1371
  });
@@ -1477,14 +1419,16 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
1477
1419
  var defaultEffect = () => import_effect.Effect.fail(new Error("Intent runtime not ready"));
1478
1420
  var defaultPromise = () => import_effect.Effect.runPromise(defaultEffect());
1479
1421
  var intent_dispatcher_default = (context) => {
1480
- const state = (0, import_live_object.live)({
1422
+ const state = (0, import_live_object.create)({
1481
1423
  dispatch: defaultEffect,
1482
1424
  dispatchPromise: defaultPromise,
1483
1425
  undo: defaultEffect,
1484
1426
  undoPromise: defaultPromise
1485
1427
  });
1486
- const { dispatch, dispatchPromise, undo, undoPromise } = createDispatcher(() => context.getCapabilities(Capabilities.IntentResolver).flat());
1487
- const manager = context.getCapability(Capabilities.PluginManager);
1428
+ const { dispatch, dispatchPromise, undo, undoPromise } = createDispatcher((module2) => context.requestCapabilities(Capabilities.IntentResolver, (c, moduleId) => {
1429
+ return module2 ? moduleId === module2 : true;
1430
+ }).flat());
1431
+ const manager = context.requestCapability(Capabilities.PluginManager);
1488
1432
  state.dispatch = (intentChain, depth) => {
1489
1433
  return import_effect.Effect.gen(function* () {
1490
1434
  yield* manager._activate(Events.SetupIntentResolver);
@@ -1502,7 +1446,6 @@ var intent_dispatcher_default = (context) => {
1502
1446
  // Annotate the CommonJS export names for ESM import in node:
1503
1447
  0 && (module.exports = {
1504
1448
  Capabilities,
1505
- CollaborationActions,
1506
1449
  Events,
1507
1450
  FileInfoSchema,
1508
1451
  INTENT_ACTION,
@@ -1514,9 +1457,9 @@ var intent_dispatcher_default = (context) => {
1514
1457
  Label,
1515
1458
  LayoutAction,
1516
1459
  Plugin,
1517
- PluginContext,
1518
1460
  PluginManager,
1519
1461
  PluginModule,
1462
+ PluginsContext,
1520
1463
  Resource,
1521
1464
  ResourceKey,
1522
1465
  ResourceLanguage,
@@ -1540,4 +1483,4 @@ var intent_dispatcher_default = (context) => {
1540
1483
  lazy,
1541
1484
  oneOf
1542
1485
  });
1543
- //# sourceMappingURL=chunk-2EBZ2ICH.cjs.map
1486
+ //# sourceMappingURL=chunk-YIFTVCOR.cjs.map