@dxos/app-framework 0.8.4-main.f9ba587 → 0.8.4-main.fd6878d

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 (281) hide show
  1. package/.swc/plugins/v7_linux_x86_64_13.0.0/c614d7475354583212fbd7669acbae95b9832c305bf51bdaabe2e6de05abb6bf +0 -0
  2. package/dist/lib/browser/{app-graph-builder-BGGXLD6T.mjs → app-graph-builder-MOVKFH3J.mjs} +3 -3
  3. package/dist/lib/browser/app-graph-builder-MOVKFH3J.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-2636QSIK.mjs → chunk-NKCIDYDI.mjs} +304 -224
  5. package/dist/lib/browser/chunk-NKCIDYDI.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-DHZB7HG7.mjs → chunk-OSBZFKMO.mjs} +38 -23
  7. package/dist/lib/browser/chunk-OSBZFKMO.mjs.map +7 -0
  8. package/dist/lib/browser/index.mjs +5 -5
  9. package/dist/lib/browser/index.mjs.map +2 -2
  10. package/dist/lib/browser/{intent-dispatcher-TWKB22NI.mjs → intent-dispatcher-FTTJLVGN.mjs} +2 -2
  11. package/dist/lib/browser/{intent-resolver-O67UANYP.mjs → intent-resolver-ZCGEAG3E.mjs} +2 -2
  12. package/dist/lib/browser/intent-resolver-ZCGEAG3E.mjs.map +7 -0
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/{store-LFKDWHUQ.mjs → store-3QB6Q2BC.mjs} +2 -2
  15. package/dist/lib/browser/{store-LFKDWHUQ.mjs.map → store-3QB6Q2BC.mjs.map} +1 -1
  16. package/dist/lib/browser/testing/index.mjs +2 -2
  17. package/dist/lib/browser/testing/index.mjs.map +2 -2
  18. package/dist/lib/browser/worker.mjs +1 -1
  19. package/dist/lib/node-esm/{app-graph-builder-QHIJUYYW.mjs → app-graph-builder-ODE4B5GT.mjs} +3 -3
  20. package/dist/lib/node-esm/app-graph-builder-ODE4B5GT.mjs.map +7 -0
  21. package/dist/lib/node-esm/{chunk-NJAFK626.mjs → chunk-WU3QN5B6.mjs} +38 -23
  22. package/dist/lib/node-esm/chunk-WU3QN5B6.mjs.map +7 -0
  23. package/dist/lib/node-esm/{chunk-VSKRV3NW.mjs → chunk-YEN7NKTF.mjs} +304 -224
  24. package/dist/lib/node-esm/chunk-YEN7NKTF.mjs.map +7 -0
  25. package/dist/lib/node-esm/index.mjs +5 -5
  26. package/dist/lib/node-esm/index.mjs.map +2 -2
  27. package/dist/lib/node-esm/{intent-dispatcher-5PRM3KGH.mjs → intent-dispatcher-YQIQ55LJ.mjs} +2 -2
  28. package/dist/lib/node-esm/{intent-resolver-K3D4BXQQ.mjs → intent-resolver-KG27L7EQ.mjs} +2 -2
  29. package/dist/lib/node-esm/intent-resolver-KG27L7EQ.mjs.map +7 -0
  30. package/dist/lib/node-esm/meta.json +1 -1
  31. package/dist/lib/node-esm/{store-53XDUBMD.mjs → store-TIJAVO3D.mjs} +2 -2
  32. package/dist/lib/node-esm/{store-53XDUBMD.mjs.map → store-TIJAVO3D.mjs.map} +1 -1
  33. package/dist/lib/node-esm/testing/index.mjs +2 -2
  34. package/dist/lib/node-esm/testing/index.mjs.map +2 -2
  35. package/dist/lib/node-esm/worker.mjs +1 -1
  36. package/dist/types/src/App.d.ts +1 -1
  37. package/dist/types/src/App.d.ts.map +1 -1
  38. package/dist/types/src/common/capabilities.d.ts +82 -7
  39. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  40. package/dist/types/src/common/events.d.ts.map +1 -1
  41. package/dist/types/src/common/surface.d.ts +1 -1
  42. package/dist/types/src/common/surface.d.ts.map +1 -1
  43. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  44. package/dist/types/src/core/manager.d.ts +6 -2
  45. package/dist/types/src/core/manager.d.ts.map +1 -1
  46. package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
  47. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  48. package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
  49. package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
  50. package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
  51. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
  52. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +2 -2
  53. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  54. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
  55. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
  56. package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -1
  57. package/dist/types/src/plugin-settings/store.d.ts.map +1 -1
  58. package/dist/types/src/react/ErrorBoundary.d.ts +13 -14
  59. package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -1
  60. package/dist/types/src/react/IntentContext.d.ts.map +1 -1
  61. package/dist/types/src/react/Surface.d.ts.map +1 -1
  62. package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
  63. package/dist/types/src/react/common.d.ts.map +1 -1
  64. package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
  65. package/dist/types/src/testing/withPluginManager.d.ts +2 -0
  66. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  67. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  68. package/dist/types/tsconfig.tsbuildinfo +1 -1
  69. package/package.json +28 -24
  70. package/src/App.tsx +12 -4
  71. package/src/common/capabilities.ts +103 -10
  72. package/src/common/events.ts +3 -1
  73. package/src/common/surface.ts +1 -1
  74. package/src/core/capabilities.test.ts +1 -1
  75. package/src/core/capabilities.ts +1 -0
  76. package/src/core/manager.test.ts +4 -3
  77. package/src/core/manager.ts +132 -54
  78. package/src/helpers.test.ts +1 -1
  79. package/src/playground/generator/Toolbar.tsx +2 -1
  80. package/src/playground/generator/generator.ts +2 -2
  81. package/src/playground/layout/plugin.ts +1 -1
  82. package/src/playground/logger/Toolbar.tsx +2 -1
  83. package/src/playground/logger/plugin.ts +3 -2
  84. package/src/playground/playground.stories.tsx +4 -3
  85. package/src/plugin-intent/IntentPlugin.ts +2 -1
  86. package/src/plugin-intent/intent-dispatcher.test.ts +1 -1
  87. package/src/plugin-intent/intent-dispatcher.ts +6 -5
  88. package/src/plugin-settings/SettingsPlugin.ts +3 -2
  89. package/src/plugin-settings/app-graph-builder.ts +4 -3
  90. package/src/plugin-settings/intent-resolver.ts +3 -2
  91. package/src/plugin-settings/store.ts +1 -1
  92. package/src/react/ErrorBoundary.tsx +24 -15
  93. package/src/react/IntentContext.tsx +3 -2
  94. package/src/react/Surface.stories.tsx +3 -2
  95. package/src/react/Surface.tsx +4 -3
  96. package/src/react/common.ts +2 -1
  97. package/src/react/useCapabilities.ts +2 -1
  98. package/src/testing/withPluginManager.stories.tsx +3 -2
  99. package/src/testing/withPluginManager.tsx +8 -5
  100. package/tsconfig.json +4 -1
  101. package/.eslintrc.cjs +0 -9
  102. package/.swc/plugins/v7_linux_x86_64_13.0.0/f45bdff002284d9e8f9ef3f0be909de12da36c049cbcf261ac78fc00abb09a2d +0 -0
  103. package/dist/lib/browser/app-graph-builder-BGGXLD6T.mjs.map +0 -7
  104. package/dist/lib/browser/chunk-2636QSIK.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-DHZB7HG7.mjs.map +0 -7
  106. package/dist/lib/browser/intent-resolver-O67UANYP.mjs.map +0 -7
  107. package/dist/lib/node-esm/app-graph-builder-QHIJUYYW.mjs.map +0 -7
  108. package/dist/lib/node-esm/chunk-NJAFK626.mjs.map +0 -7
  109. package/dist/lib/node-esm/chunk-VSKRV3NW.mjs.map +0 -7
  110. package/dist/lib/node-esm/intent-resolver-K3D4BXQQ.mjs.map +0 -7
  111. package/typedoc/.nojekyll +0 -1
  112. package/typedoc/assets/hierarchy.js +0 -1
  113. package/typedoc/assets/highlight.css +0 -106
  114. package/typedoc/assets/icons.js +0 -18
  115. package/typedoc/assets/icons.svg +0 -1
  116. package/typedoc/assets/main.js +0 -60
  117. package/typedoc/assets/navigation.js +0 -1
  118. package/typedoc/assets/search.js +0 -1
  119. package/typedoc/assets/style.css +0 -1640
  120. package/typedoc/classes/CollaborationActions.InsertContent.html +0 -421
  121. package/typedoc/classes/ErrorBoundary.html +0 -125
  122. package/typedoc/classes/IntentAction.ShowUndo.html +0 -227
  123. package/typedoc/classes/IntentAction.Track.html +0 -266
  124. package/typedoc/classes/LayoutAction.AddToast.html +0 -265
  125. package/typedoc/classes/LayoutAction.Close.html +0 -382
  126. package/typedoc/classes/LayoutAction.Expose.html +0 -265
  127. package/typedoc/classes/LayoutAction.Open.html +0 -1123
  128. package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
  129. package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
  130. package/typedoc/classes/LayoutAction.Set.html +0 -460
  131. package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -499
  132. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
  133. package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
  134. package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -1123
  135. package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
  136. package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
  137. package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -616
  138. package/typedoc/classes/Plugin.html +0 -6
  139. package/typedoc/classes/PluginContext.html +0 -38
  140. package/typedoc/classes/PluginManager.html +0 -43
  141. package/typedoc/classes/PluginModule.html +0 -18
  142. package/typedoc/classes/SettingsAction.Open.html +0 -226
  143. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +0 -265
  144. package/typedoc/functions/Events.createStateEvent.html +0 -2
  145. package/typedoc/functions/IntentPlugin.html +0 -1
  146. package/typedoc/functions/SettingsPlugin.html +0 -1
  147. package/typedoc/functions/allOf.html +0 -2
  148. package/typedoc/functions/chain.html +0 -3
  149. package/typedoc/functions/contributes.html +0 -2
  150. package/typedoc/functions/createDispatcher.html +0 -3
  151. package/typedoc/functions/createIntent.html +0 -6
  152. package/typedoc/functions/createResolver.html +0 -2
  153. package/typedoc/functions/createSurface.html +0 -2
  154. package/typedoc/functions/defineCapability.html +0 -2
  155. package/typedoc/functions/defineEvent.html +0 -2
  156. package/typedoc/functions/defineModule.html +0 -2
  157. package/typedoc/functions/definePlugin.html +0 -2
  158. package/typedoc/functions/eventKey.html +0 -2
  159. package/typedoc/functions/getEvents.html +0 -2
  160. package/typedoc/functions/isAllOf.html +0 -2
  161. package/typedoc/functions/isOneOf.html +0 -2
  162. package/typedoc/functions/isSurfaceAvailable.html +0 -2
  163. package/typedoc/functions/lazy.html +0 -2
  164. package/typedoc/functions/oneOf.html +0 -2
  165. package/typedoc/functions/useApp.html +0 -6
  166. package/typedoc/functions/useAppGraph.html +0 -1
  167. package/typedoc/functions/useCapabilities.html +0 -3
  168. package/typedoc/functions/useCapability.html +0 -4
  169. package/typedoc/functions/useIntentDispatcher.html +0 -1
  170. package/typedoc/functions/useIntentResolver.html +0 -1
  171. package/typedoc/functions/useLayout.html +0 -1
  172. package/typedoc/functions/usePluginManager.html +0 -2
  173. package/typedoc/hierarchy.html +0 -1
  174. package/typedoc/index.html +0 -12
  175. package/typedoc/interfaces/LayoutAction.Toast.html +0 -10
  176. package/typedoc/media/LICENSE +0 -8
  177. package/typedoc/modules/Capabilities.html +0 -1
  178. package/typedoc/modules/CollaborationActions.html +0 -1
  179. package/typedoc/modules/Events.html +0 -1
  180. package/typedoc/modules/IntentAction.html +0 -1
  181. package/typedoc/modules/LayoutAction.html +0 -2
  182. package/typedoc/modules/SettingsAction.html +0 -1
  183. package/typedoc/modules.html +0 -1
  184. package/typedoc/types/ActivationEvent.html +0 -8
  185. package/typedoc/types/ActivationEvents.html +0 -2
  186. package/typedoc/types/AnyCapability.html +0 -1
  187. package/typedoc/types/AnyIntent.html +0 -1
  188. package/typedoc/types/AnyIntentChain.html +0 -1
  189. package/typedoc/types/AnyIntentEffectResult.html +0 -1
  190. package/typedoc/types/AnyIntentResolver.html +0 -1
  191. package/typedoc/types/AnyIntentResult.html +0 -1
  192. package/typedoc/types/Capabilities.FileUploader.html +0 -1
  193. package/typedoc/types/Capabilities.IntentResolver.html +0 -1
  194. package/typedoc/types/Capabilities.Layout.html +0 -1
  195. package/typedoc/types/Capabilities.Metadata.html +0 -1
  196. package/typedoc/types/Capabilities.ReactContext.html +0 -1
  197. package/typedoc/types/Capabilities.ReactRoot.html +0 -1
  198. package/typedoc/types/Capabilities.ReactSurface.html +0 -1
  199. package/typedoc/types/Capabilities.Settings.html +0 -4
  200. package/typedoc/types/Capability.html +0 -9
  201. package/typedoc/types/CreateAppOptions.html +0 -10
  202. package/typedoc/types/FileInfo.html +0 -1
  203. package/typedoc/types/Intent.html +0 -10
  204. package/typedoc/types/IntentChain.html +0 -6
  205. package/typedoc/types/IntentContext.html +0 -5
  206. package/typedoc/types/IntentData.html +0 -1
  207. package/typedoc/types/IntentDispatcher.html +0 -2
  208. package/typedoc/types/IntentDispatcherResult.html +0 -2
  209. package/typedoc/types/IntentEffectDefinition.html +0 -2
  210. package/typedoc/types/IntentEffectResult.html +0 -15
  211. package/typedoc/types/IntentParams.html +0 -3
  212. package/typedoc/types/IntentResolver.html +0 -2
  213. package/typedoc/types/IntentResultData.html +0 -1
  214. package/typedoc/types/IntentSchema.html +0 -1
  215. package/typedoc/types/IntentUndo.html +0 -2
  216. package/typedoc/types/InterfaceDef.html +0 -4
  217. package/typedoc/types/Label.html +0 -1
  218. package/typedoc/types/NodeSerializer.html +0 -8
  219. package/typedoc/types/PluginManagerOptions.html +0 -6
  220. package/typedoc/types/PluginMeta.html +0 -21
  221. package/typedoc/types/PromiseIntentDispatcher.html +0 -2
  222. package/typedoc/types/PromiseIntentUndo.html +0 -2
  223. package/typedoc/types/Resource.html +0 -1
  224. package/typedoc/types/ResourceKey.html +0 -1
  225. package/typedoc/types/ResourceLanguage.html +0 -1
  226. package/typedoc/types/SerializedNode.html +0 -4
  227. package/typedoc/types/SurfaceComponent.html +0 -2
  228. package/typedoc/types/SurfaceDefinition.html +0 -2
  229. package/typedoc/types/SurfaceProps.html +0 -4
  230. package/typedoc/variables/Capabilities.AnchorSort.html +0 -1
  231. package/typedoc/variables/Capabilities.AppGraph.html +0 -1
  232. package/typedoc/variables/Capabilities.AppGraphBuilder.html +0 -1
  233. package/typedoc/variables/Capabilities.AppGraphSerializer.html +0 -1
  234. package/typedoc/variables/Capabilities.ArtifactDefinition.html +0 -1
  235. package/typedoc/variables/Capabilities.FileUploader.html +0 -1
  236. package/typedoc/variables/Capabilities.IntentDispatcher.html +0 -1
  237. package/typedoc/variables/Capabilities.IntentResolver.html +0 -1
  238. package/typedoc/variables/Capabilities.Layout.html +0 -1
  239. package/typedoc/variables/Capabilities.Metadata.html +0 -1
  240. package/typedoc/variables/Capabilities.Null.html +0 -1
  241. package/typedoc/variables/Capabilities.PluginManager.html +0 -1
  242. package/typedoc/variables/Capabilities.ReactContext.html +0 -1
  243. package/typedoc/variables/Capabilities.ReactRoot.html +0 -1
  244. package/typedoc/variables/Capabilities.ReactSurface.html +0 -1
  245. package/typedoc/variables/Capabilities.RxRegistry.html +0 -1
  246. package/typedoc/variables/Capabilities.Settings.html +0 -1
  247. package/typedoc/variables/Capabilities.SettingsStore.html +0 -1
  248. package/typedoc/variables/Capabilities.Tools.html +0 -1
  249. package/typedoc/variables/Capabilities.Translations.html +0 -1
  250. package/typedoc/variables/Events.AppGraphReady.html +0 -2
  251. package/typedoc/variables/Events.DispatcherReady.html +0 -2
  252. package/typedoc/variables/Events.LayoutReady.html +0 -1
  253. package/typedoc/variables/Events.SettingsReady.html +0 -2
  254. package/typedoc/variables/Events.SetupAppGraph.html +0 -2
  255. package/typedoc/variables/Events.SetupArtifactDefinition.html +0 -2
  256. package/typedoc/variables/Events.SetupIntentResolver.html +0 -2
  257. package/typedoc/variables/Events.SetupMetadata.html +0 -2
  258. package/typedoc/variables/Events.SetupReactSurface.html +0 -2
  259. package/typedoc/variables/Events.SetupSettings.html +0 -2
  260. package/typedoc/variables/Events.SetupTranslations.html +0 -2
  261. package/typedoc/variables/Events.Startup.html +0 -2
  262. package/typedoc/variables/FileInfoSchema.html +0 -1
  263. package/typedoc/variables/INTENT_ACTION.html +0 -1
  264. package/typedoc/variables/INTENT_PLUGIN.html +0 -1
  265. package/typedoc/variables/LAYOUT_ACTION.html +0 -1
  266. package/typedoc/variables/LAYOUT_PLUGIN.html +0 -1
  267. package/typedoc/variables/Label.html +0 -1
  268. package/typedoc/variables/LayoutAction.Toast.html +0 -1
  269. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +0 -1
  270. package/typedoc/variables/PluginManagerProvider.html +0 -2
  271. package/typedoc/variables/Resource.html +0 -2
  272. package/typedoc/variables/ResourceKey.html +0 -1
  273. package/typedoc/variables/ResourceLanguage.html +0 -1
  274. package/typedoc/variables/SETTINGS_ACTION.html +0 -1
  275. package/typedoc/variables/SETTINGS_ID.html +0 -1
  276. package/typedoc/variables/SETTINGS_KEY.html +0 -1
  277. package/typedoc/variables/SETTINGS_PLUGIN.html +0 -1
  278. package/typedoc/variables/Surface.html +0 -2
  279. package/typedoc/variables/defaultFileTypes.html +0 -1
  280. /package/dist/lib/browser/{intent-dispatcher-TWKB22NI.mjs.map → intent-dispatcher-FTTJLVGN.mjs.map} +0 -0
  281. /package/dist/lib/node-esm/{intent-dispatcher-5PRM3KGH.mjs.map → intent-dispatcher-YQIQ55LJ.mjs.map} +0 -0
@@ -8,12 +8,12 @@ import {
8
8
  Capabilities,
9
9
  contributes,
10
10
  createIntent
11
- } from "./chunk-2636QSIK.mjs";
11
+ } from "./chunk-NKCIDYDI.mjs";
12
12
 
13
13
  // src/plugin-settings/app-graph-builder.ts
14
14
  import { Rx } from "@effect-rx/rx-react";
15
15
  import { Option, pipe } from "effect";
16
- import { createExtension, ROOT_ID } from "@dxos/app-graph";
16
+ import { ROOT_ID, createExtension } from "@dxos/app-graph";
17
17
  import { isNonNullable } from "@dxos/util";
18
18
  var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
19
19
  createExtension({
@@ -134,4 +134,4 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
134
134
  export {
135
135
  app_graph_builder_default as default
136
136
  };
137
- //# sourceMappingURL=app-graph-builder-BGGXLD6T.mjs.map
137
+ //# sourceMappingURL=app-graph-builder-MOVKFH3J.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/plugin-settings/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { ROOT_ID, createExtension } from '@dxos/app-graph';\nimport { type SettingsStore, type SettingsValue } from '@dxos/local-storage';\nimport { isNonNullable } from '@dxos/util';\n\nimport { Capabilities } from '../common';\nimport { type PluginContext, type PluginMeta, contributes } from '../core';\nimport { createIntent } from '../plugin-intent';\n\nimport { SETTINGS_ID, SETTINGS_KEY, SETTINGS_PLUGIN, SettingsAction } from './actions';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${SETTINGS_PLUGIN}/action`,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: SETTINGS_PLUGIN,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(SettingsAction.Open));\n },\n properties: {\n label: ['open settings label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--gear--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+,',\n windows: 'alt+,',\n },\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: SETTINGS_ID,\n type: SETTINGS_PLUGIN,\n properties: {\n label: ['app settings label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--gear--regular',\n disposition: 'pin-end',\n position: 'hoist',\n testId: 'treeView.appSettings',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core-plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id !== SETTINGS_ID ? Option.none() : Option.some(node))),\n Option.map(() => {\n const manager = get(context.capability(Capabilities.PluginManager));\n const [settingsStore] = get(context.capabilities(Capabilities.SettingsStore));\n return [\n ...manager.plugins\n .filter((plugin) => manager.core.includes(plugin.meta.id))\n .map((plugin): [PluginMeta, SettingsStore<SettingsValue>] | null => {\n const settings = settingsStore?.getStore(plugin.meta.id);\n if (!settings) {\n return null;\n }\n\n return [plugin.meta, settings];\n })\n .filter(isNonNullable)\n .map(([meta, settings]) => ({\n id: `${SETTINGS_KEY}:${meta.id.replaceAll('/', ':')}`,\n type: 'category',\n data: settings,\n properties: {\n label: meta.name ?? meta.id,\n icon: meta.icon ?? 'ph--circle--regular',\n },\n })),\n\n {\n id: `${SETTINGS_KEY}:custom-plugins`,\n type: 'category',\n properties: {\n label: ['custom plugins label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--squares-four--regular',\n role: 'branch',\n disposition: 'collection',\n },\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/custom-plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) =>\n node.id !== `${SETTINGS_KEY}:custom-plugins` ? Option.none() : Option.some(node),\n ),\n Option.map(() => {\n const manager = get(context.capability(Capabilities.PluginManager));\n const [settingsStore] = get(context.capabilities(Capabilities.SettingsStore));\n return manager.plugins\n .filter((plugin) => !manager.core.includes(plugin.meta.id))\n .map((plugin): [PluginMeta, SettingsStore<SettingsValue>] | null => {\n const settings = settingsStore?.getStore(plugin.meta.id);\n if (!settings) {\n return null;\n }\n\n return [plugin.meta, settings];\n })\n .filter(isNonNullable)\n .map(([meta, settings]) => ({\n id: `${SETTINGS_KEY}:${meta.id.replaceAll('/', ':')}`,\n type: 'category',\n data: settings,\n properties: {\n label: meta.name ?? meta.id,\n icon: meta.icon ?? 'ph--circle--regular',\n },\n }));\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAIA,SAASA,UAAU;AACnB,SAASC,QAAQC,YAAY;AAE7B,SAASC,SAASC,uBAAuB;AAEzC,SAASC,qBAAqB;AAQ9B,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;EACxCC,gBAAgB;IACdC,IAAI,GAAGC,eAAAA;IACPC,SAAS,CAACC,SACRC,GAAGC,KAAK,CAACC,QACPC,KACED,IAAIH,IAAAA,GACJK,OAAOC,QAAQ,CAACN,UAAUA,MAAKH,OAAOU,UAAUF,OAAOG,KAAKR,KAAAA,IAAQK,OAAOI,KAAI,CAAA,GAC/EJ,OAAOK,IAAI,MAAM;MACf;QACEb,IAAIC;QACJa,MAAM,YAAA;AACJ,gBAAM,EAAEC,iBAAiBC,SAAQ,IAAKrB,QAAQsB,cAAcpB,aAAaqB,gBAAgB;AACzF,gBAAMF,SAASG,aAAaC,eAAeC,IAAI,CAAA;QACjD;QACAC,YAAY;UACVC,OAAO;YAAC;YAAuB;cAAEC,IAAIvB;YAAgB;;UACrDwB,MAAM;UACNC,aAAa;UACbC,YAAY;YACVC,OAAO;YACPC,SAAS;UACX;QACF;MACF;KACD,GACDrB,OAAOsB,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;EACA/B,gBAAgB;IACdC,IAAI,GAAGC,eAAAA;IACP8B,WAAW,CAAC5B,SACVC,GAAGC,K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Y;UACVC,OAAOwB,KAAKM,QAAQN,KAAK/C;UACzByB,MAAMsB,KAAKtB,QAAQ;QACrB;MACF,EAAA;IACJ,CAAA,GACAjB,OAAOsB,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
6
+ "names": ["Rx", "Option", "pipe", "ROOT_ID", "createExtension", "isNonNullable", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "SETTINGS_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "ROOT_ID", "some", "none", "map", "data", "dispatchPromise", "dispatch", "getCapability", "IntentDispatcher", "createIntent", "SettingsAction", "Open", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "getOrElse", "connector", "SETTINGS_ID", "type", "position", "testId", "manager", "capability", "PluginManager", "settingsStore", "capabilities", "SettingsStore", "plugins", "filter", "plugin", "core", "includes", "meta", "settings", "getStore", "isNonNullable", "SETTINGS_KEY", "replaceAll", "name", "role"]
7
+ }