@dxos/plugin-settings 0.6.8-main.046e6cf
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 +8 -0
- package/README.md +15 -0
- package/dist/lib/browser/chunk-JKQMH66V.mjs +11 -0
- package/dist/lib/browser/chunk-JKQMH66V.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +253 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/browser/meta.mjs +9 -0
- package/dist/lib/browser/meta.mjs.map +7 -0
- package/dist/lib/node/chunk-LZVHLML4.cjs +34 -0
- package/dist/lib/node/chunk-LZVHLML4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +274 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.cjs +30 -0
- package/dist/lib/node/meta.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/types/src/SettingsPlugin.d.ts +7 -0
- package/dist/types/src/SettingsPlugin.d.ts.map +1 -0
- package/dist/types/src/components/SettingsDialog.d.ts +6 -0
- package/dist/types/src/components/SettingsDialog.d.ts.map +1 -0
- package/dist/types/src/components/SettingsValue.d.ts +9 -0
- package/dist/types/src/components/SettingsValue.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 -0
- package/dist/types/src/index.d.ts +5 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +6 -0
- package/dist/types/src/meta.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +12 -0
- package/dist/types/src/translations.d.ts.map +1 -0
- package/package.json +62 -0
- package/src/SettingsPlugin.tsx +124 -0
- package/src/components/SettingsDialog.tsx +120 -0
- package/src/components/SettingsValue.tsx +49 -0
- package/src/components/index.ts +6 -0
- package/src/index.ts +13 -0
- package/src/meta.ts +9 -0
- package/src/translations.ts +18 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
Copyright (c) 2022 DXOS
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @dxos/plugin-settings
|
|
2
|
+
|
|
3
|
+
DXOS app plugin for aggregating and rendering plugin settings.
|
|
4
|
+
|
|
5
|
+
## DXOS Resources
|
|
6
|
+
|
|
7
|
+
- [Website](https://dxos.org)
|
|
8
|
+
- [Developer Documentation](https://docs.dxos.org)
|
|
9
|
+
- Talk to us on [Discord](https://dxos.org/discord)
|
|
10
|
+
|
|
11
|
+
## Contributions
|
|
12
|
+
|
|
13
|
+
Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
|
|
14
|
+
|
|
15
|
+
License: [MIT](./LICENSE) Copyright 2023 © DXOS
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nexport const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\n\nexport default {\n id: SETTINGS_PLUGIN,\n};\n"],
|
|
5
|
+
"mappings": ";AAIO,IAAMA,kBAAkB;AAE/B,IAAA,eAAe;EACbC,IAAID;AACN;",
|
|
6
|
+
"names": ["SETTINGS_PLUGIN", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SETTINGS_PLUGIN,
|
|
3
|
+
meta_default
|
|
4
|
+
} from "./chunk-JKQMH66V.mjs";
|
|
5
|
+
|
|
6
|
+
// packages/plugins/plugin-settings/src/SettingsPlugin.tsx
|
|
7
|
+
import { Gear } from "@phosphor-icons/react";
|
|
8
|
+
import React3 from "react";
|
|
9
|
+
import { parseIntentPlugin, resolvePlugin, LayoutAction, SettingsAction } from "@dxos/app-framework";
|
|
10
|
+
import { LocalStorageStore } from "@dxos/local-storage";
|
|
11
|
+
import { createExtension } from "@dxos/plugin-graph";
|
|
12
|
+
|
|
13
|
+
// packages/plugins/plugin-settings/src/components/SettingsDialog.tsx
|
|
14
|
+
import React, { useState } from "react";
|
|
15
|
+
import { Surface, usePlugins } from "@dxos/app-framework";
|
|
16
|
+
import { Button, Dialog, useTranslation } from "@dxos/react-ui";
|
|
17
|
+
import { Tabs } from "@dxos/react-ui-tabs";
|
|
18
|
+
import { getSize, mx } from "@dxos/react-ui-theme";
|
|
19
|
+
import { nonNullable } from "@dxos/util";
|
|
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 corePlugins = core.map((id) => plugins.find((plugin) => plugin.meta.id === id)?.meta).filter(nonNullable);
|
|
33
|
+
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(({ name: a }, { name: b }) => a?.localeCompare(b ?? "") ?? 0);
|
|
34
|
+
const [tabsActivePart, setTabsActivePart] = useState("list");
|
|
35
|
+
return /* @__PURE__ */ React.createElement(Dialog.Content, {
|
|
36
|
+
classNames: "p-0 bs-content max-bs-full md:max-is-[40rem] overflow-hidden"
|
|
37
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
38
|
+
role: "none",
|
|
39
|
+
className: "flex justify-between mbe-1 pbs-3 pis-2 pie-3 @md:pbs-4 @md:pis-4 @md:pie-5"
|
|
40
|
+
}, /* @__PURE__ */ React.createElement(Dialog.Title, {
|
|
41
|
+
onClick: () => setTabsActivePart("list"),
|
|
42
|
+
"aria-description": t("click to return to tablist description"),
|
|
43
|
+
classNames: "flex cursor-pointer items-center group/title"
|
|
44
|
+
}, /* @__PURE__ */ React.createElement("svg", {
|
|
45
|
+
className: mx("@md:hidden", getSize(4), tabsActivePart === "list" && "invisible")
|
|
46
|
+
}, /* @__PURE__ */ React.createElement("use", {
|
|
47
|
+
href: "/icons.svg#ph--caret-left--regular"
|
|
48
|
+
})), /* @__PURE__ */ React.createElement("span", {
|
|
49
|
+
className: tabsActivePart !== "list" ? "group-hover/title:underline @md:group-hover/title:no-underline underline-offset-4 decoration-1" : ""
|
|
50
|
+
}, t("settings dialog title"))), /* @__PURE__ */ React.createElement(Dialog.Close, {
|
|
51
|
+
asChild: true
|
|
52
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
53
|
+
density: "fine",
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
autoFocus: true
|
|
56
|
+
}, /* @__PURE__ */ React.createElement("svg", {
|
|
57
|
+
className: mx(getSize(3))
|
|
58
|
+
}, /* @__PURE__ */ React.createElement("use", {
|
|
59
|
+
href: "/icons.svg#ph--x--regular"
|
|
60
|
+
}))))), /* @__PURE__ */ React.createElement(Tabs.Root, {
|
|
61
|
+
orientation: "vertical",
|
|
62
|
+
value: selected,
|
|
63
|
+
onValueChange: (nextSelected) => onSelected(nextSelected),
|
|
64
|
+
activePart: tabsActivePart,
|
|
65
|
+
onActivePartChange: setTabsActivePart,
|
|
66
|
+
classNames: "flex flex-col flex-1 mbs-2"
|
|
67
|
+
}, /* @__PURE__ */ React.createElement(Tabs.Viewport, {
|
|
68
|
+
classNames: "flex-1 min-bs-0"
|
|
69
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
70
|
+
role: "none",
|
|
71
|
+
className: "overflow-y-auto pli-3 @md:pis-2 @md:pie-0 mbe-4 border-r separator-separator"
|
|
72
|
+
}, /* @__PURE__ */ React.createElement(Tabs.Tablist, {
|
|
73
|
+
classNames: "max-bs-none overflow-y-visible"
|
|
74
|
+
}, /* @__PURE__ */ React.createElement(PluginList, {
|
|
75
|
+
title: "Options",
|
|
76
|
+
plugins: corePlugins
|
|
77
|
+
}), filteredPlugins.length > 0 && /* @__PURE__ */ React.createElement(PluginList, {
|
|
78
|
+
title: "Plugins",
|
|
79
|
+
plugins: filteredPlugins,
|
|
80
|
+
gap: true
|
|
81
|
+
}))), corePlugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tabpanel, {
|
|
82
|
+
key: plugin.id,
|
|
83
|
+
value: plugin.id,
|
|
84
|
+
classNames: "pli-3 @md:pli-5 max-bs-dvh overflow-y-auto"
|
|
85
|
+
}, /* @__PURE__ */ React.createElement(Surface, {
|
|
86
|
+
role: "settings",
|
|
87
|
+
data: {
|
|
88
|
+
plugin: plugin.id
|
|
89
|
+
}
|
|
90
|
+
}))), filteredPlugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tabpanel, {
|
|
91
|
+
key: plugin.id,
|
|
92
|
+
value: plugin.id,
|
|
93
|
+
classNames: "pli-3 @md:pli-5 max-bs-dvh overflow-y-auto"
|
|
94
|
+
}, /* @__PURE__ */ React.createElement(Surface, {
|
|
95
|
+
role: "settings",
|
|
96
|
+
data: {
|
|
97
|
+
plugin: plugin.id
|
|
98
|
+
}
|
|
99
|
+
}))))));
|
|
100
|
+
};
|
|
101
|
+
var PluginList = ({ title, plugins, gap }) => {
|
|
102
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tabs.TabGroupHeading, {
|
|
103
|
+
classNames: gap ? "mbs-4" : "mbs-4 @md:mbs-2"
|
|
104
|
+
}, title), plugins.map((plugin) => /* @__PURE__ */ React.createElement(Tabs.Tab, {
|
|
105
|
+
key: plugin.id,
|
|
106
|
+
value: plugin.id
|
|
107
|
+
}, plugin.name)));
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// packages/plugins/plugin-settings/src/components/SettingsValue.tsx
|
|
111
|
+
import React2 from "react";
|
|
112
|
+
import { Input } from "@dxos/react-ui";
|
|
113
|
+
var SettingsValue = ({ label, description, secondary, children }) => {
|
|
114
|
+
const primary = /* @__PURE__ */ React2.createElement("div", {
|
|
115
|
+
role: "none",
|
|
116
|
+
className: "flex w-full gap-4 py-1"
|
|
117
|
+
}, /* @__PURE__ */ React2.createElement(Input.Root, null, /* @__PURE__ */ React2.createElement("div", {
|
|
118
|
+
role: "none",
|
|
119
|
+
className: "flex flex-col w-full"
|
|
120
|
+
}, /* @__PURE__ */ React2.createElement(Input.Label, {
|
|
121
|
+
classNames: "flex min-h-[40px] items-center"
|
|
122
|
+
}, label), description && /* @__PURE__ */ React2.createElement(Input.DescriptionAndValidation, {
|
|
123
|
+
classNames: "mbs-0.5"
|
|
124
|
+
}, /* @__PURE__ */ React2.createElement(Input.Description, null, description))), /* @__PURE__ */ React2.createElement("div", {
|
|
125
|
+
role: "none"
|
|
126
|
+
}, /* @__PURE__ */ React2.createElement("div", {
|
|
127
|
+
role: "none",
|
|
128
|
+
className: "flex min-h-[40px] items-center"
|
|
129
|
+
}, children))));
|
|
130
|
+
if (secondary) {
|
|
131
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
132
|
+
role: "none",
|
|
133
|
+
className: "flex flex-col w-full"
|
|
134
|
+
}, primary, secondary);
|
|
135
|
+
}
|
|
136
|
+
return primary;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// packages/plugins/plugin-settings/src/translations.ts
|
|
140
|
+
var translations_default = [
|
|
141
|
+
{
|
|
142
|
+
"en-US": {
|
|
143
|
+
[SETTINGS_PLUGIN]: {
|
|
144
|
+
"open settings label": "Show settings",
|
|
145
|
+
"settings dialog title": "Settings",
|
|
146
|
+
"back label": "Back",
|
|
147
|
+
"click to return to tablist description": "Click the title to return to the settings menu"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
|
|
153
|
+
// packages/plugins/plugin-settings/src/SettingsPlugin.tsx
|
|
154
|
+
var DEFAULT_PLUGIN = "dxos.org/plugin/registry";
|
|
155
|
+
var SettingsPlugin = () => {
|
|
156
|
+
const settings = new LocalStorageStore(SETTINGS_PLUGIN, {
|
|
157
|
+
selected: DEFAULT_PLUGIN
|
|
158
|
+
});
|
|
159
|
+
return {
|
|
160
|
+
meta: meta_default,
|
|
161
|
+
ready: async () => {
|
|
162
|
+
settings.prop({
|
|
163
|
+
key: "selected",
|
|
164
|
+
type: LocalStorageStore.string()
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
provides: {
|
|
168
|
+
surface: {
|
|
169
|
+
component: ({ data }) => {
|
|
170
|
+
switch (data.component) {
|
|
171
|
+
case `${SETTINGS_PLUGIN}/Settings`:
|
|
172
|
+
return /* @__PURE__ */ React3.createElement(SettingsDialog, {
|
|
173
|
+
selected: settings.values.selected,
|
|
174
|
+
onSelected: (selected) => settings.values.selected = selected
|
|
175
|
+
});
|
|
176
|
+
default:
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
intent: {
|
|
182
|
+
resolver: (intent) => {
|
|
183
|
+
switch (intent.action) {
|
|
184
|
+
case SettingsAction.OPEN: {
|
|
185
|
+
if (intent.data?.plugin) {
|
|
186
|
+
settings.values.selected = intent.data?.plugin;
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
intents: [
|
|
190
|
+
[
|
|
191
|
+
{
|
|
192
|
+
action: LayoutAction.SET_LAYOUT,
|
|
193
|
+
data: {
|
|
194
|
+
element: "dialog",
|
|
195
|
+
component: `${SETTINGS_PLUGIN}/Settings`,
|
|
196
|
+
dialogBlockAlign: "start"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
]
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
graph: {
|
|
207
|
+
builder: (plugins) => {
|
|
208
|
+
const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);
|
|
209
|
+
return createExtension({
|
|
210
|
+
id: SETTINGS_PLUGIN,
|
|
211
|
+
filter: (node) => node.id === "root",
|
|
212
|
+
actions: () => [
|
|
213
|
+
{
|
|
214
|
+
id: SETTINGS_PLUGIN,
|
|
215
|
+
data: async () => {
|
|
216
|
+
await intentPlugin?.provides.intent.dispatch({
|
|
217
|
+
plugin: SETTINGS_PLUGIN,
|
|
218
|
+
action: SettingsAction.OPEN
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
properties: {
|
|
222
|
+
label: [
|
|
223
|
+
"open settings label",
|
|
224
|
+
{
|
|
225
|
+
ns: SETTINGS_PLUGIN
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
icon: (props) => /* @__PURE__ */ React3.createElement(Gear, props),
|
|
229
|
+
iconSymbol: "ph--gear--regular",
|
|
230
|
+
keyBinding: {
|
|
231
|
+
macos: "meta+,",
|
|
232
|
+
windows: "alt+,"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
translations: translations_default
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// packages/plugins/plugin-settings/src/index.ts
|
|
246
|
+
var src_default = SettingsPlugin;
|
|
247
|
+
export {
|
|
248
|
+
SettingsDialog,
|
|
249
|
+
SettingsPlugin,
|
|
250
|
+
SettingsValue,
|
|
251
|
+
src_default as default
|
|
252
|
+
};
|
|
253
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/SettingsPlugin.tsx", "../../../src/components/SettingsDialog.tsx", "../../../src/components/SettingsValue.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Gear, type IconProps } from '@phosphor-icons/react';\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: (props: IconProps) => <Gear {...props} />,\n iconSymbol: '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 Plugin, Surface, usePlugins } from '@dxos/app-framework';\nimport { Button, Dialog, useTranslation } from '@dxos/react-ui';\nimport { Tabs, type TabsActivePart } from '@dxos/react-ui-tabs';\nimport { getSize, mx } 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 corePlugins = core.map((id) => plugins.find((plugin) => plugin.meta.id === id)?.meta).filter(nonNullable);\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(({ name: a }, { name: b }) => a?.localeCompare(b ?? '') ?? 0);\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 <svg className={mx('@md:hidden', getSize(4), tabsActivePart === 'list' && 'invisible')}>\n <use href='/icons.svg#ph--caret-left--regular' />\n </svg>\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 <svg className={mx(getSize(3))}>\n <use href={'/icons.svg#ph--x--regular'} />\n </svg>\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 separator-separator'>\n <Tabs.Tablist classNames='max-bs-none overflow-y-visible'>\n <PluginList title='Options' plugins={corePlugins} />\n {filteredPlugins.length > 0 && <PluginList title='Plugins' plugins={filteredPlugins} gap />}\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, gap }: { title: string; plugins: Plugin['meta'][]; gap?: boolean }) => {\n return (\n <>\n <Tabs.TabGroupHeading classNames={gap ? 'mbs-4' : 'mbs-4 @md:mbs-2'}>{title}</Tabs.TabGroupHeading>\n {plugins.map((plugin) => (\n <Tabs.Tab key={plugin.id} value={plugin.id}>\n {plugin.name}\n </Tabs.Tab>\n ))}\n </>\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": ";;;;;;AAIA,SAASA,YAA4B;AACrC,OAAOC,YAAW;AAElB,SAIEC,mBACAC,eACAC,cACAC,sBAGK;AACP,SAASC,yBAAyB;AAClC,SAASC,uBAAkC;;;ACf3C,OAAOC,SAASC,gBAAgB;AAEhC,SAAsBC,SAASC,kBAAkB;AACjD,SAASC,QAAQC,QAAQC,sBAAsB;AAC/C,SAASC,YAAiC;AAC1C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YAAY;kBACZC,YAAY;oBACVC,OAAO;oBACPC,SAAS;kBACX;gBACF;cACF;;UAEJ,CAAA;QACF;MACF;MACAC;IACF;EACF;AACF;;;AIrHA,IAAA,cAAeC;",
|
|
6
|
+
"names": ["Gear", "React", "parseIntentPlugin", "resolvePlugin", "LayoutAction", "SettingsAction", "LocalStorageStore", "createExtension", "React", "useState", "Surface", "usePlugins", "Button", "Dialog", "useTranslation", "Tabs", "getSize", "mx", "nonNullable", "SettingsDialog", "selected", "onSelected", "t", "useTranslation", "SETTINGS_PLUGIN", "plugins", "enabled", "usePlugins", "core", "corePlugins", "map", "id", "find", "plugin", "meta", "filter", "nonNullable", "filteredPlugins", "includes", "provides", "settings", "sort", "name", "a", "b", "localeCompare", "tabsActivePart", "setTabsActivePart", "useState", "Dialog", "Content", "classNames", "div", "role", "className", "Title", "onClick", "aria-description", "svg", "mx", "getSize", "use", "href", "span", "Close", "asChild", "Button", "density", "variant", "autoFocus", "Tabs", "Root", "orientation", "value", "onValueChange", "nextSelected", "activePart", "onActivePartChange", "Viewport", "Tablist", "PluginList", "title", "length", "gap", "Tabpanel", "key", "Surface", "data", "TabGroupHeading", "Tab", "React", "Input", "SettingsValue", "label", "description", "secondary", "children", "primary", "React", "div", "role", "className", "Input", "Root", "Label", "classNames", "DescriptionAndValidation", "Description", "SETTINGS_PLUGIN", "DEFAULT_PLUGIN", "SettingsPlugin", "settings", "LocalStorageStore", "SETTINGS_PLUGIN", "selected", "meta", "ready", "prop", "key", "type", "string", "provides", "surface", "component", "data", "React", "SettingsDialog", "values", "onSelected", "intent", "resolver", "action", "SettingsAction", "OPEN", "plugin", "intents", "LayoutAction", "SET_LAYOUT", "element", "dialogBlockAlign", "graph", "builder", "plugins", "intentPlugin", "resolvePlugin", "parseIntentPlugin", "createExtension", "id", "filter", "node", "actions", "dispatch", "properties", "label", "ns", "icon", "props", "Gear", "iconSymbol", "keyBinding", "macos", "windows", "translations", "SettingsPlugin"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-settings/src/meta.ts":{"bytes":778,"imports":[],"format":"esm"},"packages/plugins/plugin-settings/src/components/SettingsDialog.tsx":{"bytes":15578,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-settings/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-settings/src/components/SettingsValue.tsx":{"bytes":4471,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-settings/src/components/index.ts":{"bytes":634,"imports":[{"path":"packages/plugins/plugin-settings/src/components/SettingsDialog.tsx","kind":"import-statement","original":"./SettingsDialog"},{"path":"packages/plugins/plugin-settings/src/components/SettingsValue.tsx","kind":"import-statement","original":"./SettingsValue"}],"format":"esm"},"packages/plugins/plugin-settings/src/translations.ts":{"bytes":1571,"imports":[{"path":"packages/plugins/plugin-settings/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-settings/src/SettingsPlugin.tsx":{"bytes":12747,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-settings/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-settings/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-settings/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-settings/src/index.ts":{"bytes":1216,"imports":[{"path":"packages/plugins/plugin-settings/src/SettingsPlugin.tsx","kind":"import-statement","original":"./SettingsPlugin"},{"path":"packages/plugins/plugin-settings/src/SettingsPlugin.tsx","kind":"import-statement","original":"./SettingsPlugin"},{"path":"packages/plugins/plugin-settings/src/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-settings/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17139},"packages/plugins/plugin-settings/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-settings/dist/lib/browser/chunk-JKQMH66V.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["SettingsDialog","SettingsPlugin","SettingsValue","default"],"entryPoint":"packages/plugins/plugin-settings/src/index.ts","inputs":{"packages/plugins/plugin-settings/src/SettingsPlugin.tsx":{"bytesInOutput":2968},"packages/plugins/plugin-settings/src/components/SettingsDialog.tsx":{"bytesInOutput":4408},"packages/plugins/plugin-settings/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-settings/src/components/SettingsValue.tsx":{"bytesInOutput":1125},"packages/plugins/plugin-settings/src/translations.ts":{"bytesInOutput":318},"packages/plugins/plugin-settings/src/index.ts":{"bytesInOutput":34}},"bytes":9420},"packages/plugins/plugin-settings/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-settings/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-settings/dist/lib/browser/chunk-JKQMH66V.mjs","kind":"import-statement"}],"exports":["SETTINGS_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-settings/src/meta.ts","inputs":{},"bytes":165},"packages/plugins/plugin-settings/dist/lib/browser/chunk-JKQMH66V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":338},"packages/plugins/plugin-settings/dist/lib/browser/chunk-JKQMH66V.mjs":{"imports":[],"exports":["SETTINGS_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-settings/src/meta.ts":{"bytesInOutput":96}},"bytes":235}}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_LZVHLML4_exports = {};
|
|
20
|
+
__export(chunk_LZVHLML4_exports, {
|
|
21
|
+
SETTINGS_PLUGIN: () => SETTINGS_PLUGIN,
|
|
22
|
+
meta_default: () => meta_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_LZVHLML4_exports);
|
|
25
|
+
var SETTINGS_PLUGIN = "dxos.org/plugin/settings";
|
|
26
|
+
var meta_default = {
|
|
27
|
+
id: SETTINGS_PLUGIN
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
SETTINGS_PLUGIN,
|
|
32
|
+
meta_default
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=chunk-LZVHLML4.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nexport const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\n\nexport default {\n id: SETTINGS_PLUGIN,\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,kBAAkB;AAE/B,IAAA,eAAe;EACbC,IAAID;AACN;",
|
|
6
|
+
"names": ["SETTINGS_PLUGIN", "id"]
|
|
7
|
+
}
|