@dxos/plugin-settings 0.6.14-main.7bd9c89 → 0.8.4-main.1c7ec43d41
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/SettingsPlugin-H7MYSTLT.mjs +9 -0
- package/dist/lib/browser/chunk-YMWZWP5N.mjs +20 -0
- package/dist/lib/browser/chunk-YMWZWP5N.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +34 -247
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/plugin.mjs +7 -0
- package/dist/lib/browser/translations.mjs +15 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +9 -0
- package/dist/lib/browser/types/index.mjs.map +7 -0
- package/dist/lib/node-esm/SettingsPlugin-LSWDBQHF.mjs +10 -0
- package/dist/lib/node-esm/SettingsPlugin-LSWDBQHF.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-H4MBYZ3E.mjs +22 -0
- package/dist/lib/node-esm/chunk-H4MBYZ3E.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +34 -246
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/plugin.mjs +8 -0
- package/dist/lib/node-esm/plugin.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +17 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +11 -0
- package/dist/lib/node-esm/types/index.mjs.map +7 -0
- package/dist/types/src/SettingsPlugin.d.ts +3 -6
- package/dist/types/src/SettingsPlugin.d.ts.map +1 -1
- package/dist/types/src/SettingsPlugin.test.d.ts +2 -0
- package/dist/types/src/SettingsPlugin.test.d.ts.map +1 -0
- package/dist/types/src/actions.d.ts +25 -0
- package/dist/types/src/actions.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- 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/index.d.ts +4 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -5
- 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/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +2 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +5 -9
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +3 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +46 -36
- package/src/SettingsPlugin.test.ts +33 -0
- package/src/SettingsPlugin.ts +19 -0
- package/src/actions.ts +24 -0
- package/src/capabilities/app-graph-builder.ts +99 -0
- package/src/capabilities/index.ts +12 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/index.ts +7 -7
- package/src/meta.ts +7 -7
- package/src/operations/index.ts +10 -0
- package/src/operations/open-plugin-registry.ts +28 -0
- package/src/operations/open.ts +29 -0
- package/src/plugin.ts +7 -0
- package/src/translations.ts +8 -9
- package/src/types/index.ts +8 -0
- package/README.md +0 -15
- package/dist/lib/browser/chunk-PD3C4TDW.mjs +0 -11
- package/dist/lib/browser/chunk-PD3C4TDW.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/node/chunk-AHM6OLF2.cjs +0 -34
- package/dist/lib/node/chunk-AHM6OLF2.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -278
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.cjs +0 -30
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node-esm/chunk-PPOEIFFE.mjs +0 -13
- package/dist/lib/node-esm/chunk-PPOEIFFE.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/types/src/components/SettingsDialog.d.ts +0 -6
- package/dist/types/src/components/SettingsDialog.d.ts.map +0 -1
- package/dist/types/src/components/SettingsValue.d.ts +0 -9
- package/dist/types/src/components/SettingsValue.d.ts.map +0 -1
- package/dist/types/src/components/index.d.ts +0 -3
- package/dist/types/src/components/index.d.ts.map +0 -1
- package/src/SettingsPlugin.tsx +0 -122
- package/src/components/SettingsDialog.tsx +0 -126
- package/src/components/SettingsValue.tsx +0 -49
- package/src/components/index.ts +0 -6
- /package/dist/lib/browser/{meta.mjs.map → SettingsPlugin-H7MYSTLT.mjs.map} +0 -0
- /package/dist/lib/{node-esm/meta.mjs.map → browser/plugin.mjs.map} +0 -0
|
@@ -1,258 +1,46 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
SETTINGS_PLUGIN,
|
|
4
|
-
meta_default
|
|
5
|
-
} from "./chunk-PPOEIFFE.mjs";
|
|
6
2
|
|
|
7
|
-
//
|
|
8
|
-
import
|
|
9
|
-
import { parseIntentPlugin, resolvePlugin, LayoutAction, SettingsAction } from "@dxos/app-framework";
|
|
10
|
-
import { LocalStorageStore } from "@dxos/local-storage";
|
|
11
|
-
import { createExtension } from "@dxos/plugin-graph";
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
12
5
|
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var SettingsDialog = ({ selected, onSelected }) => {
|
|
21
|
-
const { t } = useTranslation(SETTINGS_PLUGIN);
|
|
22
|
-
const { plugins, enabled } = usePlugins();
|
|
23
|
-
const core = [
|
|
24
|
-
"dxos.org/plugin/layout",
|
|
25
|
-
"dxos.org/plugin/deck",
|
|
26
|
-
"dxos.org/plugin/files",
|
|
27
|
-
"dxos.org/plugin/space",
|
|
28
|
-
"dxos.org/plugin/stack",
|
|
29
|
-
"dxos.org/plugin/observability",
|
|
30
|
-
"dxos.org/plugin/registry"
|
|
31
|
-
];
|
|
32
|
-
const sortPlugin = ({ name: a }, { name: b }) => a?.localeCompare(b ?? "") ?? 0;
|
|
33
|
-
const corePlugins = core.map((id) => plugins.find((plugin) => plugin.meta.id === id)?.meta).filter(nonNullable).sort(sortPlugin);
|
|
34
|
-
const filteredPlugins = enabled.filter((id) => !core.includes(id)).map((id) => plugins.find((plugin) => plugin.meta.id === id)).filter((plugin) => plugin?.provides?.settings).map((plugin) => plugin.meta).sort(sortPlugin);
|
|
35
|
-
const [tabsActivePart, setTabsActivePart] = useState("list");
|
|
36
|
-
return /* @__PURE__ */ React.createElement(Dialog.Content, {
|
|
37
|
-
classNames: "p-0 bs-content max-bs-full md:max-is-[40rem] overflow-hidden"
|
|
38
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
39
|
-
role: "none",
|
|
40
|
-
className: "flex justify-between mbe-1 pbs-3 pis-2 pie-3 @md:pbs-4 @md:pis-4 @md:pie-5"
|
|
41
|
-
}, /* @__PURE__ */ React.createElement(Dialog.Title, {
|
|
42
|
-
onClick: () => setTabsActivePart("list"),
|
|
43
|
-
"aria-description": t("click to return to tablist description"),
|
|
44
|
-
classNames: "flex cursor-pointer items-center group/title"
|
|
45
|
-
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
46
|
-
icon: "ph--caret-left--regular",
|
|
47
|
-
classNames: [
|
|
48
|
-
"@md:hidden",
|
|
49
|
-
getSize(4),
|
|
50
|
-
tabsActivePart === "list" && "invisible"
|
|
51
|
-
]
|
|
52
|
-
}), /* @__PURE__ */ React.createElement("span", {
|
|
53
|
-
className: tabsActivePart !== "list" ? "group-hover/title:underline @md:group-hover/title:no-underline underline-offset-4 decoration-1" : ""
|
|
54
|
-
}, t("settings dialog title"))), /* @__PURE__ */ React.createElement(Dialog.Close, {
|
|
55
|
-
asChild: true
|
|
56
|
-
}, /* @__PURE__ */ React.createElement(Button, {
|
|
57
|
-
density: "fine",
|
|
58
|
-
variant: "ghost",
|
|
59
|
-
autoFocus: true
|
|
60
|
-
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
61
|
-
icon: "ph--x--regular",
|
|
62
|
-
size: 3
|
|
63
|
-
})))), /* @__PURE__ */ React.createElement(Tabs.Root, {
|
|
64
|
-
orientation: "vertical",
|
|
65
|
-
value: selected,
|
|
66
|
-
onValueChange: (nextSelected) => onSelected(nextSelected),
|
|
67
|
-
activePart: tabsActivePart,
|
|
68
|
-
onActivePartChange: setTabsActivePart,
|
|
69
|
-
classNames: "flex flex-col flex-1 mbs-2"
|
|
70
|
-
}, /* @__PURE__ */ React.createElement(Tabs.Viewport, {
|
|
71
|
-
classNames: "flex-1 min-bs-0"
|
|
72
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
73
|
-
role: "none",
|
|
74
|
-
className: "overflow-y-auto pli-3 @md:pis-2 @md:pie-0 mbe-4 border-r border-separator"
|
|
75
|
-
}, /* @__PURE__ */ React.createElement(Tabs.Tablist, {
|
|
76
|
-
classNames: "flex flex-col gap-4 max-bs-none overflow-y-visible"
|
|
77
|
-
}, /* @__PURE__ */ React.createElement(PluginList, {
|
|
78
|
-
title: "Options",
|
|
79
|
-
plugins: corePlugins
|
|
80
|
-
}), filteredPlugins.length > 0 && /* @__PURE__ */ React.createElement(PluginList, {
|
|
81
|
-
title: "Plugins",
|
|
82
|
-
plugins: filteredPlugins
|
|
83
|
-
}))), corePlugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tabpanel, {
|
|
84
|
-
key: plugin.id,
|
|
85
|
-
value: plugin.id,
|
|
86
|
-
classNames: "pli-3 @md:pli-5 max-bs-dvh overflow-y-auto"
|
|
87
|
-
}, /* @__PURE__ */ React.createElement(Surface, {
|
|
88
|
-
role: "settings",
|
|
89
|
-
data: {
|
|
90
|
-
plugin: plugin.id
|
|
91
|
-
}
|
|
92
|
-
}))), filteredPlugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tabpanel, {
|
|
93
|
-
key: plugin.id,
|
|
94
|
-
value: plugin.id,
|
|
95
|
-
classNames: "pli-3 @md:pli-5 max-bs-dvh overflow-y-auto"
|
|
96
|
-
}, /* @__PURE__ */ React.createElement(Surface, {
|
|
97
|
-
role: "settings",
|
|
98
|
-
data: {
|
|
99
|
-
plugin: plugin.id
|
|
100
|
-
}
|
|
101
|
-
}))))));
|
|
102
|
-
};
|
|
103
|
-
var PluginList = ({ title, plugins }) => {
|
|
104
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
105
|
-
role: "none"
|
|
106
|
-
}, /* @__PURE__ */ React.createElement(Tabs.TabGroupHeading, {
|
|
107
|
-
classNames: "pli-1 mlb-2 mbs-4 @md:mbs-2"
|
|
108
|
-
}, title), /* @__PURE__ */ React.createElement("div", {
|
|
109
|
-
className: "flex flex-col ml-1"
|
|
110
|
-
}, plugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tab, {
|
|
111
|
-
key: plugin.id,
|
|
112
|
-
value: plugin.id
|
|
113
|
-
}, plugin.name))));
|
|
6
|
+
// src/meta.ts
|
|
7
|
+
var meta = {
|
|
8
|
+
id: "org.dxos.plugin.settings",
|
|
9
|
+
name: "Settings",
|
|
10
|
+
tags: [
|
|
11
|
+
"system"
|
|
12
|
+
]
|
|
114
13
|
};
|
|
115
14
|
|
|
116
|
-
//
|
|
117
|
-
import
|
|
118
|
-
import {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
classNames: "flex min-h-[40px] items-center"
|
|
128
|
-
}, label), description && /* @__PURE__ */ React2.createElement(Input.DescriptionAndValidation, {
|
|
129
|
-
classNames: "mbs-0.5"
|
|
130
|
-
}, /* @__PURE__ */ React2.createElement(Input.Description, null, description))), /* @__PURE__ */ React2.createElement("div", {
|
|
131
|
-
role: "none"
|
|
132
|
-
}, /* @__PURE__ */ React2.createElement("div", {
|
|
133
|
-
role: "none",
|
|
134
|
-
className: "flex min-h-[40px] items-center"
|
|
135
|
-
}, children))));
|
|
136
|
-
if (secondary) {
|
|
137
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
138
|
-
role: "none",
|
|
139
|
-
className: "flex flex-col w-full"
|
|
140
|
-
}, primary, secondary);
|
|
15
|
+
// src/actions.ts
|
|
16
|
+
import * as Schema from "effect/Schema";
|
|
17
|
+
import { meta as meta2 } from "#meta";
|
|
18
|
+
import { SETTINGS_ID, SETTINGS_KEY } from "#types";
|
|
19
|
+
(function(SettingsAction2) {
|
|
20
|
+
class Open extends Schema.TaggedClass()(`${meta2.id}.open`, {
|
|
21
|
+
input: Schema.Struct({
|
|
22
|
+
plugin: Schema.optional(Schema.String)
|
|
23
|
+
}),
|
|
24
|
+
output: Schema.Void
|
|
25
|
+
}) {
|
|
141
26
|
}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
{
|
|
148
|
-
"en-US": {
|
|
149
|
-
[SETTINGS_PLUGIN]: {
|
|
150
|
-
"open settings label": "Show settings",
|
|
151
|
-
"settings dialog title": "Settings",
|
|
152
|
-
"back label": "Back",
|
|
153
|
-
"click to return to tablist description": "Click the title to return to the settings menu"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
27
|
+
SettingsAction2.Open = Open;
|
|
28
|
+
class OpenPluginRegistry extends Schema.TaggedClass()(`${meta2.id}.open-plugin-registry`, {
|
|
29
|
+
input: Schema.Void,
|
|
30
|
+
output: Schema.Void
|
|
31
|
+
}) {
|
|
156
32
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
var DEFAULT_PLUGIN = "dxos.org/plugin/registry";
|
|
161
|
-
var SettingsPlugin = () => {
|
|
162
|
-
const settings = new LocalStorageStore(SETTINGS_PLUGIN, {
|
|
163
|
-
selected: DEFAULT_PLUGIN
|
|
164
|
-
});
|
|
165
|
-
return {
|
|
166
|
-
meta: meta_default,
|
|
167
|
-
ready: async () => {
|
|
168
|
-
settings.prop({
|
|
169
|
-
key: "selected",
|
|
170
|
-
type: LocalStorageStore.string()
|
|
171
|
-
});
|
|
172
|
-
},
|
|
173
|
-
provides: {
|
|
174
|
-
surface: {
|
|
175
|
-
component: ({ data }) => {
|
|
176
|
-
switch (data.component) {
|
|
177
|
-
case `${SETTINGS_PLUGIN}/Settings`:
|
|
178
|
-
return /* @__PURE__ */ React3.createElement(SettingsDialog, {
|
|
179
|
-
selected: settings.values.selected,
|
|
180
|
-
onSelected: (selected) => settings.values.selected = selected
|
|
181
|
-
});
|
|
182
|
-
default:
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
intent: {
|
|
188
|
-
resolver: (intent) => {
|
|
189
|
-
switch (intent.action) {
|
|
190
|
-
case SettingsAction.OPEN: {
|
|
191
|
-
if (intent.data?.plugin) {
|
|
192
|
-
settings.values.selected = intent.data?.plugin;
|
|
193
|
-
}
|
|
194
|
-
return {
|
|
195
|
-
intents: [
|
|
196
|
-
[
|
|
197
|
-
{
|
|
198
|
-
action: LayoutAction.SET_LAYOUT,
|
|
199
|
-
data: {
|
|
200
|
-
element: "dialog",
|
|
201
|
-
component: `${SETTINGS_PLUGIN}/Settings`,
|
|
202
|
-
dialogBlockAlign: "start"
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
]
|
|
206
|
-
]
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
graph: {
|
|
213
|
-
builder: (plugins) => {
|
|
214
|
-
const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);
|
|
215
|
-
return createExtension({
|
|
216
|
-
id: SETTINGS_PLUGIN,
|
|
217
|
-
filter: (node) => node.id === "root",
|
|
218
|
-
actions: () => [
|
|
219
|
-
{
|
|
220
|
-
id: SETTINGS_PLUGIN,
|
|
221
|
-
data: async () => {
|
|
222
|
-
await intentPlugin?.provides.intent.dispatch({
|
|
223
|
-
plugin: SETTINGS_PLUGIN,
|
|
224
|
-
action: SettingsAction.OPEN
|
|
225
|
-
});
|
|
226
|
-
},
|
|
227
|
-
properties: {
|
|
228
|
-
label: [
|
|
229
|
-
"open settings label",
|
|
230
|
-
{
|
|
231
|
-
ns: SETTINGS_PLUGIN
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
icon: "ph--gear--regular",
|
|
235
|
-
keyBinding: {
|
|
236
|
-
macos: "meta+,",
|
|
237
|
-
windows: "alt+,"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
translations: translations_default
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
};
|
|
33
|
+
SettingsAction2.OpenPluginRegistry = OpenPluginRegistry;
|
|
34
|
+
})(SettingsAction || (SettingsAction = {}));
|
|
35
|
+
var SettingsAction;
|
|
249
36
|
|
|
250
|
-
//
|
|
251
|
-
var
|
|
37
|
+
// src/index.ts
|
|
38
|
+
var SettingsPlugin = Plugin.lazy(meta, () => import("./SettingsPlugin-LSWDBQHF.mjs"));
|
|
252
39
|
export {
|
|
253
|
-
|
|
40
|
+
SETTINGS_ID,
|
|
41
|
+
SETTINGS_KEY,
|
|
42
|
+
SettingsAction,
|
|
254
43
|
SettingsPlugin,
|
|
255
|
-
|
|
256
|
-
src_default as default
|
|
44
|
+
meta
|
|
257
45
|
};
|
|
258
46
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport {\n type IntentResolverProvides,\n type PluginDefinition,\n type SurfaceProvides,\n parseIntentPlugin,\n resolvePlugin,\n LayoutAction,\n SettingsAction,\n type GraphBuilderProvides,\n type TranslationsProvides,\n} from '@dxos/app-framework';\nimport { LocalStorageStore } from '@dxos/local-storage';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\n\nimport { SettingsDialog } from './components';\nimport meta, { SETTINGS_PLUGIN } from './meta';\nimport translations from './translations';\n\nconst DEFAULT_PLUGIN = 'dxos.org/plugin/registry';\n\nexport type SettingsPluginProvides = SurfaceProvides &\n IntentResolverProvides &\n GraphBuilderProvides &\n TranslationsProvides;\n\ntype SettingsSettingsProps = {\n selected: string;\n};\n\n/**\n * Plugin for aggregating and rendering plugin settings.\n */\nexport const SettingsPlugin = (): PluginDefinition<SettingsPluginProvides> => {\n const settings = new LocalStorageStore<SettingsSettingsProps>(SETTINGS_PLUGIN, { selected: DEFAULT_PLUGIN });\n\n return {\n meta,\n ready: async () => {\n settings.prop({ key: 'selected', type: LocalStorageStore.string() });\n },\n provides: {\n surface: {\n component: ({ data }) => {\n switch (data.component) {\n case `${SETTINGS_PLUGIN}/Settings`:\n return (\n <SettingsDialog\n selected={settings.values.selected}\n onSelected={(selected) => (settings.values.selected = selected)}\n />\n );\n\n default:\n return null;\n }\n },\n },\n intent: {\n resolver: (intent) => {\n switch (intent.action) {\n case SettingsAction.OPEN: {\n if (intent.data?.plugin) {\n settings.values.selected = intent.data?.plugin;\n }\n\n return {\n intents: [\n [\n {\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n component: `${SETTINGS_PLUGIN}/Settings`,\n dialogBlockAlign: 'start',\n },\n },\n ],\n ],\n };\n }\n }\n },\n },\n graph: {\n builder: (plugins) => {\n const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);\n\n return createExtension({\n id: SETTINGS_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: SETTINGS_PLUGIN,\n data: async () => {\n await intentPlugin?.provides.intent.dispatch({\n plugin: SETTINGS_PLUGIN,\n action: SettingsAction.OPEN,\n });\n },\n properties: {\n label: ['open settings label', { ns: SETTINGS_PLUGIN }],\n icon: 'ph--gear--regular',\n keyBinding: {\n macos: 'meta+,',\n windows: 'alt+,',\n },\n },\n },\n ],\n });\n },\n },\n translations,\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useState } from 'react';\n\nimport { type PluginMeta, Surface, usePlugins } from '@dxos/app-framework';\nimport { Button, Dialog, Icon, useTranslation } from '@dxos/react-ui';\nimport { Tabs, type TabsActivePart } from '@dxos/react-ui-tabs';\nimport { getSize } from '@dxos/react-ui-theme';\nimport { nonNullable } from '@dxos/util';\n\nimport { SETTINGS_PLUGIN } from '../meta';\n\nexport const SettingsDialog = ({\n selected,\n onSelected,\n}: {\n selected: string;\n onSelected: (plugin: string) => void;\n}) => {\n const { t } = useTranslation(SETTINGS_PLUGIN);\n const { plugins, enabled } = usePlugins();\n\n // TODO(burdon): Factor out common defs?\n const core = [\n 'dxos.org/plugin/layout',\n 'dxos.org/plugin/deck',\n 'dxos.org/plugin/files',\n 'dxos.org/plugin/space',\n 'dxos.org/plugin/stack',\n 'dxos.org/plugin/observability',\n 'dxos.org/plugin/registry',\n ];\n\n const sortPlugin = ({ name: a }: PluginMeta, { name: b }: PluginMeta) => a?.localeCompare(b ?? '') ?? 0;\n\n const corePlugins = core\n .map((id) => plugins.find((plugin) => plugin.meta.id === id)?.meta)\n .filter(nonNullable)\n .sort(sortPlugin);\n\n const filteredPlugins = enabled\n .filter((id) => !core.includes(id))\n .map((id) => plugins.find((plugin) => plugin.meta.id === id))\n .filter((plugin) => (plugin?.provides as any)?.settings)\n .map((plugin) => plugin!.meta)\n .sort(sortPlugin);\n\n const [tabsActivePart, setTabsActivePart] = useState<TabsActivePart>('list');\n\n return (\n <Dialog.Content classNames='p-0 bs-content max-bs-full md:max-is-[40rem] overflow-hidden'>\n <div role='none' className='flex justify-between mbe-1 pbs-3 pis-2 pie-3 @md:pbs-4 @md:pis-4 @md:pie-5'>\n <Dialog.Title\n onClick={() => setTabsActivePart('list')}\n aria-description={t('click to return to tablist description')}\n classNames='flex cursor-pointer items-center group/title'\n >\n <Icon\n icon='ph--caret-left--regular'\n classNames={['@md:hidden', getSize(4), tabsActivePart === 'list' && 'invisible']}\n />\n <span\n className={\n tabsActivePart !== 'list'\n ? 'group-hover/title:underline @md:group-hover/title:no-underline underline-offset-4 decoration-1'\n : ''\n }\n >\n {t('settings dialog title')}\n </span>\n </Dialog.Title>\n <Dialog.Close asChild>\n <Button density='fine' variant='ghost' autoFocus>\n <Icon icon='ph--x--regular' size={3} />\n </Button>\n </Dialog.Close>\n </div>\n\n <Tabs.Root\n orientation='vertical'\n value={selected}\n onValueChange={(nextSelected) => onSelected(nextSelected)}\n activePart={tabsActivePart}\n onActivePartChange={setTabsActivePart}\n classNames='flex flex-col flex-1 mbs-2'\n >\n <Tabs.Viewport classNames='flex-1 min-bs-0'>\n <div role='none' className='overflow-y-auto pli-3 @md:pis-2 @md:pie-0 mbe-4 border-r border-separator'>\n <Tabs.Tablist classNames='flex flex-col gap-4 max-bs-none overflow-y-visible'>\n <PluginList title='Options' plugins={corePlugins} />\n {filteredPlugins.length > 0 && <PluginList title='Plugins' plugins={filteredPlugins} />}\n </Tabs.Tablist>\n </div>\n\n {corePlugins.map((plugin) => (\n <Tabs.Tabpanel key={plugin.id} value={plugin.id} classNames='pli-3 @md:pli-5 max-bs-dvh overflow-y-auto'>\n <Surface role='settings' data={{ plugin: plugin.id }} />\n </Tabs.Tabpanel>\n ))}\n {filteredPlugins.map((plugin) => (\n <Tabs.Tabpanel key={plugin.id} value={plugin.id} classNames='pli-3 @md:pli-5 max-bs-dvh overflow-y-auto'>\n <Surface role='settings' data={{ plugin: plugin.id }} />\n </Tabs.Tabpanel>\n ))}\n </Tabs.Viewport>\n </Tabs.Root>\n </Dialog.Content>\n );\n};\n\nconst PluginList = ({ title, plugins }: { title: string; plugins: PluginMeta[] }) => {\n return (\n <div role='none'>\n <Tabs.TabGroupHeading classNames={'pli-1 mlb-2 mbs-4 @md:mbs-2'}>{title}</Tabs.TabGroupHeading>\n <div className='flex flex-col ml-1'>\n {plugins.map((plugin) => (\n <Tabs.Tab key={plugin.id} value={plugin.id}>\n {plugin.name}\n </Tabs.Tab>\n ))}\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type JSX, type PropsWithChildren } from 'react';\n\nimport { Input } from '@dxos/react-ui';\n\ntype SettingValueProps = {\n label: string;\n description?: JSX.Element;\n secondary?: JSX.Element;\n};\n\nexport const SettingsValue = ({ label, description, secondary, children }: PropsWithChildren<SettingValueProps>) => {\n const primary = (\n <div role='none' className='flex w-full gap-4 py-1'>\n <Input.Root>\n <div role='none' className='flex flex-col w-full'>\n {/* TODO(burdon): Consistent height for controls (e.g., Select, Textbox, and Checkbox are all different). */}\n <Input.Label classNames='flex min-h-[40px] items-center'>{label}</Input.Label>\n {description && (\n <Input.DescriptionAndValidation classNames='mbs-0.5'>\n <Input.Description>{description}</Input.Description>\n </Input.DescriptionAndValidation>\n )}\n </div>\n\n <div role='none'>\n <div role='none' className='flex min-h-[40px] items-center'>\n {children}\n </div>\n </div>\n </Input.Root>\n </div>\n );\n\n if (secondary) {\n // console.log(secondary);\n return (\n <div role='none' className='flex flex-col w-full'>\n {primary}\n {secondary}\n </div>\n );\n }\n\n return primary;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { SETTINGS_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [SETTINGS_PLUGIN]: {\n 'open settings label': 'Show settings',\n 'settings dialog title': 'Settings',\n 'back label': 'Back',\n 'click to return to tablist description': 'Click the title to return to the settings menu',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { SettingsPlugin } from './SettingsPlugin';\n\nexport default SettingsPlugin;\n\nexport * from './SettingsPlugin';\n\n// TODO(wittjosiah): Remove.\n// Settings should be exposed from plugins as state and intents rather than components.\nexport * from './components';\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts", "../../../src/actions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const SettingsPlugin = Plugin.lazy(meta, () => import('./SettingsPlugin'));\n\nexport * from './meta';\n\nexport * from './actions';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.settings',\n name: 'Settings',\n tags: ['system'],\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { meta } from '#meta';\nimport { SETTINGS_ID, SETTINGS_KEY } from '#types';\n\nexport { SETTINGS_ID, SETTINGS_KEY };\n\nexport namespace SettingsAction {\n export class Open extends Schema.TaggedClass<Open>()(`${meta.id}.open`, {\n input: Schema.Struct({\n plugin: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class OpenPluginRegistry extends Schema.TaggedClass<OpenPluginRegistry>()(`${meta.id}.open-plugin-registry`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;;;ACEhB,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,MAAM;IAAC;;AACT;;;ACNA,YAAYC,YAAY;AAExB,SAASC,QAAAA,aAAY;AACrB,SAASC,aAAaC,oBAAoB;UAIzBC,iBAAAA;EACR,MAAMC,aAAoBC,mBAAW,EAAS,GAAGC,MAAKC,EAAE,SAAS;IACtEC,OAAcC,cAAO;MACnBC,QAAeC,gBAAgBC,aAAM;IACvC,CAAA;IACAC,QAAeC;EACjB,CAAA,EAAA;EAAI;kBALSV,OAAAA;EAON,MAAMW,2BAAkCV,mBAAW,EAAuB,GAAGC,MAAKC,EAAE,yBAAyB;IAClHC,OAAcM;IACdD,QAAeC;EACjB,CAAA,EAAA;EAAI;kBAHSC,qBAAAA;AAIf,GAZiBZ,mBAAAA,iBAAAA,CAAAA,EAAAA;;;;AFHV,IAAMa,iBAAiBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,+BAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "meta", "id", "name", "tags", "Schema", "meta", "SETTINGS_ID", "SETTINGS_KEY", "SettingsAction", "Open", "TaggedClass", "meta", "id", "input", "Struct", "plugin", "optional", "String", "output", "Void", "OpenPluginRegistry", "SettingsPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":770,"imports":[],"format":"esm"},"src/actions.ts":{"bytes":2673,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/SettingsPlugin.ts":{"bytes":2368,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1057,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/SettingsPlugin.ts","kind":"dynamic-import","original":"./SettingsPlugin"}],"format":"esm"},"src/plugin.ts":{"bytes":667,"imports":[{"path":"src/SettingsPlugin.ts","kind":"import-statement","original":"./SettingsPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":1078,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":854,"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2080},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/SettingsPlugin-LSWDBQHF.mjs","kind":"dynamic-import"}],"exports":["SETTINGS_ID","SETTINGS_KEY","SettingsAction","SettingsPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":133},"src/meta.ts":{"bytesInOutput":97},"src/actions.ts":{"bytesInOutput":648}},"bytes":1160},"dist/lib/node-esm/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/plugin.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-H4MBYZ3E.mjs","kind":"import-statement"}],"exports":["SettingsPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":0}},"bytes":214},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":568},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":161}},"bytes":346},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":446},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["SETTINGS_ID","SETTINGS_KEY"],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":140}},"bytes":332},"dist/lib/node-esm/SettingsPlugin-LSWDBQHF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/SettingsPlugin-LSWDBQHF.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-H4MBYZ3E.mjs","kind":"import-statement"}],"exports":["SettingsPlugin","default"],"entryPoint":"src/SettingsPlugin.ts","inputs":{},"bytes":294},"dist/lib/node-esm/chunk-H4MBYZ3E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1251},"dist/lib/node-esm/chunk-H4MBYZ3E.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["SettingsPlugin","SettingsPlugin_default"],"inputs":{"src/SettingsPlugin.ts":{"bytesInOutput":543}},"bytes":761}}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { meta } from "#meta";
|
|
5
|
+
var translations = [
|
|
6
|
+
{
|
|
7
|
+
"en-US": {
|
|
8
|
+
[meta.id]: {
|
|
9
|
+
"plugin-settings.label": "Plugin Settings"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
export {
|
|
15
|
+
translations
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/app-toolkit';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin-settings.label': 'Plugin Settings',\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,yBAAyB;MAC3B;IACF;EACF;;",
|
|
6
|
+
"names": ["meta", "translations", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/types/index.ts
|
|
4
|
+
import { pinnedWorkspaceId } from "@dxos/app-toolkit";
|
|
5
|
+
var SETTINGS_ID = pinnedWorkspaceId("dxos:settings");
|
|
6
|
+
var SETTINGS_KEY = "settings";
|
|
7
|
+
export {
|
|
8
|
+
SETTINGS_ID,
|
|
9
|
+
SETTINGS_KEY
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/types/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { pinnedWorkspaceId } from '@dxos/app-toolkit';\n\nexport const SETTINGS_ID = pinnedWorkspaceId('dxos:settings');\nexport const SETTINGS_KEY = 'settings';\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,yBAAyB;AAE3B,IAAMC,cAAcD,kBAAkB,eAAA;AACtC,IAAME,eAAe;",
|
|
6
|
+
"names": ["pinnedWorkspaceId", "SETTINGS_ID", "SETTINGS_KEY"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
* Plugin for aggregating and rendering plugin settings.
|
|
5
|
-
*/
|
|
6
|
-
export declare const SettingsPlugin: () => PluginDefinition<SettingsPluginProvides>;
|
|
1
|
+
import { Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const SettingsPlugin: Plugin.PluginFactory<void>;
|
|
3
|
+
export default SettingsPlugin;
|
|
7
4
|
//# sourceMappingURL=SettingsPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../src/SettingsPlugin.
|
|
1
|
+
{"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../src/SettingsPlugin.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":"SettingsPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/SettingsPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { SETTINGS_ID, SETTINGS_KEY } from '#types';
|
|
3
|
+
export { SETTINGS_ID, SETTINGS_KEY };
|
|
4
|
+
export declare namespace SettingsAction {
|
|
5
|
+
const Open_base: Schema.TaggedClass<Open, `${string}.open`, {
|
|
6
|
+
readonly _tag: Schema.tag<`${string}.open`>;
|
|
7
|
+
} & {
|
|
8
|
+
input: Schema.Struct<{
|
|
9
|
+
plugin: Schema.optional<typeof Schema.String>;
|
|
10
|
+
}>;
|
|
11
|
+
output: typeof Schema.Void;
|
|
12
|
+
}>;
|
|
13
|
+
export class Open extends Open_base {
|
|
14
|
+
}
|
|
15
|
+
const OpenPluginRegistry_base: Schema.TaggedClass<OpenPluginRegistry, `${string}.open-plugin-registry`, {
|
|
16
|
+
readonly _tag: Schema.tag<`${string}.open-plugin-registry`>;
|
|
17
|
+
} & {
|
|
18
|
+
input: typeof Schema.Void;
|
|
19
|
+
output: typeof Schema.Void;
|
|
20
|
+
}>;
|
|
21
|
+
export class OpenPluginRegistry extends OpenPluginRegistry_base {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AAErC,yBAAiB,cAAc,CAAC,CAAC;;;;;;;;;IAC/B,MAAM,OAAO,IAAK,SAAQ,SAKxB;KAAG;;;;;;;IAEL,MAAM,OAAO,kBAAmB,SAAQ,uBAGtC;KAAG;;CACN"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { GraphBuilder } from '@dxos/app-graph';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAA0B,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAqB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
3
|
+
export declare const SettingsAppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
4
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,uBAAuB,qIAAkF,CAAC;AACvH,eAAO,MAAM,gBAAgB,oGAG5B,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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
import { Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const SettingsPlugin: Plugin.PluginFactory<void>;
|
|
3
|
+
export * from './meta';
|
|
4
|
+
export * from './actions';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,cAAc,4BAAsD,CAAC;AAElF,cAAc,QAAQ,CAAC;AAEvB,cAAc,WAAW,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
6
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAIzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,2BAA2B,yCAGvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-plugin-registry.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-plugin-registry.ts"],"names":[],"mappings":"AAOA,OAAO,EAAmB,iBAAiB,EAAgB,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAa7E,CAAC;eAEW,OAAO"}
|