@dxos/plugin-settings 0.9.1-main.c7dcc2e112 → 0.10.0
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/types/src/capabilities/app-graph-builder.d.ts +1 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/containers/DefaultSettings/DefaultSettings.d.ts +17 -0
- package/dist/types/src/containers/DefaultSettings/DefaultSettings.d.ts.map +1 -0
- package/dist/types/src/containers/DefaultSettings/index.d.ts +2 -0
- package/dist/types/src/containers/DefaultSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +2 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/src/capabilities/app-graph-builder.ts +2 -2
- package/src/capabilities/react-surface.tsx +7 -28
- package/src/containers/DefaultSettings/DefaultSettings.tsx +46 -0
- package/src/containers/DefaultSettings/index.ts +5 -0
- package/src/containers/index.ts +5 -0
- package/src/index.ts +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
|
|
4
|
-
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Any, never, Capability.Service>;
|
|
5
4
|
export default _default;
|
|
6
5
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAA0B,MAAM,qBAAqB,CAAC
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
declare const _default: (props: void) => Effect.Effect<Capability.
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Any, never, never>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
3
|
+
export type DefaultSettingsProps = {
|
|
4
|
+
subject: AppCapabilities.Settings;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Generic settings surface rendered for any plugin that contributes an
|
|
8
|
+
* `AppCapabilities.Settings` entry. It drives a schema-based form from the
|
|
9
|
+
* contributed `schema`/`atom`, so plugins whose settings are plain editable
|
|
10
|
+
* fields need not register a bespoke settings surface.
|
|
11
|
+
*
|
|
12
|
+
* The contributing plugin's name is rendered as the section heading (resolved
|
|
13
|
+
* by matching `subject.prefix` against each plugin's `meta.profile.key`) so
|
|
14
|
+
* every schema-driven settings article shows a consistent title.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DefaultSettings: ({ subject }: DefaultSettingsProps) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=DefaultSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DefaultSettings/DefaultSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC;CACnC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,gBAAiB,oBAAoB,sBAqBhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DefaultSettings/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './actions';
|
|
2
2
|
export * from './meta';
|
|
3
|
-
export { SETTINGS_ID, SETTINGS_KEY,
|
|
3
|
+
export { SETTINGS_ID, SETTINGS_KEY, getPluginRegistrySectionPath, getPluginSettingsSectionPath } from './types';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const meta: {
|
|
|
16
16
|
} | undefined;
|
|
17
17
|
readonly dependsOn?: readonly string[] | undefined;
|
|
18
18
|
readonly spec?: string | undefined;
|
|
19
|
+
readonly createdAt?: string | undefined;
|
|
19
20
|
readonly author?: string | undefined;
|
|
20
21
|
};
|
|
21
22
|
readonly release?: {
|
|
@@ -24,6 +25,9 @@ export declare const meta: {
|
|
|
24
25
|
readonly dependencies?: {
|
|
25
26
|
readonly [x: string]: string;
|
|
26
27
|
} | undefined;
|
|
28
|
+
readonly pluginKey?: string | undefined;
|
|
29
|
+
readonly manifestHash?: string | undefined;
|
|
30
|
+
readonly createdAt?: string | undefined;
|
|
27
31
|
} | undefined;
|
|
28
32
|
};
|
|
29
33
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
|