@jbrowse/plugin-config 3.2.0 → 3.4.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/ConfigurationEditor.js +3 -1
- package/dist/ConfigurationEditorWidget/components/useSlotEditorStyles.d.ts +2 -2
- package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +0 -1
- package/dist/FromConfigAdapter/FromConfigAdapter.js +0 -1
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +0 -1
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +0 -1
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +0 -1
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +0 -1
- package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +0 -1
- package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +0 -1
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +0 -1
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.js +6 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +3 -1
- package/esm/ConfigurationEditorWidget/components/useSlotEditorStyles.d.ts +2 -2
- package/esm/FromConfigAdapter/FromConfigAdapter.d.ts +0 -1
- package/esm/FromConfigAdapter/FromConfigAdapter.js +0 -1
- package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +0 -1
- package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +0 -1
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +0 -1
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +0 -1
- package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +0 -1
- package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +0 -1
- package/esm/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +0 -1
- package/esm/RefNameAliasAdapter/RefNameAliasAdapter.js +6 -2
- package/package.json +5 -5
|
@@ -45,7 +45,9 @@ const Member = (0, mobx_react_1.observer)(function (props) {
|
|
|
45
45
|
const typeNameChoices = (0, configuration_1.getTypeNamesFromExplicitlyTypedUnion)(slotSchema);
|
|
46
46
|
return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: true, className: classes.accordion, children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, { className: classes.icon }), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: [...path, slotName].join('➔') }) }), (0, jsx_runtime_1.jsxs)(material_1.AccordionDetails, { className: classes.expansionPanelDetails, children: [typeNameChoices.length ? ((0, jsx_runtime_1.jsx)(TypeSelector_1.default, { typeNameChoices: typeNameChoices, slotName: slotName, slot: slot, onChange: evt => {
|
|
47
47
|
if (evt.target.value !== slot.type) {
|
|
48
|
-
schema.setSubschema(slotName, {
|
|
48
|
+
schema.setSubschema(slotName, {
|
|
49
|
+
type: evt.target.value,
|
|
50
|
+
});
|
|
49
51
|
}
|
|
50
52
|
} })) : null, (0, jsx_runtime_1.jsx)(material_1.FormGroup, { className: classes.noOverflow, children: (0, jsx_runtime_1.jsx)(Schema, { schema: slot, path: [...path, slotName] }) })] })] }));
|
|
51
53
|
}
|
|
@@ -4,6 +4,6 @@ export declare const useSlotEditorStyles: (params: void, muiStyleOverridesParams
|
|
|
4
4
|
} | undefined) => {
|
|
5
5
|
classes: Record<"paper" | "paperContent" | "slotModeSwitch", string>;
|
|
6
6
|
theme: import("@mui/material").Theme;
|
|
7
|
-
css: import("tss-react").Css;
|
|
8
|
-
cx: import("tss-react").Cx;
|
|
7
|
+
css: import("tss-react/types").Css;
|
|
8
|
+
cx: import("tss-react/types").Cx;
|
|
9
9
|
};
|
|
@@ -17,7 +17,12 @@ class RefNameAliasAdapter extends BaseAdapter_1.BaseAdapter {
|
|
|
17
17
|
.filter(f => !!f);
|
|
18
18
|
const header = lines.filter(f => f.startsWith('#'));
|
|
19
19
|
const headerCol = refColumnHeaderName && header.length
|
|
20
|
-
? header
|
|
20
|
+
? header
|
|
21
|
+
.at(-1)
|
|
22
|
+
.slice(1)
|
|
23
|
+
.split('\t')
|
|
24
|
+
.map(t => t.trim())
|
|
25
|
+
.indexOf(refColumnHeaderName)
|
|
21
26
|
: refColumn;
|
|
22
27
|
return lines
|
|
23
28
|
.filter(f => !f.startsWith('#'))
|
|
@@ -30,6 +35,5 @@ class RefNameAliasAdapter extends BaseAdapter_1.BaseAdapter {
|
|
|
30
35
|
};
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
|
-
async freeResources() { }
|
|
34
38
|
}
|
|
35
39
|
exports.default = RefNameAliasAdapter;
|
|
@@ -40,7 +40,9 @@ const Member = observer(function (props) {
|
|
|
40
40
|
const typeNameChoices = getTypeNamesFromExplicitlyTypedUnion(slotSchema);
|
|
41
41
|
return (_jsxs(Accordion, { defaultExpanded: true, className: classes.accordion, children: [_jsx(AccordionSummary, { expandIcon: _jsx(ExpandMoreIcon, { className: classes.icon }), children: _jsx(Typography, { children: [...path, slotName].join('➔') }) }), _jsxs(AccordionDetails, { className: classes.expansionPanelDetails, children: [typeNameChoices.length ? (_jsx(TypeSelector, { typeNameChoices: typeNameChoices, slotName: slotName, slot: slot, onChange: evt => {
|
|
42
42
|
if (evt.target.value !== slot.type) {
|
|
43
|
-
schema.setSubschema(slotName, {
|
|
43
|
+
schema.setSubschema(slotName, {
|
|
44
|
+
type: evt.target.value,
|
|
45
|
+
});
|
|
44
46
|
}
|
|
45
47
|
} })) : null, _jsx(FormGroup, { className: classes.noOverflow, children: _jsx(Schema, { schema: slot, path: [...path, slotName] }) })] })] }));
|
|
46
48
|
}
|
|
@@ -4,6 +4,6 @@ export declare const useSlotEditorStyles: (params: void, muiStyleOverridesParams
|
|
|
4
4
|
} | undefined) => {
|
|
5
5
|
classes: Record<"paper" | "paperContent" | "slotModeSwitch", string>;
|
|
6
6
|
theme: import("@mui/material").Theme;
|
|
7
|
-
css: import("tss-react").Css;
|
|
8
|
-
cx: import("tss-react").Cx;
|
|
7
|
+
css: import("tss-react/types").Css;
|
|
8
|
+
cx: import("tss-react/types").Cx;
|
|
9
9
|
};
|
|
@@ -15,7 +15,12 @@ export default class RefNameAliasAdapter extends BaseAdapter {
|
|
|
15
15
|
.filter(f => !!f);
|
|
16
16
|
const header = lines.filter(f => f.startsWith('#'));
|
|
17
17
|
const headerCol = refColumnHeaderName && header.length
|
|
18
|
-
? header
|
|
18
|
+
? header
|
|
19
|
+
.at(-1)
|
|
20
|
+
.slice(1)
|
|
21
|
+
.split('\t')
|
|
22
|
+
.map(t => t.trim())
|
|
23
|
+
.indexOf(refColumnHeaderName)
|
|
19
24
|
: refColumn;
|
|
20
25
|
return lines
|
|
21
26
|
.filter(f => !f.startsWith('#'))
|
|
@@ -28,5 +33,4 @@ export default class RefNameAliasAdapter extends BaseAdapter {
|
|
|
28
33
|
};
|
|
29
34
|
});
|
|
30
35
|
}
|
|
31
|
-
async freeResources() { }
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "JBrowse 2 config utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.
|
|
40
|
-
"@mui/icons-material": "^
|
|
41
|
-
"@mui/material": "^
|
|
39
|
+
"@jbrowse/core": "^3.4.0",
|
|
40
|
+
"@mui/icons-material": "^7.0.0",
|
|
41
|
+
"@mui/material": "^7.0.0",
|
|
42
42
|
"mobx": "^6.0.0",
|
|
43
43
|
"mobx-react": "^9.0.0",
|
|
44
44
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -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": "a9f1ac35fc2dd810bae92cdaf1fc19995bee4413"
|
|
60
60
|
}
|