@dxos/plugin-registry 0.8.4-main.8360d9e660 → 0.8.4-main.8baae0fced

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 (262) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
  3. package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
  4. package/dist/lib/{browser/cli/index.mjs → neutral/RegistryPlugin.node.mjs} +28 -97
  5. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
  7. package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-MYLRMFLY.mjs +34 -0
  9. package/dist/lib/neutral/chunk-MYLRMFLY.mjs.map +7 -0
  10. package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
  11. package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
  12. package/dist/lib/neutral/index.mjs +25 -0
  13. package/dist/lib/neutral/index.mjs.map +7 -0
  14. package/dist/lib/neutral/meta.json +1 -0
  15. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
  16. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
  17. package/dist/lib/neutral/plugin.mjs +18 -0
  18. package/dist/lib/neutral/plugin.mjs.map +7 -0
  19. package/dist/lib/neutral/translations.mjs +70 -0
  20. package/dist/lib/neutral/translations.mjs.map +7 -0
  21. package/dist/types/src/RegistryPlugin.d.ts +1 -0
  22. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  23. package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
  24. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  25. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  26. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  27. package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
  28. package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  30. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  31. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  32. package/dist/types/src/capabilities/index.d.ts +15 -3
  33. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  35. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/settings.d.ts +14 -0
  38. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  39. package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
  40. package/dist/types/src/commands/disable.d.ts.map +1 -0
  41. package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
  42. package/dist/types/src/commands/enable.d.ts.map +1 -0
  43. package/dist/types/src/commands/index.d.ts.map +1 -0
  44. package/dist/types/src/commands/list.d.ts +7 -0
  45. package/dist/types/src/commands/list.d.ts.map +1 -0
  46. package/dist/types/src/commands/util.d.ts.map +1 -0
  47. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
  48. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
  49. package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
  50. package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
  51. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +75 -2
  52. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
  53. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +60 -16
  54. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
  55. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  56. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  57. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  58. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginList/PluginItem.d.ts +29 -2
  60. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
  61. package/dist/types/src/components/PluginList/PluginList.d.ts +18 -3
  62. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -1
  63. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +58 -16
  64. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
  65. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  66. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  67. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  68. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  69. package/dist/types/src/components/index.d.ts +3 -0
  70. package/dist/types/src/components/index.d.ts.map +1 -1
  71. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  72. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  73. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  74. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  75. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  76. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  77. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  78. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
  80. package/dist/types/src/containers/PluginArticle/index.d.ts +1 -2
  81. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -1
  82. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  83. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  84. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  85. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  86. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  87. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  88. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  89. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  90. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  91. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  92. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  93. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  94. package/dist/types/src/containers/index.d.ts +5 -1
  95. package/dist/types/src/containers/index.d.ts.map +1 -1
  96. package/dist/types/src/hooks/index.d.ts +9 -0
  97. package/dist/types/src/hooks/index.d.ts.map +1 -0
  98. package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
  99. package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
  100. package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
  101. package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
  102. package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
  103. package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
  104. package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
  105. package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
  106. package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
  107. package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
  108. package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
  109. package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
  110. package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
  111. package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
  112. package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
  113. package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
  114. package/dist/types/src/index.d.ts +1 -1
  115. package/dist/types/src/index.d.ts.map +1 -1
  116. package/dist/types/src/meta.d.ts +16 -1
  117. package/dist/types/src/meta.d.ts.map +1 -1
  118. package/dist/types/src/operations/index.d.ts +3 -0
  119. package/dist/types/src/operations/index.d.ts.map +1 -0
  120. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  121. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  122. package/dist/types/src/plugin.d.ts +4 -0
  123. package/dist/types/src/plugin.d.ts.map +1 -0
  124. package/dist/types/src/storage.d.ts.map +1 -0
  125. package/dist/types/src/translations.d.ts +57 -16
  126. package/dist/types/src/translations.d.ts.map +1 -1
  127. package/dist/types/src/types.d.ts +30 -1
  128. package/dist/types/src/types.d.ts.map +1 -1
  129. package/dist/types/tsconfig.tsbuildinfo +1 -1
  130. package/package.json +60 -37
  131. package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +3 -1
  132. package/src/RegistryPlugin.test.ts +24 -0
  133. package/src/RegistryPlugin.tsx +13 -5
  134. package/src/RegistryPlugin.workerd.ts +11 -0
  135. package/src/capabilities/app-graph-builder.ts +200 -0
  136. package/src/capabilities/dev-plugin-loader.ts +39 -0
  137. package/src/capabilities/index.ts +11 -3
  138. package/src/capabilities/operation-handler.ts +16 -0
  139. package/src/capabilities/react-surface.tsx +145 -0
  140. package/src/capabilities/settings.ts +34 -0
  141. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
  142. package/src/components/DisableDependentsAlert/index.ts +5 -0
  143. package/src/components/PluginDetail/PluginDetail.stories.tsx +5 -4
  144. package/src/components/PluginDetail/PluginDetail.tsx +320 -62
  145. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  146. package/src/components/PluginFailureBadge/index.ts +5 -0
  147. package/src/components/PluginList/PluginItem.tsx +117 -15
  148. package/src/components/PluginList/PluginList.stories.tsx +17 -14
  149. package/src/components/PluginList/PluginList.tsx +32 -4
  150. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  151. package/src/components/RegistrySettings/index.ts +5 -0
  152. package/src/components/index.ts +3 -0
  153. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
  154. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  155. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
  156. package/src/containers/LoadPluginDialog/index.ts +5 -0
  157. package/src/containers/PluginArticle/PluginArticle.tsx +102 -13
  158. package/src/containers/PluginArticle/index.ts +1 -3
  159. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
  160. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  161. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  162. package/src/containers/RegistryArticle/index.ts +5 -0
  163. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  164. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  165. package/src/containers/index.ts +5 -1
  166. package/src/hooks/index.ts +12 -0
  167. package/src/hooks/useAutoTags.ts +51 -0
  168. package/src/hooks/useCatalogEntry.ts +25 -0
  169. package/src/hooks/useDisableConfirmation.ts +58 -0
  170. package/src/hooks/useInstalledVersionTag.ts +41 -0
  171. package/src/hooks/usePluginActions.ts +174 -0
  172. package/src/hooks/useRegistryPlugins.ts +29 -0
  173. package/src/hooks/useUpdateAvailable.ts +31 -0
  174. package/src/hooks/useVersionPicker.ts +112 -0
  175. package/src/index.ts +1 -1
  176. package/src/meta.ts +26 -1
  177. package/src/operations/index.ts +7 -0
  178. package/src/operations/open-plugin-registry.ts +21 -0
  179. package/src/plugin.ts +11 -0
  180. package/src/translations.ts +62 -15
  181. package/src/types.ts +33 -1
  182. package/dist/lib/browser/PluginArticle-N2ITBUGD.mjs +0 -29
  183. package/dist/lib/browser/PluginArticle-N2ITBUGD.mjs.map +0 -7
  184. package/dist/lib/browser/PluginRegistry-DKO4UEYH.mjs +0 -78
  185. package/dist/lib/browser/PluginRegistry-DKO4UEYH.mjs.map +0 -7
  186. package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs +0 -167
  187. package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs.map +0 -7
  188. package/dist/lib/browser/chunk-2YWVCU2W.mjs +0 -191
  189. package/dist/lib/browser/chunk-2YWVCU2W.mjs.map +0 -7
  190. package/dist/lib/browser/chunk-KMUDYITM.mjs +0 -21
  191. package/dist/lib/browser/chunk-KMUDYITM.mjs.map +0 -7
  192. package/dist/lib/browser/cli/index.mjs.map +0 -7
  193. package/dist/lib/browser/index.mjs +0 -65
  194. package/dist/lib/browser/index.mjs.map +0 -7
  195. package/dist/lib/browser/meta.json +0 -1
  196. package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs +0 -25
  197. package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs.map +0 -7
  198. package/dist/lib/browser/react-surface-ZBP7YXKO.mjs +0 -85
  199. package/dist/lib/browser/react-surface-ZBP7YXKO.mjs.map +0 -7
  200. package/dist/lib/node-esm/PluginArticle-3NEYDKN5.mjs +0 -30
  201. package/dist/lib/node-esm/PluginArticle-3NEYDKN5.mjs.map +0 -7
  202. package/dist/lib/node-esm/PluginRegistry-BYKWC732.mjs +0 -79
  203. package/dist/lib/node-esm/PluginRegistry-BYKWC732.mjs.map +0 -7
  204. package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs +0 -168
  205. package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs.map +0 -7
  206. package/dist/lib/node-esm/chunk-BOCFM775.mjs +0 -192
  207. package/dist/lib/node-esm/chunk-BOCFM775.mjs.map +0 -7
  208. package/dist/lib/node-esm/chunk-ENSNUFQK.mjs +0 -23
  209. package/dist/lib/node-esm/chunk-ENSNUFQK.mjs.map +0 -7
  210. package/dist/lib/node-esm/cli/index.mjs +0 -223
  211. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  212. package/dist/lib/node-esm/index.mjs +0 -66
  213. package/dist/lib/node-esm/index.mjs.map +0 -7
  214. package/dist/lib/node-esm/meta.json +0 -1
  215. package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs +0 -26
  216. package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs.map +0 -7
  217. package/dist/lib/node-esm/react-surface-FJHMLGZF.mjs +0 -86
  218. package/dist/lib/node-esm/react-surface-FJHMLGZF.mjs.map +0 -7
  219. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  220. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  221. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  222. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  223. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  224. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  225. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  226. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  227. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  228. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  229. package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
  230. package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
  231. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  232. package/dist/types/src/cli/commands/list.d.ts +0 -7
  233. package/dist/types/src/cli/commands/list.d.ts.map +0 -1
  234. package/dist/types/src/cli/commands/util.d.ts.map +0 -1
  235. package/dist/types/src/cli/index.d.ts +0 -3
  236. package/dist/types/src/cli/index.d.ts.map +0 -1
  237. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  238. package/dist/types/src/cli/storage.d.ts.map +0 -1
  239. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +0 -8
  240. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +0 -1
  241. package/dist/types/src/containers/PluginRegistry/index.d.ts +0 -3
  242. package/dist/types/src/containers/PluginRegistry/index.d.ts.map +0 -1
  243. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -137
  244. package/src/capabilities/app-graph-builder/index.ts +0 -7
  245. package/src/capabilities/operation-resolver/index.ts +0 -7
  246. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -24
  247. package/src/capabilities/react-surface/index.ts +0 -7
  248. package/src/capabilities/react-surface/react-surface.tsx +0 -88
  249. package/src/cli/index.ts +0 -6
  250. package/src/containers/PluginRegistry/PluginRegistry.tsx +0 -86
  251. package/src/containers/PluginRegistry/index.ts +0 -7
  252. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  253. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  254. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  255. /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
  256. /package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +0 -0
  257. /package/src/{cli/commands → commands}/disable.ts +0 -0
  258. /package/src/{cli/commands → commands}/enable.ts +0 -0
  259. /package/src/{cli/commands → commands}/index.ts +0 -0
  260. /package/src/{cli/commands → commands}/list.ts +0 -0
  261. /package/src/{cli/commands → commands}/util.ts +0 -0
  262. /package/src/{cli/storage.ts → storage.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAM/C,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAGtD,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as Command from '@effect/cli/Command';
2
- import * as Effect from 'effect/Effect';
3
- import { Plugin } from '@dxos/app-framework';
4
- import { CommandConfig } from '@dxos/cli-util';
5
- export declare const handler: () => Effect.Effect<void, never, Plugin.Service | CommandConfig>;
6
- export declare const list: Command.Command<"list", Plugin.Service | CommandConfig, never, {}>;
7
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAI1D,eAAO,MAAM,OAAO,kEAyBlB,CAAC;AAEH,eAAO,MAAM,IAAI,oEAAiG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/util.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,eAAe,2CAOlD,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './plugin';
2
- export * from './storage';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/cli/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,cAAc,4BAK1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAaxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;aAAgD,MAAM;sHAcnF,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;aAAyD,MAAM;aAAW,MAAM,EAAE;4GAO/G,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { type Plugin } from '@dxos/app-framework';
3
- export type PluginRegistryProps = {
4
- id: string;
5
- plugins: Plugin.Plugin[];
6
- };
7
- export declare const PluginRegistry: ({ id, plugins: pluginsProp }: PluginRegistryProps) => React.JSX.Element;
8
- //# sourceMappingURL=PluginRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginRegistry/PluginRegistry.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAalD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,8BAA8B,mBAAmB,sBA2D/E,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PluginRegistry } from './PluginRegistry';
2
- export default PluginRegistry;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginRegistry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAe,cAAc,CAAC"}
@@ -1,137 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
-
7
- import { Capabilities, Capability } from '@dxos/app-framework';
8
- import { AppCapabilities, SettingsOperation } from '@dxos/app-toolkit';
9
- import { Operation } from '@dxos/operation';
10
- import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
11
-
12
- import { REGISTRY_ID, REGISTRY_KEY, meta } from '../../meta';
13
-
14
- export default Capability.makeModule(
15
- Effect.fnUntraced(function* () {
16
- const capabilities = yield* Capability.Service;
17
-
18
- const extensions = yield* Effect.all([
19
- GraphBuilder.createExtension({
20
- id: meta.id,
21
- match: NodeMatcher.whenRoot,
22
- actions: () =>
23
- Effect.succeed([
24
- {
25
- id: meta.id,
26
- data: () => Operation.invoke(SettingsOperation.OpenPluginRegistry),
27
- properties: {
28
- label: ['open plugin registry label', { ns: meta.id }],
29
- icon: 'ph--squares-four--regular',
30
- disposition: 'menu',
31
- },
32
- },
33
- ]),
34
- }),
35
- GraphBuilder.createExtension({
36
- id: meta.id,
37
- match: NodeMatcher.whenRoot,
38
- connector: () =>
39
- Effect.succeed([
40
- {
41
- id: REGISTRY_ID,
42
- type: meta.id,
43
- properties: {
44
- label: ['plugin registry label', { ns: meta.id }],
45
- icon: 'ph--squares-four--regular',
46
- disposition: 'pin-end',
47
- testId: 'treeView.pluginRegistry',
48
- },
49
- nodes: [
50
- {
51
- id: `${REGISTRY_KEY}>all`,
52
- type: 'category' as const,
53
- data: `${REGISTRY_KEY}>all`,
54
- properties: {
55
- label: ['all plugins label', { ns: meta.id }],
56
- icon: 'ph--squares-four--regular',
57
- key: REGISTRY_KEY,
58
- testId: 'pluginRegistry.all',
59
- },
60
- },
61
- {
62
- id: `${REGISTRY_KEY}>installed`,
63
- type: 'category' as const,
64
- data: `${REGISTRY_KEY}>installed`,
65
- properties: {
66
- label: ['installed plugins label', { ns: meta.id }],
67
- icon: 'ph--check--regular',
68
- key: REGISTRY_KEY,
69
- testId: 'pluginRegistry.installed',
70
- },
71
- },
72
- {
73
- id: `${REGISTRY_KEY}>recommended`,
74
- type: 'category' as const,
75
- data: `${REGISTRY_KEY}>recommended`,
76
- properties: {
77
- label: ['recommended plugins label', { ns: meta.id }],
78
- icon: 'ph--star--regular',
79
- key: REGISTRY_KEY,
80
- testId: 'pluginRegistry.recommended',
81
- },
82
- },
83
- {
84
- id: `${REGISTRY_KEY}>labs`,
85
- type: 'category' as const,
86
- data: `${REGISTRY_KEY}>labs`,
87
- properties: {
88
- label: ['labs plugins label', { ns: meta.id }],
89
- icon: 'ph--flask--regular',
90
- key: REGISTRY_KEY,
91
- testId: 'pluginRegistry.labs',
92
- },
93
- },
94
- ],
95
- },
96
- ]),
97
- }),
98
- GraphBuilder.createExtension({
99
- id: `${meta.id}.actions`,
100
- match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
101
- actions: () =>
102
- Effect.succeed([
103
- {
104
- id: `${meta.id}.load-by-url`,
105
- data: Effect.fnUntraced(function* () {}),
106
- properties: {
107
- label: ['load by url label', { ns: meta.id }],
108
- icon: 'ph--cloud-arrow-down--regular',
109
- disabled: true,
110
- },
111
- },
112
- ]),
113
- }),
114
- GraphBuilder.createExtension({
115
- id: `${meta.id}.plugins`,
116
- match: NodeMatcher.whenId(`root/${REGISTRY_ID}`),
117
- connector: () => {
118
- const manager = capabilities.get(Capabilities.PluginManager);
119
- return Effect.succeed(
120
- manager.getPlugins().map((plugin) => ({
121
- id: plugin.meta.id,
122
- type: 'org.dxos.plugin',
123
- data: plugin,
124
- properties: {
125
- label: plugin.meta.name ?? plugin.meta.id,
126
- icon: plugin.meta.icon ?? 'ph--circle--regular',
127
- disposition: 'hidden',
128
- },
129
- })),
130
- );
131
- },
132
- }),
133
- ]);
134
-
135
- return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
136
- }),
137
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));
@@ -1,24 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
-
7
- import { Capabilities, Capability } from '@dxos/app-framework';
8
- import { LayoutOperation, SettingsOperation, getSpacePath } from '@dxos/app-toolkit';
9
- import { Operation, OperationResolver } from '@dxos/operation';
10
-
11
- import { REGISTRY_ID } from '../../meta';
12
-
13
- export default Capability.makeModule(
14
- Effect.fnUntraced(function* () {
15
- return Capability.contributes(Capabilities.OperationResolver, [
16
- OperationResolver.make({
17
- operation: SettingsOperation.OpenPluginRegistry,
18
- handler: Effect.fnUntraced(function* () {
19
- yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(REGISTRY_ID) });
20
- }),
21
- }),
22
- ]);
23
- }),
24
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
@@ -1,88 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
- import React, { useMemo } from 'react';
7
-
8
- import { Capabilities, Capability, Plugin } from '@dxos/app-framework';
9
- import { Surface, usePluginManager } from '@dxos/app-framework/ui';
10
-
11
- import { PluginArticle, PluginRegistry } from '../../containers';
12
- import { REGISTRY_KEY, meta } from '../../meta';
13
-
14
- export default Capability.makeModule(() =>
15
- Effect.succeed(
16
- Capability.contributes(Capabilities.ReactSurface, [
17
- Surface.create({
18
- id: `${meta.id}.all`,
19
- role: 'article',
20
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}>all`,
21
- component: () => {
22
- const manager = usePluginManager();
23
- const filtered = useMemo(
24
- () => manager.getPlugins().filter(({ meta }) => !manager.getCore().includes(meta.id)),
25
- [],
26
- );
27
-
28
- return <PluginRegistry id={`${REGISTRY_KEY}>all`} plugins={filtered} />;
29
- },
30
- }),
31
- Surface.create({
32
- id: `${meta.id}.installed`,
33
- role: 'article',
34
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}>installed`,
35
- component: () => {
36
- const manager = usePluginManager();
37
- const filtered = useMemo(
38
- () =>
39
- manager
40
- .getPlugins()
41
- .filter(({ meta }) => !manager.getCore().includes(meta.id))
42
- .filter(({ meta }) => manager.getEnabled().includes(meta.id)),
43
- [],
44
- );
45
-
46
- return <PluginRegistry id={`${REGISTRY_KEY}>installed`} plugins={filtered} />;
47
- },
48
- }),
49
- Surface.create({
50
- id: `${meta.id}.recommended`,
51
- role: 'article',
52
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}>recommended`,
53
- component: () => {
54
- const manager = usePluginManager();
55
- const filtered = useMemo(
56
- () =>
57
- manager
58
- .getPlugins()
59
- .filter(({ meta }) => !manager.getCore().includes(meta.id))
60
- .filter(({ meta }) => !meta.tags?.includes('labs')),
61
- [],
62
- );
63
-
64
- return <PluginRegistry id={`${REGISTRY_KEY}>recommended`} plugins={filtered} />;
65
- },
66
- }),
67
- Surface.create({
68
- id: `${meta.id}.labs`,
69
- role: 'article',
70
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}>labs`,
71
- component: () => {
72
- const manager = usePluginManager();
73
- const filtered = useMemo(() => manager.getPlugins().filter(({ meta }) => meta.tags?.includes('labs')), []);
74
-
75
- return <PluginRegistry id={`${REGISTRY_KEY}>labs`} plugins={filtered} />;
76
- },
77
- }),
78
- Surface.create({
79
- id: `${meta.id}.plugin-details`,
80
- role: 'article',
81
- filter: (data): data is { subject: Plugin.Plugin } => Plugin.isPlugin(data.subject),
82
- component: ({ data: { subject } }) => {
83
- return <PluginArticle subject={subject} />;
84
- },
85
- }),
86
- ]),
87
- ),
88
- );
package/src/cli/index.ts DELETED
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- export * from './plugin';
6
- export * from './storage';
@@ -1,86 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import { useAtomValue } from '@effect-atom/atom-react';
6
- import * as Effect from 'effect/Effect';
7
- import React, { useCallback, useMemo } from 'react';
8
-
9
- import { type Plugin } from '@dxos/app-framework';
10
- import { useCapabilities, useOperationInvoker, usePluginManager } from '@dxos/app-framework/ui';
11
- import { AppCapabilities, LayoutOperation, SettingsOperation } from '@dxos/app-toolkit';
12
- import { runAndForwardErrors } from '@dxos/effect';
13
- import { ObservabilityOperation } from '@dxos/plugin-observability/types';
14
- import { ScrollArea } from '@dxos/react-ui';
15
-
16
- import { PluginList } from '../../components';
17
- import { getPluginPath } from '../../meta';
18
-
19
- const sortByPluginMeta = ({ meta: { name: a = '' } }: Plugin.Plugin, { meta: { name: b = '' } }: Plugin.Plugin) =>
20
- a.localeCompare(b);
21
-
22
- export type PluginRegistryProps = {
23
- id: string;
24
- plugins: Plugin.Plugin[];
25
- };
26
-
27
- export const PluginRegistry = ({ id, plugins: pluginsProp }: PluginRegistryProps) => {
28
- const manager = usePluginManager();
29
- const { invoke, invokePromise } = useOperationInvoker();
30
- const plugins = useMemo(() => pluginsProp.sort(sortByPluginMeta), [pluginsProp]);
31
- const enabled = useAtomValue(manager.enabled);
32
- const allSettings = useCapabilities(AppCapabilities.Settings);
33
-
34
- // TODO(wittjosiah): Factor out to an intent?
35
- const handleChange = useCallback(
36
- (id: string, enabled: boolean) =>
37
- Effect.gen(function* () {
38
- if (enabled) {
39
- yield* manager.enable(id);
40
- } else {
41
- yield* manager.disable(id);
42
- }
43
-
44
- yield* invoke(ObservabilityOperation.SendEvent, {
45
- name: 'plugins.toggle',
46
- properties: {
47
- plugin: id,
48
- enabled,
49
- },
50
- });
51
- }).pipe(runAndForwardErrors),
52
- [invoke, manager],
53
- );
54
-
55
- const handleClick = useCallback(
56
- (pluginId: string) =>
57
- invokePromise(LayoutOperation.Open, {
58
- subject: [getPluginPath(pluginId)],
59
- pivotId: id,
60
- positioning: 'end',
61
- }),
62
- [invokePromise, id],
63
- );
64
-
65
- const hasSettings = useCallback((pluginId: string) => allSettings.some((s) => s.prefix === pluginId), [allSettings]);
66
-
67
- const handleSettings = useCallback(
68
- (pluginId: string) => invokePromise(SettingsOperation.Open, { plugin: pluginId }),
69
- [invokePromise],
70
- );
71
-
72
- return (
73
- <ScrollArea.Root orientation='vertical'>
74
- <ScrollArea.Viewport>
75
- <PluginList
76
- plugins={plugins}
77
- enabled={enabled}
78
- onClick={handleClick}
79
- onChange={handleChange}
80
- hasSettings={hasSettings}
81
- onSettings={handleSettings}
82
- />
83
- </ScrollArea.Viewport>
84
- </ScrollArea.Root>
85
- );
86
- };
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import { PluginRegistry } from './PluginRegistry';
6
-
7
- export default PluginRegistry;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes