@dxos/plugin-registry 0.8.4-main.84f28bd → 0.8.4-main.c1de068
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-SRFVJQKE.mjs → react-surface-3GNB7AOY.mjs} +2 -4
- package/dist/lib/browser/{react-surface-SRFVJQKE.mjs.map → react-surface-3GNB7AOY.mjs.map} +2 -2
- package/dist/types/src/components/Icon.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -20
- package/src/capabilities/react-surface.tsx +1 -1
- package/src/components/Icon.stories.tsx +3 -2
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs +0 -162
- package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs +0 -18
- package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -72
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs +0 -24
- package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs +0 -336
- package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs.map +0 -7
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
REGISTRY_KEY,
|
|
4
|
-
REGISTRY_PLUGIN
|
|
5
|
-
} from "./chunk-R3GXMWPJ.mjs";
|
|
6
|
-
|
|
7
|
-
// src/capabilities/react-surface.tsx
|
|
8
|
-
import React5, { useCallback as useCallback3, useMemo as useMemo2 } from "react";
|
|
9
|
-
import { Capabilities as Capabilities2, contributes, createSurface, Plugin, usePluginManager as usePluginManager2 } from "@dxos/app-framework";
|
|
10
|
-
import { StackItem as StackItem2 } from "@dxos/react-ui-stack";
|
|
11
|
-
|
|
12
|
-
// src/components/PluginDetail.tsx
|
|
13
|
-
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
14
|
-
import React from "react";
|
|
15
|
-
import { Icon, Input, Link, useTranslation } from "@dxos/react-ui";
|
|
16
|
-
import { DeprecatedFormContainer } from "@dxos/react-ui-form";
|
|
17
|
-
var PluginDetail = ({ plugin, enabled, onEnable }) => {
|
|
18
|
-
var _effect = _useSignals();
|
|
19
|
-
try {
|
|
20
|
-
const { t } = useTranslation(REGISTRY_PLUGIN);
|
|
21
|
-
const { id, name, description, homePage, source, screenshots } = plugin.meta;
|
|
22
|
-
return /* @__PURE__ */ React.createElement(DeprecatedFormContainer, {
|
|
23
|
-
classNames: "gap-6"
|
|
24
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
25
|
-
role: "none",
|
|
26
|
-
className: "flex justify-between items-center"
|
|
27
|
-
}, /* @__PURE__ */ React.createElement("p", null, id), /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
28
|
-
classNames: "self-center",
|
|
29
|
-
checked: enabled,
|
|
30
|
-
onClick: onEnable
|
|
31
|
-
}))), screenshots && screenshots.length > 0 && /* @__PURE__ */ React.createElement("div", {
|
|
32
|
-
role: "none"
|
|
33
|
-
}, /* @__PURE__ */ React.createElement("h1", {
|
|
34
|
-
className: "text-lg mb-2"
|
|
35
|
-
}, "Preview"), /* @__PURE__ */ React.createElement("img", {
|
|
36
|
-
src: screenshots[0],
|
|
37
|
-
alt: name,
|
|
38
|
-
className: "aspect-video object-fit"
|
|
39
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
40
|
-
role: "none"
|
|
41
|
-
}, /* @__PURE__ */ React.createElement("p", null, description)), /* @__PURE__ */ React.createElement("div", {
|
|
42
|
-
role: "none"
|
|
43
|
-
}, /* @__PURE__ */ React.createElement("h1", {
|
|
44
|
-
className: "text-lg mb-2"
|
|
45
|
-
}, "Resources"), /* @__PURE__ */ React.createElement("div", {
|
|
46
|
-
className: "flex gap-2"
|
|
47
|
-
}, homePage && /* @__PURE__ */ React.createElement(Link, {
|
|
48
|
-
href: homePage,
|
|
49
|
-
target: "_blank",
|
|
50
|
-
rel: "noreferrer",
|
|
51
|
-
classNames: "text-sm text-description"
|
|
52
|
-
}, t("home page label"), /* @__PURE__ */ React.createElement(Icon, {
|
|
53
|
-
icon: "ph--arrow-square-out--bold",
|
|
54
|
-
size: 3,
|
|
55
|
-
classNames: "inline-block leading-none mli-1"
|
|
56
|
-
})), source && /* @__PURE__ */ React.createElement(Link, {
|
|
57
|
-
href: source,
|
|
58
|
-
target: "_blank",
|
|
59
|
-
rel: "noreferrer",
|
|
60
|
-
classNames: "text-sm text-description"
|
|
61
|
-
}, t("source label"), /* @__PURE__ */ React.createElement(Icon, {
|
|
62
|
-
icon: "ph--arrow-square-out--bold",
|
|
63
|
-
size: 3,
|
|
64
|
-
classNames: "inline-block leading-none mli-1"
|
|
65
|
-
})))));
|
|
66
|
-
} finally {
|
|
67
|
-
_effect.f();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
// src/components/PluginList.tsx
|
|
72
|
-
import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
|
|
73
|
-
import React3 from "react";
|
|
74
|
-
import { List } from "@dxos/react-ui";
|
|
75
|
-
|
|
76
|
-
// src/components/PluginItem.tsx
|
|
77
|
-
import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
|
|
78
|
-
import React2, { useCallback } from "react";
|
|
79
|
-
import { Icon as Icon2, IconButton, Input as Input2, Link as Link2, ListItem, Tag, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
80
|
-
import { descriptionText, mx } from "@dxos/react-ui-theme";
|
|
81
|
-
var PluginItem = ({ plugin, enabled = [], onClick, onChange, hasSettings: _hasSettings, onSettings }) => {
|
|
82
|
-
var _effect = _useSignals2();
|
|
83
|
-
try {
|
|
84
|
-
const { t } = useTranslation2(REGISTRY_PLUGIN);
|
|
85
|
-
const { id, name, description, tags, icon = "ph--circle--regular" } = plugin.meta;
|
|
86
|
-
const isEnabled = enabled.includes(id);
|
|
87
|
-
const inputId = `${id}-input`;
|
|
88
|
-
const labelId = `${id}-label`;
|
|
89
|
-
const descriptionId = `${id}-description`;
|
|
90
|
-
const handleClick = useCallback(() => onClick?.(id), [
|
|
91
|
-
id,
|
|
92
|
-
onClick
|
|
93
|
-
]);
|
|
94
|
-
const handleChange = useCallback((event) => {
|
|
95
|
-
event.stopPropagation();
|
|
96
|
-
onChange?.(id, !isEnabled);
|
|
97
|
-
}, [
|
|
98
|
-
id,
|
|
99
|
-
isEnabled,
|
|
100
|
-
onChange
|
|
101
|
-
]);
|
|
102
|
-
const hasSettings = _hasSettings?.(id) ?? false;
|
|
103
|
-
const handleSettings = useCallback(() => onSettings?.(id), [
|
|
104
|
-
id,
|
|
105
|
-
onSettings
|
|
106
|
-
]);
|
|
107
|
-
return /* @__PURE__ */ React2.createElement(ListItem.Root, {
|
|
108
|
-
key: id,
|
|
109
|
-
labelId,
|
|
110
|
-
"data-testid": `pluginList.${id}`,
|
|
111
|
-
"aria-describedby": descriptionId,
|
|
112
|
-
// TODO(burdon): Use Rail vars.
|
|
113
|
-
classNames: "is-full bs-full grid grid-cols-[48px_1fr_48px] grid-rows-[40px_1fr_32px] p-1 border border-separator rounded-md"
|
|
114
|
-
}, /* @__PURE__ */ React2.createElement("div", {
|
|
115
|
-
className: "flex flex-col grow justify-center items-center"
|
|
116
|
-
}, /* @__PURE__ */ React2.createElement(Icon2, {
|
|
117
|
-
icon,
|
|
118
|
-
size: 6,
|
|
119
|
-
onClick: handleClick,
|
|
120
|
-
classNames: "text-subdued cursor-pointer"
|
|
121
|
-
})), /* @__PURE__ */ React2.createElement("div", {
|
|
122
|
-
className: "flex items-center overflow-hidden cursor-pointer",
|
|
123
|
-
onClick: handleClick
|
|
124
|
-
}, /* @__PURE__ */ React2.createElement("span", {
|
|
125
|
-
className: "truncate"
|
|
126
|
-
}, name ?? id)), /* @__PURE__ */ React2.createElement("div", {
|
|
127
|
-
className: "flex justify-center items-center"
|
|
128
|
-
}, /* @__PURE__ */ React2.createElement(Input2.Root, {
|
|
129
|
-
id: inputId
|
|
130
|
-
}, /* @__PURE__ */ React2.createElement(Input2.Switch, {
|
|
131
|
-
classNames: "self-center",
|
|
132
|
-
checked: isEnabled,
|
|
133
|
-
onClick: handleChange
|
|
134
|
-
}))), /* @__PURE__ */ React2.createElement("div", null), (description || tags) && /* @__PURE__ */ React2.createElement("div", {
|
|
135
|
-
id: descriptionId,
|
|
136
|
-
className: "col-span-2 flex flex-col w-full justify-between gap-2 pb-2"
|
|
137
|
-
}, /* @__PURE__ */ React2.createElement("div", {
|
|
138
|
-
className: "grow"
|
|
139
|
-
}, /* @__PURE__ */ React2.createElement("p", {
|
|
140
|
-
className: mx(descriptionText, "line-clamp-3 min-w-0 pie-2")
|
|
141
|
-
}, description)), tags && tags.length > 0 && /* @__PURE__ */ React2.createElement("div", null, tags.map((tag) => /* @__PURE__ */ React2.createElement(Tag, {
|
|
142
|
-
key: tag,
|
|
143
|
-
palette: "indigo",
|
|
144
|
-
classNames: "text-xs capitalize"
|
|
145
|
-
}, tag)))), /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement("div", {
|
|
146
|
-
className: "flex gap-2 items-center pie-1"
|
|
147
|
-
}, /* @__PURE__ */ React2.createElement(Link2, {
|
|
148
|
-
"aria-describedby": descriptionId,
|
|
149
|
-
classNames: "text-sm text-description cursor-pointer",
|
|
150
|
-
onClick: handleClick
|
|
151
|
-
}, t("details label")), /* @__PURE__ */ React2.createElement("div", {
|
|
152
|
-
className: "flex-1"
|
|
153
|
-
})), /* @__PURE__ */ React2.createElement("div", {
|
|
154
|
-
className: "flex justify-center items-center"
|
|
155
|
-
}, hasSettings && /* @__PURE__ */ React2.createElement(IconButton, {
|
|
156
|
-
"aria-describedby": descriptionId,
|
|
157
|
-
classNames: "text-sm text-description cursor-pointer",
|
|
158
|
-
icon: "ph--gear--regular",
|
|
159
|
-
label: t("settings label"),
|
|
160
|
-
iconOnly: true,
|
|
161
|
-
size: 4,
|
|
162
|
-
onClick: handleSettings
|
|
163
|
-
})));
|
|
164
|
-
} finally {
|
|
165
|
-
_effect.f();
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
// src/components/PluginList.tsx
|
|
170
|
-
var PluginList = ({ plugins = [], ...props }) => {
|
|
171
|
-
var _effect = _useSignals3();
|
|
172
|
-
try {
|
|
173
|
-
return /* @__PURE__ */ React3.createElement(List, {
|
|
174
|
-
classNames: "grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] auto-rows-[12rem] gap-3 p-3"
|
|
175
|
-
}, plugins.map((plugin) => /* @__PURE__ */ React3.createElement("div", {
|
|
176
|
-
key: plugin.meta.id,
|
|
177
|
-
className: "flex"
|
|
178
|
-
}, /* @__PURE__ */ React3.createElement(PluginItem, {
|
|
179
|
-
plugin,
|
|
180
|
-
...props
|
|
181
|
-
}))));
|
|
182
|
-
} finally {
|
|
183
|
-
_effect.f();
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// src/components/RegistryContainer.tsx
|
|
188
|
-
import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
|
|
189
|
-
import React4, { useCallback as useCallback2, useMemo } from "react";
|
|
190
|
-
import { Capabilities, createIntent, LayoutAction, SettingsAction, useCapability, useIntentDispatcher, usePluginManager } from "@dxos/app-framework";
|
|
191
|
-
import { ObservabilityAction } from "@dxos/plugin-observability/types";
|
|
192
|
-
import { StackItem } from "@dxos/react-ui-stack";
|
|
193
|
-
var sortByPluginMeta = ({ meta: { name: a = "" } }, { meta: { name: b = "" } }) => a.localeCompare(b);
|
|
194
|
-
var RegistryContainer = ({ id, plugins: _plugins }) => {
|
|
195
|
-
var _effect = _useSignals4();
|
|
196
|
-
try {
|
|
197
|
-
const manager = usePluginManager();
|
|
198
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
199
|
-
const plugins = useMemo(() => _plugins.sort(sortByPluginMeta), [
|
|
200
|
-
_plugins
|
|
201
|
-
]);
|
|
202
|
-
const settingsStore = useCapability(Capabilities.SettingsStore);
|
|
203
|
-
const handleChange = useCallback2(async (id2, enabled) => {
|
|
204
|
-
if (enabled) {
|
|
205
|
-
await manager.enable(id2);
|
|
206
|
-
} else {
|
|
207
|
-
await manager.disable(id2);
|
|
208
|
-
}
|
|
209
|
-
await dispatch(createIntent(ObservabilityAction.SendEvent, {
|
|
210
|
-
name: "plugins.toggle",
|
|
211
|
-
properties: {
|
|
212
|
-
plugin: id2,
|
|
213
|
-
enabled
|
|
214
|
-
}
|
|
215
|
-
}));
|
|
216
|
-
}, [
|
|
217
|
-
dispatch,
|
|
218
|
-
manager
|
|
219
|
-
]);
|
|
220
|
-
const handleClick = useCallback2((pluginId) => dispatch(createIntent(LayoutAction.Open, {
|
|
221
|
-
part: "main",
|
|
222
|
-
// TODO(wittjosiah): `/` currently is not supported in ids.
|
|
223
|
-
subject: [
|
|
224
|
-
pluginId.replaceAll("/", ":")
|
|
225
|
-
],
|
|
226
|
-
options: {
|
|
227
|
-
pivotId: id,
|
|
228
|
-
positioning: "end"
|
|
229
|
-
}
|
|
230
|
-
})), [
|
|
231
|
-
dispatch,
|
|
232
|
-
id
|
|
233
|
-
]);
|
|
234
|
-
const hasSettings = useCallback2((pluginId) => !!settingsStore.getStore(pluginId), [
|
|
235
|
-
settingsStore
|
|
236
|
-
]);
|
|
237
|
-
const handleSettings = useCallback2((pluginId) => dispatch(createIntent(SettingsAction.Open, {
|
|
238
|
-
plugin: pluginId
|
|
239
|
-
})), [
|
|
240
|
-
dispatch
|
|
241
|
-
]);
|
|
242
|
-
return /* @__PURE__ */ React4.createElement(StackItem.Content, {
|
|
243
|
-
classNames: "min-bs-0 overflow-y-auto scrollbar-thin contain-layout"
|
|
244
|
-
}, /* @__PURE__ */ React4.createElement(PluginList, {
|
|
245
|
-
plugins,
|
|
246
|
-
enabled: manager.enabled,
|
|
247
|
-
onClick: handleClick,
|
|
248
|
-
onChange: handleChange,
|
|
249
|
-
hasSettings,
|
|
250
|
-
onSettings: handleSettings
|
|
251
|
-
}));
|
|
252
|
-
} finally {
|
|
253
|
-
_effect.f();
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
// src/capabilities/react-surface.tsx
|
|
258
|
-
var react_surface_default = () => contributes(Capabilities2.ReactSurface, [
|
|
259
|
-
createSurface({
|
|
260
|
-
id: `${REGISTRY_PLUGIN}/all`,
|
|
261
|
-
role: "article",
|
|
262
|
-
filter: (data) => data.subject === `${REGISTRY_KEY}+all`,
|
|
263
|
-
component: () => {
|
|
264
|
-
const manager = usePluginManager2();
|
|
265
|
-
const filtered = useMemo2(() => manager.plugins.filter(({ meta }) => !manager.core.includes(meta.id)), []);
|
|
266
|
-
return /* @__PURE__ */ React5.createElement(RegistryContainer, {
|
|
267
|
-
id: `${REGISTRY_KEY}+all`,
|
|
268
|
-
plugins: filtered
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
}),
|
|
272
|
-
createSurface({
|
|
273
|
-
id: `${REGISTRY_PLUGIN}/installed`,
|
|
274
|
-
role: "article",
|
|
275
|
-
filter: (data) => data.subject === `${REGISTRY_KEY}+installed`,
|
|
276
|
-
component: () => {
|
|
277
|
-
const manager = usePluginManager2();
|
|
278
|
-
const filtered = useMemo2(() => manager.plugins.filter(({ meta }) => !manager.core.includes(meta.id)).filter(({ meta }) => manager.enabled.includes(meta.id)), []);
|
|
279
|
-
return /* @__PURE__ */ React5.createElement(RegistryContainer, {
|
|
280
|
-
id: `${REGISTRY_KEY}+installed`,
|
|
281
|
-
plugins: filtered
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
}),
|
|
285
|
-
createSurface({
|
|
286
|
-
id: `${REGISTRY_PLUGIN}/recommended`,
|
|
287
|
-
role: "article",
|
|
288
|
-
filter: (data) => data.subject === `${REGISTRY_KEY}+recommended`,
|
|
289
|
-
component: () => {
|
|
290
|
-
const manager = usePluginManager2();
|
|
291
|
-
const filtered = useMemo2(() => manager.plugins.filter(({ meta }) => !manager.core.includes(meta.id)).filter(({ meta }) => !meta.tags?.includes("labs")), []);
|
|
292
|
-
return /* @__PURE__ */ React5.createElement(RegistryContainer, {
|
|
293
|
-
id: `${REGISTRY_KEY}+recommended`,
|
|
294
|
-
plugins: filtered
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}),
|
|
298
|
-
createSurface({
|
|
299
|
-
id: `${REGISTRY_PLUGIN}/labs`,
|
|
300
|
-
role: "article",
|
|
301
|
-
filter: (data) => data.subject === `${REGISTRY_KEY}+labs`,
|
|
302
|
-
component: () => {
|
|
303
|
-
const manager = usePluginManager2();
|
|
304
|
-
const filtered = useMemo2(() => manager.plugins.filter(({ meta }) => meta.tags?.includes("labs")), []);
|
|
305
|
-
return /* @__PURE__ */ React5.createElement(RegistryContainer, {
|
|
306
|
-
id: `${REGISTRY_KEY}+labs`,
|
|
307
|
-
plugins: filtered
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
}),
|
|
311
|
-
createSurface({
|
|
312
|
-
id: `${REGISTRY_PLUGIN}/plugin-details`,
|
|
313
|
-
role: "article",
|
|
314
|
-
filter: (data) => data.subject instanceof Plugin,
|
|
315
|
-
component: ({ data: { subject } }) => {
|
|
316
|
-
const manager = usePluginManager2();
|
|
317
|
-
const enabled = manager.enabled.includes(subject.meta.id);
|
|
318
|
-
const handleEnable = useCallback3(() => enabled ? manager.disable(subject.meta.id) : manager.enable(subject.meta.id), [
|
|
319
|
-
manager,
|
|
320
|
-
subject.meta.id,
|
|
321
|
-
enabled
|
|
322
|
-
]);
|
|
323
|
-
return /* @__PURE__ */ React5.createElement(StackItem2.Content, {
|
|
324
|
-
role: "article"
|
|
325
|
-
}, /* @__PURE__ */ React5.createElement(PluginDetail, {
|
|
326
|
-
plugin: subject,
|
|
327
|
-
enabled,
|
|
328
|
-
onEnable: handleEnable
|
|
329
|
-
}));
|
|
330
|
-
}
|
|
331
|
-
})
|
|
332
|
-
]);
|
|
333
|
-
export {
|
|
334
|
-
react_surface_default as default
|
|
335
|
-
};
|
|
336
|
-
//# sourceMappingURL=react-surface-5XAG2EYX.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/PluginDetail.tsx", "../../../src/components/PluginList.tsx", "../../../src/components/PluginItem.tsx", "../../../src/components/RegistryContainer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useMemo } from 'react';\n\nimport { Capabilities, contributes, createSurface, Plugin, usePluginManager } from '@dxos/app-framework';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { PluginDetail, RegistryContainer } from '../components';\nimport { REGISTRY_KEY, REGISTRY_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${REGISTRY_PLUGIN}/all`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+all`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(() => manager.plugins.filter(({ meta }) => !manager.core.includes(meta.id)), []);\n\n return <RegistryContainer id={`${REGISTRY_KEY}+all`} plugins={filtered} />;\n },\n }),\n createSurface({\n id: `${REGISTRY_PLUGIN}/installed`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+installed`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(\n () =>\n manager.plugins\n .filter(({ meta }) => !manager.core.includes(meta.id))\n .filter(({ meta }) => manager.enabled.includes(meta.id)),\n [],\n );\n\n return <RegistryContainer id={`${REGISTRY_KEY}+installed`} plugins={filtered} />;\n },\n }),\n createSurface({\n id: `${REGISTRY_PLUGIN}/recommended`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+recommended`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(\n () =>\n manager.plugins\n .filter(({ meta }) => !manager.core.includes(meta.id))\n .filter(({ meta }) => !meta.tags?.includes('labs')),\n [],\n );\n\n return <RegistryContainer id={`${REGISTRY_KEY}+recommended`} plugins={filtered} />;\n },\n }),\n createSurface({\n id: `${REGISTRY_PLUGIN}/labs`,\n role: 'article',\n filter: (data): data is any => data.subject === `${REGISTRY_KEY}+labs`,\n component: () => {\n const manager = usePluginManager();\n const filtered = useMemo(() => manager.plugins.filter(({ meta }) => meta.tags?.includes('labs')), []);\n\n return <RegistryContainer id={`${REGISTRY_KEY}+labs`} plugins={filtered} />;\n },\n }),\n createSurface({\n id: `${REGISTRY_PLUGIN}/plugin-details`,\n role: 'article',\n filter: (data): data is { subject: Plugin } => data.subject instanceof Plugin,\n component: ({ data: { subject } }) => {\n const manager = usePluginManager();\n const enabled = manager.enabled.includes(subject.meta.id);\n const handleEnable = useCallback(\n () => (enabled ? manager.disable(subject.meta.id) : manager.enable(subject.meta.id)),\n [manager, subject.meta.id, enabled],\n );\n\n return (\n <StackItem.Content role='article'>\n <PluginDetail plugin={subject} enabled={enabled} onEnable={handleEnable} />\n </StackItem.Content>\n );\n },\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { Icon, Input, Link, useTranslation } from '@dxos/react-ui';\nimport { DeprecatedFormContainer } from '@dxos/react-ui-form';\n\nimport { REGISTRY_PLUGIN } from '../meta';\n\nexport type PluginDetailProps = {\n plugin: Plugin;\n enabled?: boolean;\n onEnable?: () => void;\n};\n\nexport const PluginDetail = ({ plugin, enabled, onEnable }: PluginDetailProps) => {\n const { t } = useTranslation(REGISTRY_PLUGIN);\n const { id, name, description, homePage, source, screenshots } = plugin.meta;\n\n return (\n <DeprecatedFormContainer classNames='gap-6'>\n <div role='none' className='flex justify-between items-center'>\n <p>{id}</p>\n <Input.Root>\n <Input.Switch classNames='self-center' checked={enabled} onClick={onEnable} />\n </Input.Root>\n </div>\n\n {screenshots && screenshots.length > 0 && (\n <div role='none'>\n <h1 className='text-lg mb-2'>Preview</h1>\n <img src={screenshots[0]} alt={name} className='aspect-video object-fit' />\n </div>\n )}\n\n <div role='none'>\n <p>{description}</p>\n </div>\n\n <div role='none'>\n <h1 className='text-lg mb-2'>Resources</h1>\n <div className='flex gap-2'>\n {homePage && (\n <Link href={homePage} target='_blank' rel='noreferrer' classNames='text-sm text-description'>\n {t('home page label')}\n <Icon icon='ph--arrow-square-out--bold' size={3} classNames='inline-block leading-none mli-1' />\n </Link>\n )}\n\n {source && (\n <Link href={source} target='_blank' rel='noreferrer' classNames='text-sm text-description'>\n {t('source label')}\n <Icon icon='ph--arrow-square-out--bold' size={3} classNames='inline-block leading-none mli-1' />\n </Link>\n )}\n </div>\n </div>\n </DeprecatedFormContainer>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { List } from '@dxos/react-ui';\n\nimport { PluginItem, type PluginItemProps } from './PluginItem';\n\nexport type PluginListProps = Omit<PluginItemProps, 'plugin'> & {\n plugins?: readonly Plugin[];\n};\n\nexport const PluginList = ({ plugins = [], ...props }: PluginListProps) => {\n return (\n <List classNames='grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] auto-rows-[12rem] gap-3 p-3'>\n {plugins.map((plugin) => (\n <div key={plugin.meta.id} className='flex'>\n <PluginItem plugin={plugin} {...props} />\n </div>\n ))}\n </List>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type MouseEvent, useCallback } from 'react';\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { Icon, IconButton, Input, Link, ListItem, Tag, useTranslation } from '@dxos/react-ui';\nimport { descriptionText, mx } from '@dxos/react-ui-theme';\n\nimport { REGISTRY_PLUGIN } from '../meta';\n\nexport type PluginItemProps = {\n plugin: Plugin;\n installed?: readonly string[];\n enabled?: readonly string[];\n onClick?: (id: string) => void;\n onChange?: (id: string, enabled: boolean) => void;\n hasSettings?: (id: string) => boolean;\n onSettings?: (id: string) => void;\n};\n\nexport const PluginItem = ({\n plugin,\n enabled = [],\n onClick,\n onChange,\n hasSettings: _hasSettings,\n onSettings,\n}: PluginItemProps) => {\n const { t } = useTranslation(REGISTRY_PLUGIN);\n const { id, name, description, tags, icon = 'ph--circle--regular' } = plugin.meta;\n const isEnabled = enabled.includes(id);\n const inputId = `${id}-input`;\n const labelId = `${id}-label`;\n const descriptionId = `${id}-description`;\n const handleClick = useCallback(() => onClick?.(id), [id, onClick]);\n\n const handleChange = useCallback(\n (event: MouseEvent) => {\n event.stopPropagation();\n onChange?.(id, !isEnabled);\n },\n [id, isEnabled, onChange],\n );\n\n const hasSettings = _hasSettings?.(id) ?? false;\n const handleSettings = useCallback(() => onSettings?.(id), [id, onSettings]);\n\n return (\n <ListItem.Root\n key={id}\n labelId={labelId}\n data-testid={`pluginList.${id}`}\n aria-describedby={descriptionId}\n // TODO(burdon): Use Rail vars.\n classNames='is-full bs-full grid grid-cols-[48px_1fr_48px] grid-rows-[40px_1fr_32px] p-1 border border-separator rounded-md'\n >\n {/* Header. */}\n <div className='flex flex-col grow justify-center items-center'>\n <Icon icon={icon} size={6} onClick={handleClick} classNames='text-subdued cursor-pointer' />\n </div>\n <div className='flex items-center overflow-hidden cursor-pointer' onClick={handleClick}>\n <span className='truncate'>{name ?? id}</span>\n </div>\n <div className='flex justify-center items-center'>\n <Input.Root id={inputId}>\n <Input.Switch classNames='self-center' checked={isEnabled} onClick={handleChange} />\n </Input.Root>\n </div>\n\n {/* Body. */}\n <div />\n {(description || tags) && (\n <div id={descriptionId} className='col-span-2 flex flex-col w-full justify-between gap-2 pb-2'>\n <div className='grow'>\n <p className={mx(descriptionText, 'line-clamp-3 min-w-0 pie-2')}>{description}</p>\n </div>\n {tags && tags.length > 0 && (\n <div>\n {tags.map((tag) => (\n <Tag key={tag} palette={'indigo'} classNames='text-xs capitalize'>\n {tag}\n </Tag>\n ))}\n </div>\n )}\n </div>\n )}\n\n {/* Footer. */}\n <div />\n <div className='flex gap-2 items-center pie-1'>\n <Link\n aria-describedby={descriptionId}\n classNames='text-sm text-description cursor-pointer'\n onClick={handleClick}\n >\n {t('details label')}\n </Link>\n\n <div className='flex-1' />\n </div>\n <div className='flex justify-center items-center'>\n {hasSettings && (\n <IconButton\n aria-describedby={descriptionId}\n classNames='text-sm text-description cursor-pointer'\n icon='ph--gear--regular'\n label={t('settings label')}\n iconOnly\n size={4}\n onClick={handleSettings}\n />\n )}\n </div>\n </ListItem.Root>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useCallback, useMemo } from 'react';\n\nimport {\n Capabilities,\n createIntent,\n LayoutAction,\n type Plugin,\n SettingsAction,\n useCapability,\n useIntentDispatcher,\n usePluginManager,\n} from '@dxos/app-framework';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { PluginList } from './PluginList';\n\nconst sortByPluginMeta = ({ meta: { name: a = '' } }: Plugin, { meta: { name: b = '' } }: Plugin) => a.localeCompare(b);\n\nexport const RegistryContainer = ({ id, plugins: _plugins }: { id: string; plugins: Plugin[] }) => {\n const manager = usePluginManager();\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const plugins = useMemo(() => _plugins.sort(sortByPluginMeta), [_plugins]);\n const settingsStore = useCapability(Capabilities.SettingsStore);\n\n // TODO(wittjosiah): Factor out to an intent?\n const handleChange = useCallback(\n async (id: string, enabled: boolean) => {\n if (enabled) {\n await manager.enable(id);\n } else {\n await manager.disable(id);\n }\n\n await dispatch(\n createIntent(ObservabilityAction.SendEvent, {\n name: 'plugins.toggle',\n properties: {\n plugin: id,\n enabled,\n },\n }),\n );\n },\n [dispatch, manager],\n );\n\n const handleClick = useCallback(\n (pluginId: string) =>\n dispatch(\n createIntent(LayoutAction.Open, {\n part: 'main',\n // TODO(wittjosiah): `/` currently is not supported in ids.\n subject: [pluginId.replaceAll('/', ':')],\n options: { pivotId: id, positioning: 'end' },\n }),\n ),\n [dispatch, id],\n );\n\n const hasSettings = useCallback((pluginId: string) => !!settingsStore.getStore(pluginId), [settingsStore]);\n\n const handleSettings = useCallback(\n (pluginId: string) => dispatch(createIntent(SettingsAction.Open, { plugin: pluginId })),\n [dispatch],\n );\n\n return (\n <StackItem.Content classNames='min-bs-0 overflow-y-auto scrollbar-thin contain-layout'>\n <PluginList\n plugins={plugins}\n enabled={manager.enabled}\n onClick={handleClick}\n onChange={handleChange}\n hasSettings={hasSettings}\n onSettings={handleSettings}\n />\n </StackItem.Content>\n );\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,OAAOA,UAASC,eAAAA,cAAaC,WAAAA,gBAAe;AAE5C,SAASC,gBAAAA,eAAcC,aAAaC,eAAeC,QAAQC,oBAAAA,yBAAwB;AACnF,SAASC,aAAAA,kBAAiB;;;;ACH1B,OAAOC,WAAW;AAGlB,SAASC,MAAMC,OAAOC,MAAMC,sBAAsB;AAClD,SAASC,+BAA+B;AAUjC,IAAMC,eAAe,CAAC,EAAEC,QAAQC,SAASC,SAAQ,MAAqB;;;AAC3E,UAAM,EAAEC,EAAC,IAAKC,eAAeC,eAAAA;AAC7B,UAAM,EAAEC,IAAIC,MAAMC,aAAaC,UAAUC,QAAQC,YAAW,IAAKX,OAAOY;AAExE,WACE,sBAAA,cAACC,yBAAAA;MAAwBC,YAAW;OAClC,sBAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,WAAU;OACzB,sBAAA,cAACC,KAAAA,MAAGZ,EAAAA,GACJ,sBAAA,cAACa,MAAMC,MAAI,MACT,sBAAA,c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QAAQvB;QAASa;QAAkBW,UAAUR;;IAGjE;EACF,CAAA;CACD;",
|
|
6
|
-
"names": ["React", "useCallback", "useMemo", "Capabilities", "contributes", "createSurface", "Plugin", "usePluginManager", "StackItem", "React", "Icon", "Input", "Link", "useTranslation", "DeprecatedFormContainer", "PluginDetail", "plugin", "enabled", "onEnable", "t", "useTranslation", "REGISTRY_PLUGIN", "id", "name", "description", "homePage", "source", "screenshots", "meta", "DeprecatedFormContainer", "classNames", "div", "role", "className", "p", "Input", "Root", "Switch", "checked", "onClick", "length", "h1", "img", "src", "alt", "Link", "href", "target", "rel", "Icon", "icon", "size", "React", "List", "React", "useCallback", "Icon", "IconButton", "Input", "Link", "ListItem", "Tag", "useTranslation", "descriptionText", "mx", "PluginItem", "plugin", "enabled", "onClick", "onChange", "hasSettings", "_hasSettings", "onSettings", "t", "useTranslation", "REGISTRY_PLUGIN", "id", "name", "description", "tags", "icon", "meta", "isEnabled", "includes", "inputId", "labelId", "descriptionId", "handleClick", "useCallback", "handleChange", "event", "stopPropagation", "handleSettings", "React", "ListItem", "Root", "key", "data-testid", "aria-describedby", "classNames", "div", "className", "Icon", "size", "span", "Input", "Switch", "checked", "p", "mx", "descriptionText", "length", "map", "tag", "Tag", "palette", "Link", "IconButton", "label", "iconOnly", "PluginList", "plugins", "props", "React", "List", "classNames", "map", "plugin", "div", "key", "meta", "id", "className", "PluginItem", "React", "useCallback", "useMemo", "Capabilities", "createIntent", "LayoutAction", "SettingsAction", "useCapability", "useIntentDispatcher", "usePluginManager", "ObservabilityAction", "StackItem", "sortByPluginMeta", "meta", "name", "a", "b", "localeCompare", "RegistryContainer", "id", "plugins", "_plugins", "manager", "usePluginManager", "dispatchPromise", "dispatch", "useIntentDispatcher", "useMemo", "sort", "settingsStore", "useCapability", "Capabilities", "SettingsStore", "handleChange", "useCallback", "enabled", "enable", "disable", "createIntent", "ObservabilityAction", "SendEvent", "properties", "plugin", "handleClick", "pluginId", "LayoutAction", "Open", "part", "subject", "replaceAll", "options", "pivotId", "positioning", "hasSettings", "getStore", "handleSettings", "SettingsAction", "React", "StackItem", "Content", "classNames", "PluginList", "onClick", "onChange", "onSettings", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "REGISTRY_PLUGIN", "role", "filter", "data", "subject", "REGISTRY_KEY", "component", "manager", "usePluginManager", "filtered", "useMemo", "plugins", "meta", "core", "includes", "React", "RegistryContainer", "enabled", "tags", "Plugin", "handleEnable", "useCallback", "disable", "enable", "StackItem", "Content", "PluginDetail", "plugin", "onEnable"]
|
|
7
|
-
}
|