@dxos/plugin-registry 0.8.4-main.dedc0f3 → 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/neutral/RegistryPlugin.node.mjs +153 -0
- 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/neutral/chunk-YV7A523U.mjs +29 -0
- 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 +3 -1
- package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
- package/dist/types/src/RegistryPlugin.node.d.ts +4 -0
- 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 +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- 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 +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- 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/commands/disable.d.ts +11 -0
- package/dist/types/src/commands/disable.d.ts.map +1 -0
- package/dist/types/src/commands/enable.d.ts +11 -0
- package/dist/types/src/commands/enable.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts +3 -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 +11 -0
- package/dist/types/src/commands/util.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +46 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +68 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
- package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
- 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 +40 -0
- package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
- package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts +67 -0
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/index.d.ts +2 -0
- package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
- 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 -1
- 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 +7 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
- 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 +8 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- 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 +7 -4
- 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 +18 -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 +32 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +73 -36
- package/src/RegistryPlugin.node.ts +19 -0
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +20 -27
- package/src/capabilities/app-graph-builder.ts +180 -135
- package/src/capabilities/dev-plugin-loader.ts +39 -0
- package/src/capabilities/index.ts +10 -4
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +124 -73
- package/src/capabilities/settings.ts +34 -0
- package/src/commands/disable.ts +47 -0
- package/src/commands/enable.ts +44 -0
- package/src/commands/index.ts +14 -0
- package/src/commands/list.ts +41 -0
- package/src/commands/util.ts +24 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +44 -0
- package/src/components/PluginDetail/PluginDetail.tsx +196 -0
- package/src/components/PluginDetail/index.ts +5 -0
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +226 -0
- package/src/components/PluginList/PluginList.stories.tsx +87 -0
- package/src/components/PluginList/PluginList.tsx +52 -0
- package/src/components/PluginList/index.ts +5 -0
- package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
- package/src/components/RegistrySettings/index.ts +5 -0
- package/src/components/index.ts +2 -1
- 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 +336 -0
- package/src/containers/PluginArticle/index.ts +5 -0
- 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 +12 -0
- 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 +21 -9
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/storage.ts +50 -0
- package/src/translations.ts +52 -15
- package/src/types.ts +37 -1
- package/dist/lib/browser/app-graph-builder-6JQNRTEQ.mjs +0 -161
- package/dist/lib/browser/app-graph-builder-6JQNRTEQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-AEBASNOI.mjs +0 -16
- package/dist/lib/browser/chunk-AEBASNOI.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -71
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-UGDFPMAG.mjs +0 -23
- package/dist/lib/browser/intent-resolver-UGDFPMAG.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-YATPY47L.mjs +0 -335
- package/dist/lib/browser/react-surface-YATPY47L.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/Icon.stories.d.ts +0 -14
- package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
- package/dist/types/src/components/PluginDetail.d.ts +0 -9
- package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
- package/dist/types/src/components/PluginDetail.stories.d.ts +0 -33
- package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
- package/dist/types/src/components/PluginItem.d.ts +0 -13
- package/dist/types/src/components/PluginItem.d.ts.map +0 -1
- package/dist/types/src/components/PluginList.d.ts +0 -8
- package/dist/types/src/components/PluginList.d.ts.map +0 -1
- package/dist/types/src/components/PluginList.stories.d.ts +0 -37
- package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
- package/dist/types/src/components/RegistryContainer.d.ts +0 -7
- package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -27
- package/src/components/Icon.stories.tsx +0 -110
- package/src/components/PluginDetail.stories.tsx +0 -46
- package/src/components/PluginDetail.tsx +0 -65
- package/src/components/PluginItem.tsx +0 -119
- package/src/components/PluginList.stories.tsx +0 -85
- package/src/components/PluginList.tsx +0 -26
- package/src/components/RegistryContainer.tsx +0 -84
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
3
|
+
export type RegistryArticleProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
plugins: Plugin.Plugin[];
|
|
6
|
+
/**
|
|
7
|
+
* Map from plugin id → display-only tags (e.g. `registry`, `local`) computed by the caller.
|
|
8
|
+
*/
|
|
9
|
+
extraTagsById?: Record<string, readonly string[]>;
|
|
10
|
+
};
|
|
11
|
+
export declare const RegistryArticle: React.ForwardRefExoticComponent<Omit<RegistryArticleProps, "className"> & {
|
|
12
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
13
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
//# sourceMappingURL=RegistryArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistryArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/RegistryArticle/RegistryArticle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAStE,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,eAAe;;2HAyB3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/RegistryArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
3
|
+
export type RegistrySettingsContainerProps = {
|
|
4
|
+
subject: AppCapabilities.Settings;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Wires the {@link RegistrySettings} presentational component to the plugin
|
|
8
|
+
* manager and the settings atom: subscribes to `manager.devPluginIds` for the
|
|
9
|
+
* "currently loaded" indicator and exposes enable/disable callbacks that drive
|
|
10
|
+
* the manager's add/enable/remove flow.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RegistrySettingsContainer: ({ subject }: RegistrySettingsContainerProps) => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=RegistrySettingsContainer.d.ts.map
|
package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistrySettingsContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC;CACnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,gBAAiB,8BAA8B,sBAiCpF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/RegistrySettingsContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
export { LOAD_PLUGIN_DIALOG } from './LoadPluginDialog/LoadPluginDialog';
|
|
3
|
+
export declare const LoadPluginDialog: ComponentType<any>;
|
|
4
|
+
export declare const PluginArticle: ComponentType<any>;
|
|
5
|
+
export declare const PublicRegistryArticle: ComponentType<any>;
|
|
6
|
+
export declare const RegistryArticle: ComponentType<any>;
|
|
7
|
+
export declare const RegistrySettingsContainer: ComponentType<any>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAA4C,CAAC;AAC7F,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC;AACvF,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,GAAG,CAAiD,CAAC;AACvG,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,GAAG,CAA2C,CAAC;AAC3F,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,GAAG,CAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Registry } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Auto-tags that are derived at display time rather than persisted to `Plugin.Meta`.
|
|
4
|
+
* - `registry`: plugin id appears in the registry catalog manifest.
|
|
5
|
+
* - `local`: plugin was loaded from a `localhost` / `127.0.0.1` / `::1` URL.
|
|
6
|
+
*/
|
|
7
|
+
export type AutoTagsMap = Record<string, readonly string[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Computes the per-plugin-id extra tags the UI should display.
|
|
10
|
+
*
|
|
11
|
+
* Reads the persisted remote-plugin entries synchronously to derive `local`, and
|
|
12
|
+
* adds `registry` for any plugin id found in the supplied registry manifest entries.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useAutoTags: (registryEntries: readonly Registry.Plugin[]) => AutoTagsMap;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the set of plugin ids known to originate from a remote URL (not bundled).
|
|
17
|
+
* Used to filter the Official/Recommended sections so third-party plugins are excluded.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useRemotePluginIds: () => ReadonlySet<string>;
|
|
20
|
+
//# sourceMappingURL=use-auto-tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-auto-tags.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-auto-tags.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,qBAAqB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,oBAAqB,SAAS,QAAQ,CAAC,MAAM,EAAE,KAAG,WAsBnD,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAO,WAAW,CAAC,MAAM,CAC2B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Registry } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Reads the registry plugin catalog from `manager.pluginRegistry.plugins`.
|
|
4
|
+
* The catalog is loaded once when the plugin manager is constructed (with a
|
|
5
|
+
* provider) so this hook is purely reactive — subscribers re-render as the
|
|
6
|
+
* `{entries, loading, error}` state settles.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useRegistryPlugins: () => Registry.PluginsState;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the live `Registry.Manager` from the plugin manager so callers can
|
|
11
|
+
* issue `listVersions` / `getPlugin` calls directly. The catalog state itself
|
|
12
|
+
* is best read through {@link useRegistryPlugins} above.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useRegistryPluginProvider: () => Registry.Manager;
|
|
15
|
+
//# sourceMappingURL=use-registry-plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-registry-plugins.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-registry-plugins.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,QAAQ,CAAC,YAG9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAO,QAAQ,CAAC,OAGrD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Registry } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a set of plugin ids for which the registry has a newer version
|
|
4
|
+
* than what was recorded at install time.
|
|
5
|
+
*
|
|
6
|
+
* Only flags plugins where a version was recorded at install time AND it differs
|
|
7
|
+
* from the catalog's current version. Legacy installs (no version stored) are ignored.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: this is intentionally NOT memoised. The installed-version side of the
|
|
10
|
+
* comparison lives in localStorage and is mutated by `manager.add` /
|
|
11
|
+
* `manager.remove` / `UrlLoader.setInstalledVersion` outside React's view, so a
|
|
12
|
+
* memo keyed on `entries` would happily return stale data for the rest of the
|
|
13
|
+
* session after an update completes (the bug that produced "Update button
|
|
14
|
+
* reappears after Updating…"). The loop is O(catalog size) sync reads — cheap
|
|
15
|
+
* enough to do every render.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useUpdateAvailableIds: (entries: readonly Registry.Plugin[]) => ReadonlySet<string>;
|
|
18
|
+
//# sourceMappingURL=use-update-available.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-update-available.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-update-available.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,qBAAqB,CAAC;AAE/D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,YAAa,SAAS,QAAQ,CAAC,MAAM,EAAE,KAAG,WAAW,CAAC,MAAM,CAS7F,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,6 +1,9 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const REGISTRY_ID = "!dxos:plugin-registry";
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const REGISTRY_ID: string;
|
|
4
3
|
export declare const REGISTRY_KEY = "plugin-registry";
|
|
5
|
-
|
|
4
|
+
/** Build a registry category node ID. */
|
|
5
|
+
export declare const registryCategoryId: (category: string) => string;
|
|
6
|
+
/** Qualified graph path to a specific plugin node. */
|
|
7
|
+
export declare const getPluginPath: (pluginId: string) => string;
|
|
8
|
+
export declare const meta: Plugin.Meta;
|
|
6
9
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIlD,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,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IASzB,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as FileSystem from '@effect/platform/FileSystem';
|
|
2
|
+
import * as Path from '@effect/platform/Path';
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
/**
|
|
5
|
+
* Load enabled plugins from plugins/<profile>.yml (sibling to profile/).
|
|
6
|
+
* Returns the list of enabled plugin IDs, or an empty array if the file doesn't exist.
|
|
7
|
+
*/
|
|
8
|
+
export declare const loadEnabledPlugins: (args_0: {
|
|
9
|
+
profile: string;
|
|
10
|
+
}) => Effect.Effect<string[] | readonly string[], import("@effect/platform/Error").BadArgument, FileSystem.FileSystem>;
|
|
11
|
+
/**
|
|
12
|
+
* Save enabled plugins to plugins/<profile>.yml.
|
|
13
|
+
*/
|
|
14
|
+
export declare const saveEnabledPlugins: (args_0: {
|
|
15
|
+
profile: string;
|
|
16
|
+
enabled: string[];
|
|
17
|
+
}) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
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,53 @@
|
|
|
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 'home
|
|
8
|
-
readonly 'source
|
|
9
|
-
readonly 'plugin
|
|
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 'home-page.label': 'Website';
|
|
7
|
+
readonly 'source.label': 'Source';
|
|
8
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
9
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
10
|
+
readonly 'official-plugins.label': 'Official';
|
|
11
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
12
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
13
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
14
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
15
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
16
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
17
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
18
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
19
|
+
readonly 'loading.label': 'Loading...';
|
|
20
|
+
readonly 'filter.label': 'Filter plugins';
|
|
21
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
22
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
23
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
24
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
25
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
26
|
+
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.';
|
|
27
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
28
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
29
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
30
|
+
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.';
|
|
31
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
32
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
33
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
34
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
35
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
36
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
37
|
+
readonly 'install.label': 'Install';
|
|
38
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
39
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
40
|
+
readonly 'update.label': 'Update';
|
|
41
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
42
|
+
readonly 'versions.label': 'Versions';
|
|
43
|
+
readonly 'installed.label': 'installed';
|
|
44
|
+
readonly 'install-version.label': 'Install version';
|
|
45
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
46
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
47
|
+
readonly 'failure-phase-load.label': 'load';
|
|
48
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
49
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
50
|
+
readonly 'failure-reason-error.label': 'error';
|
|
19
51
|
};
|
|
20
52
|
};
|
|
21
53
|
}];
|
|
@@ -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;wCACP,SAAS;qCACZ,QAAQ;8CACC,SAAS;8CACT,iBAAiB;+CAChB,UAAU;gDACT,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;;;EAId,CAAC"}
|
|
@@ -1,6 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
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>;
|
|
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"]>;
|
|
36
|
+
export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
|
|
6
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
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"}
|