@dxos/app-framework 0.7.5-main.9d2a38b → 0.7.5-main.ff8607b

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 (181) hide show
  1. package/dist/lib/browser/app-graph-builder-F7VZ6LRN.mjs +137 -0
  2. package/dist/lib/browser/app-graph-builder-F7VZ6LRN.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-GNLU3GAU.mjs → chunk-ATRNTMSS.mjs} +623 -819
  4. package/dist/lib/browser/chunk-ATRNTMSS.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-LDJ3T4V3.mjs +32 -0
  6. package/dist/lib/browser/chunk-LDJ3T4V3.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-WS6SU6HI.mjs +285 -0
  8. package/dist/lib/browser/chunk-WS6SU6HI.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +57 -74
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/intent-dispatcher-E6J7E5Y5.mjs +11 -0
  12. package/dist/lib/browser/intent-dispatcher-E6J7E5Y5.mjs.map +7 -0
  13. package/dist/lib/browser/intent-resolver-XLE4L3LS.mjs +38 -0
  14. package/dist/lib/browser/intent-resolver-XLE4L3LS.mjs.map +7 -0
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/store-QU2IKFAI.mjs +19 -0
  17. package/dist/lib/browser/store-QU2IKFAI.mjs.map +7 -0
  18. package/dist/lib/browser/testing/index.mjs +10 -3
  19. package/dist/lib/browser/testing/index.mjs.map +3 -3
  20. package/dist/lib/browser/worker.mjs +77 -0
  21. package/dist/lib/browser/worker.mjs.map +7 -0
  22. package/dist/lib/node/app-graph-builder-JGBADFF7.cjs +146 -0
  23. package/dist/lib/node/app-graph-builder-JGBADFF7.cjs.map +7 -0
  24. package/dist/lib/node/chunk-QLVQ6PND.cjs +58 -0
  25. package/dist/lib/node/chunk-QLVQ6PND.cjs.map +7 -0
  26. package/dist/lib/node/chunk-WKC6YMEQ.cjs +1433 -0
  27. package/dist/lib/node/chunk-WKC6YMEQ.cjs.map +7 -0
  28. package/dist/lib/node/chunk-WRWRZKZU.cjs +308 -0
  29. package/dist/lib/node/chunk-WRWRZKZU.cjs.map +7 -0
  30. package/dist/lib/node/index.cjs +106 -118
  31. package/dist/lib/node/index.cjs.map +4 -4
  32. package/dist/lib/node/intent-dispatcher-CFBKDZQR.cjs +32 -0
  33. package/dist/lib/node/intent-dispatcher-CFBKDZQR.cjs.map +7 -0
  34. package/dist/lib/node/intent-resolver-3TKCXP4S.cjs +45 -0
  35. package/dist/lib/node/intent-resolver-3TKCXP4S.cjs.map +7 -0
  36. package/dist/lib/node/meta.json +1 -1
  37. package/dist/lib/node/store-4QMUUU2A.cjs +34 -0
  38. package/dist/lib/node/store-4QMUUU2A.cjs.map +7 -0
  39. package/dist/lib/node/testing/index.cjs +15 -8
  40. package/dist/lib/node/testing/index.cjs.map +3 -3
  41. package/dist/lib/node/worker.cjs +99 -0
  42. package/dist/lib/node/worker.cjs.map +7 -0
  43. package/dist/lib/node-esm/app-graph-builder-2QEX57NX.mjs +138 -0
  44. package/dist/lib/node-esm/app-graph-builder-2QEX57NX.mjs.map +7 -0
  45. package/dist/lib/node-esm/{chunk-KPMTPXQI.mjs → chunk-44J2VZBB.mjs} +623 -819
  46. package/dist/lib/node-esm/chunk-44J2VZBB.mjs.map +7 -0
  47. package/dist/lib/node-esm/chunk-CNJYZNSL.mjs +34 -0
  48. package/dist/lib/node-esm/chunk-CNJYZNSL.mjs.map +7 -0
  49. package/dist/lib/node-esm/chunk-HTLXL32I.mjs +286 -0
  50. package/dist/lib/node-esm/chunk-HTLXL32I.mjs.map +7 -0
  51. package/dist/lib/node-esm/index.mjs +57 -74
  52. package/dist/lib/node-esm/index.mjs.map +4 -4
  53. package/dist/lib/node-esm/intent-dispatcher-LDQGDZ62.mjs +12 -0
  54. package/dist/lib/node-esm/intent-dispatcher-LDQGDZ62.mjs.map +7 -0
  55. package/dist/lib/node-esm/intent-resolver-7VJWN67U.mjs +39 -0
  56. package/dist/lib/node-esm/intent-resolver-7VJWN67U.mjs.map +7 -0
  57. package/dist/lib/node-esm/meta.json +1 -1
  58. package/dist/lib/node-esm/store-VWDAYUQY.mjs +20 -0
  59. package/dist/lib/node-esm/store-VWDAYUQY.mjs.map +7 -0
  60. package/dist/lib/node-esm/testing/index.mjs +10 -3
  61. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  62. package/dist/lib/node-esm/worker.mjs +78 -0
  63. package/dist/lib/node-esm/worker.mjs.map +7 -0
  64. package/dist/types/src/App.d.ts.map +1 -1
  65. package/dist/types/src/common/capabilities.d.ts +63 -110
  66. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  67. package/dist/types/src/common/events.d.ts +8 -1
  68. package/dist/types/src/common/events.d.ts.map +1 -1
  69. package/dist/types/src/common/file.d.ts +1 -1
  70. package/dist/types/src/common/file.d.ts.map +1 -1
  71. package/dist/types/src/common/graph.d.ts +2 -2
  72. package/dist/types/src/common/graph.d.ts.map +1 -1
  73. package/dist/types/src/common/index.d.ts +0 -1
  74. package/dist/types/src/common/index.d.ts.map +1 -1
  75. package/dist/types/src/common/layout.d.ts +204 -121
  76. package/dist/types/src/common/layout.d.ts.map +1 -1
  77. package/dist/types/src/common/surface.d.ts +3 -3
  78. package/dist/types/src/common/surface.d.ts.map +1 -1
  79. package/dist/types/src/common/translations.d.ts +7 -7
  80. package/dist/types/src/common/translations.d.ts.map +1 -1
  81. package/dist/types/src/core/capabilities.d.ts +6 -2
  82. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  83. package/dist/types/src/core/manager.d.ts +2 -9
  84. package/dist/types/src/core/manager.d.ts.map +1 -1
  85. package/dist/types/src/core/plugin.d.ts +5 -2
  86. package/dist/types/src/core/plugin.d.ts.map +1 -1
  87. package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
  88. package/dist/types/src/playground/generator/generator.d.ts +2 -0
  89. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  90. package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
  91. package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
  92. package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
  93. package/dist/types/src/playground/logger/schema.d.ts +1 -1
  94. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  95. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
  96. package/dist/types/src/plugin-intent/actions.d.ts +1 -1
  97. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  98. package/dist/types/src/plugin-intent/index.d.ts +0 -1
  99. package/dist/types/src/plugin-intent/index.d.ts.map +1 -1
  100. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -20
  101. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  102. package/dist/types/src/plugin-intent/intent.d.ts +3 -3
  103. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  104. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
  105. package/dist/types/src/plugin-settings/actions.d.ts +11 -1
  106. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  107. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
  108. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
  109. package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
  110. package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
  111. package/dist/types/src/plugin-settings/store.d.ts +5 -0
  112. package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
  113. package/dist/types/src/plugin-settings/translations.d.ts +11 -0
  114. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
  115. package/dist/types/src/{plugin-intent → react}/IntentContext.d.ts +1 -1
  116. package/dist/types/src/react/IntentContext.d.ts.map +1 -0
  117. package/dist/types/src/react/Surface.d.ts.map +1 -1
  118. package/dist/types/src/react/Surface.stories.d.ts +16 -0
  119. package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
  120. package/dist/types/src/react/common.d.ts +12 -0
  121. package/dist/types/src/react/common.d.ts.map +1 -0
  122. package/dist/types/src/react/index.d.ts +2 -0
  123. package/dist/types/src/react/index.d.ts.map +1 -1
  124. package/dist/types/src/react/useIntentResolver.d.ts +3 -0
  125. package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
  126. package/dist/types/src/testing/withPluginManager.d.ts +1 -1
  127. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  128. package/dist/types/src/worker.d.ts +4 -0
  129. package/dist/types/src/worker.d.ts.map +1 -0
  130. package/package.json +26 -20
  131. package/project.json +3 -3
  132. package/src/App.tsx +15 -14
  133. package/src/common/capabilities.ts +20 -11
  134. package/src/common/events.ts +10 -1
  135. package/src/common/file.ts +1 -1
  136. package/src/common/graph.ts +2 -2
  137. package/src/common/index.ts +0 -1
  138. package/src/common/layout.ts +194 -126
  139. package/src/common/surface.ts +2 -2
  140. package/src/common/translations.ts +7 -8
  141. package/src/core/capabilities.ts +16 -7
  142. package/src/core/manager.test.ts +22 -73
  143. package/src/core/manager.ts +105 -91
  144. package/src/core/plugin.ts +6 -3
  145. package/src/playground/debug/plugin.ts +1 -1
  146. package/src/playground/generator/Toolbar.tsx +11 -11
  147. package/src/playground/generator/generator.ts +25 -0
  148. package/src/playground/generator/plugin.ts +6 -1
  149. package/src/playground/layout/plugin.ts +1 -1
  150. package/src/playground/logger/Toolbar.tsx +2 -1
  151. package/src/playground/logger/plugin.ts +6 -3
  152. package/src/playground/logger/schema.ts +1 -1
  153. package/src/plugin-intent/IntentPlugin.tsx +3 -43
  154. package/src/plugin-intent/actions.ts +1 -1
  155. package/src/plugin-intent/index.ts +0 -1
  156. package/src/plugin-intent/intent-dispatcher.test.ts +48 -29
  157. package/src/plugin-intent/intent-dispatcher.ts +76 -41
  158. package/src/plugin-intent/intent.ts +5 -5
  159. package/src/plugin-settings/SettingsPlugin.ts +19 -13
  160. package/src/plugin-settings/actions.ts +11 -1
  161. package/src/plugin-settings/app-graph-builder.ts +122 -0
  162. package/src/plugin-settings/intent-resolver.ts +28 -0
  163. package/src/plugin-settings/store.ts +20 -0
  164. package/src/plugin-settings/translations.ts +17 -0
  165. package/src/{plugin-intent → react}/IntentContext.tsx +2 -2
  166. package/src/react/Surface.stories.tsx +96 -0
  167. package/src/react/Surface.tsx +11 -8
  168. package/src/react/common.ts +12 -0
  169. package/src/react/index.ts +2 -0
  170. package/src/react/useIntentResolver.ts +22 -0
  171. package/src/testing/withPluginManager.tsx +11 -3
  172. package/src/worker.ts +11 -0
  173. package/tsconfig.json +3 -3
  174. package/dist/lib/browser/chunk-GNLU3GAU.mjs.map +0 -7
  175. package/dist/lib/node/chunk-FBA4BB3J.cjs +0 -1639
  176. package/dist/lib/node/chunk-FBA4BB3J.cjs.map +0 -7
  177. package/dist/lib/node-esm/chunk-KPMTPXQI.mjs.map +0 -7
  178. package/dist/types/src/common/navigation.d.ts +0 -241
  179. package/dist/types/src/common/navigation.d.ts.map +0 -1
  180. package/dist/types/src/plugin-intent/IntentContext.d.ts.map +0 -1
  181. package/src/common/navigation.ts +0 -199
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var store_4QMUUU2A_exports = {};
20
+ __export(store_4QMUUU2A_exports, {
21
+ default: () => store_default
22
+ });
23
+ module.exports = __toCommonJS(store_4QMUUU2A_exports);
24
+ var import_chunk_WKC6YMEQ = require("./chunk-WKC6YMEQ.cjs");
25
+ var import_local_storage = require("@dxos/local-storage");
26
+ var store_default = (context) => {
27
+ const allSettings = context.requestCapabilities(import_chunk_WKC6YMEQ.Capabilities.Settings);
28
+ const settingsStore = new import_local_storage.RootSettingsStore();
29
+ allSettings.forEach((setting) => {
30
+ settingsStore.createStore(setting);
31
+ });
32
+ return (0, import_chunk_WKC6YMEQ.contributes)(import_chunk_WKC6YMEQ.Capabilities.SettingsStore, settingsStore);
33
+ };
34
+ //# sourceMappingURL=store-4QMUUU2A.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/plugin-settings/store.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { RootSettingsStore } from '@dxos/local-storage';\n\nimport { Capabilities } from '../common';\nimport { contributes, type PluginsContext } from '../core';\n\nexport default (context: PluginsContext) => {\n // TODO(wittjosiah): This should subscribe to capabilities and create stores for newly added settings objects.\n const allSettings = context.requestCapabilities(Capabilities.Settings);\n const settingsStore = new RootSettingsStore();\n\n allSettings.forEach((setting) => {\n settingsStore.createStore(setting as any);\n });\n\n return contributes(Capabilities.SettingsStore, settingsStore);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAkC;AAKlC,IAAA,gBAAe,CAACA,YAAAA;AAEd,QAAMC,cAAcD,QAAQE,oBAAoBC,mCAAaC,QAAQ;AACrE,QAAMC,gBAAgB,IAAIC,uCAAAA;AAE1BL,cAAYM,QAAQ,CAACC,YAAAA;AACnBH,kBAAcI,YAAYD,OAAAA;EAC5B,CAAA;AAEA,aAAOE,mCAAYP,mCAAaQ,eAAeN,aAAAA;AACjD;",
6
+ "names": ["context", "allSettings", "requestCapabilities", "Capabilities", "Settings", "settingsStore", "RootSettingsStore", "forEach", "setting", "createStore", "contributes", "SettingsStore"]
7
+ }
@@ -28,14 +28,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var testing_exports = {};
30
30
  __export(testing_exports, {
31
+ setupPluginManager: () => setupPluginManager,
31
32
  withPluginManager: () => withPluginManager
32
33
  });
33
34
  module.exports = __toCommonJS(testing_exports);
34
- var import_chunk_FBA4BB3J = require("../chunk-FBA4BB3J.cjs");
35
+ var import_chunk_WRWRZKZU = require("../chunk-WRWRZKZU.cjs");
36
+ var import_chunk_WKC6YMEQ = require("../chunk-WKC6YMEQ.cjs");
35
37
  var import_react = __toESM(require("react"));
36
38
  var import_debug = require("@dxos/debug");
37
- var withPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ meta }) => meta.id), ...options } = {}) => {
38
- const pluginManager = new import_chunk_FBA4BB3J.PluginManager({
39
+ var setupPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ meta }) => meta.id), ...options } = {}) => {
40
+ const pluginManager = new import_chunk_WKC6YMEQ.PluginManager({
39
41
  pluginLoader: () => (0, import_debug.raise)(new Error("Not implemented")),
40
42
  plugins: [
41
43
  StoryPlugin(),
@@ -56,12 +58,16 @@ var withPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ met
56
58
  });
57
59
  });
58
60
  }
59
- const App = (0, import_chunk_FBA4BB3J.createApp)({
61
+ return pluginManager;
62
+ };
63
+ var withPluginManager = (options = {}) => {
64
+ const pluginManager = setupPluginManager(options);
65
+ const App = (0, import_chunk_WRWRZKZU.createApp)({
60
66
  pluginManager
61
67
  });
62
68
  return (Story, context) => {
63
69
  (0, import_react.useEffect)(() => {
64
- const capability = (0, import_chunk_FBA4BB3J.contributes)(import_chunk_FBA4BB3J.Capabilities.ReactRoot, {
70
+ const capability = (0, import_chunk_WKC6YMEQ.contributes)(import_chunk_WKC6YMEQ.Capabilities.ReactRoot, {
65
71
  id: context.id,
66
72
  root: () => /* @__PURE__ */ import_react.default.createElement(Story, null)
67
73
  });
@@ -75,17 +81,18 @@ var withPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ met
75
81
  };
76
82
  };
77
83
  var STORY_PLUGIN = "dxos.org/app-framework/story";
78
- var StoryPlugin = () => (0, import_chunk_FBA4BB3J.definePlugin)({
84
+ var StoryPlugin = () => (0, import_chunk_WKC6YMEQ.definePlugin)({
79
85
  id: STORY_PLUGIN
80
86
  }, [
81
- (0, import_chunk_FBA4BB3J.defineModule)({
87
+ (0, import_chunk_WKC6YMEQ.defineModule)({
82
88
  id: STORY_PLUGIN,
83
- activatesOn: import_chunk_FBA4BB3J.Events.Startup,
89
+ activatesOn: import_chunk_WKC6YMEQ.Events.Startup,
84
90
  activate: () => []
85
91
  })
86
92
  ]);
87
93
  // Annotate the CommonJS export names for ESM import in node:
88
94
  0 && (module.exports = {
95
+ setupPluginManager,
89
96
  withPluginManager
90
97
  });
91
98
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/testing/withPluginManager.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { createApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport { type AnyCapability, contributes, defineModule, definePlugin, PluginManager } from '../core';\n\n/**\n * Wraps a story with a plugin manager.\n */\nexport const withPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: CreateAppOptions & { capabilities?: AnyCapability[] } = {}): Decorator => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [StoryPlugin(), ...plugins],\n core: [STORY_PLUGIN, ...core],\n ...options,\n });\n\n if (capabilities) {\n capabilities.forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n const App = createApp({ pluginManager });\n\n return (Story, context) => {\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => pluginManager.context.removeCapability(capability.interface, capability.implementation);\n }, []);\n\n return <App />;\n };\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst STORY_PLUGIN = 'dxos.org/app-framework/story';\nconst StoryPlugin = () =>\n definePlugin({ id: STORY_PLUGIN }, [\n defineModule({ id: STORY_PLUGIN, activatesOn: Events.Startup, activate: () => [] }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,mBAAiC;AAEjC,mBAAsB;AASf,IAAMA,oBAAoB,CAAC,EAChCC,cACAC,UAAU,CAAA,GACVC,OAAOD,QAAQE,IAAI,CAAC,EAAEC,KAAI,MAAOA,KAAKC,EAAE,GACxC,GAAGC,QAAAA,IACsD,CAAC,MAAC;AAC3D,QAAMC,gBAAgB,IAAIC,oCAAc;IACtCC,cAAc,UAAMC,oBAAM,IAAIC,MAAM,iBAAA,CAAA;IACpCV,SAAS;MAACW,YAAAA;SAAkBX;;IAC5BC,MAAM;MAACW;SAAiBX;;IACxB,GAAGI;EACL,CAAA;AAEA,MAAIN,cAAc;AAChBA,iBAAac,QAAQ,CAACC,eAAAA;AACpBR,oBAAcS,QAAQC,qBAAqB;QACzCC,WAAWH,WAAWG;QACtBC,gBAAgBJ,WAAWI;QAC3BC,QAAQ;MACV,CAAA;IACF,CAAA;EACF;AAEA,QAAMC,UAAMC,iCAAU;IAAEf;EAAc,CAAA;AAEtC,SAAO,CAACgB,OAAOP,YAAAA;AACbQ,gCAAU,MAAA;AACR,YAAMT,iBAAaU,mCAAYC,mCAAaC,WAAW;QACrDtB,IAAIW,QAAQX;QACZuB,MAAM,MAAM,6BAAAC,QAAA,cAACN,OAAAA,IAAAA;MACf,CAAA;AAEAhB,oBAAcS,QAAQC,qBAAqB;QACzC,GAAGF;QACHK,QAAQ;MACV,CAAA;AAEA,aAAO,MAAMb,cAAcS,QAAQc,iBAAiBf,WAAWG,WAAWH,WAAWI,cAAc;IACrG,GAAG,CAAA,CAAE;AAEL,WAAO,6BAAAU,QAAA,cAACR,KAAAA,IAAAA;EACV;AACF;AAIA,IAAMR,eAAe;AACrB,IAAMD,cAAc,UAClBmB,oCAAa;EAAE1B,IAAIQ;AAAa,GAAG;MACjCmB,oCAAa;IAAE3B,IAAIQ;IAAcoB,aAAaC,6BAAOC;IAASC,UAAU,MAAM,CAAA;EAAG,CAAA;CAClF;",
6
- "names": ["withPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "StoryPlugin", "STORY_PLUGIN", "forEach", "capability", "context", "contributeCapability", "interface", "implementation", "module", "App", "createApp", "Story", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "React", "removeCapability", "definePlugin", "defineModule", "activatesOn", "Events", "Startup", "activate"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { createApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport { type AnyCapability, contributes, defineModule, definePlugin, PluginManager } from '../core';\n\n/**\n * @internal\n */\nexport const setupPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: CreateAppOptions & { capabilities?: AnyCapability[] } = {}) => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [StoryPlugin(), ...plugins],\n core: [STORY_PLUGIN, ...core],\n ...options,\n });\n\n if (capabilities) {\n capabilities.forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n return pluginManager;\n};\n\n/**\n * Wraps a story with a plugin manager.\n */\nexport const withPluginManager = (options: CreateAppOptions & { capabilities?: AnyCapability[] } = {}): Decorator => {\n const pluginManager = setupPluginManager(options);\n const App = createApp({ pluginManager });\n\n return (Story, context) => {\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => pluginManager.context.removeCapability(capability.interface, capability.implementation);\n }, []);\n\n return <App />;\n };\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst STORY_PLUGIN = 'dxos.org/app-framework/story';\nconst StoryPlugin = () =>\n definePlugin({ id: STORY_PLUGIN }, [\n defineModule({ id: STORY_PLUGIN, activatesOn: Events.Startup, activate: () => [] }),\n ]);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,mBAAiC;AAEjC,mBAAsB;AASf,IAAMA,qBAAqB,CAAC,EACjCC,cACAC,UAAU,CAAA,GACVC,OAAOD,QAAQE,IAAI,CAAC,EAAEC,KAAI,MAAOA,KAAKC,EAAE,GACxC,GAAGC,QAAAA,IACsD,CAAC,MAAC;AAC3D,QAAMC,gBAAgB,IAAIC,oCAAc;IACtCC,cAAc,UAAMC,oBAAM,IAAIC,MAAM,iBAAA,CAAA;IACpCV,SAAS;MAACW,YAAAA;SAAkBX;;IAC5BC,MAAM;MAACW;SAAiBX;;IACxB,GAAGI;EACL,CAAA;AAEA,MAAIN,cAAc;AAChBA,iBAAac,QAAQ,CAACC,eAAAA;AACpBR,oBAAcS,QAAQC,qBAAqB;QACzCC,WAAWH,WAAWG;QACtBC,gBAAgBJ,WAAWI;QAC3BC,QAAQ;MACV,CAAA;IACF,CAAA;EACF;AAEA,SAAOb;AACT;AAKO,IAAMc,oBAAoB,CAACf,UAAiE,CAAC,MAAC;AACnG,QAAMC,gBAAgBR,mBAAmBO,OAAAA;AACzC,QAAMgB,UAAMC,iCAAU;IAAEhB;EAAc,CAAA;AAEtC,SAAO,CAACiB,OAAOR,YAAAA;AACbS,gCAAU,MAAA;AACR,YAAMV,iBAAaW,mCAAYC,mCAAaC,WAAW;QACrDvB,IAAIW,QAAQX;QACZwB,MAAM,MAAM,6BAAAC,QAAA,cAACN,OAAAA,IAAAA;MACf,CAAA;AAEAjB,oBAAcS,QAAQC,qBAAqB;QACzC,GAAGF;QACHK,QAAQ;MACV,CAAA;AAEA,aAAO,MAAMb,cAAcS,QAAQe,iBAAiBhB,WAAWG,WAAWH,WAAWI,cAAc;IACrG,GAAG,CAAA,CAAE;AAEL,WAAO,6BAAAW,QAAA,cAACR,KAAAA,IAAAA;EACV;AACF;AAIA,IAAMT,eAAe;AACrB,IAAMD,cAAc,UAClBoB,oCAAa;EAAE3B,IAAIQ;AAAa,GAAG;MACjCoB,oCAAa;IAAE5B,IAAIQ;IAAcqB,aAAaC,6BAAOC;IAASC,UAAU,MAAM,CAAA;EAAG,CAAA;CAClF;",
6
+ "names": ["setupPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "StoryPlugin", "STORY_PLUGIN", "forEach", "capability", "context", "contributeCapability", "interface", "implementation", "module", "withPluginManager", "App", "createApp", "Story", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "React", "removeCapability", "definePlugin", "defineModule", "activatesOn", "Events", "Startup", "activate"]
7
7
  }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var worker_exports = {};
20
+ __export(worker_exports, {
21
+ Capabilities: () => import_chunk_WKC6YMEQ.Capabilities,
22
+ Events: () => import_chunk_WKC6YMEQ.Events,
23
+ FileInfoSchema: () => import_chunk_WKC6YMEQ.FileInfoSchema,
24
+ INTENT_ACTION: () => import_chunk_WKC6YMEQ.INTENT_ACTION,
25
+ INTENT_PLUGIN: () => import_chunk_WKC6YMEQ.INTENT_PLUGIN,
26
+ IntentAction: () => import_chunk_WKC6YMEQ.IntentAction,
27
+ IntentPlugin: () => import_chunk_WKC6YMEQ.IntentPlugin,
28
+ LAYOUT_ACTION: () => import_chunk_WKC6YMEQ.LAYOUT_ACTION,
29
+ LAYOUT_PLUGIN: () => import_chunk_WKC6YMEQ.LAYOUT_PLUGIN,
30
+ Label: () => import_chunk_WKC6YMEQ.Label,
31
+ LayoutAction: () => import_chunk_WKC6YMEQ.LayoutAction,
32
+ Plugin: () => import_chunk_WKC6YMEQ.Plugin,
33
+ PluginManager: () => import_chunk_WKC6YMEQ.PluginManager,
34
+ PluginModule: () => import_chunk_WKC6YMEQ.PluginModule,
35
+ PluginsContext: () => import_chunk_WKC6YMEQ.PluginsContext,
36
+ Resource: () => import_chunk_WKC6YMEQ.Resource,
37
+ ResourceKey: () => import_chunk_WKC6YMEQ.ResourceKey,
38
+ ResourceLanguage: () => import_chunk_WKC6YMEQ.ResourceLanguage,
39
+ allOf: () => import_chunk_WKC6YMEQ.allOf,
40
+ chain: () => import_chunk_WKC6YMEQ.chain,
41
+ contributes: () => import_chunk_WKC6YMEQ.contributes,
42
+ createDispatcher: () => import_chunk_WKC6YMEQ.createDispatcher,
43
+ createIntent: () => import_chunk_WKC6YMEQ.createIntent,
44
+ createResolver: () => import_chunk_WKC6YMEQ.createResolver,
45
+ createSurface: () => import_chunk_WKC6YMEQ.createSurface,
46
+ defaultFileTypes: () => import_chunk_WKC6YMEQ.defaultFileTypes,
47
+ defineCapability: () => import_chunk_WKC6YMEQ.defineCapability,
48
+ defineEvent: () => import_chunk_WKC6YMEQ.defineEvent,
49
+ defineModule: () => import_chunk_WKC6YMEQ.defineModule,
50
+ definePlugin: () => import_chunk_WKC6YMEQ.definePlugin,
51
+ eventKey: () => import_chunk_WKC6YMEQ.eventKey,
52
+ getEvents: () => import_chunk_WKC6YMEQ.getEvents,
53
+ isAllOf: () => import_chunk_WKC6YMEQ.isAllOf,
54
+ isOneOf: () => import_chunk_WKC6YMEQ.isOneOf,
55
+ lazy: () => import_chunk_WKC6YMEQ.lazy,
56
+ oneOf: () => import_chunk_WKC6YMEQ.oneOf
57
+ });
58
+ module.exports = __toCommonJS(worker_exports);
59
+ var import_chunk_WKC6YMEQ = require("./chunk-WKC6YMEQ.cjs");
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ Capabilities,
63
+ Events,
64
+ FileInfoSchema,
65
+ INTENT_ACTION,
66
+ INTENT_PLUGIN,
67
+ IntentAction,
68
+ IntentPlugin,
69
+ LAYOUT_ACTION,
70
+ LAYOUT_PLUGIN,
71
+ Label,
72
+ LayoutAction,
73
+ Plugin,
74
+ PluginManager,
75
+ PluginModule,
76
+ PluginsContext,
77
+ Resource,
78
+ ResourceKey,
79
+ ResourceLanguage,
80
+ allOf,
81
+ chain,
82
+ contributes,
83
+ createDispatcher,
84
+ createIntent,
85
+ createResolver,
86
+ createSurface,
87
+ defaultFileTypes,
88
+ defineCapability,
89
+ defineEvent,
90
+ defineModule,
91
+ definePlugin,
92
+ eventKey,
93
+ getEvents,
94
+ isAllOf,
95
+ isOneOf,
96
+ lazy,
97
+ oneOf
98
+ });
99
+ //# sourceMappingURL=worker.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["worker.cjs"],
4
+ "sourcesContent": ["import {\n Capabilities,\n Events,\n FileInfoSchema,\n INTENT_ACTION,\n INTENT_PLUGIN,\n IntentAction,\n IntentPlugin,\n LAYOUT_ACTION,\n LAYOUT_PLUGIN,\n Label,\n LayoutAction,\n Plugin,\n PluginManager,\n PluginModule,\n PluginsContext,\n Resource,\n ResourceKey,\n ResourceLanguage,\n allOf,\n chain,\n contributes,\n createDispatcher,\n createIntent,\n createResolver,\n createSurface,\n defaultFileTypes,\n defineCapability,\n defineEvent,\n defineModule,\n definePlugin,\n eventKey,\n getEvents,\n isAllOf,\n isOneOf,\n lazy,\n oneOf\n} from \"./chunk-WKC6YMEQ.cjs\";\nexport {\n Capabilities,\n Events,\n FileInfoSchema,\n INTENT_ACTION,\n INTENT_PLUGIN,\n IntentAction,\n IntentPlugin,\n LAYOUT_ACTION,\n LAYOUT_PLUGIN,\n Label,\n LayoutAction,\n Plugin,\n PluginManager,\n PluginModule,\n PluginsContext,\n Resource,\n ResourceKey,\n ResourceLanguage,\n allOf,\n chain,\n contributes,\n createDispatcher,\n createIntent,\n createResolver,\n createSurface,\n defaultFileTypes,\n defineCapability,\n defineEvent,\n defineModule,\n definePlugin,\n eventKey,\n getEvents,\n isAllOf,\n isOneOf,\n lazy,\n oneOf\n};\n//# sourceMappingURL=worker.cjs.map\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAqCO;",
6
+ "names": []
7
+ }
@@ -0,0 +1,138 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ SETTINGS_ID,
4
+ SETTINGS_KEY,
5
+ SETTINGS_PLUGIN,
6
+ SettingsAction
7
+ } from "./chunk-CNJYZNSL.mjs";
8
+ import {
9
+ Capabilities,
10
+ contributes,
11
+ createIntent
12
+ } from "./chunk-44J2VZBB.mjs";
13
+
14
+ // packages/sdk/app-framework/src/plugin-settings/app-graph-builder.ts
15
+ import { createExtension } from "@dxos/app-graph";
16
+ import { nonNullable } from "@dxos/util";
17
+ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
18
+ createExtension({
19
+ id: `${SETTINGS_PLUGIN}/action`,
20
+ filter: (node) => node.id === "root",
21
+ actions: () => [
22
+ {
23
+ id: SETTINGS_PLUGIN,
24
+ data: async () => {
25
+ const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
26
+ await dispatch(createIntent(SettingsAction.Open));
27
+ },
28
+ properties: {
29
+ label: [
30
+ "open settings label",
31
+ {
32
+ ns: SETTINGS_PLUGIN
33
+ }
34
+ ],
35
+ icon: "ph--gear--regular",
36
+ keyBinding: {
37
+ macos: "meta+,",
38
+ windows: "alt+,"
39
+ }
40
+ }
41
+ }
42
+ ]
43
+ }),
44
+ createExtension({
45
+ id: `${SETTINGS_PLUGIN}/core`,
46
+ filter: (node) => node.id === "root",
47
+ connector: () => [
48
+ {
49
+ id: SETTINGS_ID,
50
+ type: SETTINGS_PLUGIN,
51
+ properties: {
52
+ label: [
53
+ "app settings label",
54
+ {
55
+ ns: SETTINGS_PLUGIN
56
+ }
57
+ ],
58
+ icon: "ph--gear--regular",
59
+ disposition: "pin-end",
60
+ position: "fallback",
61
+ testId: "treeView.appSettings"
62
+ }
63
+ }
64
+ ]
65
+ }),
66
+ createExtension({
67
+ id: `${SETTINGS_PLUGIN}/core-plugins`,
68
+ filter: (node) => node.id === SETTINGS_ID,
69
+ connector: () => {
70
+ const manager = context.requestCapability(Capabilities.PluginManager);
71
+ const [settingsStore] = context.requestCapabilities(Capabilities.SettingsStore);
72
+ return [
73
+ ...manager.plugins.filter((plugin) => manager.core.includes(plugin.meta.id)).map((plugin) => {
74
+ const settings = settingsStore?.getStore(plugin.meta.id);
75
+ if (!settings) {
76
+ return null;
77
+ }
78
+ return [
79
+ plugin.meta,
80
+ settings
81
+ ];
82
+ }).filter(nonNullable).map(([meta, settings]) => ({
83
+ id: `${SETTINGS_KEY}:${meta.id.replaceAll("/", ":")}`,
84
+ type: "category",
85
+ data: settings,
86
+ properties: {
87
+ label: meta.name ?? meta.id,
88
+ icon: meta.icon ?? "ph--circle--regular"
89
+ }
90
+ })),
91
+ {
92
+ id: `${SETTINGS_KEY}:custom-plugins`,
93
+ type: "collection",
94
+ properties: {
95
+ label: [
96
+ "custom plugins label",
97
+ {
98
+ ns: SETTINGS_PLUGIN
99
+ }
100
+ ],
101
+ icon: "ph--squares-four--regular",
102
+ role: "branch"
103
+ }
104
+ }
105
+ ];
106
+ }
107
+ }),
108
+ createExtension({
109
+ id: `${SETTINGS_PLUGIN}/custom-plugins`,
110
+ filter: (node) => node.id === `${SETTINGS_KEY}:custom-plugins`,
111
+ connector: () => {
112
+ const manager = context.requestCapability(Capabilities.PluginManager);
113
+ const [settingsStore] = context.requestCapabilities(Capabilities.SettingsStore);
114
+ return manager.plugins.filter((plugin) => !manager.core.includes(plugin.meta.id)).map((plugin) => {
115
+ const settings = settingsStore?.getStore(plugin.meta.id);
116
+ if (!settings) {
117
+ return null;
118
+ }
119
+ return [
120
+ plugin.meta,
121
+ settings
122
+ ];
123
+ }).filter(nonNullable).map(([meta, settings]) => ({
124
+ id: `${SETTINGS_KEY}:${meta.id.replaceAll("/", ":")}`,
125
+ type: "category",
126
+ data: settings,
127
+ properties: {
128
+ label: meta.name ?? meta.id,
129
+ icon: meta.icon ?? "ph--circle--regular"
130
+ }
131
+ }));
132
+ }
133
+ })
134
+ ]);
135
+ export {
136
+ app_graph_builder_default as default
137
+ };
138
+ //# sourceMappingURL=app-graph-builder-2QEX57NX.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 { createExtension, type Node } from '@dxos/app-graph';\nimport { type SettingsStore, type SettingsValue } from '@dxos/local-storage';\nimport { nonNullable } from '@dxos/util';\n\nimport { SETTINGS_ID, SETTINGS_KEY, SETTINGS_PLUGIN, SettingsAction } from './actions';\nimport { Capabilities } from '../common';\nimport { contributes, type PluginMeta, type PluginsContext } from '../core';\nimport { createIntent } from '../plugin-intent';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${SETTINGS_PLUGIN}/action`,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: SETTINGS_PLUGIN,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(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 keyBinding: {\n macos: 'meta+,',\n windows: 'alt+,',\n },\n },\n },\n ],\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core`,\n filter: (node): node is Node<null> => node.id === 'root',\n connector: () => [\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: 'fallback',\n testId: 'treeView.appSettings',\n },\n },\n ],\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/core-plugins`,\n filter: (node): node is Node<null> => node.id === SETTINGS_ID,\n connector: () => {\n const manager = context.requestCapability(Capabilities.PluginManager);\n const [settingsStore] = context.requestCapabilities(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(nonNullable)\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: 'collection',\n properties: {\n label: ['custom plugins label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--squares-four--regular',\n role: 'branch',\n },\n },\n ];\n },\n }),\n createExtension({\n id: `${SETTINGS_PLUGIN}/custom-plugins`,\n filter: (node): node is Node<null> => node.id === `${SETTINGS_KEY}:custom-plugins`,\n connector: () => {\n const manager = context.requestCapability(Capabilities.PluginManager);\n const [settingsStore] = context.requestCapabilities(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(nonNullable)\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 ]);\n"],
5
+ "mappings": "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",
6
+ "names": ["createExtension", "nonNullable", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "SETTINGS_PLUGIN", "filter", "node", "actions", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "SettingsAction", "Open", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "connector", "SETTINGS_ID", "type", "disposition", "position", "testId", "manager", "PluginManager", "settingsStore", "requestCapabilities", "SettingsStore", "plugins", "plugin", "core", "includes", "meta", "map", "settings", "getStore", "nonNullable", "SETTINGS_KEY", "replaceAll", "name", "role"]
7
+ }