@dxos/plugin-registry 0.8.4-main.d05673bc65 → 0.8.4-main.dfabb4ec29
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/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/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/{browser/chunk-KMUDYITM.mjs → neutral/chunk-YV7A523U.mjs} +11 -3
- package/dist/lib/neutral/chunk-YV7A523U.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +21 -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 +61 -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/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/PluginDetail/PluginDetail.d.ts +39 -2
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +51 -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 +49 -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 +2 -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 +4 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
- package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
- package/dist/types/src/hooks/use-registry-plugins.d.ts +15 -0
- package/dist/types/src/hooks/use-registry-plugins.d.ts.map +1 -0
- package/dist/types/src/hooks/use-update-available.d.ts +18 -0
- package/dist/types/src/hooks/use-update-available.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 +3 -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 +48 -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 +57 -36
- 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/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 +136 -0
- package/src/capabilities/settings.ts +34 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +4 -4
- package/src/components/PluginDetail/PluginDetail.tsx +175 -60
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +116 -14
- 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 +2 -0
- package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +163 -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 +317 -9
- 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 +7 -0
- package/src/hooks/use-auto-tags.ts +51 -0
- package/src/hooks/use-registry-plugins.ts +29 -0
- package/src/hooks/use-update-available.ts +31 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +10 -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 +52 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/PluginArticle-74DKRXJH.mjs +0 -29
- package/dist/lib/browser/PluginArticle-74DKRXJH.mjs.map +0 -7
- package/dist/lib/browser/PluginRegistry-DORQQ7GM.mjs +0 -78
- package/dist/lib/browser/PluginRegistry-DORQQ7GM.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-KMUDYITM.mjs.map +0 -7
- package/dist/lib/browser/chunk-QQUG6FNW.mjs +0 -191
- package/dist/lib/browser/chunk-QQUG6FNW.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-HPLHM3SK.mjs +0 -85
- package/dist/lib/browser/react-surface-HPLHM3SK.mjs.map +0 -7
- package/dist/lib/node-esm/PluginArticle-JPVC7NXQ.mjs +0 -30
- package/dist/lib/node-esm/PluginArticle-JPVC7NXQ.mjs.map +0 -7
- package/dist/lib/node-esm/PluginRegistry-3ZB4DFF7.mjs +0 -79
- package/dist/lib/node-esm/PluginRegistry-3ZB4DFF7.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-ENSNUFQK.mjs +0 -23
- package/dist/lib/node-esm/chunk-ENSNUFQK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-II5WBDYI.mjs +0 -192
- package/dist/lib/node-esm/chunk-II5WBDYI.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-GM64KKI3.mjs +0 -86
- package/dist/lib/node-esm/react-surface-GM64KKI3.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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* Startup module that auto-loads a locally-served dev plugin when the user has
|
|
5
|
+
* the toggle enabled in registry settings. Failures (dev server offline, 404,
|
|
6
|
+
* timeout) are logged and swallowed so a stale dev URL never blocks app boot —
|
|
7
|
+
* the toggle stays on, the next reload retries.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: (props: void) => Effect.Effect<[], Error, Capability.Service>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=dev-plugin-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-plugin-loader.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/dev-plugin-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAK/D;;;;;GAKG"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
3
|
+
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
4
|
+
export declare const DevPluginLoader: Capability.LazyCapability<void, [], Error>;
|
|
5
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
6
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
7
|
+
export declare const RegistrySettings: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<{
|
|
8
|
+
experimental?: boolean | undefined;
|
|
9
|
+
devPluginUrl?: string | undefined;
|
|
10
|
+
devPluginEnabled?: boolean | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
experimental?: boolean | undefined;
|
|
13
|
+
devPluginUrl?: string | undefined;
|
|
14
|
+
devPluginEnabled?: boolean | undefined;
|
|
15
|
+
}>>>, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.Settings>>], Error>;
|
|
4
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,eAAe,4CAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB;;;;;;;;mHAAkE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<{
|
|
5
|
+
experimental?: boolean | undefined;
|
|
6
|
+
devPluginUrl?: string | undefined;
|
|
7
|
+
devPluginEnabled?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
experimental?: boolean | undefined;
|
|
10
|
+
devPluginUrl?: string | undefined;
|
|
11
|
+
devPluginEnabled?: boolean | undefined;
|
|
12
|
+
}>>>, Capability.Capability<Capability.InterfaceDef<AppCapabilities.Settings>>], never, never>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { Plugin } from '@dxos/app-framework';
|
|
|
4
4
|
import { CommandConfig } from '@dxos/cli-util';
|
|
5
5
|
export declare const handler: (args_0: {
|
|
6
6
|
id: string;
|
|
7
|
-
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError,
|
|
8
|
-
export declare const disable: Command.Command<"disable",
|
|
7
|
+
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service>;
|
|
8
|
+
export declare const disable: Command.Command<"disable", CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service, Error | import("@effect/platform/Error").PlatformError, {
|
|
9
9
|
readonly id: string;
|
|
10
10
|
}>;
|
|
11
11
|
//# sourceMappingURL=disable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../src/commands/disable.ts"],"names":[],"mappings":"AAKA,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,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAuB9D,CAAC;AAEH,eAAO,MAAM,OAAO;;EAMgC,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { Plugin } from '@dxos/app-framework';
|
|
|
4
4
|
import { CommandConfig } from '@dxos/cli-util';
|
|
5
5
|
export declare const handler: (args_0: {
|
|
6
6
|
id: string;
|
|
7
|
-
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError,
|
|
8
|
-
export declare const enable: Command.Command<"enable",
|
|
7
|
+
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service>;
|
|
8
|
+
export declare const enable: Command.Command<"enable", CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service, Error | import("@effect/platform/Error").PlatformError, {
|
|
9
9
|
readonly id: string;
|
|
10
10
|
}>;
|
|
11
11
|
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/commands/enable.ts"],"names":[],"mappings":"AAKA,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,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAoB9D,CAAC;AAEH,eAAO,MAAM,MAAM;;EAMgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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, CommandConfig | Plugin.Service>;
|
|
6
|
+
export declare const list: Command.Command<"list", CommandConfig | Plugin.Service, never, {}>;
|
|
7
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/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,WAAY,eAAe,2CAOlD,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
import { type Registry, type Plugin, type PluginManager } from '@dxos/app-framework';
|
|
3
3
|
export type PluginDetailProps = {
|
|
4
4
|
plugin: Plugin.Plugin;
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
onEnabledChange?: (enabled: boolean) => void;
|
|
7
|
+
/**
|
|
8
|
+
* When provided, an Uninstall button is rendered. Leave undefined for core
|
|
9
|
+
* or non-removable plugins.
|
|
10
|
+
*/
|
|
11
|
+
onUninstall?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* When provided, the plugin is not installed and an Install button is shown
|
|
14
|
+
* in place of the enable Switch.
|
|
15
|
+
*/
|
|
16
|
+
onInstall?: () => void;
|
|
17
|
+
installing?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* When provided and the plugin is installed with a newer catalog version available,
|
|
20
|
+
* an Update button is shown in place of the enable Switch.
|
|
21
|
+
*/
|
|
22
|
+
onUpdate?: () => void;
|
|
23
|
+
/** True when the catalog has a newer version than the one installed. */
|
|
24
|
+
hasUpdate?: boolean;
|
|
25
|
+
/** True while an in-flight update is running. Forces the Update button disabled state. */
|
|
26
|
+
updating?: boolean;
|
|
27
|
+
/** Available versions of this plugin from the catalog. When non-empty, a version picker is shown. */
|
|
28
|
+
versions?: readonly Registry.PluginVersion[];
|
|
29
|
+
/** Currently selected version tag in the picker. */
|
|
30
|
+
selectedVersionTag?: string;
|
|
31
|
+
/** Called when the user selects a different version in the picker. */
|
|
32
|
+
onVersionChange?: (tag: string) => void;
|
|
33
|
+
/** Called when the user clicks Install on the version picker. */
|
|
34
|
+
onInstallVersion?: () => void;
|
|
35
|
+
/** Currently installed version tag (used to mark the matching select option). */
|
|
36
|
+
installedVersionTag?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Failure record for this plugin, if any. When present a warning badge is
|
|
39
|
+
* rendered next to the plugin name in the header.
|
|
40
|
+
*/
|
|
41
|
+
failure?: PluginManager.PluginFailure;
|
|
7
42
|
};
|
|
8
|
-
export declare const PluginDetail:
|
|
43
|
+
export declare const PluginDetail: React.ForwardRefExoticComponent<Omit<PluginDetailProps, "className"> & {
|
|
44
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
45
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
46
|
//# sourceMappingURL=PluginDetail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginDetail.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluginDetail.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQrF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qGAAqG;IACrG,QAAQ,CAAC,EAAE,SAAS,QAAQ,CAAC,aAAa,EAAE,CAAC;IAC7C,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,YAAY;;2HA0IxB,CAAC"}
|
|
@@ -1,27 +1,62 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./PluginDetail").PluginDetailProps, "className"> & {
|
|
5
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
6
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
7
|
decorators: import("@storybook/react").Decorator[];
|
|
6
8
|
parameters: {
|
|
7
9
|
layout: string;
|
|
8
10
|
translations: [{
|
|
9
11
|
readonly 'en-US': {
|
|
10
|
-
readonly [
|
|
11
|
-
readonly 'plugin
|
|
12
|
-
readonly 'details
|
|
13
|
-
readonly 'home
|
|
14
|
-
readonly 'source
|
|
15
|
-
readonly 'plugin
|
|
16
|
-
readonly '
|
|
17
|
-
readonly '
|
|
18
|
-
readonly '
|
|
19
|
-
readonly '
|
|
20
|
-
readonly '
|
|
21
|
-
readonly '
|
|
22
|
-
readonly '
|
|
23
|
-
readonly '
|
|
24
|
-
readonly '
|
|
12
|
+
readonly [x: string]: {
|
|
13
|
+
readonly 'plugin.name': 'Registry';
|
|
14
|
+
readonly 'details.label': 'Details';
|
|
15
|
+
readonly 'home-page.label': 'Website';
|
|
16
|
+
readonly 'source.label': 'Source';
|
|
17
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
18
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
19
|
+
readonly 'official-plugins.label': 'Official';
|
|
20
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
21
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
22
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
23
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
24
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
25
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
26
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
27
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
28
|
+
readonly 'loading.label': 'Loading...';
|
|
29
|
+
readonly 'filter.label': 'Filter plugins';
|
|
30
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
31
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
32
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
33
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
34
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
35
|
+
readonly 'dev-plugin.description': 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR \u2014 useful when iterating on a community plugin against a live registry version.';
|
|
36
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
37
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
38
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
39
|
+
readonly 'dev-plugin.toggle.description': 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.';
|
|
40
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
41
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
42
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
43
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
44
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
45
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
46
|
+
readonly 'install.label': 'Install';
|
|
47
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
48
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
49
|
+
readonly 'update.label': 'Update';
|
|
50
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
51
|
+
readonly 'versions.label': 'Versions';
|
|
52
|
+
readonly 'installed.label': 'installed';
|
|
53
|
+
readonly 'install-version.label': 'Install version';
|
|
54
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
55
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
56
|
+
readonly 'failure-phase-load.label': 'load';
|
|
57
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
58
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
59
|
+
readonly 'failure-reason-error.label': 'error';
|
|
25
60
|
};
|
|
26
61
|
};
|
|
27
62
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginDetail.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"PluginDetail.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PluginManager } from '@dxos/app-framework';
|
|
3
|
+
type IconSize = 4 | 5 | 6 | 8;
|
|
4
|
+
export type PluginFailureBadgeProps = {
|
|
5
|
+
failure: PluginManager.PluginFailure;
|
|
6
|
+
/** Optional override for the trigger icon's tailwind classes. */
|
|
7
|
+
iconClassNames?: string;
|
|
8
|
+
/** Visual size of the warning icon (passed through to react-ui `<Icon />`). */
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Compact warning glyph rendered next to a plugin's name when it has failed
|
|
13
|
+
* to load or activate. Clicking the icon opens a popover that names the phase
|
|
14
|
+
* (load / activation), the reason (timeout / error), and the underlying error
|
|
15
|
+
* message — enough for an operator to tell "remote host is offline" apart
|
|
16
|
+
* from "the plugin crashed".
|
|
17
|
+
*/
|
|
18
|
+
export declare const PluginFailureBadge: ({ failure, iconClassNames, size }: PluginFailureBadgeProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=PluginFailureBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginFailureBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginFailureBadge/PluginFailureBadge.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOzD,KAAK,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9B,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC;IACrC,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,sCAA2C,uBAAuB,sBAqChG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginFailureBadge/index.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
import { type Plugin, type PluginManager } from '@dxos/app-framework';
|
|
3
3
|
export type PluginItemProps = {
|
|
4
4
|
plugin: Plugin.Plugin;
|
|
5
|
+
/** Ids of plugins currently installed (loaded into the manager). */
|
|
5
6
|
installed?: readonly string[];
|
|
7
|
+
/** Ids of plugins whose install is in flight. */
|
|
8
|
+
installing?: readonly string[];
|
|
6
9
|
enabled?: readonly string[];
|
|
10
|
+
/**
|
|
11
|
+
* Derived tags (e.g. `registry`, `local`) to display alongside the plugin's own meta.tags.
|
|
12
|
+
* Not persisted to plugin meta; computed per-render by the container.
|
|
13
|
+
*/
|
|
14
|
+
extraTags?: readonly string[];
|
|
7
15
|
onClick?: (id: string) => void;
|
|
8
16
|
onChange?: (id: string, enabled: boolean) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Install handler. When provided and the plugin is not installed, an Install button
|
|
19
|
+
* is rendered in place of the enable switch.
|
|
20
|
+
*/
|
|
21
|
+
onInstall?: (id: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* When true and plugin is installed, shows an Update button instead of the enable switch.
|
|
24
|
+
*/
|
|
25
|
+
hasUpdate?: boolean;
|
|
26
|
+
/** Called when the user clicks the Update button. */
|
|
27
|
+
onUpdate?: (id: string) => void;
|
|
28
|
+
/** Ids of plugins whose update is currently in flight. */
|
|
29
|
+
updating?: readonly string[];
|
|
9
30
|
hasSettings?: (id: string) => boolean;
|
|
10
31
|
onSettings?: (id: string) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Failure record for this plugin, if any. When present a warning badge is
|
|
34
|
+
* rendered next to the plugin name; clicking it opens a popover with the
|
|
35
|
+
* phase, reason, and error message.
|
|
36
|
+
*/
|
|
37
|
+
failure?: PluginManager.PluginFailure;
|
|
11
38
|
};
|
|
12
|
-
export declare const PluginItem: ({ plugin, enabled, onClick, onChange, hasSettings: hasSettingsProp, onSettings, }: PluginItemProps) => React.JSX.Element;
|
|
39
|
+
export declare const PluginItem: ({ plugin, installed, installing, enabled, extraTags, onClick, onChange, onInstall, hasUpdate, onUpdate, updating, hasSettings: hasSettingsProp, onSettings, failure, }: PluginItemProps) => React.JSX.Element;
|
|
13
40
|
//# sourceMappingURL=PluginItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginItem.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"PluginItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAqBtE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,oEAAoE;IACpE,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iDAAiD;IACjD,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,UAAU,2KAepB,eAAe,sBAuIjB,CAAC"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
import { type Plugin, type PluginManager } from '@dxos/app-framework';
|
|
3
3
|
import { type PluginItemProps } from './PluginItem';
|
|
4
|
-
export type PluginListProps = Omit<PluginItemProps, 'plugin'> & {
|
|
4
|
+
export type PluginListProps = Omit<PluginItemProps, 'plugin' | 'extraTags' | 'hasUpdate' | 'failure'> & {
|
|
5
5
|
plugins?: readonly Plugin.Plugin[];
|
|
6
|
+
/**
|
|
7
|
+
* Map from plugin id → extra tags to display (e.g. `registry`, `local`).
|
|
8
|
+
* Computed by the container; not persisted to plugin meta.
|
|
9
|
+
*/
|
|
10
|
+
extraTagsById?: Record<string, readonly string[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Set of plugin ids for which a newer version is available in the catalog.
|
|
13
|
+
* Causes each matching item to render an Update button instead of the enable switch.
|
|
14
|
+
*/
|
|
15
|
+
updateAvailableIds?: ReadonlySet<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Map from plugin id → most recent failure record. Used to render a warning
|
|
18
|
+
* badge next to the plugin name. Sourced from `PluginManager.failed`.
|
|
19
|
+
*/
|
|
20
|
+
failuresById?: Record<string, PluginManager.PluginFailure>;
|
|
6
21
|
};
|
|
7
|
-
export declare const PluginList: ({ plugins, ...props }: PluginListProps) => React.JSX.Element;
|
|
22
|
+
export declare const PluginList: ({ plugins, extraTagsById, updateAvailableIds, failuresById, ...props }: PluginListProps) => React.JSX.Element;
|
|
8
23
|
//# sourceMappingURL=PluginList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginList.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluginList.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IACtG,OAAO,CAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;IAClD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,UAAU,2EAMpB,eAAe,sBAejB,CAAC"}
|
|
@@ -2,26 +2,59 @@ import { type StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ plugins, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
|
|
5
|
+
component: ({ plugins, extraTagsById, updateAvailableIds, failuresById, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
|
|
6
6
|
render: () => React.JSX.Element;
|
|
7
7
|
parameters: {
|
|
8
8
|
translations: [{
|
|
9
9
|
readonly 'en-US': {
|
|
10
|
-
readonly [
|
|
11
|
-
readonly 'plugin
|
|
12
|
-
readonly 'details
|
|
13
|
-
readonly 'home
|
|
14
|
-
readonly 'source
|
|
15
|
-
readonly 'plugin
|
|
16
|
-
readonly '
|
|
17
|
-
readonly '
|
|
18
|
-
readonly '
|
|
19
|
-
readonly '
|
|
20
|
-
readonly '
|
|
21
|
-
readonly '
|
|
22
|
-
readonly '
|
|
23
|
-
readonly '
|
|
24
|
-
readonly '
|
|
10
|
+
readonly [x: string]: {
|
|
11
|
+
readonly 'plugin.name': 'Registry';
|
|
12
|
+
readonly 'details.label': 'Details';
|
|
13
|
+
readonly 'home-page.label': 'Website';
|
|
14
|
+
readonly 'source.label': 'Source';
|
|
15
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
16
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
17
|
+
readonly 'official-plugins.label': 'Official';
|
|
18
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
19
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
20
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
21
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
22
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
23
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
24
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
25
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
26
|
+
readonly 'loading.label': 'Loading...';
|
|
27
|
+
readonly 'filter.label': 'Filter plugins';
|
|
28
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
29
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
30
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
31
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
32
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
33
|
+
readonly 'dev-plugin.description': 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR \u2014 useful when iterating on a community plugin against a live registry version.';
|
|
34
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
35
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
36
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
37
|
+
readonly 'dev-plugin.toggle.description': 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.';
|
|
38
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
39
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
40
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
41
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
42
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
43
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
44
|
+
readonly 'install.label': 'Install';
|
|
45
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
46
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
47
|
+
readonly 'update.label': 'Update';
|
|
48
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
49
|
+
readonly 'versions.label': 'Versions';
|
|
50
|
+
readonly 'installed.label': 'installed';
|
|
51
|
+
readonly 'install-version.label': 'Install version';
|
|
52
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
53
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
54
|
+
readonly 'failure-phase-load.label': 'load';
|
|
55
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
56
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
57
|
+
readonly 'failure-reason-error.label': 'error';
|
|
25
58
|
};
|
|
26
59
|
};
|
|
27
60
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginList.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwDxC,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"PluginList.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwDxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOyB,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { type RegistrySettings as RegistrySettingsType } from '../../types';
|
|
4
|
+
export type RegistrySettingsProps = AppSurface.SettingsArticleProps<RegistrySettingsType, {
|
|
5
|
+
activeDevPluginIds: readonly string[];
|
|
6
|
+
onEnableDev: (url: string) => Promise<void>;
|
|
7
|
+
onDisableDev: (id: string) => Promise<void>;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Settings panel for `@dxos/plugin-registry`. The dev-plugin section lets a
|
|
11
|
+
* plugin author point Composer at a local Vite dev server (defaults to
|
|
12
|
+
* `localhost:3967`) and toggle the dev plugin on/off persistently — boot will
|
|
13
|
+
* re-attach it on the next reload, surviving HMR-triggered reloads. If the
|
|
14
|
+
* dev server is offline at boot, the toggle stays on and a warning is logged
|
|
15
|
+
* (the manager's `failed` atom also surfaces a badge on the plugin list).
|
|
16
|
+
*/
|
|
17
|
+
export declare const RegistrySettings: ({ settings, onSettingsChange, activeDevPluginIds, onEnableDev, onDisableDev, }: RegistrySettingsProps) => React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=RegistrySettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistrySettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/RegistrySettings/RegistrySettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOvD,OAAO,EAAE,KAAK,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,oBAAoB,CACjE,oBAAoB,EACpB;IACE,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CACF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,mFAM1B,qBAAqB,sBAiFvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RegistrySettings/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
3
|
+
import { type PluginListProps } from '#components';
|
|
4
|
+
export type BaseRegistryArticleProps = {
|
|
5
|
+
/** Article id used as the pivotId when opening a plugin's detail surface. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Plugins to display, pre-sorted by the caller. */
|
|
8
|
+
plugins: readonly Plugin.Plugin[];
|
|
9
|
+
/**
|
|
10
|
+
* Distinguishes the source of toggle events for observability
|
|
11
|
+
* (e.g. `'registry'` for the public registry surface).
|
|
12
|
+
*/
|
|
13
|
+
source?: string;
|
|
14
|
+
/** Rendered in place of the list when no plugins match the current filter. */
|
|
15
|
+
empty?: ReactNode;
|
|
16
|
+
} & Pick<PluginListProps, 'installed' | 'installing' | 'updating' | 'updateAvailableIds' | 'extraTagsById' | 'failuresById' | 'onInstall' | 'onUpdate'>;
|
|
17
|
+
export declare const BaseRegistryArticle: React.ForwardRefExoticComponent<Omit<BaseRegistryArticleProps, "className"> & {
|
|
18
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
19
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
//# sourceMappingURL=BaseRegistryArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseRegistryArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQlD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAQ/D,MAAM,MAAM,wBAAwB,GAAG;IACrC,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GAAG,IAAI,CACN,eAAe,EACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,oBAAoB,GACpB,eAAe,GACf,cAAc,GACd,WAAW,GACX,UAAU,CACb,CAAC;AAEF,eAAO,MAAM,mBAAmB;;2HAgH/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BaseRegistryArticle/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadPluginDialog.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LoadPluginDialog/LoadPluginDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAQ7D,eAAO,MAAM,kBAAkB,QAAgC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,yBAuE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LoadPluginDialog/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/PluginArticle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluginArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/PluginArticle.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAwF,MAAM,OAAO,CAAC;AAE7G,OAAO,EAAE,KAAK,MAAM,EAAgD,MAAM,qBAAqB,CAAC;AAShG,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,sBAwDpE,CAAC"}
|