@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
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/react/PluginManagerProvider.ts", "../../../src/react/useCapabilities.ts", "../../../src/react/common.ts", "../../../src/react/ErrorBoundary.tsx", "../../../src/react/Surface.tsx", "../../../src/react/useIntentResolver.ts", "../../../src/App.tsx", "../../../src/helpers.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { createContext, useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { type PluginManager } from '../core';\n\nconst PluginManagerContext = createContext<PluginManager | undefined>(undefined);\n\n/**\n * Get the plugin manager.\n */\nexport const usePluginManager = (): PluginManager =>\n useContext(PluginManagerContext) ?? raise(new Error('Missing PluginManagerContext'));\n\n/**\n * Context provider for a plugin manager.\n */\nexport const PluginManagerProvider = PluginManagerContext.Provider;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { computed } from '@preact/signals-core';\nimport { useMemo } from 'react';\n\nimport { usePluginManager } from './PluginManagerProvider';\nimport { type InterfaceDef } from '../core';\n\n/**\n * Hook to request capabilities from the plugin context.\n * @returns An array of capabilities.\n */\nexport const useCapabilities = <T, U extends T = T>(\n interfaceDef: InterfaceDef<T>,\n filter?: (capability: T, moduleId: string) => capability is U,\n) => {\n const manager = usePluginManager();\n const signal = useMemo(\n () => computed(() => manager.context.requestCapabilities(interfaceDef, filter)),\n [interfaceDef],\n );\n\n return signal.value;\n};\n\n/**\n * Hook to request a capability from the plugin context.\n * @returns The capability.\n * @throws If no capability is found.\n */\nexport const useCapability = <T, U extends T = T>(\n interfaceDef: InterfaceDef<T>,\n filter?: (capability: T, moduleId: string) => capability is U,\n) => {\n const manager = usePluginManager();\n const signal = useMemo(() => computed(() => manager.context.requestCapability(interfaceDef, filter)), [interfaceDef]);\n return signal.value;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useCapability } from './useCapabilities';\nimport { Capabilities } from '../common';\n\nexport const useIntentDispatcher = () => useCapability(Capabilities.IntentDispatcher);\n\nexport const useAppGraph = () => useCapability(Capabilities.AppGraph);\n\nexport const useLayout = () => useCapability(Capabilities.Layout);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { Component, type FC, type PropsWithChildren } from 'react';\n\ntype Props = PropsWithChildren<{ data?: any; fallback: FC<{ data?: any; error: Error; reset: () => void }> }>;\ntype State = { error: Error | undefined };\n\n/**\n * Surface error boundary.\n *\n * For basic usage prefer providing a fallback component to `Surface`.\n *\n * For more information on error boundaries, see:\n * https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary\n */\nexport class ErrorBoundary extends Component<Props, State> {\n constructor(props: Props) {\n super(props);\n this.state = { error: undefined };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error };\n }\n\n override componentDidUpdate(prevProps: Props): void {\n if (prevProps.data !== this.props.data) {\n this.resetError();\n }\n }\n\n override render() {\n if (this.state.error) {\n return <this.props.fallback data={this.props.data} error={this.state.error} reset={this.resetError} />;\n }\n\n return this.props.children;\n }\n\n private resetError() {\n this.setState({ error: undefined });\n }\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { memo, forwardRef, Suspense, useMemo, Fragment } from 'react';\n\nimport { useDefaultValue } from '@dxos/react-hooks';\nimport { byPosition } from '@dxos/util';\n\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { useCapabilities } from './useCapabilities';\nimport { Capabilities, type SurfaceDefinition, type SurfaceProps } from '../common';\nimport { type PluginsContext } from '../core';\n\nconst DEFAULT_PLACEHOLDER = <Fragment />;\n\n/**\n * @internal\n */\nexport const useSurfaces = () => {\n const surfaces = useCapabilities(Capabilities.ReactSurface);\n return useMemo(() => surfaces.flat(), [surfaces]);\n};\n\nconst findCandidates = (surfaces: SurfaceDefinition[], { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n return Object.values(surfaces)\n .filter((definition) =>\n Array.isArray(definition.role) ? definition.role.includes(role) : definition.role === role,\n )\n .filter(({ filter }) => (filter ? filter(data ?? {}) : true))\n .toSorted(byPosition);\n};\n\n/**\n * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.\n */\nexport const isSurfaceAvailable = (context: PluginsContext, { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n const surfaces = context.requestCapabilities(Capabilities.ReactSurface);\n const candidates = findCandidates(surfaces.flat(), { role, data });\n return candidates.length > 0;\n};\n\n/**\n * A surface is a named region of the screen that can be populated by plugins.\n */\nexport const Surface = memo(\n forwardRef<HTMLElement, SurfaceProps>(\n ({ id: _id, role, data: _data, limit, fallback, placeholder = DEFAULT_PLACEHOLDER, ...rest }, forwardedRef) => {\n // TODO(wittjosiah): This will make all surfaces depend on a single signal.\n // This isn't ideal because it means that any change to the data will cause all surfaces to re-render.\n // This effectively means that plugin modules which contribute surfaces need to all be activated at startup.\n // This should be fine for now because it's how it worked prior to capabilities api anyways.\n // In the future, it would be nice to be able to bucket the surface contributions by role.\n const surfaces = useSurfaces();\n const data = useDefaultValue(_data, () => ({}));\n\n // NOTE: Memoizing the candidates makes the surface not re-render based on reactivity within data.\n const definitions = findCandidates(surfaces, { role, data });\n const candidates = limit ? definitions.slice(0, limit) : definitions;\n const nodes = candidates.map(({ component: Component, id }) => (\n <Component ref={forwardedRef} key={id} id={id} role={role} data={data} limit={limit} {...rest} />\n ));\n\n const suspense = <Suspense fallback={placeholder}>{nodes}</Suspense>;\n\n return fallback ? (\n <ErrorBoundary data={data} fallback={fallback}>\n {suspense}\n </ErrorBoundary>\n ) : (\n suspense\n );\n },\n ),\n);\n\nSurface.displayName = 'Surface';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { Capabilities } from '../common';\nimport { type AnyIntentResolver } from '../plugin-intent';\nimport { usePluginManager } from '../react';\n\nexport const useIntentResolver = (module: string, resolver: AnyIntentResolver) => {\n const manager = usePluginManager();\n useEffect(() => {\n manager.context.contributeCapability({\n module,\n interface: Capabilities.IntentResolver,\n implementation: resolver,\n });\n\n return () => manager.context.removeCapability(Capabilities.IntentResolver, resolver);\n }, [module, resolver]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { effect } from '@preact/signals-core';\nimport React, { useEffect, useState, type FC, type PropsWithChildren } from 'react';\n\nimport { invariant } from '@dxos/invariant';\nimport { create } from '@dxos/live-object';\n\nimport { Capabilities, Events } from './common';\nimport { PluginManager, type PluginManagerOptions, type Plugin } from './core';\nimport { topologicalSort } from './helpers';\nimport { ErrorBoundary, PluginManagerProvider, useCapabilities } from './react';\n\nconst ENABLED_KEY = 'dxos.org/app-framework/enabled';\n\nexport type CreateAppOptions = {\n pluginManager?: PluginManager;\n pluginLoader?: PluginManagerOptions['pluginLoader'];\n plugins?: Plugin[];\n core?: string[];\n defaults?: string[];\n placeholder?: FC<{ stage: number }>;\n fallback?: ErrorBoundary['props']['fallback'];\n cacheEnabled?: boolean;\n};\n\n/**\n * Expected usage is for this to be the entrypoint of the application.\n * Initializes plugins and renders the root components.\n *\n * @example\n * const plugins = [LayoutPlugin(), MyPlugin()];\n * const core = [LayoutPluginId];\n * const default = [MyPluginId];\n * const fallback = <div>Initializing Plugins...</div>;\n * const App = createApp({ plugins, core, default, fallback });\n * createRoot(document.getElementById('root')!).render(\n * <StrictMode>\n * <App />\n * </StrictMode>,\n * );\n *\n * @param params.pluginLoader A function which loads new plugins.\n * @param params.plugins All plugins available to the application.\n * @param params.core Core plugins which will always be enabled.\n * @param params.defaults Default plugins are enabled by default but can be disabled by the user.\n * @param params.placeholder Placeholder component to render during startup.\n * @param params.fallback Fallback component to render if an error occurs during startup.\n * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.\n */\nexport const createApp = ({\n pluginManager,\n pluginLoader: _pluginLoader,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n defaults = [],\n placeholder,\n fallback = DefaultFallback,\n cacheEnabled = false,\n}: CreateAppOptions) => {\n // TODO(wittjosiah): Provide a custom plugin loader which supports loading via url.\n const pluginLoader =\n _pluginLoader ??\n ((id: string) => {\n const plugin = plugins.find((plugin) => plugin.meta.id === id);\n invariant(plugin, `Plugin not found: ${id}`);\n return plugin;\n });\n\n const state = create({ ready: false, error: null });\n const cached: string[] = JSON.parse(localStorage.getItem(ENABLED_KEY) ?? '[]');\n const enabled = cacheEnabled && cached.length > 0 ? cached : defaults;\n const manager = pluginManager ?? new PluginManager({ pluginLoader, plugins, core, enabled });\n\n manager.activation.on(({ event, state: _state, error }) => {\n // Once the app is ready the first time, don't show the fallback again.\n if (!state.ready && event === Events.Startup.id) {\n state.ready = _state === 'activated';\n }\n\n if (error && !state.ready && !state.error) {\n state.error = error;\n }\n });\n\n effect(() => {\n cacheEnabled && localStorage.setItem(ENABLED_KEY, JSON.stringify(manager.enabled));\n });\n\n manager.context.contributeCapability({\n interface: Capabilities.PluginManager,\n implementation: manager,\n module: 'dxos.org/app-framework/plugin-manager',\n });\n\n setupDevtools(manager);\n\n // TODO(wittjosiah): Factor out such that this could be called per surface role when attempting to render.\n void manager.activate(Events.SetupReactSurface);\n void manager.activate(Events.Startup);\n\n return () => (\n <ErrorBoundary fallback={fallback}>\n <PluginManagerProvider value={manager}>\n <App placeholder={placeholder} state={state} />\n </PluginManagerProvider>\n </ErrorBoundary>\n );\n};\n\nconst DELAY_PLACEHOLDER = 2_000;\n\nenum LoadingState {\n Loading = 0,\n FadeIn = 1,\n FadeOut = 2,\n Done = 3,\n}\n\n/**\n * To avoid \"flashing\" the placeholder, we wait a period of time before starting the loading animation.\n * If loading completes during this time the placehoder is not shown, otherwise is it displayed for a minimum period of time.\n *\n * States:\n * 0: Loading - Wait for a period of time before starting the loading animation.\n * 1: Fade-in - Display a loading animation.\n * 2: Fade-out - Fade out the loading animation.\n * 3: Done - Remove the placeholder.\n */\nconst useLoading = (state: AppProps['state']) => {\n const [stage, setStage] = useState<LoadingState>(LoadingState.Loading);\n useEffect(() => {\n const i = setInterval(() => {\n setStage((tick) => {\n switch (tick) {\n case LoadingState.Loading:\n if (!state.ready) {\n return LoadingState.FadeIn;\n } else {\n clearInterval(i);\n return LoadingState.Done;\n }\n case LoadingState.FadeIn:\n if (state.ready) {\n return LoadingState.FadeOut;\n }\n break;\n case LoadingState.FadeOut:\n clearInterval(i);\n return LoadingState.Done;\n }\n\n return tick;\n });\n }, DELAY_PLACEHOLDER);\n\n return () => clearInterval(i);\n }, []);\n\n return stage;\n};\n\ntype AppProps = Pick<CreateAppOptions, 'placeholder'> & {\n state: { ready: boolean; error: unknown };\n};\n\nconst App = ({ placeholder: Placeholder, state }: AppProps) => {\n const reactContexts = useCapabilities(Capabilities.ReactContext);\n const reactRoots = useCapabilities(Capabilities.ReactRoot);\n const stage = useLoading(state);\n\n if (state.error) {\n // This triggers the error boundary to provide UI feedback for the startup error.\n throw state.error;\n }\n\n // TODO(wittjosiah): Consider using Suspense instead?\n if (stage < LoadingState.Done) {\n if (!Placeholder) {\n return null;\n }\n\n return <Placeholder stage={stage} />;\n }\n\n const ComposedContext = composeContexts(reactContexts);\n return (\n <ComposedContext>\n {reactRoots.map(({ id, root: Component }) => (\n <Component key={id} />\n ))}\n </ComposedContext>\n );\n};\n\n// Default fallback does not use tailwind or theme.\nconst DefaultFallback = ({ error }: { error: Error }) => {\n return (\n <div style={{ padding: '1rem' }}>\n {/* TODO(wittjosiah): Link to docs for replacing default. */}\n <h1 style={{ fontSize: '1.2rem', fontWeight: 700, margin: '0.5rem 0' }}>{error.message}</h1>\n <pre>{error.stack}</pre>\n </div>\n );\n};\n\nconst composeContexts = (contexts: Capabilities.ReactContext[]) => {\n if (contexts.length === 0) {\n return ({ children }: PropsWithChildren) => <>{children}</>;\n }\n\n return topologicalSort(contexts)\n .map(({ context }) => context)\n .reduce((Acc, Next) => ({ children }) => (\n <Acc>\n <Next>{children}</Next>\n </Acc>\n ));\n};\n\nconst setupDevtools = (manager: PluginManager) => {\n (globalThis as any).composer ??= {};\n (globalThis as any).composer.manager = manager;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\ntype DependencyNode = {\n id: string;\n dependsOn?: string[];\n};\n\n/**\n * Topologically sorts a list of nodes based on their dependencies.\n */\n// TODO(wittjosiah): Factor out?\nexport const topologicalSort = <T extends DependencyNode>(nodes: T[]): T[] => {\n const getDependencies = (nodeId: string, seen = new Set<string>(), path = new Set<string>()): string[] => {\n if (path.has(nodeId)) {\n throw new Error(`Circular dependency detected involving ${nodeId}`);\n }\n if (seen.has(nodeId)) {\n return [];\n }\n\n const node = nodes.find((n) => n.id === nodeId);\n if (!node) {\n throw new Error(`Node ${nodeId} not found but is listed as a dependency`);\n }\n\n const newPath = new Set([...path, nodeId]);\n const newSeen = new Set([...seen, nodeId]);\n\n const dependsOn = node.dependsOn ?? [];\n return [...dependsOn.flatMap((depId) => getDependencies(depId, newSeen, newPath)), nodeId];\n };\n\n // Get all unique dependencies.\n const allDependencies = nodes\n .map((node) => node.id)\n .flatMap((id) => getDependencies(id))\n .filter((id, index, self) => self.indexOf(id) === index);\n\n // Map back to original nodes\n return allDependencies\n .map((id) => nodes.find((node) => node.id === id))\n .filter((node): node is T => node !== undefined);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAA0C;AAE1C,mBAAsB;ACFtB,0BAAyB;AACzB,IAAAA,gBAAwB;AEDxB,IAAAA,gBAAkE;ACAlE,IAAAA,gBAAqE;AAErE,yBAAgC;AAChC,kBAA2B;ACH3B,IAAAA,gBAA0B;ACA1B,IAAAC,uBAAuB;AACvB,I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AAQ,MAA0BJ,8BAAAA,QAAA,cAAAA,cAAAA,QAAA,UAAA,MAAGI,QAAAA;EACjD;AAEA,SAAOmD,gBAAgBkF,QAAAA,EACpBlG,IAAI,CAAC,EAAE/D,QAAO,MAAOA,OAAAA,EACrBkK,OAAO,CAACC,KAAKC,SAAS,CAAC,EAAExI,SAAQ,MAChCJ,8BAAAA,QAAA,cAAC2I,KAAAA,MACC3I,8BAAAA,QAAA,cAAC4I,MAAAA,MAAMxI,QAAAA,CAAAA,CAAAA;AAGf;AAEA,IAAMqG,gBAAgB,CAACrI,YAAAA;AACpByK,aAAmBC,aAAa,CAAC;AACjCD,aAAmBC,SAAS1K,UAAUA;AACzC;",
6
+ "names": ["import_react", "import_signals_core", "PluginManagerContext", "createContext", "undefined", "usePluginManager", "useContext", "raise", "Error", "PluginManagerProvider", "Provider", "useCapabilities", "interfaceDef", "filter", "manager", "signal", "useMemo", "computed", "context", "requestCapabilities", "value", "useCapability", "requestCapability", "useIntentDispatcher", "Capabilities", "IntentDispatcher", "useAppGraph", "AppGraph", "useLayout", "Layout", "ErrorBoundary", "Component", "constructor", "props", "state", "error", "getDerivedStateFromError", "componentDidUpdate", "prevProps", "data", "resetError", "render", "React", "this", "fallback", "reset", "children", "setState", "DEFAULT_PLACEHOLDER", "Fragment", "useSurfaces", "surfaces", "ReactSurface", "flat", "findCandidates", "role", "Object", "values", "definition", "Array", "isArray", "includes", "toSorted", "byPosition", "isSurfaceAvailable", "candidates", "length", "Surface", "memo", "forwardRef", "id", "_id", "_data", "limit", "placeholder", "rest", "forwardedRef", "useDefaultValue", "definitions", "slice", "nodes", "map", "component", "ref", "key", "suspense", "Suspense", "displayName", "useIntentResolver", "module", "resolver", "useEffect", "contributeCapability", "interface", "IntentResolver", "implementation", "removeCapability", "topologicalSort", "getDependencies", "nodeId", "seen", "Set", "path", "has", "node", "find", "n", "newPath", "newSeen", "dependsOn", "flatMap", "depId", "allDependencies", "index", "self", "indexOf", "ENABLED_KEY", "createApp", "pluginManager", "pluginLoader", "_pluginLoader", "plugins", "core", "meta", "defaults", "DefaultFallback", "cacheEnabled", "plugin", "invariant", "create", "ready", "cached", "JSON", "parse", "localStorage", "getItem", "enabled", "PluginManager", "activation", "on", "event", "_state", "Events", "Startup", "effect", "setItem", "stringify", "setupDevtools", "activate", "SetupReactSurface", "App", "DELAY_PLACEHOLDER", "LoadingState", "useLoading", "stage", "setStage", "useState", "i", "setInterval", "tick", "clearInterval", "Placeholder", "reactContexts", "ReactContext", "reactRoots", "ReactRoot", "ComposedContext", "composeContexts", "root", "div", "style", "padding", "h1", "fontSize", "fontWeight", "margin", "message", "pre", "stack", "contexts", "reduce", "Acc", "Next", "globalThis", "composer"]
7
+ }
@@ -28,71 +28,70 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var node_exports = {};
30
30
  __export(node_exports, {
31
- Capabilities: () => import_chunk_2EBZ2ICH.Capabilities,
32
- CollaborationActions: () => import_chunk_2EBZ2ICH.CollaborationActions,
33
- ErrorBoundary: () => import_chunk_7J66KH2T.ErrorBoundary,
34
- Events: () => import_chunk_2EBZ2ICH.Events,
35
- FileInfoSchema: () => import_chunk_2EBZ2ICH.FileInfoSchema,
36
- INTENT_ACTION: () => import_chunk_2EBZ2ICH.INTENT_ACTION,
37
- INTENT_PLUGIN: () => import_chunk_2EBZ2ICH.INTENT_PLUGIN,
38
- IntentAction: () => import_chunk_2EBZ2ICH.IntentAction,
39
- IntentPlugin: () => import_chunk_2EBZ2ICH.IntentPlugin,
40
- LAYOUT_ACTION: () => import_chunk_2EBZ2ICH.LAYOUT_ACTION,
41
- LAYOUT_PLUGIN: () => import_chunk_2EBZ2ICH.LAYOUT_PLUGIN,
42
- Label: () => import_chunk_2EBZ2ICH.Label,
43
- LayoutAction: () => import_chunk_2EBZ2ICH.LayoutAction,
44
- Plugin: () => import_chunk_2EBZ2ICH.Plugin,
45
- PluginContext: () => import_chunk_2EBZ2ICH.PluginContext,
46
- PluginManager: () => import_chunk_2EBZ2ICH.PluginManager,
47
- PluginManagerProvider: () => import_chunk_7J66KH2T.PluginManagerProvider,
48
- PluginModule: () => import_chunk_2EBZ2ICH.PluginModule,
49
- Resource: () => import_chunk_2EBZ2ICH.Resource,
50
- ResourceKey: () => import_chunk_2EBZ2ICH.ResourceKey,
51
- ResourceLanguage: () => import_chunk_2EBZ2ICH.ResourceLanguage,
52
- SETTINGS_ACTION: () => import_chunk_JQMNABMK.SETTINGS_ACTION,
53
- SETTINGS_ID: () => import_chunk_JQMNABMK.SETTINGS_ID,
54
- SETTINGS_KEY: () => import_chunk_JQMNABMK.SETTINGS_KEY,
55
- SETTINGS_PLUGIN: () => import_chunk_JQMNABMK.SETTINGS_PLUGIN,
56
- SettingsAction: () => import_chunk_JQMNABMK.SettingsAction,
31
+ Capabilities: () => import_chunk_YIFTVCOR.Capabilities,
32
+ ErrorBoundary: () => import_chunk_YNTKVTVX.ErrorBoundary,
33
+ Events: () => import_chunk_YIFTVCOR.Events,
34
+ FileInfoSchema: () => import_chunk_YIFTVCOR.FileInfoSchema,
35
+ INTENT_ACTION: () => import_chunk_YIFTVCOR.INTENT_ACTION,
36
+ INTENT_PLUGIN: () => import_chunk_YIFTVCOR.INTENT_PLUGIN,
37
+ IntentAction: () => import_chunk_YIFTVCOR.IntentAction,
38
+ IntentPlugin: () => import_chunk_YIFTVCOR.IntentPlugin,
39
+ LAYOUT_ACTION: () => import_chunk_YIFTVCOR.LAYOUT_ACTION,
40
+ LAYOUT_PLUGIN: () => import_chunk_YIFTVCOR.LAYOUT_PLUGIN,
41
+ Label: () => import_chunk_YIFTVCOR.Label,
42
+ LayoutAction: () => import_chunk_YIFTVCOR.LayoutAction,
43
+ Plugin: () => import_chunk_YIFTVCOR.Plugin,
44
+ PluginManager: () => import_chunk_YIFTVCOR.PluginManager,
45
+ PluginManagerProvider: () => import_chunk_YNTKVTVX.PluginManagerProvider,
46
+ PluginModule: () => import_chunk_YIFTVCOR.PluginModule,
47
+ PluginsContext: () => import_chunk_YIFTVCOR.PluginsContext,
48
+ Resource: () => import_chunk_YIFTVCOR.Resource,
49
+ ResourceKey: () => import_chunk_YIFTVCOR.ResourceKey,
50
+ ResourceLanguage: () => import_chunk_YIFTVCOR.ResourceLanguage,
51
+ SETTINGS_ACTION: () => import_chunk_JUSEAFDU.SETTINGS_ACTION,
52
+ SETTINGS_ID: () => import_chunk_JUSEAFDU.SETTINGS_ID,
53
+ SETTINGS_KEY: () => import_chunk_JUSEAFDU.SETTINGS_KEY,
54
+ SETTINGS_PLUGIN: () => import_chunk_JUSEAFDU.SETTINGS_PLUGIN,
55
+ SettingsAction: () => import_chunk_JUSEAFDU.SettingsAction,
57
56
  SettingsPlugin: () => SettingsPlugin,
58
- Surface: () => import_chunk_7J66KH2T.Surface,
59
- allOf: () => import_chunk_2EBZ2ICH.allOf,
60
- chain: () => import_chunk_2EBZ2ICH.chain,
61
- contributes: () => import_chunk_2EBZ2ICH.contributes,
62
- createApp: () => import_chunk_7J66KH2T.createApp,
63
- createDispatcher: () => import_chunk_2EBZ2ICH.createDispatcher,
64
- createIntent: () => import_chunk_2EBZ2ICH.createIntent,
65
- createResolver: () => import_chunk_2EBZ2ICH.createResolver,
66
- createSurface: () => import_chunk_2EBZ2ICH.createSurface,
67
- defaultFileTypes: () => import_chunk_2EBZ2ICH.defaultFileTypes,
68
- defineCapability: () => import_chunk_2EBZ2ICH.defineCapability,
69
- defineEvent: () => import_chunk_2EBZ2ICH.defineEvent,
70
- defineModule: () => import_chunk_2EBZ2ICH.defineModule,
71
- definePlugin: () => import_chunk_2EBZ2ICH.definePlugin,
72
- eventKey: () => import_chunk_2EBZ2ICH.eventKey,
73
- getEvents: () => import_chunk_2EBZ2ICH.getEvents,
74
- isAllOf: () => import_chunk_2EBZ2ICH.isAllOf,
75
- isOneOf: () => import_chunk_2EBZ2ICH.isOneOf,
76
- isSurfaceAvailable: () => import_chunk_7J66KH2T.isSurfaceAvailable,
77
- lazy: () => import_chunk_2EBZ2ICH.lazy,
78
- oneOf: () => import_chunk_2EBZ2ICH.oneOf,
79
- useAppGraph: () => import_chunk_7J66KH2T.useAppGraph,
80
- useCapabilities: () => import_chunk_7J66KH2T.useCapabilities,
81
- useCapability: () => import_chunk_7J66KH2T.useCapability,
82
- useIntentDispatcher: () => import_chunk_7J66KH2T.useIntentDispatcher,
83
- useIntentResolver: () => import_chunk_7J66KH2T.useIntentResolver,
84
- useLayout: () => import_chunk_7J66KH2T.useLayout,
85
- usePluginManager: () => import_chunk_7J66KH2T.usePluginManager,
86
- useSurfaces: () => import_chunk_7J66KH2T.useSurfaces
57
+ Surface: () => import_chunk_YNTKVTVX.Surface,
58
+ allOf: () => import_chunk_YIFTVCOR.allOf,
59
+ chain: () => import_chunk_YIFTVCOR.chain,
60
+ contributes: () => import_chunk_YIFTVCOR.contributes,
61
+ createApp: () => import_chunk_YNTKVTVX.createApp,
62
+ createDispatcher: () => import_chunk_YIFTVCOR.createDispatcher,
63
+ createIntent: () => import_chunk_YIFTVCOR.createIntent,
64
+ createResolver: () => import_chunk_YIFTVCOR.createResolver,
65
+ createSurface: () => import_chunk_YIFTVCOR.createSurface,
66
+ defaultFileTypes: () => import_chunk_YIFTVCOR.defaultFileTypes,
67
+ defineCapability: () => import_chunk_YIFTVCOR.defineCapability,
68
+ defineEvent: () => import_chunk_YIFTVCOR.defineEvent,
69
+ defineModule: () => import_chunk_YIFTVCOR.defineModule,
70
+ definePlugin: () => import_chunk_YIFTVCOR.definePlugin,
71
+ eventKey: () => import_chunk_YIFTVCOR.eventKey,
72
+ getEvents: () => import_chunk_YIFTVCOR.getEvents,
73
+ isAllOf: () => import_chunk_YIFTVCOR.isAllOf,
74
+ isOneOf: () => import_chunk_YIFTVCOR.isOneOf,
75
+ isSurfaceAvailable: () => import_chunk_YNTKVTVX.isSurfaceAvailable,
76
+ lazy: () => import_chunk_YIFTVCOR.lazy,
77
+ oneOf: () => import_chunk_YIFTVCOR.oneOf,
78
+ useAppGraph: () => import_chunk_YNTKVTVX.useAppGraph,
79
+ useCapabilities: () => import_chunk_YNTKVTVX.useCapabilities,
80
+ useCapability: () => import_chunk_YNTKVTVX.useCapability,
81
+ useIntentDispatcher: () => import_chunk_YNTKVTVX.useIntentDispatcher,
82
+ useIntentResolver: () => import_chunk_YNTKVTVX.useIntentResolver,
83
+ useLayout: () => import_chunk_YNTKVTVX.useLayout,
84
+ usePluginManager: () => import_chunk_YNTKVTVX.usePluginManager,
85
+ useSurfaces: () => import_chunk_YNTKVTVX.useSurfaces
87
86
  });
88
87
  module.exports = __toCommonJS(node_exports);
89
- var import_chunk_7J66KH2T = require("./chunk-7J66KH2T.cjs");
90
- var import_chunk_JQMNABMK = require("./chunk-JQMNABMK.cjs");
91
- var import_chunk_2EBZ2ICH = require("./chunk-2EBZ2ICH.cjs");
88
+ var import_chunk_YNTKVTVX = require("./chunk-YNTKVTVX.cjs");
89
+ var import_chunk_JUSEAFDU = require("./chunk-JUSEAFDU.cjs");
90
+ var import_chunk_YIFTVCOR = require("./chunk-YIFTVCOR.cjs");
92
91
  var translations_default = [
93
92
  {
94
93
  "en-US": {
95
- [import_chunk_JQMNABMK.SETTINGS_PLUGIN]: {
94
+ [import_chunk_JUSEAFDU.SETTINGS_PLUGIN]: {
96
95
  "open settings label": "Open settings",
97
96
  "app settings label": "Settings",
98
97
  "custom plugins label": "Plugins"
@@ -100,41 +99,40 @@ var translations_default = [
100
99
  }
101
100
  }
102
101
  ];
103
- var SettingsPlugin = () => (0, import_chunk_2EBZ2ICH.definePlugin)({
104
- id: import_chunk_JQMNABMK.SETTINGS_PLUGIN,
102
+ var SettingsPlugin = () => (0, import_chunk_YIFTVCOR.definePlugin)({
103
+ id: import_chunk_JUSEAFDU.SETTINGS_PLUGIN,
105
104
  name: "Settings"
106
105
  }, [
107
- (0, import_chunk_2EBZ2ICH.defineModule)({
108
- id: `${import_chunk_JQMNABMK.SETTINGS_PLUGIN}/module/store`,
109
- activatesOn: import_chunk_2EBZ2ICH.Events.Startup,
106
+ (0, import_chunk_YIFTVCOR.defineModule)({
107
+ id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/store`,
108
+ activatesOn: import_chunk_YIFTVCOR.Events.Startup,
110
109
  activatesBefore: [
111
- import_chunk_2EBZ2ICH.Events.SetupSettings
110
+ import_chunk_YIFTVCOR.Events.SetupSettings
112
111
  ],
113
112
  activatesAfter: [
114
- import_chunk_2EBZ2ICH.Events.SettingsReady
113
+ import_chunk_YIFTVCOR.Events.SettingsReady
115
114
  ],
116
- activate: (0, import_chunk_2EBZ2ICH.lazy)(() => import("./store-IF3UR2KA.cjs"))
115
+ activate: (0, import_chunk_YIFTVCOR.lazy)(() => import("./store-OFDHTDCB.cjs"))
117
116
  }),
118
- (0, import_chunk_2EBZ2ICH.defineModule)({
119
- id: `${import_chunk_JQMNABMK.SETTINGS_PLUGIN}/module/translations`,
120
- activatesOn: import_chunk_2EBZ2ICH.Events.SetupTranslations,
121
- activate: () => (0, import_chunk_2EBZ2ICH.contributes)(import_chunk_2EBZ2ICH.Capabilities.Translations, translations_default)
117
+ (0, import_chunk_YIFTVCOR.defineModule)({
118
+ id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/translations`,
119
+ activatesOn: import_chunk_YIFTVCOR.Events.SetupTranslations,
120
+ activate: () => (0, import_chunk_YIFTVCOR.contributes)(import_chunk_YIFTVCOR.Capabilities.Translations, translations_default)
122
121
  }),
123
- (0, import_chunk_2EBZ2ICH.defineModule)({
124
- id: `${import_chunk_JQMNABMK.SETTINGS_PLUGIN}/module/intent-resolver`,
125
- activatesOn: import_chunk_2EBZ2ICH.Events.SetupIntentResolver,
126
- activate: (0, import_chunk_2EBZ2ICH.lazy)(() => import("./intent-resolver-5CG5NIJY.cjs"))
122
+ (0, import_chunk_YIFTVCOR.defineModule)({
123
+ id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/intent-resolver`,
124
+ activatesOn: import_chunk_YIFTVCOR.Events.SetupIntentResolver,
125
+ activate: (0, import_chunk_YIFTVCOR.lazy)(() => import("./intent-resolver-3F4POWAM.cjs"))
127
126
  }),
128
- (0, import_chunk_2EBZ2ICH.defineModule)({
129
- id: `${import_chunk_JQMNABMK.SETTINGS_PLUGIN}/module/app-graph-builder`,
130
- activatesOn: import_chunk_2EBZ2ICH.Events.SetupAppGraph,
131
- activate: (0, import_chunk_2EBZ2ICH.lazy)(() => import("./app-graph-builder-4IWMG67O.cjs"))
127
+ (0, import_chunk_YIFTVCOR.defineModule)({
128
+ id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/app-graph-builder`,
129
+ activatesOn: import_chunk_YIFTVCOR.Events.SetupAppGraph,
130
+ activate: (0, import_chunk_YIFTVCOR.lazy)(() => import("./app-graph-builder-JZCSKYPY.cjs"))
132
131
  })
133
132
  ]);
134
133
  // Annotate the CommonJS export names for ESM import in node:
135
134
  0 && (module.exports = {
136
135
  Capabilities,
137
- CollaborationActions,
138
136
  ErrorBoundary,
139
137
  Events,
140
138
  FileInfoSchema,
@@ -147,10 +145,10 @@ var SettingsPlugin = () => (0, import_chunk_2EBZ2ICH.definePlugin)({
147
145
  Label,
148
146
  LayoutAction,
149
147
  Plugin,
150
- PluginContext,
151
148
  PluginManager,
152
149
  PluginManagerProvider,
153
150
  PluginModule,
151
+ PluginsContext,
154
152
  Resource,
155
153
  ResourceKey,
156
154
  ResourceLanguage,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/plugin-settings/translations.ts", "../../../src/plugin-settings/SettingsPlugin.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { SETTINGS_PLUGIN } from './actions';\n\nexport default [\n {\n 'en-US': {\n [SETTINGS_PLUGIN]: {\n 'open settings label': 'Open settings',\n 'app settings label': 'Settings',\n 'custom plugins label': 'Plugins',\n },\n },\n },\n];\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { SETTINGS_PLUGIN } from './actions';\nimport translations from './translations';\nimport { Capabilities, Events } from '../common';\nimport { contributes, defineModule, definePlugin, lazy } from '../core';\n\n// TODO(wittjosiah): Add options to exclude some modules.\nexport const SettingsPlugin = () =>\n definePlugin({ id: SETTINGS_PLUGIN, name: 'Settings' }, [\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/store`,\n activatesOn: Events.Startup,\n activatesBefore: [Events.SetupSettings],\n activatesAfter: [Events.SettingsReady],\n activate: lazy(() => import('./store')),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: lazy(() => import('./intent-resolver')),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: lazy(() => import('./app-graph-builder')),\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACA,qCAAAA,GAAkB;QACjB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;MAC1B;IACF;EACF;;ACLK,IAAMC,iBAAiB,UAC5BC,oCAAa;EAAEC,IAAIH;EAAiBI,MAAM;AAAW,GAAG;MACtDC,oCAAa;IACXF,IAAI,GAAGH,qCAAAA;IACPM,aAAaC,6BAAOC;IACpBC,iBAAiB;MAACF,6BAAOG;;IACzBC,gBAAgB;MAACJ,6BAAOK;;IACxBC,cAAUC,4BAAK,MAAM,OAAO,sBAAA,CAAA;EAC9B,CAAA;MACAT,oCAAa;IACXF,IAAI,GAAGH,qCAAAA;IACPM,aAAaC,6BAAOQ;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GIN", "SettingsPlugin", "definePlugin", "id", "name", "defineModule", "activatesOn", "Events", "Startup", "activatesBefore", "SetupSettings", "activatesAfter", "SettingsReady", "activate", "lazy", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupIntentResolver", "SetupAppGraph"]
7
7
  }
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var intent_dispatcher_TASJBG5M_exports = {};
20
- __export(intent_dispatcher_TASJBG5M_exports, {
21
- createDispatcher: () => import_chunk_2EBZ2ICH.createDispatcher,
22
- createResolver: () => import_chunk_2EBZ2ICH.createResolver,
23
- default: () => import_chunk_2EBZ2ICH.intent_dispatcher_default
19
+ var intent_dispatcher_H334XLFD_exports = {};
20
+ __export(intent_dispatcher_H334XLFD_exports, {
21
+ createDispatcher: () => import_chunk_YIFTVCOR.createDispatcher,
22
+ createResolver: () => import_chunk_YIFTVCOR.createResolver,
23
+ default: () => import_chunk_YIFTVCOR.intent_dispatcher_default
24
24
  });
25
- module.exports = __toCommonJS(intent_dispatcher_TASJBG5M_exports);
26
- var import_chunk_2EBZ2ICH = require("./chunk-2EBZ2ICH.cjs");
25
+ module.exports = __toCommonJS(intent_dispatcher_H334XLFD_exports);
26
+ var import_chunk_YIFTVCOR = require("./chunk-YIFTVCOR.cjs");
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
29
29
  createDispatcher,
30
30
  createResolver
31
31
  });
32
- //# sourceMappingURL=intent-dispatcher-TASJBG5M.cjs.map
32
+ //# sourceMappingURL=intent-dispatcher-H334XLFD.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["intent-dispatcher-TASJBG5M.cjs"],
4
- "sourcesContent": ["import {\n createDispatcher,\n createResolver,\n intent_dispatcher_default\n} from \"./chunk-2EBZ2ICH.cjs\";\nexport {\n createDispatcher,\n createResolver,\n intent_dispatcher_default as default\n};\n//# sourceMappingURL=intent-dispatcher-TASJBG5M.cjs.map\n"],
3
+ "sources": ["intent-dispatcher-H334XLFD.cjs"],
4
+ "sourcesContent": ["import {\n createDispatcher,\n createResolver,\n intent_dispatcher_default\n} from \"./chunk-YIFTVCOR.cjs\";\nexport {\n createDispatcher,\n createResolver,\n intent_dispatcher_default as default\n};\n//# sourceMappingURL=intent-dispatcher-H334XLFD.cjs.map\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAIO;",
6
6
  "names": []
7
7
  }
@@ -16,31 +16,31 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var intent_resolver_5CG5NIJY_exports = {};
20
- __export(intent_resolver_5CG5NIJY_exports, {
19
+ var intent_resolver_3F4POWAM_exports = {};
20
+ __export(intent_resolver_3F4POWAM_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_5CG5NIJY_exports);
24
- var import_chunk_JQMNABMK = require("./chunk-JQMNABMK.cjs");
25
- var import_chunk_2EBZ2ICH = require("./chunk-2EBZ2ICH.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_3F4POWAM_exports);
24
+ var import_chunk_JUSEAFDU = require("./chunk-JUSEAFDU.cjs");
25
+ var import_chunk_YIFTVCOR = require("./chunk-YIFTVCOR.cjs");
26
26
  var import_effect = require("effect");
27
- var intent_resolver_default = () => (0, import_chunk_2EBZ2ICH.contributes)(import_chunk_2EBZ2ICH.Capabilities.IntentResolver, (0, import_chunk_2EBZ2ICH.createResolver)({
28
- intent: import_chunk_JQMNABMK.SettingsAction.Open,
27
+ var intent_resolver_default = () => (0, import_chunk_YIFTVCOR.contributes)(import_chunk_YIFTVCOR.Capabilities.IntentResolver, (0, import_chunk_YIFTVCOR.createResolver)({
28
+ intent: import_chunk_JUSEAFDU.SettingsAction.Open,
29
29
  resolve: ({ plugin }) => {
30
- const openSettings = (0, import_chunk_2EBZ2ICH.createIntent)(import_chunk_2EBZ2ICH.LayoutAction.SwitchWorkspace, {
30
+ const openSettings = (0, import_chunk_YIFTVCOR.createIntent)(import_chunk_YIFTVCOR.LayoutAction.SwitchWorkspace, {
31
31
  part: "workspace",
32
- subject: import_chunk_JQMNABMK.SETTINGS_ID
32
+ subject: import_chunk_JUSEAFDU.SETTINGS_ID
33
33
  });
34
34
  return {
35
35
  intents: [
36
- plugin ? (0, import_effect.pipe)(openSettings, (0, import_chunk_2EBZ2ICH.chain)(import_chunk_2EBZ2ICH.LayoutAction.Open, {
36
+ plugin ? (0, import_effect.pipe)(openSettings, (0, import_chunk_YIFTVCOR.chain)(import_chunk_YIFTVCOR.LayoutAction.Open, {
37
37
  part: "main",
38
38
  subject: [
39
- `${import_chunk_JQMNABMK.SETTINGS_KEY}:${plugin.replaceAll("/", ":")}`
39
+ `${import_chunk_JUSEAFDU.SETTINGS_KEY}:${plugin.replaceAll("/", ":")}`
40
40
  ]
41
41
  })) : openSettings
42
42
  ]
43
43
  };
44
44
  }
45
45
  }));
46
- //# sourceMappingURL=intent-resolver-5CG5NIJY.cjs.map
46
+ //# sourceMappingURL=intent-resolver-3F4POWAM.cjs.map