@dxos/app-framework 0.8.2-main.f11618f → 0.8.2-main.fbd8ed0

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 (310) hide show
  1. package/dist/lib/browser/{app-graph-builder-OHM2Z6YQ.mjs → app-graph-builder-6E7NCZ77.mjs} +23 -23
  2. package/dist/lib/browser/app-graph-builder-6E7NCZ77.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-DVNSCQJ5.mjs → chunk-2KSDY3EZ.mjs} +297 -270
  4. package/dist/lib/browser/chunk-2KSDY3EZ.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-X2YC645Z.mjs → chunk-K3HOLGVH.mjs} +38 -26
  6. package/dist/lib/browser/chunk-K3HOLGVH.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-SFPT4Z2C.mjs → chunk-KPRHX73H.mjs} +9 -9
  8. package/dist/lib/browser/chunk-KPRHX73H.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +8 -8
  10. package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs → intent-dispatcher-VGUJBPPN.mjs} +2 -2
  11. package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs → intent-resolver-QLFZY5R5.mjs} +3 -3
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/{store-XMPVLJOQ.mjs → store-QGVXOY4T.mjs} +7 -6
  14. package/dist/lib/browser/store-QGVXOY4T.mjs.map +7 -0
  15. package/dist/lib/browser/testing/index.mjs +7 -3
  16. package/dist/lib/browser/testing/index.mjs.map +3 -3
  17. package/dist/lib/browser/worker.mjs +3 -3
  18. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs +146 -0
  19. package/dist/lib/node/app-graph-builder-4IWMG67O.cjs.map +7 -0
  20. package/dist/lib/node/{chunk-I3CJYEBC.cjs → chunk-2EBZ2ICH.cjs} +137 -110
  21. package/dist/lib/node/chunk-2EBZ2ICH.cjs.map +7 -0
  22. package/dist/lib/node/{chunk-5UOVF3OR.cjs → chunk-7J66KH2T.cjs} +78 -66
  23. package/dist/lib/node/chunk-7J66KH2T.cjs.map +7 -0
  24. package/dist/lib/node/{chunk-JUSEAFDU.cjs → chunk-JQMNABMK.cjs} +4 -4
  25. package/dist/lib/node/chunk-JQMNABMK.cjs.map +7 -0
  26. package/dist/lib/node/index.cjs +80 -80
  27. package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs → intent-dispatcher-TASJBG5M.cjs} +8 -8
  28. package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs.map → intent-dispatcher-TASJBG5M.cjs.map} +2 -2
  29. package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs → intent-resolver-5CG5NIJY.cjs} +12 -12
  30. package/dist/lib/node/meta.json +1 -1
  31. package/dist/lib/node/{store-N7JLYYDI.cjs → store-IF3UR2KA.cjs} +10 -9
  32. package/dist/lib/node/store-IF3UR2KA.cjs.map +7 -0
  33. package/dist/lib/node/testing/index.cjs +14 -9
  34. package/dist/lib/node/testing/index.cjs.map +3 -3
  35. package/dist/lib/node/worker.cjs +39 -39
  36. package/dist/lib/node/worker.cjs.map +1 -1
  37. package/dist/lib/node-esm/{app-graph-builder-OMH534A4.mjs → app-graph-builder-LYCG5CO3.mjs} +23 -23
  38. package/dist/lib/node-esm/app-graph-builder-LYCG5CO3.mjs.map +7 -0
  39. package/dist/lib/node-esm/{chunk-GSDBF2CK.mjs → chunk-BOEJMAVK.mjs} +297 -270
  40. package/dist/lib/node-esm/chunk-BOEJMAVK.mjs.map +7 -0
  41. package/dist/lib/node-esm/{chunk-QHXUTJHE.mjs → chunk-ISNBS46Y.mjs} +38 -26
  42. package/dist/lib/node-esm/chunk-ISNBS46Y.mjs.map +7 -0
  43. package/dist/lib/node-esm/{chunk-PHOUQACM.mjs → chunk-JUJF5L4G.mjs} +9 -9
  44. package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +7 -0
  45. package/dist/lib/node-esm/index.mjs +8 -8
  46. package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs → intent-dispatcher-ZUSNX2OY.mjs} +2 -2
  47. package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs → intent-resolver-NGDHUKDD.mjs} +3 -3
  48. package/dist/lib/node-esm/meta.json +1 -1
  49. package/dist/lib/node-esm/{store-M2BYJL6K.mjs → store-NCRSE25X.mjs} +7 -6
  50. package/dist/lib/node-esm/store-NCRSE25X.mjs.map +7 -0
  51. package/dist/lib/node-esm/testing/index.mjs +7 -3
  52. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  53. package/dist/lib/node-esm/worker.mjs +3 -3
  54. package/dist/types/src/App.d.ts +3 -1
  55. package/dist/types/src/App.d.ts.map +1 -1
  56. package/dist/types/src/common/capabilities.d.ts +6 -196
  57. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  58. package/dist/types/src/common/collaboration.d.ts +14 -7
  59. package/dist/types/src/common/collaboration.d.ts.map +1 -1
  60. package/dist/types/src/common/events.d.ts.map +1 -1
  61. package/dist/types/src/common/file.d.ts +7 -7
  62. package/dist/types/src/common/file.d.ts.map +1 -1
  63. package/dist/types/src/common/layout.d.ts +163 -163
  64. package/dist/types/src/common/layout.d.ts.map +1 -1
  65. package/dist/types/src/common/surface.d.ts.map +1 -1
  66. package/dist/types/src/common/translations.d.ts +7 -7
  67. package/dist/types/src/common/translations.d.ts.map +1 -1
  68. package/dist/types/src/core/capabilities.d.ts +28 -13
  69. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  70. package/dist/types/src/core/events.d.ts.map +1 -1
  71. package/dist/types/src/core/manager.d.ts +6 -3
  72. package/dist/types/src/core/manager.d.ts.map +1 -1
  73. package/dist/types/src/core/plugin.d.ts +2 -2
  74. package/dist/types/src/core/plugin.d.ts.map +1 -1
  75. package/dist/types/src/helpers.d.ts.map +1 -1
  76. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  77. package/dist/types/src/playground/logger/schema.d.ts +6 -6
  78. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  79. package/dist/types/src/plugin-intent/actions.d.ts +14 -14
  80. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  81. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +3 -3
  82. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  83. package/dist/types/src/plugin-intent/intent.d.ts +14 -20
  84. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  85. package/dist/types/src/plugin-settings/actions.d.ts +10 -10
  86. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  87. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +2 -195
  88. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
  89. package/dist/types/src/plugin-settings/store.d.ts +2 -2
  90. package/dist/types/src/plugin-settings/store.d.ts.map +1 -1
  91. package/dist/types/src/react/IntentContext.d.ts.map +1 -1
  92. package/dist/types/src/react/Surface.d.ts +2 -2
  93. package/dist/types/src/react/Surface.d.ts.map +1 -1
  94. package/dist/types/src/react/useCapabilities.d.ts +2 -2
  95. package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
  96. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -1
  97. package/dist/types/src/testing/withPluginManager.d.ts +5 -2
  98. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  99. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  100. package/dist/types/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +25 -20
  102. package/src/App.tsx +14 -2
  103. package/src/common/capabilities.ts +7 -4
  104. package/src/common/collaboration.ts +11 -8
  105. package/src/common/file.ts +7 -7
  106. package/src/common/layout.ts +148 -136
  107. package/src/common/translations.ts +7 -7
  108. package/src/core/capabilities.test.ts +55 -36
  109. package/src/core/capabilities.ts +77 -57
  110. package/src/core/manager.test.ts +19 -19
  111. package/src/core/manager.ts +14 -6
  112. package/src/core/plugin.ts +2 -2
  113. package/src/playground/generator/generator.ts +4 -4
  114. package/src/playground/logger/schema.ts +5 -5
  115. package/src/playground/playground.stories.tsx +1 -1
  116. package/src/plugin-intent/actions.ts +9 -9
  117. package/src/plugin-intent/intent-dispatcher.test.ts +23 -42
  118. package/src/plugin-intent/intent-dispatcher.ts +7 -11
  119. package/src/plugin-intent/intent.ts +22 -20
  120. package/src/plugin-settings/actions.ts +8 -8
  121. package/src/plugin-settings/app-graph-builder.ts +129 -94
  122. package/src/plugin-settings/store.ts +20 -17
  123. package/src/react/Surface.stories.tsx +1 -1
  124. package/src/react/Surface.tsx +3 -3
  125. package/src/react/useCapabilities.ts +9 -19
  126. package/src/testing/withPluginManager.stories.tsx +0 -1
  127. package/src/testing/withPluginManager.tsx +11 -3
  128. package/tsconfig.json +3 -0
  129. package/typedoc/assets/navigation.js +1 -1
  130. package/typedoc/assets/search.js +1 -1
  131. package/typedoc/classes/CollaborationActions.InsertContent.html +280 -241
  132. package/typedoc/classes/ErrorBoundary.html +6 -6
  133. package/typedoc/classes/IntentAction.ShowUndo.html +125 -125
  134. package/typedoc/classes/IntentAction.Track.html +239 -239
  135. package/typedoc/classes/LayoutAction.AddToast.html +163 -163
  136. package/typedoc/classes/LayoutAction.Close.html +352 -352
  137. package/typedoc/classes/LayoutAction.Expose.html +238 -238
  138. package/typedoc/classes/LayoutAction.Open.html +904 -748
  139. package/typedoc/classes/LayoutAction.RevertWorkspace.html +241 -241
  140. package/typedoc/classes/LayoutAction.ScrollIntoView.html +280 -280
  141. package/typedoc/classes/LayoutAction.Set.html +436 -358
  142. package/typedoc/classes/LayoutAction.SetLayoutMode.html +469 -391
  143. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +238 -238
  144. package/typedoc/classes/LayoutAction.UpdateComplementary.html +358 -358
  145. package/typedoc/classes/LayoutAction.UpdateDialog.html +553 -475
  146. package/typedoc/classes/LayoutAction.UpdateLayout.html +281 -281
  147. package/typedoc/classes/LayoutAction.UpdatePopover.html +826 -826
  148. package/typedoc/classes/LayoutAction.UpdateSidebar.html +397 -319
  149. package/typedoc/classes/Plugin.html +3 -3
  150. package/typedoc/classes/PluginContext.html +38 -0
  151. package/typedoc/classes/PluginManager.html +17 -16
  152. package/typedoc/classes/PluginModule.html +9 -9
  153. package/typedoc/classes/SettingsAction.Open.html +199 -199
  154. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +124 -124
  155. package/typedoc/functions/Events.createStateEvent.html +2 -2
  156. package/typedoc/functions/IntentPlugin.html +1 -1
  157. package/typedoc/functions/SettingsPlugin.html +1 -1
  158. package/typedoc/functions/allOf.html +2 -2
  159. package/typedoc/functions/chain.html +2 -2
  160. package/typedoc/functions/contributes.html +2 -2
  161. package/typedoc/functions/createApp.html +2 -2
  162. package/typedoc/functions/createDispatcher.html +3 -3
  163. package/typedoc/functions/createIntent.html +3 -3
  164. package/typedoc/functions/createResolver.html +2 -2
  165. package/typedoc/functions/createSurface.html +2 -2
  166. package/typedoc/functions/defineCapability.html +2 -2
  167. package/typedoc/functions/defineEvent.html +2 -2
  168. package/typedoc/functions/defineModule.html +2 -2
  169. package/typedoc/functions/definePlugin.html +2 -2
  170. package/typedoc/functions/eventKey.html +2 -2
  171. package/typedoc/functions/getEvents.html +2 -2
  172. package/typedoc/functions/isAllOf.html +2 -2
  173. package/typedoc/functions/isOneOf.html +2 -2
  174. package/typedoc/functions/isSurfaceAvailable.html +2 -2
  175. package/typedoc/functions/lazy.html +2 -2
  176. package/typedoc/functions/oneOf.html +2 -2
  177. package/typedoc/functions/useAppGraph.html +1 -1
  178. package/typedoc/functions/useCapabilities.html +3 -3
  179. package/typedoc/functions/useCapability.html +3 -3
  180. package/typedoc/functions/useIntentDispatcher.html +1 -1
  181. package/typedoc/functions/useIntentResolver.html +1 -1
  182. package/typedoc/functions/useLayout.html +1 -1
  183. package/typedoc/functions/usePluginManager.html +2 -2
  184. package/typedoc/hierarchy.html +1 -1
  185. package/typedoc/index.html +2 -2
  186. package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
  187. package/typedoc/modules/Capabilities.html +1 -1
  188. package/typedoc/modules/CollaborationActions.html +1 -1
  189. package/typedoc/modules/Events.html +1 -1
  190. package/typedoc/modules/IntentAction.html +1 -1
  191. package/typedoc/modules/LayoutAction.html +2 -2
  192. package/typedoc/modules/SettingsAction.html +1 -1
  193. package/typedoc/modules.html +1 -1
  194. package/typedoc/types/ActivationEvent.html +3 -3
  195. package/typedoc/types/ActivationEvents.html +2 -2
  196. package/typedoc/types/AnyCapability.html +1 -1
  197. package/typedoc/types/AnyIntent.html +1 -1
  198. package/typedoc/types/AnyIntentChain.html +1 -1
  199. package/typedoc/types/AnyIntentEffectResult.html +1 -1
  200. package/typedoc/types/AnyIntentResolver.html +1 -1
  201. package/typedoc/types/AnyIntentResult.html +1 -1
  202. package/typedoc/types/Capabilities.FileUploader.html +1 -1
  203. package/typedoc/types/Capabilities.IntentResolver.html +1 -1
  204. package/typedoc/types/Capabilities.Layout.html +1 -1
  205. package/typedoc/types/Capabilities.Metadata.html +1 -1
  206. package/typedoc/types/Capabilities.ReactContext.html +1 -1
  207. package/typedoc/types/Capabilities.ReactRoot.html +1 -1
  208. package/typedoc/types/Capabilities.ReactSurface.html +1 -1
  209. package/typedoc/types/Capabilities.Settings.html +2 -2
  210. package/typedoc/types/Capability.html +5 -5
  211. package/typedoc/types/CreateAppOptions.html +3 -2
  212. package/typedoc/types/FileInfo.html +1 -1
  213. package/typedoc/types/Intent.html +6 -10
  214. package/typedoc/types/IntentChain.html +3 -3
  215. package/typedoc/types/IntentContext.html +2 -2
  216. package/typedoc/types/IntentData.html +1 -1
  217. package/typedoc/types/IntentDispatcher.html +2 -2
  218. package/typedoc/types/IntentDispatcherResult.html +2 -2
  219. package/typedoc/types/IntentEffectDefinition.html +2 -2
  220. package/typedoc/types/IntentEffectResult.html +6 -6
  221. package/typedoc/types/IntentParams.html +2 -2
  222. package/typedoc/types/IntentResolver.html +2 -2
  223. package/typedoc/types/IntentResultData.html +1 -1
  224. package/typedoc/types/IntentSchema.html +1 -1
  225. package/typedoc/types/IntentUndo.html +2 -2
  226. package/typedoc/types/InterfaceDef.html +3 -3
  227. package/typedoc/types/Label.html +1 -1
  228. package/typedoc/types/NodeSerializer.html +3 -3
  229. package/typedoc/types/PluginManagerOptions.html +3 -2
  230. package/typedoc/types/PluginMeta.html +9 -9
  231. package/typedoc/types/PromiseIntentDispatcher.html +2 -2
  232. package/typedoc/types/PromiseIntentUndo.html +2 -2
  233. package/typedoc/types/Resource.html +1 -1
  234. package/typedoc/types/ResourceKey.html +1 -1
  235. package/typedoc/types/ResourceLanguage.html +1 -1
  236. package/typedoc/types/SerializedNode.html +2 -2
  237. package/typedoc/types/SurfaceComponent.html +2 -2
  238. package/typedoc/types/SurfaceDefinition.html +2 -2
  239. package/typedoc/types/SurfaceProps.html +2 -2
  240. package/typedoc/variables/Capabilities.AppGraph.html +1 -1
  241. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
  242. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
  243. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
  244. package/typedoc/variables/Capabilities.FileUploader.html +1 -1
  245. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
  246. package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
  247. package/typedoc/variables/Capabilities.Layout.html +1 -1
  248. package/typedoc/variables/Capabilities.Metadata.html +1 -1
  249. package/typedoc/variables/Capabilities.Null.html +1 -1
  250. package/typedoc/variables/Capabilities.PluginManager.html +1 -1
  251. package/typedoc/variables/Capabilities.ReactContext.html +1 -1
  252. package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
  253. package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
  254. package/typedoc/variables/Capabilities.RxRegistry.html +1 -0
  255. package/typedoc/variables/Capabilities.Settings.html +1 -1
  256. package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
  257. package/typedoc/variables/Capabilities.Tools.html +1 -1
  258. package/typedoc/variables/Capabilities.Translations.html +1 -1
  259. package/typedoc/variables/Events.AppGraphReady.html +2 -2
  260. package/typedoc/variables/Events.DispatcherReady.html +2 -2
  261. package/typedoc/variables/Events.LayoutReady.html +1 -1
  262. package/typedoc/variables/Events.SettingsReady.html +2 -2
  263. package/typedoc/variables/Events.SetupAppGraph.html +2 -2
  264. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
  265. package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
  266. package/typedoc/variables/Events.SetupMetadata.html +2 -2
  267. package/typedoc/variables/Events.SetupReactSurface.html +2 -2
  268. package/typedoc/variables/Events.SetupSettings.html +2 -2
  269. package/typedoc/variables/Events.SetupTranslations.html +2 -2
  270. package/typedoc/variables/Events.Startup.html +2 -2
  271. package/typedoc/variables/FileInfoSchema.html +1 -1
  272. package/typedoc/variables/INTENT_ACTION.html +1 -1
  273. package/typedoc/variables/INTENT_PLUGIN.html +1 -1
  274. package/typedoc/variables/LAYOUT_ACTION.html +1 -1
  275. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
  276. package/typedoc/variables/Label.html +1 -1
  277. package/typedoc/variables/LayoutAction.Toast.html +1 -1
  278. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
  279. package/typedoc/variables/PluginManagerProvider.html +2 -2
  280. package/typedoc/variables/Resource.html +2 -2
  281. package/typedoc/variables/ResourceKey.html +1 -1
  282. package/typedoc/variables/ResourceLanguage.html +1 -1
  283. package/typedoc/variables/SETTINGS_ACTION.html +1 -1
  284. package/typedoc/variables/SETTINGS_ID.html +1 -1
  285. package/typedoc/variables/SETTINGS_KEY.html +1 -1
  286. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
  287. package/typedoc/variables/Surface.html +2 -2
  288. package/typedoc/variables/defaultFileTypes.html +1 -1
  289. package/dist/lib/browser/app-graph-builder-OHM2Z6YQ.mjs.map +0 -7
  290. package/dist/lib/browser/chunk-DVNSCQJ5.mjs.map +0 -7
  291. package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +0 -7
  292. package/dist/lib/browser/chunk-X2YC645Z.mjs.map +0 -7
  293. package/dist/lib/browser/store-XMPVLJOQ.mjs.map +0 -7
  294. package/dist/lib/node/app-graph-builder-Z45FKS52.cjs +0 -146
  295. package/dist/lib/node/app-graph-builder-Z45FKS52.cjs.map +0 -7
  296. package/dist/lib/node/chunk-5UOVF3OR.cjs.map +0 -7
  297. package/dist/lib/node/chunk-I3CJYEBC.cjs.map +0 -7
  298. package/dist/lib/node/chunk-JUSEAFDU.cjs.map +0 -7
  299. package/dist/lib/node/store-N7JLYYDI.cjs.map +0 -7
  300. package/dist/lib/node-esm/app-graph-builder-OMH534A4.mjs.map +0 -7
  301. package/dist/lib/node-esm/chunk-GSDBF2CK.mjs.map +0 -7
  302. package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +0 -7
  303. package/dist/lib/node-esm/chunk-QHXUTJHE.mjs.map +0 -7
  304. package/dist/lib/node-esm/store-M2BYJL6K.mjs.map +0 -7
  305. package/typedoc/classes/PluginsContext.html +0 -25
  306. /package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs.map → intent-dispatcher-VGUJBPPN.mjs.map} +0 -0
  307. /package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs.map → intent-resolver-QLFZY5R5.mjs.map} +0 -0
  308. /package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs.map → intent-resolver-5CG5NIJY.cjs.map} +0 -0
  309. /package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs.map → intent-dispatcher-ZUSNX2OY.mjs.map} +0 -0
  310. /package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs.map → intent-resolver-NGDHUKDD.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 { useRxValue } from '@effect-rx/rx-react';\n\nimport { invariant } from '@dxos/invariant';\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>(interfaceDef: InterfaceDef<T>) => {\n const manager = usePluginManager();\n return useRxValue(manager.context.capabilities(interfaceDef));\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>(interfaceDef: InterfaceDef<T>) => {\n const capabilities = useCapabilities(interfaceDef);\n invariant(capabilities.length > 0, `No capability found for ${interfaceDef.identifier}`);\n return capabilities[0];\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 PluginContext } 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: PluginContext, { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n const surfaces = context.getCapabilities(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 { RegistryContext } from '@effect-rx/rx-react';\nimport { effect } from '@preact/signals-core';\nimport React, { useEffect, useState, type FC, type PropsWithChildren } from 'react';\n\nimport { invariant } from '@dxos/invariant';\nimport { live } 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 safeMode?: 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 * @param params.safeMode Whether to enable safe mode, which disables optional plugins.\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 safeMode = 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 = live({ ready: false, error: null });\n const cached: string[] = JSON.parse(localStorage.getItem(ENABLED_KEY) ?? '[]');\n const enabled = safeMode ? [] : 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 manager.context.contributeCapability({\n interface: Capabilities.RxRegistry,\n implementation: manager.registry,\n module: 'dxos.org/app-framework/rx-registry',\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 <RegistryContext.Provider value={manager.registry}>\n <App placeholder={placeholder} state={state} />\n </RegistryContext.Provider>\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,sBAA2B;AAE3B,uBAA0B;AEF1B,IAAAA,gBAAkE;ACAlE,IAAAA,gBAAqE;AAErE,yBAAgC;AAChC,kBAA2B;ACH3B,IAAAA,gBAA0B;ACA1B,IAAAC,mBAAgC;AAChC,0BAAuB;AACvB,IAAAD,gBAA4E;AAE5E,IAAAE,oBAA0B;AAC1B,yBAAqB;ANCrB,IAAMC,2BAAuBC,4BAAyCC,MAAAA;AAK/D,IAAMC,mBAAmB,UAC9BC,yBAAWJ,oBAAAA,SAAyBK,oBAAM,IAAIC,MAAM,8BAAA,CAAA;AAK/C,IAAMC,wBAAwBP,qBAAqBQ;;ACNnD,IAAMC,kBAAkB,CAAIC,iBAAAA;AACjC,QAAMC,UAAUR,iBAAAA;AAChB,aAAOS,4BAAWD,QAAQE,QAAQC,aAAaJ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AAE9I,SAAQ,MAChCJ,8BAAAA,QAAA,cAACiJ,KAAAA,MACCjJ,8BAAAA,QAAA,cAACkJ,MAAAA,MAAM9I,QAAAA,CAAAA,CAAAA;AAGf;AAEA,IAAMyG,gBAAgB,CAACxI,YAAAA;AACpB8K,aAAmBC,aAAa,CAAC;AACjCD,aAAmBC,SAAS/K,UAAUA;AACzC;",
6
+ "names": ["import_react", "import_rx_react", "import_invariant", "PluginManagerContext", "createContext", "undefined", "usePluginManager", "useContext", "raise", "Error", "PluginManagerProvider", "Provider", "useCapabilities", "interfaceDef", "manager", "useRxValue", "context", "capabilities", "useCapability", "invariant", "length", "identifier", "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", "useMemo", "flat", "findCandidates", "role", "Object", "values", "filter", "definition", "Array", "isArray", "includes", "toSorted", "byPosition", "isSurfaceAvailable", "getCapabilities", "candidates", "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", "safeMode", "plugin", "live", "ready", "cached", "JSON", "parse", "localStorage", "getItem", "enabled", "PluginManager", "activation", "on", "event", "_state", "Events", "Startup", "effect", "setItem", "stringify", "RxRegistry", "registry", "setupDevtools", "activate", "SetupReactSurface", "value", "RegistryContext", "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
+ }
@@ -16,15 +16,15 @@ 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 chunk_JUSEAFDU_exports = {};
20
- __export(chunk_JUSEAFDU_exports, {
19
+ var chunk_JQMNABMK_exports = {};
20
+ __export(chunk_JQMNABMK_exports, {
21
21
  SETTINGS_ACTION: () => SETTINGS_ACTION,
22
22
  SETTINGS_ID: () => SETTINGS_ID,
23
23
  SETTINGS_KEY: () => SETTINGS_KEY,
24
24
  SETTINGS_PLUGIN: () => SETTINGS_PLUGIN,
25
25
  SettingsAction: () => SettingsAction
26
26
  });
27
- module.exports = __toCommonJS(chunk_JUSEAFDU_exports);
27
+ module.exports = __toCommonJS(chunk_JQMNABMK_exports);
28
28
  var import_effect = require("effect");
29
29
  var SETTINGS_PLUGIN = "dxos.org/plugin/settings";
30
30
  var SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;
@@ -55,4 +55,4 @@ var SettingsAction;
55
55
  SETTINGS_PLUGIN,
56
56
  SettingsAction
57
57
  });
58
- //# sourceMappingURL=chunk-JUSEAFDU.cjs.map
58
+ //# sourceMappingURL=chunk-JQMNABMK.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/plugin-settings/actions.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nexport const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\nexport const SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;\n// TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n// Ideally this should be worked into the data model in a generic way.\nexport const SETTINGS_ID = '!dxos:settings';\nexport const SETTINGS_KEY = 'settings';\n\nexport namespace SettingsAction {\n export class Open extends Schema.TaggedClass<Open>()(`${SETTINGS_ACTION}/open`, {\n input: Schema.Struct({\n plugin: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class OpenPluginRegistry extends Schema.TaggedClass<OpenPluginRegistry>()(\n `${SETTINGS_ACTION}/open-plugin-registry`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEhB,IAAMA,kBAAkB;AACxB,IAAMC,kBAAkB,GAAGD,eAAAA;AAG3B,IAAME,cAAc;AACpB,IAAMC,eAAe;;UAEXC,iBAAAA;EACR,MAAMC,aAAaC,qBAAOC,YAAW,EAAS,GAAGN,eAAAA,SAAwB;IAC9EO,OAAOF,qBAAOG,OAAO;MACnBC,QAAQJ,qBAAOK,SAASL,qBAAOM,MAAM;IACvC,CAAA;IACAC,QAAQP,qBAAOQ;EACjB,CAAA,EAAA;EAAI;kBALST,OAAAA;EAON,MAAMU,2BAA2BT,qBAAOC,YAAW,EACxD,GAAGN,eAAAA,yBACH;IACEO,OAAOF,qBAAOQ;IACdD,QAAQP,qBAAOQ;EACjB,CAAA,EAAA;EACC;kBANUC,qBAAAA;AAOf,GAfiBX,mBAAAA,iBAAAA,CAAAA,EAAAA;",
6
+ "names": ["SETTINGS_PLUGIN", "SETTINGS_ACTION", "SETTINGS_ID", "SETTINGS_KEY", "SettingsAction", "Open", "Schema", "TaggedClass", "input", "Struct", "plugin", "optional", "String", "output", "Void", "OpenPluginRegistry"]
7
+ }
@@ -28,71 +28,71 @@ 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_I3CJYEBC.Capabilities,
32
- CollaborationActions: () => import_chunk_I3CJYEBC.CollaborationActions,
33
- ErrorBoundary: () => import_chunk_5UOVF3OR.ErrorBoundary,
34
- Events: () => import_chunk_I3CJYEBC.Events,
35
- FileInfoSchema: () => import_chunk_I3CJYEBC.FileInfoSchema,
36
- INTENT_ACTION: () => import_chunk_I3CJYEBC.INTENT_ACTION,
37
- INTENT_PLUGIN: () => import_chunk_I3CJYEBC.INTENT_PLUGIN,
38
- IntentAction: () => import_chunk_I3CJYEBC.IntentAction,
39
- IntentPlugin: () => import_chunk_I3CJYEBC.IntentPlugin,
40
- LAYOUT_ACTION: () => import_chunk_I3CJYEBC.LAYOUT_ACTION,
41
- LAYOUT_PLUGIN: () => import_chunk_I3CJYEBC.LAYOUT_PLUGIN,
42
- Label: () => import_chunk_I3CJYEBC.Label,
43
- LayoutAction: () => import_chunk_I3CJYEBC.LayoutAction,
44
- Plugin: () => import_chunk_I3CJYEBC.Plugin,
45
- PluginManager: () => import_chunk_I3CJYEBC.PluginManager,
46
- PluginManagerProvider: () => import_chunk_5UOVF3OR.PluginManagerProvider,
47
- PluginModule: () => import_chunk_I3CJYEBC.PluginModule,
48
- PluginsContext: () => import_chunk_I3CJYEBC.PluginsContext,
49
- Resource: () => import_chunk_I3CJYEBC.Resource,
50
- ResourceKey: () => import_chunk_I3CJYEBC.ResourceKey,
51
- ResourceLanguage: () => import_chunk_I3CJYEBC.ResourceLanguage,
52
- SETTINGS_ACTION: () => import_chunk_JUSEAFDU.SETTINGS_ACTION,
53
- SETTINGS_ID: () => import_chunk_JUSEAFDU.SETTINGS_ID,
54
- SETTINGS_KEY: () => import_chunk_JUSEAFDU.SETTINGS_KEY,
55
- SETTINGS_PLUGIN: () => import_chunk_JUSEAFDU.SETTINGS_PLUGIN,
56
- SettingsAction: () => import_chunk_JUSEAFDU.SettingsAction,
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,
57
57
  SettingsPlugin: () => SettingsPlugin,
58
- Surface: () => import_chunk_5UOVF3OR.Surface,
59
- allOf: () => import_chunk_I3CJYEBC.allOf,
60
- chain: () => import_chunk_I3CJYEBC.chain,
61
- contributes: () => import_chunk_I3CJYEBC.contributes,
62
- createApp: () => import_chunk_5UOVF3OR.createApp,
63
- createDispatcher: () => import_chunk_I3CJYEBC.createDispatcher,
64
- createIntent: () => import_chunk_I3CJYEBC.createIntent,
65
- createResolver: () => import_chunk_I3CJYEBC.createResolver,
66
- createSurface: () => import_chunk_I3CJYEBC.createSurface,
67
- defaultFileTypes: () => import_chunk_I3CJYEBC.defaultFileTypes,
68
- defineCapability: () => import_chunk_I3CJYEBC.defineCapability,
69
- defineEvent: () => import_chunk_I3CJYEBC.defineEvent,
70
- defineModule: () => import_chunk_I3CJYEBC.defineModule,
71
- definePlugin: () => import_chunk_I3CJYEBC.definePlugin,
72
- eventKey: () => import_chunk_I3CJYEBC.eventKey,
73
- getEvents: () => import_chunk_I3CJYEBC.getEvents,
74
- isAllOf: () => import_chunk_I3CJYEBC.isAllOf,
75
- isOneOf: () => import_chunk_I3CJYEBC.isOneOf,
76
- isSurfaceAvailable: () => import_chunk_5UOVF3OR.isSurfaceAvailable,
77
- lazy: () => import_chunk_I3CJYEBC.lazy,
78
- oneOf: () => import_chunk_I3CJYEBC.oneOf,
79
- useAppGraph: () => import_chunk_5UOVF3OR.useAppGraph,
80
- useCapabilities: () => import_chunk_5UOVF3OR.useCapabilities,
81
- useCapability: () => import_chunk_5UOVF3OR.useCapability,
82
- useIntentDispatcher: () => import_chunk_5UOVF3OR.useIntentDispatcher,
83
- useIntentResolver: () => import_chunk_5UOVF3OR.useIntentResolver,
84
- useLayout: () => import_chunk_5UOVF3OR.useLayout,
85
- usePluginManager: () => import_chunk_5UOVF3OR.usePluginManager,
86
- useSurfaces: () => import_chunk_5UOVF3OR.useSurfaces
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
87
87
  });
88
88
  module.exports = __toCommonJS(node_exports);
89
- var import_chunk_5UOVF3OR = require("./chunk-5UOVF3OR.cjs");
90
- var import_chunk_JUSEAFDU = require("./chunk-JUSEAFDU.cjs");
91
- var import_chunk_I3CJYEBC = require("./chunk-I3CJYEBC.cjs");
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");
92
92
  var translations_default = [
93
93
  {
94
94
  "en-US": {
95
- [import_chunk_JUSEAFDU.SETTINGS_PLUGIN]: {
95
+ [import_chunk_JQMNABMK.SETTINGS_PLUGIN]: {
96
96
  "open settings label": "Open settings",
97
97
  "app settings label": "Settings",
98
98
  "custom plugins label": "Plugins"
@@ -100,35 +100,35 @@ var translations_default = [
100
100
  }
101
101
  }
102
102
  ];
103
- var SettingsPlugin = () => (0, import_chunk_I3CJYEBC.definePlugin)({
104
- id: import_chunk_JUSEAFDU.SETTINGS_PLUGIN,
103
+ var SettingsPlugin = () => (0, import_chunk_2EBZ2ICH.definePlugin)({
104
+ id: import_chunk_JQMNABMK.SETTINGS_PLUGIN,
105
105
  name: "Settings"
106
106
  }, [
107
- (0, import_chunk_I3CJYEBC.defineModule)({
108
- id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/store`,
109
- activatesOn: import_chunk_I3CJYEBC.Events.Startup,
107
+ (0, import_chunk_2EBZ2ICH.defineModule)({
108
+ id: `${import_chunk_JQMNABMK.SETTINGS_PLUGIN}/module/store`,
109
+ activatesOn: import_chunk_2EBZ2ICH.Events.Startup,
110
110
  activatesBefore: [
111
- import_chunk_I3CJYEBC.Events.SetupSettings
111
+ import_chunk_2EBZ2ICH.Events.SetupSettings
112
112
  ],
113
113
  activatesAfter: [
114
- import_chunk_I3CJYEBC.Events.SettingsReady
114
+ import_chunk_2EBZ2ICH.Events.SettingsReady
115
115
  ],
116
- activate: (0, import_chunk_I3CJYEBC.lazy)(() => import("./store-N7JLYYDI.cjs"))
116
+ activate: (0, import_chunk_2EBZ2ICH.lazy)(() => import("./store-IF3UR2KA.cjs"))
117
117
  }),
118
- (0, import_chunk_I3CJYEBC.defineModule)({
119
- id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/translations`,
120
- activatesOn: import_chunk_I3CJYEBC.Events.SetupTranslations,
121
- activate: () => (0, import_chunk_I3CJYEBC.contributes)(import_chunk_I3CJYEBC.Capabilities.Translations, translations_default)
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)
122
122
  }),
123
- (0, import_chunk_I3CJYEBC.defineModule)({
124
- id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/intent-resolver`,
125
- activatesOn: import_chunk_I3CJYEBC.Events.SetupIntentResolver,
126
- activate: (0, import_chunk_I3CJYEBC.lazy)(() => import("./intent-resolver-PBAOGJS6.cjs"))
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"))
127
127
  }),
128
- (0, import_chunk_I3CJYEBC.defineModule)({
129
- id: `${import_chunk_JUSEAFDU.SETTINGS_PLUGIN}/module/app-graph-builder`,
130
- activatesOn: import_chunk_I3CJYEBC.Events.SetupAppGraph,
131
- activate: (0, import_chunk_I3CJYEBC.lazy)(() => import("./app-graph-builder-Z45FKS52.cjs"))
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"))
132
132
  })
133
133
  ]);
134
134
  // Annotate the CommonJS export names for ESM import in node:
@@ -147,10 +147,10 @@ var SettingsPlugin = () => (0, import_chunk_I3CJYEBC.definePlugin)({
147
147
  Label,
148
148
  LayoutAction,
149
149
  Plugin,
150
+ PluginContext,
150
151
  PluginManager,
151
152
  PluginManagerProvider,
152
153
  PluginModule,
153
- PluginsContext,
154
154
  Resource,
155
155
  ResourceKey,
156
156
  ResourceLanguage,
@@ -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_FQPJNKIZ_exports = {};
20
- __export(intent_dispatcher_FQPJNKIZ_exports, {
21
- createDispatcher: () => import_chunk_I3CJYEBC.createDispatcher,
22
- createResolver: () => import_chunk_I3CJYEBC.createResolver,
23
- default: () => import_chunk_I3CJYEBC.intent_dispatcher_default
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
24
24
  });
25
- module.exports = __toCommonJS(intent_dispatcher_FQPJNKIZ_exports);
26
- var import_chunk_I3CJYEBC = require("./chunk-I3CJYEBC.cjs");
25
+ module.exports = __toCommonJS(intent_dispatcher_TASJBG5M_exports);
26
+ var import_chunk_2EBZ2ICH = require("./chunk-2EBZ2ICH.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-FQPJNKIZ.cjs.map
32
+ //# sourceMappingURL=intent-dispatcher-TASJBG5M.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["intent-dispatcher-FQPJNKIZ.cjs"],
4
- "sourcesContent": ["import {\n createDispatcher,\n createResolver,\n intent_dispatcher_default\n} from \"./chunk-I3CJYEBC.cjs\";\nexport {\n createDispatcher,\n createResolver,\n intent_dispatcher_default as default\n};\n//# sourceMappingURL=intent-dispatcher-FQPJNKIZ.cjs.map\n"],
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"],
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_PBAOGJS6_exports = {};
20
- __export(intent_resolver_PBAOGJS6_exports, {
19
+ var intent_resolver_5CG5NIJY_exports = {};
20
+ __export(intent_resolver_5CG5NIJY_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_PBAOGJS6_exports);
24
- var import_chunk_JUSEAFDU = require("./chunk-JUSEAFDU.cjs");
25
- var import_chunk_I3CJYEBC = require("./chunk-I3CJYEBC.cjs");
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");
26
26
  var import_effect = require("effect");
27
- var intent_resolver_default = () => (0, import_chunk_I3CJYEBC.contributes)(import_chunk_I3CJYEBC.Capabilities.IntentResolver, (0, import_chunk_I3CJYEBC.createResolver)({
28
- intent: import_chunk_JUSEAFDU.SettingsAction.Open,
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,
29
29
  resolve: ({ plugin }) => {
30
- const openSettings = (0, import_chunk_I3CJYEBC.createIntent)(import_chunk_I3CJYEBC.LayoutAction.SwitchWorkspace, {
30
+ const openSettings = (0, import_chunk_2EBZ2ICH.createIntent)(import_chunk_2EBZ2ICH.LayoutAction.SwitchWorkspace, {
31
31
  part: "workspace",
32
- subject: import_chunk_JUSEAFDU.SETTINGS_ID
32
+ subject: import_chunk_JQMNABMK.SETTINGS_ID
33
33
  });
34
34
  return {
35
35
  intents: [
36
- plugin ? (0, import_effect.pipe)(openSettings, (0, import_chunk_I3CJYEBC.chain)(import_chunk_I3CJYEBC.LayoutAction.Open, {
36
+ plugin ? (0, import_effect.pipe)(openSettings, (0, import_chunk_2EBZ2ICH.chain)(import_chunk_2EBZ2ICH.LayoutAction.Open, {
37
37
  part: "main",
38
38
  subject: [
39
- `${import_chunk_JUSEAFDU.SETTINGS_KEY}:${plugin.replaceAll("/", ":")}`
39
+ `${import_chunk_JQMNABMK.SETTINGS_KEY}:${plugin.replaceAll("/", ":")}`
40
40
  ]
41
41
  })) : openSettings
42
42
  ]
43
43
  };
44
44
  }
45
45
  }));
46
- //# sourceMappingURL=intent-resolver-PBAOGJS6.cjs.map
46
+ //# sourceMappingURL=intent-resolver-5CG5NIJY.cjs.map