@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.
- package/LICENSE +102 -5
- package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
- package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
- package/dist/lib/{browser/cli/index.mjs → neutral/RegistryPlugin.node.mjs} +28 -97
- package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs +34 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +25 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +18 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +70 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/RegistryPlugin.d.ts +1 -0
- package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
- package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
- package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +15 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +14 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
- package/dist/types/src/commands/disable.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
- package/dist/types/src/commands/enable.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/list.d.ts +7 -0
- package/dist/types/src/commands/list.d.ts.map +1 -0
- package/dist/types/src/commands/util.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +75 -2
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +60 -16
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginItem.d.ts +29 -2
- package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
- package/dist/types/src/components/PluginList/PluginList.d.ts +18 -3
- package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -1
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts +58 -16
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
- package/dist/types/src/containers/PluginArticle/index.d.ts +1 -2
- package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -1
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +5 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +9 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
- package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
- package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
- package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +16 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/storage.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +57 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +30 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +60 -37
- package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +3 -1
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +13 -5
- package/src/RegistryPlugin.workerd.ts +11 -0
- package/src/capabilities/app-graph-builder.ts +200 -0
- package/src/capabilities/dev-plugin-loader.ts +39 -0
- package/src/capabilities/index.ts +11 -3
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +145 -0
- package/src/capabilities/settings.ts +34 -0
- package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +5 -4
- package/src/components/PluginDetail/PluginDetail.tsx +320 -62
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +117 -15
- package/src/components/PluginList/PluginList.stories.tsx +17 -14
- package/src/components/PluginList/PluginList.tsx +32 -4
- package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
- package/src/components/RegistrySettings/index.ts +5 -0
- package/src/components/index.ts +3 -0
- package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
- package/src/containers/BaseRegistryArticle/index.ts +5 -0
- package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
- package/src/containers/LoadPluginDialog/index.ts +5 -0
- package/src/containers/PluginArticle/PluginArticle.tsx +102 -13
- package/src/containers/PluginArticle/index.ts +1 -3
- package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +192 -0
- package/src/containers/PublicRegistryArticle/index.ts +5 -0
- package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
- package/src/containers/RegistryArticle/index.ts +5 -0
- package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
- package/src/containers/RegistrySettingsContainer/index.ts +5 -0
- package/src/containers/index.ts +5 -1
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useAutoTags.ts +51 -0
- package/src/hooks/useCatalogEntry.ts +25 -0
- package/src/hooks/useDisableConfirmation.ts +58 -0
- package/src/hooks/useInstalledVersionTag.ts +41 -0
- package/src/hooks/usePluginActions.ts +174 -0
- package/src/hooks/useRegistryPlugins.ts +29 -0
- package/src/hooks/useUpdateAvailable.ts +31 -0
- package/src/hooks/useVersionPicker.ts +112 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +26 -1
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/translations.ts +62 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/PluginArticle-N2ITBUGD.mjs +0 -29
- package/dist/lib/browser/PluginArticle-N2ITBUGD.mjs.map +0 -7
- package/dist/lib/browser/PluginRegistry-DKO4UEYH.mjs +0 -78
- package/dist/lib/browser/PluginRegistry-DKO4UEYH.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs +0 -167
- package/dist/lib/browser/app-graph-builder-AHS5BI4Y.mjs.map +0 -7
- package/dist/lib/browser/chunk-2YWVCU2W.mjs +0 -191
- package/dist/lib/browser/chunk-2YWVCU2W.mjs.map +0 -7
- package/dist/lib/browser/chunk-KMUDYITM.mjs +0 -21
- package/dist/lib/browser/chunk-KMUDYITM.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -65
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs +0 -25
- package/dist/lib/browser/operation-resolver-PK4B2BZQ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-ZBP7YXKO.mjs +0 -85
- package/dist/lib/browser/react-surface-ZBP7YXKO.mjs.map +0 -7
- package/dist/lib/node-esm/PluginArticle-3NEYDKN5.mjs +0 -30
- package/dist/lib/node-esm/PluginArticle-3NEYDKN5.mjs.map +0 -7
- package/dist/lib/node-esm/PluginRegistry-BYKWC732.mjs +0 -79
- package/dist/lib/node-esm/PluginRegistry-BYKWC732.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs +0 -168
- package/dist/lib/node-esm/app-graph-builder-DBDL5WWF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BOCFM775.mjs +0 -192
- package/dist/lib/node-esm/chunk-BOCFM775.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ENSNUFQK.mjs +0 -23
- package/dist/lib/node-esm/chunk-ENSNUFQK.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -223
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -66
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs +0 -26
- package/dist/lib/node-esm/operation-resolver-CCHN4NBP.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-FJHMLGZF.mjs +0 -86
- package/dist/lib/node-esm/react-surface-FJHMLGZF.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
- package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/list.d.ts +0 -7
- package/dist/types/src/cli/commands/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -3
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/cli/storage.d.ts.map +0 -1
- package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +0 -8
- package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +0 -1
- package/dist/types/src/containers/PluginRegistry/index.d.ts +0 -3
- package/dist/types/src/containers/PluginRegistry/index.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -137
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -24
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -88
- package/src/cli/index.ts +0 -6
- package/src/containers/PluginRegistry/PluginRegistry.tsx +0 -86
- package/src/containers/PluginRegistry/index.ts +0 -7
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
- /package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +0 -0
- /package/src/{cli/commands → commands}/disable.ts +0 -0
- /package/src/{cli/commands → commands}/enable.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/list.ts +0 -0
- /package/src/{cli/commands → commands}/util.ts +0 -0
- /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 +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 +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,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,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,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
|
-
};
|
|
File without changes
|
/package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|