@dxos/plugin-registry 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc
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-A6F6X6M4.mjs +31 -0
- package/dist/lib/neutral/chunk-A6F6X6M4.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 +23 -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 +67 -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 +72 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +74 -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 +73 -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 +5 -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-disable-confirmation.d.ts +19 -0
- package/dist/types/src/hooks/use-disable-confirmation.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 +9 -3
- 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 +54 -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 +76 -35
- package/src/RegistryPlugin.node.ts +19 -0
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +19 -25
- package/src/RegistryPlugin.workerd.ts +11 -0
- package/src/capabilities/app-graph-builder.ts +180 -136
- 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 -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/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +44 -0
- package/src/components/PluginDetail/PluginDetail.tsx +272 -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 +378 -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 +8 -0
- package/src/hooks/use-auto-tags.ts +51 -0
- package/src/hooks/use-disable-confirmation.ts +58 -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 +19 -7
- 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 +59 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/app-graph-builder-AOIN4N2Q.mjs +0 -162
- package/dist/lib/browser/app-graph-builder-AOIN4N2Q.mjs.map +0 -7
- package/dist/lib/browser/chunk-XPEFEID2.mjs +0 -19
- package/dist/lib/browser/chunk-XPEFEID2.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -69
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs +0 -23
- package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-KP3NX4UD.mjs +0 -357
- package/dist/lib/browser/react-surface-KP3NX4UD.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/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 -32
- 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 -34
- 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/PluginDetail.stories.tsx +0 -45
- package/src/components/PluginDetail.tsx +0 -82
- package/src/components/PluginItem.tsx +0 -120
- package/src/components/PluginList.stories.tsx +0 -80
- package/src/components/PluginList.tsx +0 -24
- 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,73 @@
|
|
|
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 'plugin-registry.label': 'Plugins';
|
|
16
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
17
|
+
readonly 'official-plugins.label': 'Official';
|
|
18
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
19
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
20
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
21
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
22
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
23
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
24
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
25
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
26
|
+
readonly 'loading.label': 'Loading...';
|
|
27
|
+
readonly 'filter.label': 'Filter plugins';
|
|
28
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
29
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
30
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
31
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
32
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
33
|
+
readonly 'dev-plugin.description': 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR \u2014 useful when iterating on a community plugin against a live registry version.';
|
|
34
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
35
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
36
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
37
|
+
readonly 'dev-plugin.toggle.description': 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.';
|
|
38
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
39
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
40
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
41
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
42
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
43
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
44
|
+
readonly 'install.label': 'Install';
|
|
45
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
46
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
47
|
+
readonly 'update.label': 'Update';
|
|
48
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
49
|
+
readonly 'versions.label': 'Versions';
|
|
50
|
+
readonly 'installed.label': 'installed';
|
|
51
|
+
readonly 'install-version.label': 'Install version';
|
|
52
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
53
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
54
|
+
readonly 'failure-phase-load.label': 'load';
|
|
55
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
56
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
57
|
+
readonly 'failure-reason-error.label': 'error';
|
|
58
|
+
readonly 'dependencies.label': 'Requires';
|
|
59
|
+
readonly 'dependents.label': 'Required by';
|
|
60
|
+
readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
|
|
61
|
+
readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
|
|
62
|
+
readonly 'disable-dependents-dialog.confirm.label': 'Disable';
|
|
63
|
+
readonly 'cancel.label': 'Cancel';
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default meta;
|
|
70
|
+
type Story = StoryObj<typeof meta>;
|
|
71
|
+
export declare const Default: Story;
|
|
72
|
+
export declare const FullScreen: Story;
|
|
73
|
+
//# 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":"AAMA,OAAO,KAAwF,MAAM,OAAO,CAAC;AAE7G,OAAO,EAAE,KAAK,MAAM,EAAgD,MAAM,qBAAqB,CAAC;AAWhG,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,sBA0FpE,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,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,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=use-disable-confirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-disable-confirmation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-disable-confirmation.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,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,5 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const REGISTRY_ID
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const REGISTRY_ID: string;
|
|
3
3
|
export declare const REGISTRY_KEY = "plugin-registry";
|
|
4
|
-
|
|
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;
|
|
9
|
+
/** Cascade-disable confirmation dialog surface id. */
|
|
10
|
+
export declare const DISABLE_DEPENDENTS_DIALOG: string;
|
|
5
11
|
//# 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;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"}
|
|
@@ -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,59 @@
|
|
|
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';
|
|
51
|
+
readonly 'dependencies.label': 'Requires';
|
|
52
|
+
readonly 'dependents.label': 'Required by';
|
|
53
|
+
readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
|
|
54
|
+
readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
|
|
55
|
+
readonly 'disable-dependents-dialog.confirm.label': 'Disable';
|
|
56
|
+
readonly 'cancel.label': 'Cancel';
|
|
19
57
|
};
|
|
20
58
|
};
|
|
21
59
|
}];
|