@dxos/plugin-registry 0.8.4-main.c85a9c8dae → 0.8.4-main.d9fc60f731
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
- package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
- package/dist/lib/{browser/cli/index.mjs → neutral/RegistryPlugin.node.mjs} +28 -99
- package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
- package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GRQI6MLI.mjs +36 -0
- package/dist/lib/neutral/chunk-GRQI6MLI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
- package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +25 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
- package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +18 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +72 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/RegistryPlugin.d.ts +1 -0
- package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
- package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
- package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
- package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
- package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +15 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +14 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/categories.d.ts +18 -0
- package/dist/types/src/categories.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
- package/dist/types/src/commands/disable.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
- package/dist/types/src/commands/enable.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/list.d.ts +7 -0
- package/dist/types/src/commands/list.d.ts.map +1 -0
- package/dist/types/src/commands/util.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
- package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
- package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +75 -2
- package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +62 -16
- package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
- package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
- package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
- package/dist/types/src/components/PluginList/PluginItem.d.ts +29 -2
- package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
- package/dist/types/src/components/PluginList/PluginList.d.ts +18 -3
- package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -1
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts +60 -16
- package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
- package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
- package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
- package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +5 -0
- package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
- package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
- package/dist/types/src/containers/PluginArticle/index.d.ts +1 -2
- package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -1
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
- package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
- package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
- package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
- package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +5 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +9 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
- package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
- package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
- package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
- package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
- package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
- package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
- package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
- package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
- package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +20 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
- package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +4 -4
- package/dist/types/src/storage.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +59 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +30 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +63 -39
- package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +3 -1
- package/src/RegistryPlugin.test.ts +24 -0
- package/src/RegistryPlugin.tsx +13 -5
- package/src/RegistryPlugin.workerd.ts +11 -0
- package/src/capabilities/app-graph-builder.ts +219 -0
- package/src/capabilities/dev-plugin-loader.ts +39 -0
- package/src/capabilities/index.ts +11 -3
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +126 -0
- package/src/capabilities/settings.ts +34 -0
- package/src/categories.ts +44 -0
- package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
- package/src/components/DisableDependentsAlert/index.ts +5 -0
- package/src/components/PluginDetail/PluginDetail.stories.tsx +18 -14
- package/src/components/PluginDetail/PluginDetail.tsx +323 -61
- package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
- package/src/components/PluginFailureBadge/index.ts +5 -0
- package/src/components/PluginList/PluginItem.tsx +124 -25
- package/src/components/PluginList/PluginList.stories.tsx +22 -16
- package/src/components/PluginList/PluginList.tsx +32 -4
- package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
- package/src/components/RegistrySettings/index.ts +5 -0
- package/src/components/index.ts +3 -0
- package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
- package/src/containers/BaseRegistryArticle/index.ts +5 -0
- package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +88 -0
- package/src/containers/LoadPluginDialog/index.ts +5 -0
- package/src/containers/PluginArticle/PluginArticle.tsx +102 -13
- package/src/containers/PluginArticle/index.ts +1 -3
- package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +193 -0
- package/src/containers/PublicRegistryArticle/index.ts +5 -0
- package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
- package/src/containers/RegistryArticle/index.ts +5 -0
- package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
- package/src/containers/RegistrySettingsContainer/index.ts +5 -0
- package/src/containers/index.ts +5 -1
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useAutoTags.ts +52 -0
- package/src/hooks/useCatalogEntry.ts +25 -0
- package/src/hooks/useDisableConfirmation.ts +58 -0
- package/src/hooks/useInstalledVersionTag.ts +41 -0
- package/src/hooks/usePluginActions.ts +174 -0
- package/src/hooks/useRegistryPlugins.ts +29 -0
- package/src/hooks/useUpdateAvailable.ts +31 -0
- package/src/hooks/useVersionPicker.ts +112 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +34 -8
- package/src/operations/index.ts +7 -0
- package/src/operations/open-plugin-registry.ts +21 -0
- package/src/plugin.ts +11 -0
- package/src/{cli/storage.ts → storage.ts} +14 -21
- package/src/translations.ts +64 -15
- package/src/types.ts +33 -1
- package/dist/lib/browser/PluginArticle-MLBF7AFA.mjs +0 -29
- package/dist/lib/browser/PluginArticle-MLBF7AFA.mjs.map +0 -7
- package/dist/lib/browser/PluginRegistry-ENAI4SAY.mjs +0 -77
- package/dist/lib/browser/PluginRegistry-ENAI4SAY.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-2HXD7SOS.mjs +0 -167
- package/dist/lib/browser/app-graph-builder-2HXD7SOS.mjs.map +0 -7
- package/dist/lib/browser/chunk-TSNK3SAR.mjs +0 -191
- package/dist/lib/browser/chunk-TSNK3SAR.mjs.map +0 -7
- package/dist/lib/browser/chunk-VOAOTNGS.mjs +0 -19
- package/dist/lib/browser/chunk-VOAOTNGS.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -63
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs +0 -25
- package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs.map +0 -7
- package/dist/lib/browser/react-surface-DH25DIRH.mjs +0 -85
- package/dist/lib/browser/react-surface-DH25DIRH.mjs.map +0 -7
- package/dist/lib/node-esm/PluginArticle-TP2G6GGI.mjs +0 -30
- package/dist/lib/node-esm/PluginArticle-TP2G6GGI.mjs.map +0 -7
- package/dist/lib/node-esm/PluginRegistry-CWIZIQNX.mjs +0 -78
- package/dist/lib/node-esm/PluginRegistry-CWIZIQNX.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2LNPN72O.mjs +0 -168
- package/dist/lib/node-esm/app-graph-builder-2LNPN72O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4XO63XB6.mjs +0 -192
- package/dist/lib/node-esm/chunk-4XO63XB6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SALMIZ2W.mjs +0 -21
- package/dist/lib/node-esm/chunk-SALMIZ2W.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -225
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -64
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs +0 -26
- package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-3YBEVL65.mjs +0 -86
- package/dist/lib/node-esm/react-surface-3YBEVL65.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
- package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/list.d.ts +0 -7
- package/dist/types/src/cli/commands/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -3
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/cli/storage.d.ts.map +0 -1
- package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +0 -8
- package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +0 -1
- package/dist/types/src/containers/PluginRegistry/index.d.ts +0 -3
- package/dist/types/src/containers/PluginRegistry/index.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -137
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -24
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -88
- package/src/cli/index.ts +0 -6
- package/src/containers/PluginRegistry/PluginRegistry.tsx +0 -86
- package/src/containers/PluginRegistry/index.ts +0 -7
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
- /package/src/{cli/commands → commands}/disable.ts +0 -0
- /package/src/{cli/commands → commands}/enable.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/list.ts +0 -0
- /package/src/{cli/commands → commands}/util.ts +0 -0
package/src/translations.ts
CHANGED
|
@@ -4,26 +4,75 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
import { meta } from '
|
|
7
|
+
import { meta } from '#meta';
|
|
8
8
|
|
|
9
9
|
export const translations = [
|
|
10
10
|
{
|
|
11
11
|
'en-US': {
|
|
12
12
|
[meta.id]: {
|
|
13
|
-
'plugin
|
|
14
|
-
'details
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
13
|
+
'plugin.name': 'Registry',
|
|
14
|
+
'details.label': 'Details',
|
|
15
|
+
'description.label': 'Description',
|
|
16
|
+
'preview.label': 'Preview',
|
|
17
|
+
'home-page.label': 'Website',
|
|
18
|
+
'source.label': 'Source',
|
|
19
|
+
'resources.label': 'Resources',
|
|
20
|
+
'plugin-registry.label': 'Plugins',
|
|
21
|
+
'plugin-settings.label': 'Plugin Settings',
|
|
22
|
+
'bundled-plugins.label': 'Bundled',
|
|
23
|
+
'installed-plugins.label': 'Enabled',
|
|
24
|
+
'recommended-plugins.label': 'Recommended',
|
|
25
|
+
'labs-plugins.label': 'Labs',
|
|
26
|
+
'registry-plugins.label': 'Registry',
|
|
27
|
+
'load-by-url.label': 'Load from URL',
|
|
28
|
+
'load-by-url-dialog.title': 'Load Plugin from URL',
|
|
29
|
+
'plugin-url.label': 'Plugin URL',
|
|
30
|
+
'load-plugin.label': 'Load Plugin',
|
|
31
|
+
'loading.label': 'Loading...',
|
|
32
|
+
'filter.label': 'Filter plugins',
|
|
33
|
+
'filter.placeholder': 'Filter…',
|
|
34
|
+
'registry.loading.label': 'Loading registry plugins…',
|
|
35
|
+
'registry.error.label': 'Failed to load registry plugins: {{message}}',
|
|
36
|
+
'registry.empty.label': 'No registry plugins available.',
|
|
37
|
+
'dev-plugin.section.title': 'Dev plugin',
|
|
38
|
+
'dev-plugin.description':
|
|
39
|
+
'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.',
|
|
40
|
+
'dev-plugin.url.label': 'Manifest URL',
|
|
41
|
+
'dev-plugin.url.description':
|
|
42
|
+
'Defaults to the local dev server. Edit if your dev server runs on a different port.',
|
|
43
|
+
'dev-plugin.toggle.label': 'Dev plugin',
|
|
44
|
+
'dev-plugin.toggle.description':
|
|
45
|
+
'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.',
|
|
46
|
+
'dev-plugin.enable.label': 'Enable',
|
|
47
|
+
'dev-plugin.disable.label': 'Disable',
|
|
48
|
+
'dev-plugin.busy.label': 'Loading…',
|
|
49
|
+
'dev-plugin.not-loaded.message':
|
|
50
|
+
'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.',
|
|
51
|
+
'coming-soon.label': 'Coming soon!',
|
|
52
|
+
'open-plugin-registry.label': 'Open plugin registry',
|
|
53
|
+
'install.label': 'Install',
|
|
54
|
+
'installing.label': 'Installing…',
|
|
55
|
+
'uninstall.label': 'Uninstall',
|
|
56
|
+
'update.label': 'Update',
|
|
57
|
+
'updating.label': 'Updating…',
|
|
58
|
+
'versions.label': 'Versions',
|
|
59
|
+
'installed.label': 'installed',
|
|
60
|
+
'install-version.label': 'Install version',
|
|
61
|
+
'failure-badge.label': 'Plugin failure details',
|
|
62
|
+
'failure-title.label': 'Plugin {{phase}} failed: {{reason}}',
|
|
63
|
+
'failure-phase-load.label': 'load',
|
|
64
|
+
'failure-phase-activation.label': 'activation',
|
|
65
|
+
'failure-reason-timeout.label': 'timed out',
|
|
66
|
+
'failure-reason-error.label': 'error',
|
|
67
|
+
'dependencies.label': 'Dependencies',
|
|
68
|
+
'dependents.label': 'Required by',
|
|
69
|
+
'spec.label': 'Specification',
|
|
70
|
+
'open-spec.label': 'Open Specification',
|
|
71
|
+
'disable-dependents-dialog.title': 'Disable dependent plugins?',
|
|
72
|
+
'disable-dependents-dialog.description':
|
|
73
|
+
'Disabling {{plugin}} will also disable the following plugins that depend on it:',
|
|
74
|
+
'disable-dependents-dialog.confirm.label': 'Disable',
|
|
75
|
+
'cancel.label': 'Cancel',
|
|
27
76
|
},
|
|
28
77
|
},
|
|
29
78
|
},
|
package/src/types.ts
CHANGED
|
@@ -2,16 +2,48 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
5
6
|
import * as Schema from 'effect/Schema';
|
|
6
7
|
|
|
8
|
+
import { Capability } from '@dxos/app-framework';
|
|
9
|
+
|
|
7
10
|
export const RegistrySettingsSchema = Schema.mutable(
|
|
8
11
|
Schema.Struct({
|
|
9
12
|
experimental: Schema.optional(Schema.Boolean),
|
|
13
|
+
/**
|
|
14
|
+
* Manifest URL for a plugin served by a local Vite dev server. The
|
|
15
|
+
* registry settings panel pre-fills this with `localhost:3967`; authors
|
|
16
|
+
* iterating on a different port can edit it.
|
|
17
|
+
*/
|
|
18
|
+
devPluginUrl: Schema.optional(Schema.String),
|
|
19
|
+
/**
|
|
20
|
+
* When true, the registry plugin attempts to load `devPluginUrl` on every
|
|
21
|
+
* app boot. Failures (dev server offline, manifest 404) are logged and
|
|
22
|
+
* the flag stays on so the next boot retries — the user explicitly turns
|
|
23
|
+
* it off when they're done iterating.
|
|
24
|
+
*/
|
|
25
|
+
devPluginEnabled: Schema.optional(Schema.Boolean),
|
|
10
26
|
}),
|
|
11
27
|
);
|
|
12
28
|
|
|
13
29
|
export type RegistrySettings = Schema.Schema.Type<typeof RegistrySettingsSchema>;
|
|
14
30
|
|
|
15
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Per-plugin capabilities exposed by `@dxos/plugin-registry`.
|
|
33
|
+
*/
|
|
34
|
+
export namespace RegistryCapabilities {
|
|
35
|
+
export const Settings = Capability.make<Atom.Writable<RegistrySettings>>('@dxos/plugin-registry/settings');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const RegistryTagType = Schema.Literal(
|
|
39
|
+
'new',
|
|
40
|
+
'beta',
|
|
41
|
+
'labs',
|
|
42
|
+
'popular',
|
|
43
|
+
'featured',
|
|
44
|
+
'experimental',
|
|
45
|
+
'registry',
|
|
46
|
+
'local',
|
|
47
|
+
);
|
|
16
48
|
|
|
17
49
|
export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PluginDetail
|
|
3
|
-
} from "./chunk-TSNK3SAR.mjs";
|
|
4
|
-
import "./chunk-VOAOTNGS.mjs";
|
|
5
|
-
|
|
6
|
-
// src/containers/PluginArticle/PluginArticle.tsx
|
|
7
|
-
import React, { useCallback } from "react";
|
|
8
|
-
import { usePluginManager } from "@dxos/app-framework/ui";
|
|
9
|
-
import { runAndForwardErrors } from "@dxos/effect";
|
|
10
|
-
var PluginArticle = ({ subject: plugin }) => {
|
|
11
|
-
const manager = usePluginManager();
|
|
12
|
-
const enabled = manager.getEnabled().includes(plugin.meta.id);
|
|
13
|
-
const handleEnableChange = useCallback((enabled2) => enabled2 ? runAndForwardErrors(manager.enable(plugin.meta.id)) : runAndForwardErrors(manager.disable(plugin.meta.id)), [
|
|
14
|
-
manager,
|
|
15
|
-
plugin.meta.id
|
|
16
|
-
]);
|
|
17
|
-
return /* @__PURE__ */ React.createElement(PluginDetail, {
|
|
18
|
-
plugin,
|
|
19
|
-
enabled,
|
|
20
|
-
onEnabledChange: handleEnableChange
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/containers/PluginArticle/index.ts
|
|
25
|
-
var PluginArticle_default = PluginArticle;
|
|
26
|
-
export {
|
|
27
|
-
PluginArticle_default as default
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=PluginArticle-MLBF7AFA.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/containers/PluginArticle/PluginArticle.tsx", "../../../src/containers/PluginArticle/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { usePluginManager } from '@dxos/app-framework/ui';\nimport { runAndForwardErrors } from '@dxos/effect';\n\nimport { PluginDetail } from '../../components';\n\n// TODO(burdon): Convert to ECHO type.\nexport type PluginArticleProps = { subject: Plugin.Plugin };\n\nexport const PluginArticle = ({ subject: plugin }: PluginArticleProps) => {\n const manager = usePluginManager();\n const enabled = manager.getEnabled().includes(plugin.meta.id);\n const handleEnableChange = useCallback(\n (enabled: boolean) =>\n enabled\n ? runAndForwardErrors(manager.enable(plugin.meta.id))\n : runAndForwardErrors(manager.disable(plugin.meta.id)),\n [manager, plugin.meta.id],\n );\n\n return <PluginDetail plugin={plugin} enabled={enabled} onEnabledChange={handleEnableChange} />;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { PluginArticle } from './PluginArticle';\n\nexport default PluginArticle;\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,OAAOA,SAASC,mBAAmB;AAGnC,SAASC,wBAAwB;AACjC,SAASC,2BAA2B;AAO7B,IAAMC,gBAAgB,CAAC,EAAEC,SAASC,OAAM,MAAsB;AACnE,QAAMC,UAAUC,iBAAAA;AAChB,QAAMC,UAAUF,QAAQG,WAAU,EAAGC,SAASL,OAAOM,KAAKC,EAAE;AAC5D,QAAMC,qBAAqBC,YACzB,CAACN,aACCA,WACIO,oBAAoBT,QAAQU,OAAOX,OAAOM,KAAKC,EAAE,CAAA,IACjDG,oBAAoBT,QAAQW,QAAQZ,OAAOM,KAAKC,EAAE,CAAA,GACxD;IAACN;IAASD,OAAOM,KAAKC;GAAG;AAG3B,SAAO,sBAAA,cAACM,cAAAA;IAAab;IAAgBG;IAAkBW,iBAAiBN;;AAC1E;;;ACrBA,IAAA,wBAAeO;",
|
|
6
|
-
"names": ["React", "useCallback", "usePluginManager", "runAndForwardErrors", "PluginArticle", "subject", "plugin", "manager", "usePluginManager", "enabled", "getEnabled", "includes", "meta", "id", "handleEnableChange", "useCallback", "runAndForwardErrors", "enable", "disable", "PluginDetail", "onEnabledChange", "PluginArticle"]
|
|
7
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PluginList
|
|
3
|
-
} from "./chunk-TSNK3SAR.mjs";
|
|
4
|
-
import "./chunk-VOAOTNGS.mjs";
|
|
5
|
-
|
|
6
|
-
// src/containers/PluginRegistry/PluginRegistry.tsx
|
|
7
|
-
import { useAtomValue } from "@effect-atom/atom-react";
|
|
8
|
-
import * as Effect from "effect/Effect";
|
|
9
|
-
import React, { useCallback, useMemo } from "react";
|
|
10
|
-
import { useCapabilities, useOperationInvoker, usePluginManager } from "@dxos/app-framework/ui";
|
|
11
|
-
import { AppCapabilities, LayoutOperation, SettingsOperation } from "@dxos/app-toolkit";
|
|
12
|
-
import { runAndForwardErrors } from "@dxos/effect";
|
|
13
|
-
import { ObservabilityOperation } from "@dxos/plugin-observability/types";
|
|
14
|
-
import { ScrollArea } from "@dxos/react-ui";
|
|
15
|
-
var sortByPluginMeta = ({ meta: { name: a = "" } }, { meta: { name: b = "" } }) => a.localeCompare(b);
|
|
16
|
-
var PluginRegistry = ({ id, plugins: pluginsProp }) => {
|
|
17
|
-
const manager = usePluginManager();
|
|
18
|
-
const { invoke, invokePromise } = useOperationInvoker();
|
|
19
|
-
const plugins = useMemo(() => pluginsProp.sort(sortByPluginMeta), [
|
|
20
|
-
pluginsProp
|
|
21
|
-
]);
|
|
22
|
-
const enabled = useAtomValue(manager.enabled);
|
|
23
|
-
const allSettings = useCapabilities(AppCapabilities.Settings);
|
|
24
|
-
const handleChange = useCallback((id2, enabled2) => Effect.gen(function* () {
|
|
25
|
-
if (enabled2) {
|
|
26
|
-
yield* manager.enable(id2);
|
|
27
|
-
} else {
|
|
28
|
-
yield* manager.disable(id2);
|
|
29
|
-
}
|
|
30
|
-
yield* invoke(ObservabilityOperation.SendEvent, {
|
|
31
|
-
name: "plugins.toggle",
|
|
32
|
-
properties: {
|
|
33
|
-
plugin: id2,
|
|
34
|
-
enabled: enabled2
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}).pipe(runAndForwardErrors), [
|
|
38
|
-
invoke,
|
|
39
|
-
manager
|
|
40
|
-
]);
|
|
41
|
-
const handleClick = useCallback((pluginId) => invokePromise(LayoutOperation.Open, {
|
|
42
|
-
// TODO(wittjosiah): `/` currently is not supported in ids.
|
|
43
|
-
subject: [
|
|
44
|
-
pluginId.replaceAll("/", ":")
|
|
45
|
-
],
|
|
46
|
-
pivotId: id,
|
|
47
|
-
positioning: "end"
|
|
48
|
-
}), [
|
|
49
|
-
invokePromise,
|
|
50
|
-
id
|
|
51
|
-
]);
|
|
52
|
-
const hasSettings = useCallback((pluginId) => allSettings.some((s) => s.prefix === pluginId), [
|
|
53
|
-
allSettings
|
|
54
|
-
]);
|
|
55
|
-
const handleSettings = useCallback((pluginId) => invokePromise(SettingsOperation.Open, {
|
|
56
|
-
plugin: pluginId
|
|
57
|
-
}), [
|
|
58
|
-
invokePromise
|
|
59
|
-
]);
|
|
60
|
-
return /* @__PURE__ */ React.createElement(ScrollArea.Root, {
|
|
61
|
-
orientation: "vertical"
|
|
62
|
-
}, /* @__PURE__ */ React.createElement(ScrollArea.Viewport, null, /* @__PURE__ */ React.createElement(PluginList, {
|
|
63
|
-
plugins,
|
|
64
|
-
enabled,
|
|
65
|
-
onClick: handleClick,
|
|
66
|
-
onChange: handleChange,
|
|
67
|
-
hasSettings,
|
|
68
|
-
onSettings: handleSettings
|
|
69
|
-
})));
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// src/containers/PluginRegistry/index.ts
|
|
73
|
-
var PluginRegistry_default = PluginRegistry;
|
|
74
|
-
export {
|
|
75
|
-
PluginRegistry_default as default
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=PluginRegistry-ENAI4SAY.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/containers/PluginRegistry/PluginRegistry.tsx", "../../../src/containers/PluginRegistry/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback, useMemo } from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { useCapabilities, useOperationInvoker, usePluginManager } from '@dxos/app-framework/ui';\nimport { AppCapabilities, LayoutOperation, SettingsOperation } from '@dxos/app-toolkit';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/types';\nimport { ScrollArea } from '@dxos/react-ui';\n\nimport { PluginList } from '../../components';\n\nconst sortByPluginMeta = ({ meta: { name: a = '' } }: Plugin.Plugin, { meta: { name: b = '' } }: Plugin.Plugin) =>\n a.localeCompare(b);\n\nexport type PluginRegistryProps = {\n id: string;\n plugins: Plugin.Plugin[];\n};\n\nexport const PluginRegistry = ({ id, plugins: pluginsProp }: PluginRegistryProps) => {\n const manager = usePluginManager();\n const { invoke, invokePromise } = useOperationInvoker();\n const plugins = useMemo(() => pluginsProp.sort(sortByPluginMeta), [pluginsProp]);\n const enabled = useAtomValue(manager.enabled);\n const allSettings = useCapabilities(AppCapabilities.Settings);\n\n // TODO(wittjosiah): Factor out to an intent?\n const handleChange = useCallback(\n (id: string, enabled: boolean) =>\n Effect.gen(function* () {\n if (enabled) {\n yield* manager.enable(id);\n } else {\n yield* manager.disable(id);\n }\n\n yield* invoke(ObservabilityOperation.SendEvent, {\n name: 'plugins.toggle',\n properties: {\n plugin: id,\n enabled,\n },\n });\n }).pipe(runAndForwardErrors),\n [invoke, manager],\n );\n\n const handleClick = useCallback(\n (pluginId: string) =>\n invokePromise(LayoutOperation.Open, {\n // TODO(wittjosiah): `/` currently is not supported in ids.\n subject: [pluginId.replaceAll('/', ':')],\n pivotId: id,\n positioning: 'end',\n }),\n [invokePromise, id],\n );\n\n const hasSettings = useCallback((pluginId: string) => allSettings.some((s) => s.prefix === pluginId), [allSettings]);\n\n const handleSettings = useCallback(\n (pluginId: string) => invokePromise(SettingsOperation.Open, { plugin: pluginId }),\n [invokePromise],\n );\n\n return (\n <ScrollArea.Root orientation='vertical'>\n <ScrollArea.Viewport>\n <PluginList\n plugins={plugins}\n enabled={enabled}\n onClick={handleClick}\n onChange={handleChange}\n hasSettings={hasSettings}\n onSettings={handleSettings}\n />\n </ScrollArea.Viewport>\n </ScrollArea.Root>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PluginRegistry } from './PluginRegistry';\n\nexport default PluginRegistry;\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,oBAAoB;AAC7B,YAAYC,YAAY;AACxB,OAAOC,SAASC,aAAaC,eAAe;AAG5C,SAASC,iBAAiBC,qBAAqBC,wBAAwB;AACvE,SAASC,iBAAiBC,iBAAiBC,yBAAyB;AACpE,SAASC,2BAA2B;AACpC,SAASC,8BAA8B;AACvC,SAASC,kBAAkB;AAI3B,IAAMC,mBAAmB,CAAC,EAAEC,MAAM,EAAEC,MAAMC,IAAI,GAAE,EAAE,GAAmB,EAAEF,MAAM,EAAEC,MAAME,IAAI,GAAE,EAAE,MAC3FD,EAAEE,cAAcD,CAAAA;AAOX,IAAME,iBAAiB,CAAC,EAAEC,IAAIC,SAASC,YAAW,MAAuB;AAC9E,QAAMC,UAAUC,iBAAAA;AAChB,QAAM,EAAEC,QAAQC,cAAa,IAAKC,oBAAAA;AAClC,QAAMN,UAAUO,QAAQ,MAAMN,YAAYO,KAAKhB,gBAAAA,GAAmB;IAACS;GAAY;AAC/E,QAAMQ,UAAUC,aAAaR,QAAQO,OAAO;AAC5C,QAAME,cAAcC,gBAAgBC,gBAAgBC,QAAQ;AAG5D,QAAMC,eAAeC,YACnB,CAACjB,KAAYU,aACJQ,WAAI,aAAA;AACT,QAAIR,UAAS;AACX,aAAOP,QAAQgB,OAAOnB,GAAAA;IACxB,OAAO;AACL,aAAOG,QAAQiB,QAAQpB,GAAAA;IACzB;AAEA,WAAOK,OAAOgB,uBAAuBC,WAAW;MAC9C3B,MAAM;MACN4B,YAAY;QACVC,QAAQxB;QACRU,SAAAA;MACF;IACF,CAAA;EACF,CAAA,EAAGe,KAAKC,mBAAAA,GACV;IAACrB;IAAQF;GAAQ;AAGnB,QAAMwB,cAAcV,YAClB,CAACW,aACCtB,cAAcuB,gBAAgBC,MAAM;;IAElCC,SAAS;MAACH,SAASI,WAAW,KAAK,GAAA;;IACnCC,SAASjC;IACTkC,aAAa;EACf,CAAA,GACF;IAAC5B;IAAeN;GAAG;AAGrB,QAAMmC,cAAclB,YAAY,CAACW,aAAqBhB,YAAYwB,KAAK,CAACC,MAAMA,EAAEC,WAAWV,QAAAA,GAAW;IAAChB;GAAY;AAEnH,QAAM2B,iBAAiBtB,YACrB,CAACW,aAAqBtB,cAAckC,kBAAkBV,MAAM;IAAEN,QAAQI;EAAS,CAAA,GAC/E;IAACtB;GAAc;AAGjB,SACE,sBAAA,cAACmC,WAAWC,MAAI;IAACC,aAAY;KAC3B,sBAAA,cAACF,WAAWG,UAAQ,MAClB,sBAAA,cAACC,YAAAA;IACC5C;IACAS;IACAoC,SAASnB;IACToB,UAAU/B;IACVmB;IACAa,YAAYT;;AAKtB;;;AC/EA,IAAA,yBAAeU;",
|
|
6
|
-
"names": ["useAtomValue", "Effect", "React", "useCallback", "useMemo", "useCapabilities", "useOperationInvoker", "usePluginManager", "AppCapabilities", "LayoutOperation", "SettingsOperation", "runAndForwardErrors", "ObservabilityOperation", "ScrollArea", "sortByPluginMeta", "meta", "name", "a", "b", "localeCompare", "PluginRegistry", "id", "plugins", "pluginsProp", "manager", "usePluginManager", "invoke", "invokePromise", "useOperationInvoker", "useMemo", "sort", "enabled", "useAtomValue", "allSettings", "useCapabilities", "AppCapabilities", "Settings", "handleChange", "useCallback", "gen", "enable", "disable", "ObservabilityOperation", "SendEvent", "properties", "plugin", "pipe", "runAndForwardErrors", "handleClick", "pluginId", "LayoutOperation", "Open", "subject", "replaceAll", "pivotId", "positioning", "hasSettings", "some", "s", "prefix", "handleSettings", "SettingsOperation", "ScrollArea", "Root", "orientation", "Viewport", "PluginList", "onClick", "onChange", "onSettings", "PluginRegistry"]
|
|
7
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
REGISTRY_ID,
|
|
3
|
-
REGISTRY_KEY,
|
|
4
|
-
meta
|
|
5
|
-
} from "./chunk-VOAOTNGS.mjs";
|
|
6
|
-
|
|
7
|
-
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
8
|
-
import * as Effect from "effect/Effect";
|
|
9
|
-
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
10
|
-
import { AppCapabilities, SettingsOperation } from "@dxos/app-toolkit";
|
|
11
|
-
import { Operation } from "@dxos/operation";
|
|
12
|
-
import { GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
|
|
13
|
-
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
14
|
-
const capabilities = yield* Capability.Service;
|
|
15
|
-
const extensions = yield* Effect.all([
|
|
16
|
-
GraphBuilder.createExtension({
|
|
17
|
-
id: meta.id,
|
|
18
|
-
match: NodeMatcher.whenRoot,
|
|
19
|
-
actions: () => Effect.succeed([
|
|
20
|
-
{
|
|
21
|
-
id: meta.id,
|
|
22
|
-
data: () => Operation.invoke(SettingsOperation.OpenPluginRegistry),
|
|
23
|
-
properties: {
|
|
24
|
-
label: [
|
|
25
|
-
"open plugin registry label",
|
|
26
|
-
{
|
|
27
|
-
ns: meta.id
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
icon: "ph--squares-four--regular",
|
|
31
|
-
disposition: "menu"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
])
|
|
35
|
-
}),
|
|
36
|
-
GraphBuilder.createExtension({
|
|
37
|
-
id: meta.id,
|
|
38
|
-
match: NodeMatcher.whenRoot,
|
|
39
|
-
connector: () => Effect.succeed([
|
|
40
|
-
{
|
|
41
|
-
id: REGISTRY_ID,
|
|
42
|
-
type: meta.id,
|
|
43
|
-
properties: {
|
|
44
|
-
label: [
|
|
45
|
-
"plugin registry label",
|
|
46
|
-
{
|
|
47
|
-
ns: meta.id
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
icon: "ph--squares-four--regular",
|
|
51
|
-
disposition: "pin-end",
|
|
52
|
-
testId: "treeView.pluginRegistry"
|
|
53
|
-
},
|
|
54
|
-
nodes: [
|
|
55
|
-
{
|
|
56
|
-
id: `${REGISTRY_KEY}>all`,
|
|
57
|
-
type: "category",
|
|
58
|
-
data: `${REGISTRY_KEY}>all`,
|
|
59
|
-
properties: {
|
|
60
|
-
label: [
|
|
61
|
-
"all plugins label",
|
|
62
|
-
{
|
|
63
|
-
ns: meta.id
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
icon: "ph--squares-four--regular",
|
|
67
|
-
key: REGISTRY_KEY,
|
|
68
|
-
testId: "pluginRegistry.all"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: `${REGISTRY_KEY}>installed`,
|
|
73
|
-
type: "category",
|
|
74
|
-
data: `${REGISTRY_KEY}>installed`,
|
|
75
|
-
properties: {
|
|
76
|
-
label: [
|
|
77
|
-
"installed plugins label",
|
|
78
|
-
{
|
|
79
|
-
ns: meta.id
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
icon: "ph--check--regular",
|
|
83
|
-
key: REGISTRY_KEY,
|
|
84
|
-
testId: "pluginRegistry.installed"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
id: `${REGISTRY_KEY}>recommended`,
|
|
89
|
-
type: "category",
|
|
90
|
-
data: `${REGISTRY_KEY}>recommended`,
|
|
91
|
-
properties: {
|
|
92
|
-
label: [
|
|
93
|
-
"recommended plugins label",
|
|
94
|
-
{
|
|
95
|
-
ns: meta.id
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
icon: "ph--star--regular",
|
|
99
|
-
key: REGISTRY_KEY,
|
|
100
|
-
testId: "pluginRegistry.recommended"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: `${REGISTRY_KEY}>labs`,
|
|
105
|
-
type: "category",
|
|
106
|
-
data: `${REGISTRY_KEY}>labs`,
|
|
107
|
-
properties: {
|
|
108
|
-
label: [
|
|
109
|
-
"labs plugins label",
|
|
110
|
-
{
|
|
111
|
-
ns: meta.id
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
icon: "ph--flask--regular",
|
|
115
|
-
key: REGISTRY_KEY,
|
|
116
|
-
testId: "pluginRegistry.labs"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
])
|
|
122
|
-
}),
|
|
123
|
-
GraphBuilder.createExtension({
|
|
124
|
-
id: `${meta.id}/actions`,
|
|
125
|
-
match: NodeMatcher.whenId(REGISTRY_ID),
|
|
126
|
-
actions: () => Effect.succeed([
|
|
127
|
-
{
|
|
128
|
-
id: `${meta.id}/load-by-url`,
|
|
129
|
-
data: Effect.fnUntraced(function* () {
|
|
130
|
-
}),
|
|
131
|
-
properties: {
|
|
132
|
-
label: [
|
|
133
|
-
"load by url label",
|
|
134
|
-
{
|
|
135
|
-
ns: meta.id
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
icon: "ph--cloud-arrow-down--regular",
|
|
139
|
-
disabled: true
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
])
|
|
143
|
-
}),
|
|
144
|
-
GraphBuilder.createExtension({
|
|
145
|
-
id: `${meta.id}/plugins`,
|
|
146
|
-
match: NodeMatcher.whenId(REGISTRY_ID),
|
|
147
|
-
connector: () => {
|
|
148
|
-
const manager = capabilities.get(Capabilities.PluginManager);
|
|
149
|
-
return Effect.succeed(manager.getPlugins().map((plugin) => ({
|
|
150
|
-
id: plugin.meta.id.replaceAll("/", ":"),
|
|
151
|
-
type: "dxos.org/plugin",
|
|
152
|
-
data: plugin,
|
|
153
|
-
properties: {
|
|
154
|
-
label: plugin.meta.name ?? plugin.meta.id,
|
|
155
|
-
icon: plugin.meta.icon ?? "ph--circle--regular",
|
|
156
|
-
disposition: "hidden"
|
|
157
|
-
}
|
|
158
|
-
})));
|
|
159
|
-
}
|
|
160
|
-
})
|
|
161
|
-
]);
|
|
162
|
-
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
163
|
-
}));
|
|
164
|
-
export {
|
|
165
|
-
app_graph_builder_default as default
|
|
166
|
-
};
|
|
167
|
-
//# sourceMappingURL=app-graph-builder-2HXD7SOS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities, SettingsOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\n\nimport { REGISTRY_ID, REGISTRY_KEY, meta } from '../../meta';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const capabilities = yield* Capability.Service;\n\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: meta.id,\n data: () => Operation.invoke(SettingsOperation.OpenPluginRegistry),\n properties: {\n label: ['open plugin registry label', { ns: meta.id }],\n icon: 'ph--squares-four--regular',\n disposition: 'menu',\n },\n },\n ]),\n }),\n GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n {\n id: REGISTRY_ID,\n type: meta.id,\n properties: {\n label: ['plugin registry label', { ns: meta.id }],\n icon: 'ph--squares-four--regular',\n disposition: 'pin-end',\n testId: 'treeView.pluginRegistry',\n },\n nodes: [\n {\n id: `${REGISTRY_KEY}>all`,\n type: 'category' as const,\n data: `${REGISTRY_KEY}>all`,\n properties: {\n label: ['all plugins label', { ns: meta.id }],\n icon: 'ph--squares-four--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.all',\n },\n },\n {\n id: `${REGISTRY_KEY}>installed`,\n type: 'category' as const,\n data: `${REGISTRY_KEY}>installed`,\n properties: {\n label: ['installed plugins label', { ns: meta.id }],\n icon: 'ph--check--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.installed',\n },\n },\n {\n id: `${REGISTRY_KEY}>recommended`,\n type: 'category' as const,\n data: `${REGISTRY_KEY}>recommended`,\n properties: {\n label: ['recommended plugins label', { ns: meta.id }],\n icon: 'ph--star--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.recommended',\n },\n },\n {\n id: `${REGISTRY_KEY}>labs`,\n type: 'category' as const,\n data: `${REGISTRY_KEY}>labs`,\n properties: {\n label: ['labs plugins label', { ns: meta.id }],\n icon: 'ph--flask--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.labs',\n },\n },\n ],\n },\n ]),\n }),\n GraphBuilder.createExtension({\n id: `${meta.id}/actions`,\n match: NodeMatcher.whenId(REGISTRY_ID),\n actions: () =>\n Effect.succeed([\n {\n id: `${meta.id}/load-by-url`,\n data: Effect.fnUntraced(function* () {}),\n properties: {\n label: ['load by url label', { ns: meta.id }],\n icon: 'ph--cloud-arrow-down--regular',\n disabled: true,\n },\n },\n ]),\n }),\n GraphBuilder.createExtension({\n id: `${meta.id}/plugins`,\n match: NodeMatcher.whenId(REGISTRY_ID),\n connector: () => {\n const manager = capabilities.get(Capabilities.PluginManager);\n return Effect.succeed(\n manager.getPlugins().map((plugin) => ({\n id: plugin.meta.id.replaceAll('/', ':'),\n type: 'dxos.org/plugin',\n data: plugin,\n properties: {\n label: plugin.meta.name ?? plugin.meta.id,\n icon: plugin.meta.icon ?? 'ph--circle--regular',\n disposition: 'hidden',\n },\n })),\n );\n },\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiBC,yBAAyB;AACnD,SAASC,iBAAiB;AAC1B,SAASC,cAAcC,mBAAmB;AAI1C,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,eAAe,OAAOH,WAAWI;AAEvC,QAAMC,aAAa,OAAcC,WAAI;IACnCC,aAAaC,gBAAgB;MAC3BC,IAAIC,KAAKD;MACTE,OAAOC,YAAYC;MACnBC,SAAS,MACAC,eAAQ;QACb;UACEN,IAAIC,KAAKD;UACTO,MAAM,MAAMC,UAAUC,OAAOC,kBAAkBC,kBAAkB;UACjEC,YAAY;YACVC,OAAO;cAAC;cAA8B;gBAAEC,IAAIb,KAAKD;cAAG;;YACpDe,MAAM;YACNC,aAAa;UACf;QACF;OACD;IACL,CAAA;IACAlB,aAAaC,gBAAgB;MAC3BC,IAAIC,KAAKD;MACTE,OAAOC,YAAYC;MACnBa,WAAW,MACFX,eAAQ;QACb;UACEN,IAAIkB;UACJC,MAAMlB,KAAKD;UACXY,YAAY;YACVC,OAAO;cAAC;cAAyB;gBAAEC,IAAIb,KAAKD;cAAG;;YAC/Ce,MAAM;YACNC,aAAa;YACbI,QAAQ;UACV;UACAC,OAAO;YACL;cACErB,IAAI,GAAGsB,YAAAA;cACPH,MAAM;cACNZ,MAAM,GAAGe,YAAAA;cACTV,YAAY;gBACVC,OAAO;kBAAC;kBAAqB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBAC3Ce,MAAM;gBACNQ,KAAKD;gBACLF,QAAQ;cACV;YACF;YACA;cACEpB,IAAI,GAAGsB,YAAAA;cACPH,MAAM;cACNZ,MAAM,GAAGe,YAAAA;cACTV,YAAY;gBACVC,OAAO;kBAAC;kBAA2B;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACjDe,MAAM;gBACNQ,KAAKD;gBACLF,QAAQ;cACV;YACF;YACA;cACEpB,IAAI,GAAGsB,YAAAA;cACPH,MAAM;cACNZ,MAAM,GAAGe,YAAAA;cACTV,YAAY;gBACVC,OAAO;kBAAC;kBAA6B;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACnDe,MAAM;gBACNQ,KAAKD;gBACLF,QAAQ;cACV;YACF;YACA;cACEpB,IAAI,GAAGsB,YAAAA;cACPH,MAAM;cACNZ,MAAM,GAAGe,YAAAA;cACTV,YAAY;gBACVC,OAAO;kBAAC;kBAAsB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBAC5Ce,MAAM;gBACNQ,KAAKD;gBACLF,QAAQ;cACV;YACF;;QAEJ;OACD;IACL,CAAA;IACAtB,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYqB,OAAON,WAAAA;MAC1Bb,SAAS,MACAC,eAAQ;QACb;UACEN,IAAI,GAAGC,KAAKD,EAAE;UACdO,MAAad,kBAAW,aAAA;UAAc,CAAA;UACtCmB,YAAY;YACVC,OAAO;cAAC;cAAqB;gBAAEC,IAAIb,KAAKD;cAAG;;YAC3Ce,MAAM;YACNU,UAAU;UACZ;QACF;OACD;IACL,CAAA;IACA3B,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYqB,OAAON,WAAAA;MAC1BD,WAAW,MAAA;AACT,cAAMS,UAAUhC,aAAaiC,IAAIC,aAAaC,aAAa;AAC3D,eAAcvB,eACZoB,QAAQI,WAAU,EAAGC,IAAI,CAACC,YAAY;UACpChC,IAAIgC,OAAO/B,KAAKD,GAAGiC,WAAW,KAAK,GAAA;UACnCd,MAAM;UACNZ,MAAMyB;UACNpB,YAAY;YACVC,OAAOmB,OAAO/B,KAAKiC,QAAQF,OAAO/B,KAAKD;YACvCe,MAAMiB,OAAO/B,KAAKc,QAAQ;YAC1BC,aAAa;UACf;QACF,EAAA,CAAA;MAEJ;IACF,CAAA;GACD;AAED,SAAOzB,WAAW4C,YAAYC,gBAAgBC,iBAAiBzC,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
-
"names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "SettingsOperation", "Operation", "GraphBuilder", "NodeMatcher", "Capability", "makeModule", "fnUntraced", "capabilities", "Service", "extensions", "all", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "actions", "succeed", "data", "Operation", "invoke", "SettingsOperation", "OpenPluginRegistry", "properties", "label", "ns", "icon", "disposition", "connector", "REGISTRY_ID", "type", "testId", "nodes", "REGISTRY_KEY", "key", "whenId", "disabled", "manager", "get", "Capabilities", "PluginManager", "getPlugins", "map", "plugin", "replaceAll", "name", "contributes", "AppCapabilities", "AppGraphBuilder"]
|
|
7
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
meta
|
|
3
|
-
} from "./chunk-VOAOTNGS.mjs";
|
|
4
|
-
|
|
5
|
-
// src/components/PluginDetail/PluginDetail.tsx
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { Icon, Input, Link, useTranslation } from "@dxos/react-ui";
|
|
8
|
-
import { ScrollArea } from "@dxos/react-ui";
|
|
9
|
-
import { getStyles, mx } from "@dxos/ui-theme";
|
|
10
|
-
var PluginDetail = ({ plugin, enabled, onEnabledChange }) => {
|
|
11
|
-
const { t } = useTranslation(meta.id);
|
|
12
|
-
const { id, name, description, homePage, source, screenshots, icon = "ph--circle--regular", iconHue = "neutral" } = plugin.meta;
|
|
13
|
-
const styles = getStyles(iconHue);
|
|
14
|
-
return /* @__PURE__ */ React.createElement(ScrollArea.Root, {
|
|
15
|
-
orientation: "vertical"
|
|
16
|
-
}, /* @__PURE__ */ React.createElement(ScrollArea.Viewport, null, /* @__PURE__ */ React.createElement("div", {
|
|
17
|
-
role: "none",
|
|
18
|
-
className: "dx-article grid grid-cols-[min-content_1fr] gap-4 p-4"
|
|
19
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
20
|
-
role: "none"
|
|
21
|
-
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
22
|
-
classNames: mx("p-1 rounded-md", styles.fill, styles.surfaceText),
|
|
23
|
-
icon,
|
|
24
|
-
size: 14
|
|
25
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
26
|
-
role: "none",
|
|
27
|
-
className: "flex flex-col gap-6"
|
|
28
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
29
|
-
role: "none",
|
|
30
|
-
className: "grid grid-cols-[1fr_min-content] gap-x-3 w-full pt-1"
|
|
31
|
-
}, /* @__PURE__ */ React.createElement("h2", {
|
|
32
|
-
className: "text-xl"
|
|
33
|
-
}, name), /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
34
|
-
classNames: "self-center",
|
|
35
|
-
checked: enabled,
|
|
36
|
-
onCheckedChange: onEnabledChange
|
|
37
|
-
})), /* @__PURE__ */ React.createElement("p", {
|
|
38
|
-
className: "pt-0.5 text-sm text-description"
|
|
39
|
-
}, id)), /* @__PURE__ */ React.createElement("div", {
|
|
40
|
-
role: "none"
|
|
41
|
-
}, /* @__PURE__ */ React.createElement("p", {
|
|
42
|
-
className: "text-description"
|
|
43
|
-
}, description)), screenshots && screenshots.length > 0 && /* @__PURE__ */ React.createElement("div", {
|
|
44
|
-
role: "none",
|
|
45
|
-
className: "flex flex-col gap-2"
|
|
46
|
-
}, /* @__PURE__ */ React.createElement("h2", null, "Preview"), /* @__PURE__ */ React.createElement("img", {
|
|
47
|
-
src: screenshots[0],
|
|
48
|
-
alt: name,
|
|
49
|
-
className: "aspect-video object-fit"
|
|
50
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
51
|
-
role: "none",
|
|
52
|
-
className: "flex flex-col gap-2"
|
|
53
|
-
}, /* @__PURE__ */ React.createElement("h2", null, "Resources"), /* @__PURE__ */ React.createElement("div", {
|
|
54
|
-
className: "flex gap-2"
|
|
55
|
-
}, homePage && /* @__PURE__ */ React.createElement(Link, {
|
|
56
|
-
href: homePage,
|
|
57
|
-
target: "_blank",
|
|
58
|
-
rel: "noreferrer",
|
|
59
|
-
classNames: "text-sm text-description"
|
|
60
|
-
}, t("home page label"), /* @__PURE__ */ React.createElement(Icon, {
|
|
61
|
-
icon: "ph--arrow-square-out--bold",
|
|
62
|
-
size: 3,
|
|
63
|
-
classNames: "inline-block leading-none mx-1"
|
|
64
|
-
})), source && /* @__PURE__ */ React.createElement(Link, {
|
|
65
|
-
href: source,
|
|
66
|
-
target: "_blank",
|
|
67
|
-
rel: "noreferrer",
|
|
68
|
-
classNames: "text-sm text-description"
|
|
69
|
-
}, t("source label"), /* @__PURE__ */ React.createElement(Icon, {
|
|
70
|
-
icon: "ph--arrow-square-out--bold",
|
|
71
|
-
size: 3,
|
|
72
|
-
classNames: "inline-block leading-none mx-1"
|
|
73
|
-
}))))))));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// src/components/PluginList/PluginList.tsx
|
|
77
|
-
import React3 from "react";
|
|
78
|
-
import { List } from "@dxos/react-ui";
|
|
79
|
-
|
|
80
|
-
// src/components/PluginList/PluginItem.tsx
|
|
81
|
-
import React2, { useCallback } from "react";
|
|
82
|
-
import { Icon as Icon2, IconButton, Input as Input2, Link as Link2, ListItem, Tag, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
83
|
-
import { mx as mx2 } from "@dxos/ui-theme";
|
|
84
|
-
import { getStyles as getStyles2 } from "@dxos/ui-theme";
|
|
85
|
-
var PluginItem = ({ plugin, enabled = [], onClick, onChange, hasSettings: hasSettingsProp, onSettings }) => {
|
|
86
|
-
const { t } = useTranslation2(meta.id);
|
|
87
|
-
const { id, name, description, tags, icon = "ph--circle--regular", iconHue = "neutral" } = plugin.meta;
|
|
88
|
-
const isEnabled = enabled.includes(id);
|
|
89
|
-
const inputId = `${id}-input`;
|
|
90
|
-
const labelId = `${id}-label`;
|
|
91
|
-
const descriptionId = `${id}-description`;
|
|
92
|
-
const handleClick = useCallback(() => onClick?.(id), [
|
|
93
|
-
id,
|
|
94
|
-
onClick
|
|
95
|
-
]);
|
|
96
|
-
const handleChange = useCallback((event) => {
|
|
97
|
-
event.stopPropagation();
|
|
98
|
-
onChange?.(id, !isEnabled);
|
|
99
|
-
}, [
|
|
100
|
-
id,
|
|
101
|
-
isEnabled,
|
|
102
|
-
onChange
|
|
103
|
-
]);
|
|
104
|
-
const hasSettings = hasSettingsProp?.(id) ?? false;
|
|
105
|
-
const handleSettings = useCallback(() => onSettings?.(id), [
|
|
106
|
-
id,
|
|
107
|
-
onSettings
|
|
108
|
-
]);
|
|
109
|
-
const styles = getStyles2(iconHue);
|
|
110
|
-
const gridCols = "grid grid-cols-[5rem_1fr]";
|
|
111
|
-
const gridRows = "grid grid-rows-[40px_1fr_min-content_40px]";
|
|
112
|
-
return /* @__PURE__ */ React2.createElement(ListItem.Root, {
|
|
113
|
-
key: id,
|
|
114
|
-
labelId,
|
|
115
|
-
"data-testid": `pluginList.${id}`,
|
|
116
|
-
"aria-describedby": descriptionId,
|
|
117
|
-
classNames: mx2(gridCols, "h-[12rem] w-full gap-3 pe-2 bg-modal-surface rounded-md overflow-hidden")
|
|
118
|
-
}, /* @__PURE__ */ React2.createElement("div", {
|
|
119
|
-
className: mx2(gridRows, "justify-center rounded-l-md", styles.surface)
|
|
120
|
-
}, /* @__PURE__ */ React2.createElement(Icon2, {
|
|
121
|
-
classNames: mx2("row-start-2 cursor-pointer", styles.surfaceText),
|
|
122
|
-
icon,
|
|
123
|
-
size: 14,
|
|
124
|
-
onClick: handleClick
|
|
125
|
-
})), /* @__PURE__ */ React2.createElement("div", {
|
|
126
|
-
className: mx2(gridRows)
|
|
127
|
-
}, /* @__PURE__ */ React2.createElement("div", {
|
|
128
|
-
className: "flex items-center overflow-hidden cursor-pointer",
|
|
129
|
-
onClick: handleClick
|
|
130
|
-
}, /* @__PURE__ */ React2.createElement("span", {
|
|
131
|
-
className: "text-lg truncate"
|
|
132
|
-
}, name ?? id)), /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement("p", {
|
|
133
|
-
className: mx2("text-description", "line-clamp-4 min-w-0")
|
|
134
|
-
}, description)), /* @__PURE__ */ React2.createElement("div", {
|
|
135
|
-
className: "flex -ms-0.5 overflow-x-auto scrollbar-none"
|
|
136
|
-
}, tags?.map((tag) => /* @__PURE__ */ React2.createElement(Tag, {
|
|
137
|
-
key: tag,
|
|
138
|
-
palette: tagColors[tag],
|
|
139
|
-
classNames: "text-xs uppercase font-thin"
|
|
140
|
-
}, tag))), /* @__PURE__ */ React2.createElement("div", {
|
|
141
|
-
className: "flex gap-2 items-center text-sm"
|
|
142
|
-
}, /* @__PURE__ */ React2.createElement(IconButton, {
|
|
143
|
-
"aria-describedby": descriptionId,
|
|
144
|
-
classNames: "cursor-pointer",
|
|
145
|
-
icon: "ph--gear--regular",
|
|
146
|
-
label: t("settings label"),
|
|
147
|
-
iconOnly: true,
|
|
148
|
-
size: 4,
|
|
149
|
-
onClick: handleSettings,
|
|
150
|
-
disabled: !hasSettings
|
|
151
|
-
}), /* @__PURE__ */ React2.createElement(Link2, {
|
|
152
|
-
"aria-describedby": descriptionId,
|
|
153
|
-
classNames: "text-description cursor-pointer",
|
|
154
|
-
onClick: handleClick
|
|
155
|
-
}, t("details label")), /* @__PURE__ */ React2.createElement("div", {
|
|
156
|
-
className: "grow"
|
|
157
|
-
}), /* @__PURE__ */ React2.createElement("div", {
|
|
158
|
-
className: "pe-1"
|
|
159
|
-
}, /* @__PURE__ */ React2.createElement(Input2.Root, {
|
|
160
|
-
id: inputId
|
|
161
|
-
}, /* @__PURE__ */ React2.createElement(Input2.Switch, {
|
|
162
|
-
classNames: "self-center",
|
|
163
|
-
checked: isEnabled,
|
|
164
|
-
onClick: handleChange
|
|
165
|
-
}))))));
|
|
166
|
-
};
|
|
167
|
-
var tagColors = {
|
|
168
|
-
new: "rose",
|
|
169
|
-
beta: "teal",
|
|
170
|
-
labs: "blue",
|
|
171
|
-
popular: "green",
|
|
172
|
-
featured: "pink",
|
|
173
|
-
experimental: "amber"
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
// src/components/PluginList/PluginList.tsx
|
|
177
|
-
var PluginList = ({ plugins = [], ...props }) => {
|
|
178
|
-
return /* @__PURE__ */ React3.createElement(List, {
|
|
179
|
-
classNames: "grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] auto-rows-[max-content] gap-4 p-4"
|
|
180
|
-
}, plugins.map((plugin) => /* @__PURE__ */ React3.createElement(PluginItem, {
|
|
181
|
-
key: plugin.meta.id,
|
|
182
|
-
plugin,
|
|
183
|
-
...props
|
|
184
|
-
})));
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export {
|
|
188
|
-
PluginDetail,
|
|
189
|
-
PluginList
|
|
190
|
-
};
|
|
191
|
-
//# sourceMappingURL=chunk-TSNK3SAR.mjs.map
|