@dxos/plugin-registry 0.8.4-main.c85a9c8dae → 0.8.4-main.d9fc60f731
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 -99
- 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-GRQI6MLI.mjs +36 -0
- package/dist/lib/neutral/chunk-GRQI6MLI.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 +72 -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/categories.d.ts +18 -0
- package/dist/types/src/categories.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 +62 -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 +60 -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 +5 -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 +20 -2
- 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/{cli/storage.d.ts → storage.d.ts} +4 -4
- package/dist/types/src/storage.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +59 -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 +63 -39
- 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 +219 -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 +126 -0
- package/src/capabilities/settings.ts +34 -0
- package/src/categories.ts +44 -0
- package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +18 -14
- package/src/components/PluginDetail/PluginDetail.tsx +323 -61
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +124 -25
- package/src/components/PluginList/PluginList.stories.tsx +22 -16
- 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 +88 -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 +193 -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 +52 -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 +34 -8
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/{cli/storage.ts → storage.ts} +14 -21
- package/src/translations.ts +64 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/PluginArticle-MLBF7AFA.mjs +0 -29
- package/dist/lib/browser/PluginArticle-MLBF7AFA.mjs.map +0 -7
- package/dist/lib/browser/PluginRegistry-ENAI4SAY.mjs +0 -77
- package/dist/lib/browser/PluginRegistry-ENAI4SAY.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-2HXD7SOS.mjs +0 -167
- package/dist/lib/browser/app-graph-builder-2HXD7SOS.mjs.map +0 -7
- package/dist/lib/browser/chunk-TSNK3SAR.mjs +0 -191
- package/dist/lib/browser/chunk-TSNK3SAR.mjs.map +0 -7
- package/dist/lib/browser/chunk-VOAOTNGS.mjs +0 -19
- package/dist/lib/browser/chunk-VOAOTNGS.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -63
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs +0 -25
- package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs.map +0 -7
- package/dist/lib/browser/react-surface-DH25DIRH.mjs +0 -85
- package/dist/lib/browser/react-surface-DH25DIRH.mjs.map +0 -7
- package/dist/lib/node-esm/PluginArticle-TP2G6GGI.mjs +0 -30
- package/dist/lib/node-esm/PluginArticle-TP2G6GGI.mjs.map +0 -7
- package/dist/lib/node-esm/PluginRegistry-CWIZIQNX.mjs +0 -78
- package/dist/lib/node-esm/PluginRegistry-CWIZIQNX.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2LNPN72O.mjs +0 -168
- package/dist/lib/node-esm/app-graph-builder-2LNPN72O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4XO63XB6.mjs +0 -192
- package/dist/lib/node-esm/chunk-4XO63XB6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SALMIZ2W.mjs +0 -21
- package/dist/lib/node-esm/chunk-SALMIZ2W.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -225
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -64
- 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-B24QW6IF.mjs +0 -26
- package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-3YBEVL65.mjs +0 -86
- package/dist/lib/node-esm/react-surface-3YBEVL65.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/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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
import { type Registry } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* Owns the version picker's state machine: fetches the available versions list
|
|
5
|
+
* from the provider, prepends the installed version when the catalog stub omits
|
|
6
|
+
* it, and keeps the selection clamped to whatever's currently in the list (so
|
|
7
|
+
* an external update doesn't strand the trigger on a tag that's no longer
|
|
8
|
+
* available).
|
|
9
|
+
*/
|
|
10
|
+
export declare const useVersionPicker: ({ provider, pluginId, repo, moduleUrl, installedVersionTag, }: {
|
|
11
|
+
provider: Registry.Manager;
|
|
12
|
+
pluginId: string;
|
|
13
|
+
repo: string | undefined;
|
|
14
|
+
moduleUrl: string | undefined;
|
|
15
|
+
installedVersionTag: string | undefined;
|
|
16
|
+
}) => {
|
|
17
|
+
pickerVersions: readonly Registry.PluginVersion[];
|
|
18
|
+
selectedVersionTag: string | undefined;
|
|
19
|
+
setSelectedVersionTag: Dispatch<SetStateAction<string | undefined>>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useVersionPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVersionPicker.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVersionPicker.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAgC,MAAM,OAAO,CAAC;AAEzF,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,qBAAqB,CAAC;AAG/D;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,kEAM1B;IACD,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,KAAG;IACF,cAAc,EAAE,SAAS,QAAQ,CAAC,aAAa,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CA+ErE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Plugin } from '@dxos/app-framework';
|
|
2
|
+
import { DXN } from '@dxos/keys';
|
|
3
|
+
export declare const REGISTRY_ID: string;
|
|
3
4
|
export declare const REGISTRY_KEY = "plugin-registry";
|
|
5
|
+
/** Build a registry category node ID. */
|
|
6
|
+
export declare const registryCategoryId: (category: string) => string;
|
|
7
|
+
/** Qualified graph path to a specific plugin node. */
|
|
8
|
+
export declare const getPluginPath: (pluginId: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Qualified graph path to the bundled MDL spec child node for a plugin.
|
|
11
|
+
*
|
|
12
|
+
* The child is contributed by whichever plugin can render MDL (today:
|
|
13
|
+
* `plugin-code`). plugin-registry only knows the path convention so it can:
|
|
14
|
+
* - dispatch `LayoutOperation.Open` to open the spec viewer, and
|
|
15
|
+
* - probe the app graph for the child's existence to gate the "View
|
|
16
|
+
* specification" button. If no plugin contributes a renderer for the
|
|
17
|
+
* child, the node is absent and the button stays hidden.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getPluginSpecPath: (pluginId: string) => string;
|
|
4
20
|
export declare const meta: Plugin.Meta;
|
|
21
|
+
/** Cascade-disable confirmation dialog surface id. */
|
|
22
|
+
export declare const DISABLE_DEPENDENTS_DIALOG: DXN.DXN;
|
|
5
23
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,eAAO,MAAM,WAAW,QAA4C,CAAC;AACrE,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAK9C,yCAAyC;AACzC,eAAO,MAAM,kBAAkB,aAAc,MAAM,KAAG,MAA2D,CAAC;AAElH,sDAAsD;AACtD,eAAO,MAAM,aAAa,aAAc,MAAM,KAAG,MAA2C,CAAC;AAE7F;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,KAAG,MAA2C,CAAC;AAEjG,eAAO,MAAM,IAAI,aAUf,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,SAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,2BAA2B,yCAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-plugin-registry.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-plugin-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,iBAAiB,EAAgB,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAO7E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,cAAc,4BAA6C,CAAC;AAEzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -2,17 +2,17 @@ import * as FileSystem from '@effect/platform/FileSystem';
|
|
|
2
2
|
import * as Path from '@effect/platform/Path';
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
/**
|
|
5
|
-
* Load enabled plugins from profile
|
|
5
|
+
* Load enabled plugins from plugins/<profile>.yml (sibling to profile/).
|
|
6
6
|
* Returns the list of enabled plugin IDs, or an empty array if the file doesn't exist.
|
|
7
7
|
*/
|
|
8
8
|
export declare const loadEnabledPlugins: (args_0: {
|
|
9
9
|
profile: string;
|
|
10
|
-
}) => Effect.Effect<string[] | readonly string[], import("@effect/platform/Error").BadArgument,
|
|
10
|
+
}) => Effect.Effect<string[] | readonly string[], import("@effect/platform/Error").BadArgument, FileSystem.FileSystem>;
|
|
11
11
|
/**
|
|
12
|
-
* Save enabled plugins to profile
|
|
12
|
+
* Save enabled plugins to plugins/<profile>.yml.
|
|
13
13
|
*/
|
|
14
14
|
export declare const saveEnabledPlugins: (args_0: {
|
|
15
15
|
profile: string;
|
|
16
16
|
enabled: string[];
|
|
17
|
-
}) => Effect.Effect<void, import("@effect/platform/Error").PlatformError,
|
|
17
|
+
}) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
18
18
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/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,21 +1,64 @@
|
|
|
1
|
-
import { meta } from './meta';
|
|
2
1
|
export declare const translations: [{
|
|
3
2
|
readonly 'en-US': {
|
|
4
|
-
readonly [
|
|
5
|
-
readonly 'plugin
|
|
6
|
-
readonly 'details
|
|
7
|
-
readonly '
|
|
8
|
-
readonly '
|
|
9
|
-
readonly '
|
|
10
|
-
readonly '
|
|
11
|
-
readonly '
|
|
12
|
-
readonly '
|
|
13
|
-
readonly '
|
|
14
|
-
readonly '
|
|
15
|
-
readonly '
|
|
16
|
-
readonly '
|
|
17
|
-
readonly '
|
|
18
|
-
readonly '
|
|
3
|
+
readonly [x: string]: {
|
|
4
|
+
readonly 'plugin.name': 'Registry';
|
|
5
|
+
readonly 'details.label': 'Details';
|
|
6
|
+
readonly 'description.label': 'Description';
|
|
7
|
+
readonly 'preview.label': 'Preview';
|
|
8
|
+
readonly 'home-page.label': 'Website';
|
|
9
|
+
readonly 'source.label': 'Source';
|
|
10
|
+
readonly 'resources.label': 'Resources';
|
|
11
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
12
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
13
|
+
readonly 'bundled-plugins.label': 'Bundled';
|
|
14
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
15
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
16
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
17
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
18
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
19
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
20
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
21
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
22
|
+
readonly 'loading.label': 'Loading...';
|
|
23
|
+
readonly 'filter.label': 'Filter plugins';
|
|
24
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
25
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
26
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
27
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
28
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
29
|
+
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.';
|
|
30
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
31
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
32
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
33
|
+
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.';
|
|
34
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
35
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
36
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
37
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
38
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
39
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
40
|
+
readonly 'install.label': 'Install';
|
|
41
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
42
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
43
|
+
readonly 'update.label': 'Update';
|
|
44
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
45
|
+
readonly 'versions.label': 'Versions';
|
|
46
|
+
readonly 'installed.label': 'installed';
|
|
47
|
+
readonly 'install-version.label': 'Install version';
|
|
48
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
49
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
50
|
+
readonly 'failure-phase-load.label': 'load';
|
|
51
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
52
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
53
|
+
readonly 'failure-reason-error.label': 'error';
|
|
54
|
+
readonly 'dependencies.label': 'Dependencies';
|
|
55
|
+
readonly 'dependents.label': 'Required by';
|
|
56
|
+
readonly 'spec.label': 'Specification';
|
|
57
|
+
readonly 'open-spec.label': 'Open Specification';
|
|
58
|
+
readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
|
|
59
|
+
readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
|
|
60
|
+
readonly 'disable-dependents-dialog.confirm.label': 'Disable';
|
|
61
|
+
readonly 'cancel.label': 'Cancel';
|
|
19
62
|
};
|
|
20
63
|
};
|
|
21
64
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,UAAU;sCACR,SAAS;0CACL,aAAa;sCACjB,SAAS;wCACP,SAAS;qCACZ,QAAQ;wCACL,WAAW;8CACL,SAAS;8CACT,iBAAiB;8CACjB,SAAS;gDACP,SAAS;kDACP,aAAa;2CACpB,MAAM;+CACF,UAAU;0CACf,eAAe;iDACR,sBAAsB;yCAC9B,YAAY;0CACX,aAAa;sCACjB,YAAY;qCACb,gBAAgB;2CACV,cAAS;+CACL,gCAA2B;6CAC7B,8CAA8C;6CAC9C,gCAAgC;iDAC5B,YAAY;+CAEtC,oOAA+N;6CACzM,cAAc;mDAEpC,qFAAqF;gDAC5D,YAAY;sDAErC,iHAAiH;gDACxF,QAAQ;iDACP,SAAS;8CACZ,eAAU;sDAEjC,oGAAoG;0CACjF,cAAc;mDACL,sBAAsB;sCACnC,SAAS;yCACN,kBAAa;wCACd,WAAW;qCACd,QAAQ;uCACN,gBAAW;uCACX,UAAU;wCACT,WAAW;8CACL,iBAAiB;4CACnB,wBAAwB;4CACxB,qCAAqC;iDAChC,MAAM;uDACA,YAAY;qDACd,WAAW;mDACb,OAAO;2CACf,cAAc;yCAChB,aAAa;mCACnB,eAAe;wCACV,oBAAoB;wDACJ,4BAA4B;8DAE7D,iFAAiF;gEACxC,SAAS;qCACpC,QAAQ;;;EAID,CAAC"}
|
|
@@ -1,8 +1,37 @@
|
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
1
2
|
import * as Schema from 'effect/Schema';
|
|
3
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
4
|
export declare const RegistrySettingsSchema: Schema.mutable<Schema.Struct<{
|
|
3
5
|
experimental: Schema.optional<typeof Schema.Boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* Manifest URL for a plugin served by a local Vite dev server. The
|
|
8
|
+
* registry settings panel pre-fills this with `localhost:3967`; authors
|
|
9
|
+
* iterating on a different port can edit it.
|
|
10
|
+
*/
|
|
11
|
+
devPluginUrl: Schema.optional<typeof Schema.String>;
|
|
12
|
+
/**
|
|
13
|
+
* When true, the registry plugin attempts to load `devPluginUrl` on every
|
|
14
|
+
* app boot. Failures (dev server offline, manifest 404) are logged and
|
|
15
|
+
* the flag stays on so the next boot retries — the user explicitly turns
|
|
16
|
+
* it off when they're done iterating.
|
|
17
|
+
*/
|
|
18
|
+
devPluginEnabled: Schema.optional<typeof Schema.Boolean>;
|
|
4
19
|
}>>;
|
|
5
20
|
export type RegistrySettings = Schema.Schema.Type<typeof RegistrySettingsSchema>;
|
|
6
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Per-plugin capabilities exposed by `@dxos/plugin-registry`.
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace RegistryCapabilities {
|
|
25
|
+
const Settings: Capability.InterfaceDef<Atom.Writable<{
|
|
26
|
+
experimental?: boolean | undefined;
|
|
27
|
+
devPluginUrl?: string | undefined;
|
|
28
|
+
devPluginEnabled?: boolean | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
experimental?: boolean | undefined;
|
|
31
|
+
devPluginUrl?: string | undefined;
|
|
32
|
+
devPluginEnabled?: boolean | undefined;
|
|
33
|
+
}>>;
|
|
34
|
+
}
|
|
35
|
+
export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental", "registry", "local"]>;
|
|
7
36
|
export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
|
|
8
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,sBAAsB;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,sBAAsB;;IAG/B;;;;OAIG;;IAEH;;;;;OAKG;;GAGN,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF;;GAEG;AACH,yBAAiB,oBAAoB,CAAC,CAAC;IAC9B,MAAM,QAAQ;;;;;;;;OAAqF,CAAC;CAC5G;AAED,eAAO,MAAM,eAAe,qGAS3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}
|