@dxos/plugin-registry 0.8.4-main.fffef41 → 0.8.4-staging.60fe92afc8
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-GRQI6MLI.mjs +36 -0
- package/dist/lib/neutral/chunk-GRQI6MLI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +25 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +18 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +72 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/RegistryPlugin.d.ts +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/categories.d.ts +18 -0
- package/dist/types/src/categories.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 +79 -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 +78 -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 +5 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +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 +21 -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 +59 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +30 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +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 +199 -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 +115 -75
- package/src/capabilities/settings.ts +34 -0
- package/src/categories.ts +44 -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.stories.tsx → PluginDetail/PluginDetail.stories.tsx} +14 -11
- package/src/components/PluginDetail/PluginDetail.tsx +345 -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 +223 -0
- package/src/components/PluginList/PluginList.stories.tsx +90 -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 +88 -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 +193 -0
- package/src/containers/PublicRegistryArticle/index.ts +5 -0
- package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
- package/src/containers/RegistryArticle/index.ts +5 -0
- package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
- package/src/containers/RegistrySettingsContainer/index.ts +5 -0
- package/src/containers/index.ts +12 -0
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useAutoTags.ts +52 -0
- package/src/hooks/useCatalogEntry.ts +25 -0
- package/src/hooks/useDisableConfirmation.ts +58 -0
- package/src/hooks/useInstalledVersionTag.ts +41 -0
- package/src/hooks/usePluginActions.ts +177 -0
- package/src/hooks/useRegistryPlugins.ts +29 -0
- package/src/hooks/useUpdateAvailable.ts +31 -0
- package/src/hooks/useVersionPicker.ts +112 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +34 -8
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/storage.ts +50 -0
- package/src/translations.ts +64 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/app-graph-builder-6CNBP3A4.mjs +0 -162
- package/dist/lib/browser/app-graph-builder-6CNBP3A4.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-IGCXOVE2.mjs +0 -359
- package/dist/lib/browser/react-surface-IGCXOVE2.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.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 -76
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// src/translations.ts
|
|
2
|
+
import { meta } from "#meta";
|
|
3
|
+
var translations = [
|
|
4
|
+
{
|
|
5
|
+
"en-US": {
|
|
6
|
+
[meta.id]: {
|
|
7
|
+
"plugin.name": "Registry",
|
|
8
|
+
"details.label": "Details",
|
|
9
|
+
"description.label": "Description",
|
|
10
|
+
"preview.label": "Preview",
|
|
11
|
+
"home-page.label": "Website",
|
|
12
|
+
"source.label": "Source",
|
|
13
|
+
"resources.label": "Resources",
|
|
14
|
+
"plugin-registry.label": "Plugins",
|
|
15
|
+
"plugin-settings.label": "Plugin Settings",
|
|
16
|
+
"bundled-plugins.label": "Bundled",
|
|
17
|
+
"installed-plugins.label": "Enabled",
|
|
18
|
+
"recommended-plugins.label": "Recommended",
|
|
19
|
+
"labs-plugins.label": "Labs",
|
|
20
|
+
"registry-plugins.label": "Registry",
|
|
21
|
+
"load-by-url.label": "Load from URL",
|
|
22
|
+
"load-by-url-dialog.title": "Load Plugin from URL",
|
|
23
|
+
"plugin-url.label": "Plugin URL",
|
|
24
|
+
"load-plugin.label": "Load Plugin",
|
|
25
|
+
"loading.label": "Loading...",
|
|
26
|
+
"filter.label": "Filter plugins",
|
|
27
|
+
"filter.placeholder": "Filter\u2026",
|
|
28
|
+
"registry.loading.label": "Loading registry plugins\u2026",
|
|
29
|
+
"registry.error.label": "Failed to load registry plugins: {{message}}",
|
|
30
|
+
"registry.empty.label": "No registry plugins available.",
|
|
31
|
+
"dev-plugin.section.title": "Dev plugin",
|
|
32
|
+
"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.",
|
|
33
|
+
"dev-plugin.url.label": "Manifest URL",
|
|
34
|
+
"dev-plugin.url.description": "Defaults to the local dev server. Edit if your dev server runs on a different port.",
|
|
35
|
+
"dev-plugin.toggle.label": "Dev plugin",
|
|
36
|
+
"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.",
|
|
37
|
+
"dev-plugin.enable.label": "Enable",
|
|
38
|
+
"dev-plugin.disable.label": "Disable",
|
|
39
|
+
"dev-plugin.busy.label": "Loading\u2026",
|
|
40
|
+
"dev-plugin.not-loaded.message": "Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.",
|
|
41
|
+
"coming-soon.label": "Coming soon!",
|
|
42
|
+
"open-plugin-registry.label": "Open plugin registry",
|
|
43
|
+
"install.label": "Install",
|
|
44
|
+
"installing.label": "Installing\u2026",
|
|
45
|
+
"uninstall.label": "Uninstall",
|
|
46
|
+
"update.label": "Update",
|
|
47
|
+
"updating.label": "Updating\u2026",
|
|
48
|
+
"versions.label": "Versions",
|
|
49
|
+
"installed.label": "installed",
|
|
50
|
+
"install-version.label": "Install version",
|
|
51
|
+
"failure-badge.label": "Plugin failure details",
|
|
52
|
+
"failure-title.label": "Plugin {{phase}} failed: {{reason}}",
|
|
53
|
+
"failure-phase-load.label": "load",
|
|
54
|
+
"failure-phase-activation.label": "activation",
|
|
55
|
+
"failure-reason-timeout.label": "timed out",
|
|
56
|
+
"failure-reason-error.label": "error",
|
|
57
|
+
"dependencies.label": "Dependencies",
|
|
58
|
+
"dependents.label": "Required by",
|
|
59
|
+
"spec.label": "Specification",
|
|
60
|
+
"open-spec.label": "Open Specification",
|
|
61
|
+
"disable-dependents-dialog.title": "Disable dependent plugins?",
|
|
62
|
+
"disable-dependents-dialog.description": "Disabling {{plugin}} will also disable the following plugins that depend on it:",
|
|
63
|
+
"disable-dependents-dialog.confirm.label": "Disable",
|
|
64
|
+
"cancel.label": "Cancel"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
export {
|
|
70
|
+
translations
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Registry',\n 'details.label': 'Details',\n 'description.label': 'Description',\n 'preview.label': 'Preview',\n 'home-page.label': 'Website',\n 'source.label': 'Source',\n 'resources.label': 'Resources',\n 'plugin-registry.label': 'Plugins',\n 'plugin-settings.label': 'Plugin Settings',\n 'bundled-plugins.label': 'Bundled',\n 'installed-plugins.label': 'Enabled',\n 'recommended-plugins.label': 'Recommended',\n 'labs-plugins.label': 'Labs',\n 'registry-plugins.label': 'Registry',\n 'load-by-url.label': 'Load from URL',\n 'load-by-url-dialog.title': 'Load Plugin from URL',\n 'plugin-url.label': 'Plugin URL',\n 'load-plugin.label': 'Load Plugin',\n 'loading.label': 'Loading...',\n 'filter.label': 'Filter plugins',\n 'filter.placeholder': 'Filter…',\n 'registry.loading.label': 'Loading registry plugins…',\n 'registry.error.label': 'Failed to load registry plugins: {{message}}',\n 'registry.empty.label': 'No registry plugins available.',\n 'dev-plugin.section.title': 'Dev plugin',\n 'dev-plugin.description':\n 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR — useful when iterating on a community plugin against a live registry version.',\n 'dev-plugin.url.label': 'Manifest URL',\n 'dev-plugin.url.description':\n 'Defaults to the local dev server. Edit if your dev server runs on a different port.',\n 'dev-plugin.toggle.label': 'Dev plugin',\n 'dev-plugin.toggle.description':\n 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.',\n 'dev-plugin.enable.label': 'Enable',\n 'dev-plugin.disable.label': 'Disable',\n 'dev-plugin.busy.label': 'Loading…',\n 'dev-plugin.not-loaded.message':\n 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.',\n 'coming-soon.label': 'Coming soon!',\n 'open-plugin-registry.label': 'Open plugin registry',\n 'install.label': 'Install',\n 'installing.label': 'Installing…',\n 'uninstall.label': 'Uninstall',\n 'update.label': 'Update',\n 'updating.label': 'Updating…',\n 'versions.label': 'Versions',\n 'installed.label': 'installed',\n 'install-version.label': 'Install version',\n 'failure-badge.label': 'Plugin failure details',\n 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}',\n 'failure-phase-load.label': 'load',\n 'failure-phase-activation.label': 'activation',\n 'failure-reason-timeout.label': 'timed out',\n 'failure-reason-error.label': 'error',\n 'dependencies.label': 'Dependencies',\n 'dependents.label': 'Required by',\n 'spec.label': 'Specification',\n 'open-spec.label': 'Open Specification',\n 'disable-dependents-dialog.title': 'Disable dependent plugins?',\n 'disable-dependents-dialog.description':\n 'Disabling {{plugin}} will also disable the following plugins that depend on it:',\n 'disable-dependents-dialog.confirm.label': 'Disable',\n 'cancel.label': 'Cancel',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,iBAAiB;QACjB,qBAAqB;QACrB,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB;QAChB,mBAAmB;QACnB,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;QACzB,2BAA2B;QAC3B,6BAA6B;QAC7B,sBAAsB;QACtB,0BAA0B;QAC1B,qBAAqB;QACrB,4BAA4B;QAC5B,oBAAoB;QACpB,qBAAqB;QACrB,iBAAiB;QACjB,gBAAgB;QAChB,sBAAsB;QACtB,0BAA0B;QAC1B,wBAAwB;QACxB,wBAAwB;QACxB,4BAA4B;QAC5B,0BACE;QACF,wBAAwB;QACxB,8BACE;QACF,2BAA2B;QAC3B,iCACE;QACF,2BAA2B;QAC3B,4BAA4B;QAC5B,yBAAyB;QACzB,iCACE;QACF,qBAAqB;QACrB,8BAA8B;QAC9B,iBAAiB;QACjB,oBAAoB;QACpB,mBAAmB;QACnB,gBAAgB;QAChB,kBAAkB;QAClB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,uBAAuB;QACvB,uBAAuB;QACvB,4BAA4B;QAC5B,kCAAkC;QAClC,gCAAgC;QAChC,8BAA8B;QAC9B,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,mBAAmB;QACnB,mCAAmC;QACnC,yCACE;QACF,2CAA2C;QAC3C,gBAAgB;MAClB;IACF;EACF;;",
|
|
6
|
+
"names": ["meta", "translations", "id"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const RegistryPlugin: Plugin.PluginFactory<void>;
|
|
3
|
+
export default RegistryPlugin;
|
|
2
4
|
//# sourceMappingURL=RegistryPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegistryPlugin.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegistryPlugin.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO/D,eAAO,MAAM,cAAc,4BAY1B,CAAC;eAEa,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistryPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,cAAc,4BAK1B,CAAC;eAEa,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistryPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistryPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/RegistryPlugin.workerd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,cAAc,4BAAwC,CAAC;eAErD,cAAc"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
|
|
3
5
|
export default _default;
|
|
4
6
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAyB,MAAM,qBAAqB,CAAC;AAItF,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* Startup module that auto-loads a locally-served dev plugin when the user has
|
|
5
|
+
* the toggle enabled in registry settings. Failures (dev server offline, 404,
|
|
6
|
+
* timeout) are logged and swallowed so a stale dev URL never blocks app boot —
|
|
7
|
+
* the toggle stays on, the next reload retries.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: (props: void) => Effect.Effect<[], Error, Capability.Service>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=dev-plugin-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-plugin-loader.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/dev-plugin-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAK/D;;;;;GAKG"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
3
|
+
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
4
|
+
export declare const DevPluginLoader: Capability.LazyCapability<void, [], Error>;
|
|
5
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
6
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
7
|
+
export declare const RegistrySettings: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<{
|
|
8
|
+
experimental?: boolean | undefined;
|
|
9
|
+
devPluginUrl?: string | undefined;
|
|
10
|
+
devPluginEnabled?: boolean | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
experimental?: boolean | undefined;
|
|
13
|
+
devPluginUrl?: string | undefined;
|
|
14
|
+
devPluginEnabled?: boolean | undefined;
|
|
15
|
+
}>>>, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.Settings>>], Error>;
|
|
4
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,eAAe,4CAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB;;;;;;;;mHAAkE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<{
|
|
5
|
+
experimental?: boolean | undefined;
|
|
6
|
+
devPluginUrl?: string | undefined;
|
|
7
|
+
devPluginEnabled?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
experimental?: boolean | undefined;
|
|
10
|
+
devPluginUrl?: string | undefined;
|
|
11
|
+
devPluginEnabled?: boolean | undefined;
|
|
12
|
+
}>>>, Capability.Capability<Capability.InterfaceDef<AppCapabilities.Settings>>], never, never>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export type PluginPredicate = (plugin: Plugin.Plugin) => boolean;
|
|
3
|
+
export type CategoryFilterContext = {
|
|
4
|
+
/** Core (bundled-by-default) plugin ids. */
|
|
5
|
+
core: readonly string[];
|
|
6
|
+
/** Enabled plugin ids. */
|
|
7
|
+
enabled: readonly string[];
|
|
8
|
+
/** Plugin ids loaded from a remote URL (not bundled). */
|
|
9
|
+
remoteIds: ReadonlySet<string>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Predicate selecting the plugins shown in a registry category, computed against the live plugin list.
|
|
13
|
+
* The `registry` category is sourced from the catalog rather than the local plugin list and is not handled here.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getCategoryPredicate: (category: string, { core, enabled, remoteIds }: CategoryFilterContext) => PluginPredicate;
|
|
16
|
+
/** Set of plugin ids known to originate from a remote URL (not bundled). */
|
|
17
|
+
export declare const getRemotePluginIds: () => ReadonlySet<string>;
|
|
18
|
+
//# sourceMappingURL=categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../../src/categories.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,qBAAqB,CAAC;AAI7D,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,4CAA4C;IAC5C,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,0BAA0B;IAC1B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,yDAAyD;IACzD,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,gCACc,qBAAqB,KAClD,eAaF,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,QAAO,WAAW,CAAC,MAAM,CACQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Command from '@effect/cli/Command';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import { Plugin } from '@dxos/app-framework';
|
|
4
|
+
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
+
export declare const handler: (args_0: {
|
|
6
|
+
id: string;
|
|
7
|
+
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service>;
|
|
8
|
+
export declare const disable: Command.Command<"disable", CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service, Error | import("@effect/platform/Error").PlatformError, {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=disable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../src/commands/disable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAuB9D,CAAC;AAEH,eAAO,MAAM,OAAO;;EAMgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Command from '@effect/cli/Command';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import { Plugin } from '@dxos/app-framework';
|
|
4
|
+
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
+
export declare const handler: (args_0: {
|
|
6
|
+
id: string;
|
|
7
|
+
}) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service>;
|
|
8
|
+
export declare const enable: Command.Command<"enable", CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service, Error | import("@effect/platform/Error").PlatformError, {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/commands/enable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAoB9D,CAAC;AAEH,eAAO,MAAM,MAAM;;EAMgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAM/C,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAGtD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as Command from '@effect/cli/Command';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import { Plugin } from '@dxos/app-framework';
|
|
4
|
+
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
+
export declare const handler: () => Effect.Effect<void, never, CommandConfig | Plugin.Service>;
|
|
6
|
+
export declare const list: Command.Command<"list", CommandConfig | Plugin.Service, never, {}>;
|
|
7
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAI1D,eAAO,MAAM,OAAO,kEAyBlB,CAAC;AAEH,eAAO,MAAM,IAAI,oEAAiG,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type FormattedPlugin = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
core: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Pretty prints a plugin with ANSI colors.
|
|
9
|
+
*/
|
|
10
|
+
export declare const printPlugin: (plugin: FormattedPlugin) => import("@effect/printer/Doc").Doc<any>;
|
|
11
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/commands/util.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,WAAY,eAAe,2CAOlD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DisableDependentsAlertProps = {
|
|
3
|
+
/** Id of the plugin the user requested to disable. */
|
|
4
|
+
pluginId: string;
|
|
5
|
+
/** Ids of the currently-enabled dependents that would also be disabled. */
|
|
6
|
+
dependents: readonly string[];
|
|
7
|
+
/**
|
|
8
|
+
* Resolves a plugin id to its display name. The component delegates this so
|
|
9
|
+
* the parent can choose how to source names (typically the registered
|
|
10
|
+
* `Plugin.Meta.name`). Falls back to the id when omitted.
|
|
11
|
+
*/
|
|
12
|
+
onResolvePluginName?: (pluginId: string) => string;
|
|
13
|
+
onConfirm: () => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Confirmation prompt shown when a user toggles off a plugin that has
|
|
17
|
+
* currently-enabled dependents. Rendered inside the layout's dialog surface
|
|
18
|
+
* (via `LayoutOperation.UpdateDialog` with `type: 'alert'`), which provides
|
|
19
|
+
* the `AlertDialog.Root` / `Overlay` wrappers — this component renders only
|
|
20
|
+
* the content. `onConfirm` runs the cascade disable and closes the dialog;
|
|
21
|
+
* cancel is handled by the layout's open-change wiring.
|
|
22
|
+
*/
|
|
23
|
+
export declare const DisableDependentsAlert: ({ pluginId, dependents, onResolvePluginName, onConfirm, }: DisableDependentsAlertProps) => React.JSX.Element;
|
|
24
|
+
//# sourceMappingURL=DisableDependentsAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableDependentsAlert.d.ts","sourceRoot":"","sources":["../../../../../src/components/DisableDependentsAlert/DisableDependentsAlert.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,2BAA2B,GAAG;IACxC,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,8DAKhC,2BAA2B,sBA+B7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DisableDependentsAlert/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Plugin, type PluginManager, type Registry } from '@dxos/app-framework';
|
|
3
|
+
export type PluginDetailProps = {
|
|
4
|
+
plugin: Plugin.Plugin;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
/** True while an in-flight install is running. Disables the install button. */
|
|
7
|
+
installing?: boolean;
|
|
8
|
+
/** True while an in-flight update is running. Disables the update button. */
|
|
9
|
+
updating?: boolean;
|
|
10
|
+
/** True when the catalog has a newer version than the one installed. */
|
|
11
|
+
hasUpdate?: boolean;
|
|
12
|
+
/** Currently installed version tag (used to mark the matching select option). */
|
|
13
|
+
installedVersionTag?: string;
|
|
14
|
+
/** Currently selected version tag in the picker. */
|
|
15
|
+
selectedVersionTag?: string;
|
|
16
|
+
/** Available versions of this plugin from the catalog. When non-empty, a version picker is shown. */
|
|
17
|
+
versions?: readonly Registry.PluginVersion[];
|
|
18
|
+
/**
|
|
19
|
+
* Ids of plugins this plugin declares as dependencies (direct only). Rendered
|
|
20
|
+
* under a "Requires" heading so the user can see what enabling this plugin
|
|
21
|
+
* will auto-enable.
|
|
22
|
+
*/
|
|
23
|
+
dependencies?: readonly string[];
|
|
24
|
+
/**
|
|
25
|
+
* Ids of plugins that declare this plugin as a dependency (direct only).
|
|
26
|
+
* Rendered under a "Required by" heading so the user understands the
|
|
27
|
+
* downstream impact of disabling this plugin.
|
|
28
|
+
*/
|
|
29
|
+
dependents?: readonly string[];
|
|
30
|
+
/**
|
|
31
|
+
* Failure record for this plugin, if any. When present a warning badge is
|
|
32
|
+
* rendered next to the plugin name in the header.
|
|
33
|
+
*/
|
|
34
|
+
failure?: PluginManager.PluginFailure;
|
|
35
|
+
onEnabledChange?: (enabled: boolean) => void;
|
|
36
|
+
/**
|
|
37
|
+
* When provided, the plugin is not installed and an Install button is shown
|
|
38
|
+
* in place of the enable Switch.
|
|
39
|
+
*/
|
|
40
|
+
onInstall?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Called when the user clicks Install on the version picker.
|
|
43
|
+
*/
|
|
44
|
+
onInstallVersion?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Called when the user activates a dependency / dependent chip. When
|
|
47
|
+
* provided, chips are rendered as buttons that fire this handler with the
|
|
48
|
+
* target plugin id; when omitted, chips are non-interactive labels.
|
|
49
|
+
*/
|
|
50
|
+
onNavigateToPlugin?: (pluginId: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Called when the user activates the in-app spec viewer link. When provided
|
|
53
|
+
* (i.e. the plugin bundles its MDL via `Plugin.Meta.specContent`), a second
|
|
54
|
+
* "View specification" link is rendered next to the external spec link.
|
|
55
|
+
*/
|
|
56
|
+
onOpenSpec?: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Resolves a plugin id to its display name for dependency / dependent
|
|
59
|
+
* chip labels. The component delegates the lookup to the parent so each
|
|
60
|
+
* surface can decide how to source names (e.g. `Plugin.Meta.name` from the
|
|
61
|
+
* registered plugin set). When omitted, chips render the raw id.
|
|
62
|
+
*/
|
|
63
|
+
onResolvePluginName?: (pluginId: string) => string;
|
|
64
|
+
/**
|
|
65
|
+
* When provided, an Uninstall button is rendered. Leave undefined for core
|
|
66
|
+
* or non-removable plugins.
|
|
67
|
+
*/
|
|
68
|
+
onUninstall?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* When provided and the plugin is installed with a newer catalog version available,
|
|
71
|
+
* an Update button is shown in place of the enable Switch.
|
|
72
|
+
*/
|
|
73
|
+
onUpdate?: () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Called when the user selects a different version in the picker.
|
|
76
|
+
*/
|
|
77
|
+
onVersionChange?: (tag: string) => void;
|
|
78
|
+
};
|
|
79
|
+
export declare const PluginDetail: React.ForwardRefExoticComponent<Omit<PluginDetailProps, "className"> & {
|
|
80
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
81
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
//# sourceMappingURL=PluginDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginDetail.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAqBrF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qGAAqG;IACrG,QAAQ,CAAC,EAAE,SAAS,QAAQ,CAAC,aAAa,EAAE,CAAC;IAC7C;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY;;2HAwNxB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./PluginDetail").PluginDetailProps, "className"> & {
|
|
5
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
6
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
translations: [{
|
|
11
|
+
readonly 'en-US': {
|
|
12
|
+
readonly [x: string]: {
|
|
13
|
+
readonly 'plugin.name': 'Registry';
|
|
14
|
+
readonly 'details.label': 'Details';
|
|
15
|
+
readonly 'description.label': 'Description';
|
|
16
|
+
readonly 'preview.label': 'Preview';
|
|
17
|
+
readonly 'home-page.label': 'Website';
|
|
18
|
+
readonly 'source.label': 'Source';
|
|
19
|
+
readonly 'resources.label': 'Resources';
|
|
20
|
+
readonly 'plugin-registry.label': 'Plugins';
|
|
21
|
+
readonly 'plugin-settings.label': 'Plugin Settings';
|
|
22
|
+
readonly 'bundled-plugins.label': 'Bundled';
|
|
23
|
+
readonly 'installed-plugins.label': 'Enabled';
|
|
24
|
+
readonly 'recommended-plugins.label': 'Recommended';
|
|
25
|
+
readonly 'labs-plugins.label': 'Labs';
|
|
26
|
+
readonly 'registry-plugins.label': 'Registry';
|
|
27
|
+
readonly 'load-by-url.label': 'Load from URL';
|
|
28
|
+
readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
|
|
29
|
+
readonly 'plugin-url.label': 'Plugin URL';
|
|
30
|
+
readonly 'load-plugin.label': 'Load Plugin';
|
|
31
|
+
readonly 'loading.label': 'Loading...';
|
|
32
|
+
readonly 'filter.label': 'Filter plugins';
|
|
33
|
+
readonly 'filter.placeholder': 'Filter\u2026';
|
|
34
|
+
readonly 'registry.loading.label': 'Loading registry plugins\u2026';
|
|
35
|
+
readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
|
|
36
|
+
readonly 'registry.empty.label': 'No registry plugins available.';
|
|
37
|
+
readonly 'dev-plugin.section.title': 'Dev plugin';
|
|
38
|
+
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.';
|
|
39
|
+
readonly 'dev-plugin.url.label': 'Manifest URL';
|
|
40
|
+
readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
|
|
41
|
+
readonly 'dev-plugin.toggle.label': 'Dev plugin';
|
|
42
|
+
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.';
|
|
43
|
+
readonly 'dev-plugin.enable.label': 'Enable';
|
|
44
|
+
readonly 'dev-plugin.disable.label': 'Disable';
|
|
45
|
+
readonly 'dev-plugin.busy.label': 'Loading\u2026';
|
|
46
|
+
readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
|
|
47
|
+
readonly 'coming-soon.label': 'Coming soon!';
|
|
48
|
+
readonly 'open-plugin-registry.label': 'Open plugin registry';
|
|
49
|
+
readonly 'install.label': 'Install';
|
|
50
|
+
readonly 'installing.label': 'Installing\u2026';
|
|
51
|
+
readonly 'uninstall.label': 'Uninstall';
|
|
52
|
+
readonly 'update.label': 'Update';
|
|
53
|
+
readonly 'updating.label': 'Updating\u2026';
|
|
54
|
+
readonly 'versions.label': 'Versions';
|
|
55
|
+
readonly 'installed.label': 'installed';
|
|
56
|
+
readonly 'install-version.label': 'Install version';
|
|
57
|
+
readonly 'failure-badge.label': 'Plugin failure details';
|
|
58
|
+
readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
|
|
59
|
+
readonly 'failure-phase-load.label': 'load';
|
|
60
|
+
readonly 'failure-phase-activation.label': 'activation';
|
|
61
|
+
readonly 'failure-reason-timeout.label': 'timed out';
|
|
62
|
+
readonly 'failure-reason-error.label': 'error';
|
|
63
|
+
readonly 'dependencies.label': 'Dependencies';
|
|
64
|
+
readonly 'dependents.label': 'Required by';
|
|
65
|
+
readonly 'spec.label': 'Specification';
|
|
66
|
+
readonly 'open-spec.label': 'Open Specification';
|
|
67
|
+
readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
|
|
68
|
+
readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
|
|
69
|
+
readonly 'disable-dependents-dialog.confirm.label': 'Disable';
|
|
70
|
+
readonly 'cancel.label': 'Cancel';
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export default meta;
|
|
77
|
+
type Story = StoryObj<typeof meta>;
|
|
78
|
+
export declare const Default: Story;
|
|
79
|
+
//# sourceMappingURL=PluginDetail.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginDetail.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PluginManager } from '@dxos/app-framework';
|
|
3
|
+
type IconSize = 4 | 5 | 6 | 8;
|
|
4
|
+
export type PluginFailureBadgeProps = {
|
|
5
|
+
failure: PluginManager.PluginFailure;
|
|
6
|
+
/** Optional override for the trigger icon's tailwind classes. */
|
|
7
|
+
iconClassNames?: string;
|
|
8
|
+
/** Visual size of the warning icon (passed through to react-ui `<Icon />`). */
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Compact warning glyph rendered next to a plugin's name when it has failed
|
|
13
|
+
* to load or activate. Clicking the icon opens a popover that names the phase
|
|
14
|
+
* (load / activation), the reason (timeout / error), and the underlying error
|
|
15
|
+
* message — enough for an operator to tell "remote host is offline" apart
|
|
16
|
+
* from "the plugin crashed".
|
|
17
|
+
*/
|
|
18
|
+
export declare const PluginFailureBadge: ({ failure, iconClassNames, size }: PluginFailureBadgeProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=PluginFailureBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginFailureBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginFailureBadge/PluginFailureBadge.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOzD,KAAK,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9B,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC;IACrC,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,sCAA2C,uBAAuB,sBAqChG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginFailureBadge/index.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC"}
|