@jbrowse/plugin-config 2.10.3 → 2.11.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/ConfigurationEditorWidget/components/ColorEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +1 -1
- package/dist/ConfigurationEditorWidget/components/HeadingComponent.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/HeadingComponent.js +2 -2
- package/dist/ConfigurationEditorWidget/components/NumberEditor.d.ts +3 -3
- package/esm/ConfigurationEditorWidget/components/ColorEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +1 -1
- package/esm/ConfigurationEditorWidget/components/HeadingComponent.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/HeadingComponent.js +2 -2
- package/esm/ConfigurationEditorWidget/components/NumberEditor.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const ColorSlot: (props: {
|
|
3
3
|
value: string;
|
|
4
|
-
label?: string
|
|
4
|
+
label?: string;
|
|
5
5
|
TextFieldProps?: {
|
|
6
6
|
helperText: string;
|
|
7
7
|
fullWidth: boolean;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
onChange: (arg: string) => void;
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
declare const ColorEditor: (props: {
|
|
@@ -45,7 +45,7 @@ const Member = (0, mobx_react_1.observer)(function (props) {
|
|
|
45
45
|
if (slot.length) {
|
|
46
46
|
return slot.map((subslot, slotIndex) => {
|
|
47
47
|
const key = `${(0, pluralize_1.singular)(slotName)} ${slotIndex + 1}`;
|
|
48
|
-
return react_1.default.createElement(Member, {
|
|
48
|
+
return react_1.default.createElement(Member, { key: key, ...props, slot: subslot, slotName: key });
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
// if this is an explicitly typed schema, make a type-selecting dropdown
|
|
@@ -9,12 +9,12 @@ const mobx_state_tree_1 = require("mobx-state-tree");
|
|
|
9
9
|
const HeadingComponent = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
10
10
|
if (model === null || model === void 0 ? void 0 : model.target) {
|
|
11
11
|
if (model.target.type) {
|
|
12
|
-
return
|
|
12
|
+
return `${model.target.type} settings`;
|
|
13
13
|
}
|
|
14
14
|
if ((0, mobx_state_tree_1.isStateTreeNode)(model.target)) {
|
|
15
15
|
const type = (0, mobx_state_tree_1.getType)(model.target);
|
|
16
16
|
if (type === null || type === void 0 ? void 0 : type.name) {
|
|
17
|
-
return
|
|
17
|
+
return `${type.name.replace('ConfigurationSchema', '')} settings`;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const NumberEditor: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
|
-
name?: string
|
|
4
|
+
name?: string;
|
|
5
5
|
value: string;
|
|
6
|
-
description?: string
|
|
6
|
+
description?: string;
|
|
7
7
|
set: (val: number) => void;
|
|
8
|
-
reset?: (
|
|
8
|
+
reset?: () => void;
|
|
9
9
|
};
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
export default NumberEditor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const ColorSlot: (props: {
|
|
3
3
|
value: string;
|
|
4
|
-
label?: string
|
|
4
|
+
label?: string;
|
|
5
5
|
TextFieldProps?: {
|
|
6
6
|
helperText: string;
|
|
7
7
|
fullWidth: boolean;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
onChange: (arg: string) => void;
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
declare const ColorEditor: (props: {
|
|
@@ -40,7 +40,7 @@ const Member = observer(function (props) {
|
|
|
40
40
|
if (slot.length) {
|
|
41
41
|
return slot.map((subslot, slotIndex) => {
|
|
42
42
|
const key = `${singular(slotName)} ${slotIndex + 1}`;
|
|
43
|
-
return React.createElement(Member, {
|
|
43
|
+
return React.createElement(Member, { key: key, ...props, slot: subslot, slotName: key });
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
// if this is an explicitly typed schema, make a type-selecting dropdown
|
|
@@ -4,12 +4,12 @@ import { isStateTreeNode, getType } from 'mobx-state-tree';
|
|
|
4
4
|
const HeadingComponent = observer(function ({ model, }) {
|
|
5
5
|
if (model === null || model === void 0 ? void 0 : model.target) {
|
|
6
6
|
if (model.target.type) {
|
|
7
|
-
return
|
|
7
|
+
return `${model.target.type} settings`;
|
|
8
8
|
}
|
|
9
9
|
if (isStateTreeNode(model.target)) {
|
|
10
10
|
const type = getType(model.target);
|
|
11
11
|
if (type === null || type === void 0 ? void 0 : type.name) {
|
|
12
|
-
return
|
|
12
|
+
return `${type.name.replace('ConfigurationSchema', '')} settings`;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const NumberEditor: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
|
-
name?: string
|
|
4
|
+
name?: string;
|
|
5
5
|
value: string;
|
|
6
|
-
description?: string
|
|
6
|
+
description?: string;
|
|
7
7
|
set: (val: number) => void;
|
|
8
|
-
reset?: (
|
|
8
|
+
reset?: () => void;
|
|
9
9
|
};
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
export default NumberEditor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "JBrowse 2 config utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"distModule": "esm/index.js",
|
|
57
57
|
"srcModule": "src/index.ts",
|
|
58
58
|
"module": "esm/index.js",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
|
|
60
60
|
}
|