@dxos/plugin-registry 0.8.4-main.84f28bd → 0.8.4-main.8baae0fced
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
- package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.node.mjs +153 -0
- package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs +34 -0
- package/dist/lib/neutral/chunk-MYLRMFLY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +25 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +18 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +70 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/RegistryPlugin.d.ts +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/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 +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/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 +82 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +77 -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 +76 -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 +3 -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 +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 -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 +57 -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 +77 -38
- package/src/RegistryPlugin.node.ts +19 -0
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +20 -27
- package/src/RegistryPlugin.workerd.ts +11 -0
- 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 +133 -78
- 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/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +45 -0
- package/src/components/PluginDetail/PluginDetail.tsx +339 -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 +3 -1
- package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
- package/src/containers/BaseRegistryArticle/index.ts +5 -0
- package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +87 -0
- package/src/containers/LoadPluginDialog/index.ts +5 -0
- package/src/containers/PluginArticle/PluginArticle.tsx +117 -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 +12 -0
- package/src/hooks/useAutoTags.ts +51 -0
- package/src/hooks/useCatalogEntry.ts +25 -0
- package/src/hooks/useDisableConfirmation.ts +58 -0
- package/src/hooks/useInstalledVersionTag.ts +41 -0
- package/src/hooks/usePluginActions.ts +174 -0
- package/src/hooks/useRegistryPlugins.ts +29 -0
- package/src/hooks/useUpdateAvailable.ts +31 -0
- package/src/hooks/useVersionPicker.ts +112 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +37 -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 +62 -15
- package/src/types.ts +37 -1
- package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs +0 -161
- package/dist/lib/browser/app-graph-builder-LKQBQDUA.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-W67CIJI3.mjs +0 -23
- package/dist/lib/browser/intent-resolver-W67CIJI3.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-SRFVJQKE.mjs +0 -335
- package/dist/lib/browser/react-surface-SRFVJQKE.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs +0 -162
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs +0 -18
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -72
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs +0 -24
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs +0 -336
- package/dist/lib/node-esm/react-surface-5XAG2EYX.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 -6
- 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 -8
- 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 -11
- 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 -107
- package/src/components/PluginDetail.stories.tsx +0 -45
- package/src/components/PluginDetail.tsx +0 -63
- package/src/components/PluginItem.tsx +0 -119
- package/src/components/PluginList.stories.tsx +0 -82
- package/src/components/PluginList.tsx +0 -26
- package/src/components/RegistryContainer.tsx +0 -84
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Plugin, type PluginManager } from '@dxos/app-framework';
|
|
3
|
+
import { type PluginItemProps } from './PluginItem';
|
|
4
|
+
export type PluginListProps = Omit<PluginItemProps, 'plugin' | 'extraTags' | 'hasUpdate' | 'failure'> & {
|
|
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>;
|
|
21
|
+
};
|
|
22
|
+
export declare const PluginList: ({ plugins, extraTagsById, updateAvailableIds, failuresById, ...props }: PluginListProps) => React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=PluginList.d.ts.map
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ plugins, extraTagsById, updateAvailableIds, failuresById, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
|
|
6
|
+
render: () => React.JSX.Element;
|
|
7
|
+
parameters: {
|
|
8
|
+
translations: [{
|
|
9
|
+
readonly 'en-US': {
|
|
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 'resources.label': 'Resources';
|
|
16
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
17
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
18
|
+
readonly 'bundled-plugins.label': 'Bundled';
|
|
19
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
20
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
21
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
22
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
23
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
24
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
25
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
26
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
27
|
+
readonly 'loading.label': 'Loading...';
|
|
28
|
+
readonly 'filter.label': 'Filter plugins';
|
|
29
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
30
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
31
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
32
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
33
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
34
|
+
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.';
|
|
35
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
36
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
37
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
38
|
+
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.';
|
|
39
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
40
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
41
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
42
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
43
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
44
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
45
|
+
readonly 'install.label': 'Install';
|
|
46
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
47
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
48
|
+
readonly 'update.label': 'Update';
|
|
49
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
50
|
+
readonly 'versions.label': 'Versions';
|
|
51
|
+
readonly 'installed.label': 'installed';
|
|
52
|
+
readonly 'install-version.label': 'Install version';
|
|
53
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
54
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
55
|
+
readonly 'failure-phase-load.label': 'load';
|
|
56
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
57
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
58
|
+
readonly 'failure-reason-error.label': 'error';
|
|
59
|
+
readonly 'dependencies.label': 'Dependencies';
|
|
60
|
+
readonly 'dependents.label': 'Required by';
|
|
61
|
+
readonly 'spec.label': 'Specification';
|
|
62
|
+
readonly 'open-spec.label': 'Open Specification';
|
|
63
|
+
readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
|
|
64
|
+
readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
|
|
65
|
+
readonly 'disable-dependents-dialog.confirm.label': 'Disable';
|
|
66
|
+
readonly 'cancel.label': 'Cancel';
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export default meta;
|
|
73
|
+
type Story = StoryObj<typeof meta>;
|
|
74
|
+
export declare const Default: Story;
|
|
75
|
+
export declare const FullScreen: Story;
|
|
76
|
+
//# sourceMappingURL=PluginList.stories.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,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;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AACzC,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;AAU/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;;2HA6H/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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
3
|
+
export type PluginArticleProps = {
|
|
4
|
+
subject: Plugin.Plugin;
|
|
5
|
+
};
|
|
6
|
+
export declare const PluginArticle: ({ subject: plugin }: PluginArticleProps) => React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PluginArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/PluginArticle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgBlD,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,sBA2FpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PublicRegistryArticleProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const PublicRegistryArticle: React.ForwardRefExoticComponent<Omit<PublicRegistryArticleProps, "className"> & {
|
|
6
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
7
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
//# sourceMappingURL=PublicRegistryArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicRegistryArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAyC9D,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,qBAAqB;;2HA0IjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PublicRegistryArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,IAAI,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -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,9 @@
|
|
|
1
|
+
export * from './useAutoTags';
|
|
2
|
+
export * from './useCatalogEntry';
|
|
3
|
+
export * from './useDisableConfirmation';
|
|
4
|
+
export * from './useInstalledVersionTag';
|
|
5
|
+
export * from './usePluginActions';
|
|
6
|
+
export * from './useRegistryPlugins';
|
|
7
|
+
export * from './useUpdateAvailable';
|
|
8
|
+
export * from './useVersionPicker';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,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=useAutoTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutoTags.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAutoTags.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,11 @@
|
|
|
1
|
+
import { type Registry } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the registry catalog entry for a plugin by id, plus the two fields
|
|
4
|
+
* (`moduleUrl`, `repo`) the rest of the article cares about.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useCatalogEntry: (pluginId: string) => {
|
|
7
|
+
catalogEntry: Registry.Plugin | undefined;
|
|
8
|
+
moduleUrl: string | undefined;
|
|
9
|
+
repo: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useCatalogEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCatalogEntry.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCatalogEntry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD;;;GAGG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,KACf;IACD,YAAY,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAK1B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type PluginManager } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Returns `requestDisable(pluginId)` that gates `manager.disable` on a
|
|
4
|
+
* confirmation prompt when the target has currently-enabled dependents.
|
|
5
|
+
*
|
|
6
|
+
* `PluginManager.disable` cascades by default; this hook is the UX safeguard
|
|
7
|
+
* around that. The caller supplies a `dispatch` callback that performs the
|
|
8
|
+
* actual disable (wrapping it with observability or any other side effects).
|
|
9
|
+
* When there are no enabled dependents, dispatch runs immediately; otherwise
|
|
10
|
+
* we open the shared {@link DISABLE_DEPENDENTS_DIALOG} surface — its
|
|
11
|
+
* `onConfirm` runs the dispatch and closes the dialog.
|
|
12
|
+
*
|
|
13
|
+
* Display-name resolution for the dialog is delegated to the registered
|
|
14
|
+
* plugin set (`Plugin.Meta.name`). Per-plugin i18n translations only load
|
|
15
|
+
* when a plugin is activated, so `meta.name` is the only label always
|
|
16
|
+
* available regardless of enabled state.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useDisableConfirmation: (manager: PluginManager.PluginManager, dispatch: (id: string) => void) => (pluginId: string) => void;
|
|
19
|
+
//# sourceMappingURL=useDisableConfirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDisableConfirmation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDisableConfirmation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,YAAa,aAAa,CAAC,aAAa,YAAY,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,gBAI5F,MAAM,KAAG,IAyBvB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
/**
|
|
3
|
+
* Tracks the per-plugin installed version (sourced from `UrlLoader` localStorage)
|
|
4
|
+
* as React state so post-install/update re-renders are deterministic — the value
|
|
5
|
+
* lives in component state rather than being read inline on every render.
|
|
6
|
+
*
|
|
7
|
+
* - Initialised from localStorage at mount.
|
|
8
|
+
* - Auto-resyncs when the plugin manager's plugin list changes (catches external
|
|
9
|
+
* installs / removes triggered by the list view).
|
|
10
|
+
* - `syncInstalledVersion()` is the explicit handle install/update operations
|
|
11
|
+
* call inside their `Effect.ensuring` so the post-mutation render sees both
|
|
12
|
+
* the new version and the cleared `installing`/`updating` flag together.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useInstalledVersionTag: (pluginId: string, plugins: readonly Plugin.Plugin[]) => {
|
|
15
|
+
installedVersionTag: string | undefined;
|
|
16
|
+
syncInstalledVersion: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useInstalledVersionTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInstalledVersionTag.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInstalledVersionTag.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,qBAAqB,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,aACvB,MAAM,WACP,SAAS,MAAM,CAAC,MAAM,EAAE,KAChC;IACD,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAelC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type PluginManager, type Registry } from '@dxos/app-framework';
|
|
2
|
+
export type PluginActionsProps = {
|
|
3
|
+
manager: PluginManager.PluginManager;
|
|
4
|
+
pluginId: string;
|
|
5
|
+
isInstalled: boolean;
|
|
6
|
+
moduleUrl: string | undefined;
|
|
7
|
+
catalogEntry: Registry.Plugin | undefined;
|
|
8
|
+
pickerVersions: readonly Registry.PluginVersion[];
|
|
9
|
+
selectedVersionTag: string | undefined;
|
|
10
|
+
syncInstalledVersion: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type PluginActions = {
|
|
13
|
+
installing: boolean;
|
|
14
|
+
updating: boolean;
|
|
15
|
+
handleEnableChange: (enabled: boolean) => void;
|
|
16
|
+
handleUninstall: () => void;
|
|
17
|
+
handleInstall: () => void;
|
|
18
|
+
handleUpdate: () => void;
|
|
19
|
+
handleInstallVersion: () => void;
|
|
20
|
+
handleOpenSpec?: () => void;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The user-facing actions the article exposes — enable/disable, uninstall,
|
|
24
|
+
* install (latest), update (to latest catalog version), and install-from-picker —
|
|
25
|
+
* plus the `installing`/`updating` flags they drive. Each handler ends with a
|
|
26
|
+
* `syncInstalledVersion()` call inside its `Effect.ensuring` so the cached
|
|
27
|
+
* installed version snaps to the freshly-written localStorage value in the same
|
|
28
|
+
* render that clears the in-flight flag.
|
|
29
|
+
*
|
|
30
|
+
* `handleOpenSpec` is included only when a `spec` child graph node exists for
|
|
31
|
+
* this plugin — contributed by whichever plugin can render MDL (today
|
|
32
|
+
* `plugin-code`). When that contributor isn't enabled, the action is absent
|
|
33
|
+
* and the detail view hides its "Open Specification" chip.
|
|
34
|
+
*/
|
|
35
|
+
export declare const usePluginActions: ({ manager, pluginId, isInstalled, moduleUrl, catalogEntry, pickerVersions, selectedVersionTag, syncInstalledVersion, }: PluginActionsProps) => PluginActions;
|
|
36
|
+
//# sourceMappingURL=usePluginActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePluginActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePluginActions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAa,MAAM,qBAAqB,CAAC;AAWnF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1C,cAAc,EAAE,SAAS,QAAQ,CAAC,aAAa,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,2HAS1B,kBAAkB,KAAG,aA+GvB,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=useRegistryPlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRegistryPlugins.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRegistryPlugins.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=useUpdateAvailable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateAvailable.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUpdateAvailable.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"}
|
|
@@ -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,6 +1,22 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Qualified graph path to the bundled MDL spec child node for a plugin.
|
|
10
|
+
*
|
|
11
|
+
* The child is contributed by whichever plugin can render MDL (today:
|
|
12
|
+
* `plugin-code`). plugin-registry only knows the path convention so it can:
|
|
13
|
+
* - dispatch `LayoutOperation.Open` to open the spec viewer, and
|
|
14
|
+
* - probe the app graph for the child's existence to gate the "View
|
|
15
|
+
* specification" button. If no plugin contributes a renderer for the
|
|
16
|
+
* child, the node is absent and the button stays hidden.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPluginSpecPath: (pluginId: string) => string;
|
|
19
|
+
export declare const meta: Plugin.Meta;
|
|
20
|
+
/** Cascade-disable confirmation dialog surface id. */
|
|
21
|
+
export declare const DISABLE_DEPENDENTS_DIALOG: string;
|
|
6
22
|
//# 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;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,KAAG,MAA2C,CAAC;AAEjG,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAUzB,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,QAAyC,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"}
|