@jbrowse/plugin-data-management 2.12.0 → 2.12.2
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/AddConnectionWidget/index.js +1 -1
- package/dist/AddTrackWidget/index.js +1 -1
- package/dist/AddTrackWidget/model.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/util.js +1 -2
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +6 -1
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/components/util.js +3 -4
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.d.ts +21 -3
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.js +1 -2
- package/dist/HierarchicalTrackSelectorWidget/facetedUtil.js +2 -3
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.d.ts +7 -1
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.js +1 -2
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.js +1 -2
- package/dist/HierarchicalTrackSelectorWidget/index.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +72 -18
- package/dist/HierarchicalTrackSelectorWidget/model.js +1 -1
- package/dist/HierarchicalTrackSelectorWidget/util.js +5 -6
- package/dist/PluginStoreWidget/components/DeletePluginDialog.js +1 -1
- package/dist/PluginStoreWidget/components/util.js +1 -2
- package/dist/PluginStoreWidget/index.js +1 -1
- package/dist/PluginStoreWidget/model.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/ucsc-trackhub/doConnect.js +1 -2
- package/dist/ucsc-trackhub/index.js +1 -1
- package/dist/ucsc-trackhub/model.d.ts +6 -26
- package/dist/ucsc-trackhub/model.js +1 -1
- package/dist/ucsc-trackhub/ucscTrackHub.js +7 -7
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +6 -1
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.d.ts +21 -3
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.d.ts +7 -1
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +72 -18
- package/esm/index.d.ts +0 -1
- package/esm/ucsc-trackhub/model.d.ts +6 -26
- package/package.json +2 -2
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = AddConnectionWidgetF;
|
|
29
30
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
30
31
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
31
32
|
const react_1 = require("react");
|
|
@@ -42,4 +43,3 @@ function AddConnectionWidgetF(pluginManager) {
|
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
exports.default = AddConnectionWidgetF;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = AddTrackWidgetF;
|
|
29
30
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
30
31
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
31
32
|
const react_1 = require("react");
|
|
@@ -42,4 +43,3 @@ function AddTrackWidgetF(pluginManager) {
|
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
exports.default = AddTrackWidgetF;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = f;
|
|
3
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
5
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
5
6
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
@@ -234,4 +235,3 @@ function f(pluginManager) {
|
|
|
234
235
|
},
|
|
235
236
|
}));
|
|
236
237
|
}
|
|
237
|
-
exports.default = f;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = FacetedHeader;
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const material_1 = require("@mui/material");
|
|
31
32
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -81,4 +82,3 @@ function FacetedHeader({ model, }) {
|
|
|
81
82
|
},
|
|
82
83
|
] })));
|
|
83
84
|
}
|
|
84
|
-
exports.default = FacetedHeader;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRowStr =
|
|
3
|
+
exports.getRowStr = getRowStr;
|
|
4
4
|
function getRowStr(facet, row) {
|
|
5
5
|
var _a;
|
|
6
6
|
return `${(facet.startsWith('metadata.')
|
|
7
7
|
? (_a = row.metadata) === null || _a === void 0 ? void 0 : _a[facet.replace('metadata.', '')]
|
|
8
8
|
: row[facet]) || ''}`;
|
|
9
9
|
}
|
|
10
|
-
exports.getRowStr = getRowStr;
|
|
@@ -69,13 +69,18 @@ const HierarchicalTree = (0, mobx_react_1.observer)(function HierarchicalTree({
|
|
|
69
69
|
model,
|
|
70
70
|
drawerPosition,
|
|
71
71
|
}), [view, model, drawerPosition, tree]);
|
|
72
|
-
|
|
72
|
+
// doing this properly without ts-expect-error is tricky, react-vtree has
|
|
73
|
+
// some typescript examples that could help
|
|
74
|
+
const treeWalker = (0, react_1.useCallback)(
|
|
75
|
+
// @ts-expect-error
|
|
76
|
+
function* treeWalker() {
|
|
73
77
|
for (const child of tree.children) {
|
|
74
78
|
yield getNodeData(child, 0, extra, obj);
|
|
75
79
|
}
|
|
76
80
|
while (true) {
|
|
77
81
|
// @ts-expect-error
|
|
78
82
|
const parentMeta = yield;
|
|
83
|
+
// @ts-expect-error
|
|
79
84
|
for (const curr of parentMeta.node.children) {
|
|
80
85
|
yield getNodeData(curr, parentMeta.nestingLevel + 1, extra, obj);
|
|
81
86
|
}
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = Category;
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const material_1 = require("@mui/material");
|
|
31
32
|
const mui_1 = require("tss-react/mui");
|
|
@@ -108,4 +109,3 @@ function Category({ isOpen, setOpen, data, }) {
|
|
|
108
109
|
setMenuEl(null);
|
|
109
110
|
}, open: Boolean(menuEl), onClose: () => setMenuEl(null) })) : null));
|
|
110
111
|
}
|
|
111
|
-
exports.default = Category;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = TrackLabel;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const mui_1 = require("tss-react/mui");
|
|
@@ -38,4 +39,3 @@ function TrackLabel({ data }) {
|
|
|
38
39
|
react_1.default.createElement(SanitizedHTML_1.default, { html: name })) })),
|
|
39
40
|
react_1.default.createElement(TrackLabelMenu_1.default, { model: model, trackId: trackId, id: id, conf: conf })));
|
|
40
41
|
}
|
|
41
|
-
exports.default = TrackLabel;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = Node;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const mui_1 = require("tss-react/mui");
|
|
8
9
|
// locals
|
|
@@ -50,4 +51,3 @@ function Node({ data, isOpen, style, setOpen, }) {
|
|
|
50
51
|
} },
|
|
51
52
|
react_1.default.createElement("div", { className: !isLeaf ? classes.accordionColor : undefined }, !isLeaf ? (react_1.default.createElement(TrackCategory_1.default, { isOpen: isOpen, data: data, setOpen: setOpen })) : (react_1.default.createElement(TrackLabel_1.default, { data: data }))))));
|
|
52
53
|
}
|
|
53
|
-
exports.default = Node;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAllChildren = getAllChildren;
|
|
4
|
+
exports.treeToMap = treeToMap;
|
|
5
|
+
exports.isUnsupported = isUnsupported;
|
|
4
6
|
function getAllChildren(subtree) {
|
|
5
7
|
// @ts-expect-error
|
|
6
8
|
return (subtree === null || subtree === void 0 ? void 0 : subtree.type) === 'category'
|
|
@@ -9,7 +11,6 @@ function getAllChildren(subtree) {
|
|
|
9
11
|
.flat(Infinity)
|
|
10
12
|
: [];
|
|
11
13
|
}
|
|
12
|
-
exports.getAllChildren = getAllChildren;
|
|
13
14
|
function treeToMap(tree, map = new Map()) {
|
|
14
15
|
if (tree.id && tree.children.length) {
|
|
15
16
|
map.set(tree.id, tree);
|
|
@@ -19,8 +20,6 @@ function treeToMap(tree, map = new Map()) {
|
|
|
19
20
|
}
|
|
20
21
|
return map;
|
|
21
22
|
}
|
|
22
|
-
exports.treeToMap = treeToMap;
|
|
23
23
|
function isUnsupported(name = '') {
|
|
24
24
|
return name.endsWith('(Unsupported)') || name.endsWith('(Unknown)');
|
|
25
25
|
}
|
|
26
|
-
exports.isUnsupported = isUnsupported;
|
|
@@ -63,7 +63,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
63
63
|
readonly allTrackConfigurations: ({
|
|
64
64
|
[x: string]: any;
|
|
65
65
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
66
|
-
setSubschema(slotName: string, data: unknown):
|
|
66
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
69
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
70
|
+
[x: string]: any;
|
|
71
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
72
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
67
73
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
68
74
|
} & {
|
|
69
75
|
/**
|
|
@@ -74,7 +80,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
74
80
|
readonly conf: {
|
|
75
81
|
[x: string]: any;
|
|
76
82
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
77
|
-
setSubschema(slotName: string, data: unknown):
|
|
83
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
86
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
89
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
78
90
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
79
91
|
readonly name: string;
|
|
80
92
|
readonly category: string;
|
|
@@ -104,7 +116,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
104
116
|
readonly conf: {
|
|
105
117
|
[x: string]: any;
|
|
106
118
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
107
|
-
setSubschema(slotName: string, data: unknown):
|
|
119
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
122
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
125
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
108
126
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
109
127
|
readonly name: string;
|
|
110
128
|
readonly category: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.facetedStateTreeF =
|
|
3
|
+
exports.facetedStateTreeF = facetedStateTreeF;
|
|
4
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
5
|
const util_1 = require("./util");
|
|
6
6
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
@@ -173,4 +173,3 @@ function facetedStateTreeF() {
|
|
|
173
173
|
},
|
|
174
174
|
}));
|
|
175
175
|
}
|
|
176
|
-
exports.facetedStateTreeF = facetedStateTreeF;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.findNonSparseKeys = findNonSparseKeys;
|
|
4
|
+
exports.getRootKeys = getRootKeys;
|
|
4
5
|
function findNonSparseKeys(keys, rows, cb) {
|
|
5
6
|
return keys.filter(f => rows.map(r => cb(r, f)).filter(f => !!f).length > 5);
|
|
6
7
|
}
|
|
7
|
-
exports.findNonSparseKeys = findNonSparseKeys;
|
|
8
8
|
function getRootKeys(obj) {
|
|
9
9
|
return Object.entries(obj)
|
|
10
10
|
.map(([key, val]) => (typeof val === 'string' ? key : ''))
|
|
11
11
|
.filter(f => !!f);
|
|
12
12
|
}
|
|
13
|
-
exports.getRootKeys = getRootKeys;
|
|
@@ -8,5 +8,11 @@ export declare function filterTracks(tracks: AnyConfigurationModel[], self: {
|
|
|
8
8
|
}): ({
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11
|
-
setSubschema(slotName: string, data: unknown):
|
|
11
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
14
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
17
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
12
18
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterTracks =
|
|
3
|
+
exports.filterTracks = filterTracks;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
6
|
const util_2 = require("./util");
|
|
@@ -29,4 +29,3 @@ function filterTracks(tracks, self) {
|
|
|
29
29
|
return (0, util_2.hasAnyOverlap)(compatDisplays, trackDisplays);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
exports.filterTracks = filterTracks;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateHierarchy =
|
|
3
|
+
exports.generateHierarchy = generateHierarchy;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
6
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
@@ -101,4 +101,3 @@ function generateHierarchy({ model, trackConfs, extra, noCategories, menuItems,
|
|
|
101
101
|
}
|
|
102
102
|
return hierarchy.children;
|
|
103
103
|
}
|
|
104
|
-
exports.generateHierarchy = generateHierarchy;
|
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.configSchema = exports.stateModelFactory = void 0;
|
|
30
|
+
exports.default = HierarchicalTrackSelectorWidgetF;
|
|
30
31
|
const model_1 = __importDefault(require("./model"));
|
|
31
32
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
32
33
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
@@ -42,7 +43,6 @@ function HierarchicalTrackSelectorWidgetF(pluginManager) {
|
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
exports.default = HierarchicalTrackSelectorWidgetF;
|
|
46
46
|
var model_2 = require("./model");
|
|
47
47
|
Object.defineProperty(exports, "stateModelFactory", { enumerable: true, get: function () { return __importDefault(model_2).default; } });
|
|
48
48
|
var configSchema_2 = require("./configSchema");
|
|
@@ -37,15 +37,19 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
37
37
|
setUseShoppingCart(f: boolean): void;
|
|
38
38
|
setFilterText(str: string): void;
|
|
39
39
|
setShowSparse(f: boolean): void;
|
|
40
|
-
setShowOptions(f: boolean): void;
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
40
|
+
setShowOptions(f: boolean): void;
|
|
43
41
|
setShowFilters(f: boolean): void;
|
|
44
42
|
} & {
|
|
45
43
|
readonly allTrackConfigurations: ({
|
|
46
44
|
[x: string]: any;
|
|
47
45
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
48
|
-
setSubschema(slotName: string, data: unknown):
|
|
46
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
49
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
52
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
49
53
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
50
54
|
} & {
|
|
51
55
|
readonly rows: {
|
|
@@ -53,7 +57,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
53
57
|
readonly conf: {
|
|
54
58
|
[x: string]: any;
|
|
55
59
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
56
|
-
setSubschema(slotName: string, data: unknown):
|
|
60
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
66
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
57
67
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
58
68
|
readonly name: string;
|
|
59
69
|
readonly category: string;
|
|
@@ -71,7 +81,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
71
81
|
readonly conf: {
|
|
72
82
|
[x: string]: any;
|
|
73
83
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
74
|
-
setSubschema(slotName: string, data: unknown):
|
|
84
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
87
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
88
|
+
[x: string]: any;
|
|
89
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
90
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
75
91
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
76
92
|
readonly name: string;
|
|
77
93
|
readonly category: string;
|
|
@@ -86,11 +102,7 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
86
102
|
}, {
|
|
87
103
|
favorites: string[];
|
|
88
104
|
recentlyUsed: string[];
|
|
89
|
-
selection:
|
|
90
|
-
[x: string]: any;
|
|
91
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
92
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
93
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
105
|
+
selection: AnyConfigurationModel[];
|
|
94
106
|
sortTrackNames: boolean;
|
|
95
107
|
sortCategories: boolean;
|
|
96
108
|
collapsed: import("mobx").ObservableMap<string, boolean>;
|
|
@@ -108,7 +120,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
108
120
|
readonly selectionSet: Set<{
|
|
109
121
|
[x: string]: any;
|
|
110
122
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
111
|
-
setSubschema(slotName: string, data: unknown):
|
|
123
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
126
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
127
|
+
[x: string]: any;
|
|
128
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
129
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
112
130
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>>;
|
|
113
131
|
/**
|
|
114
132
|
* #getter
|
|
@@ -244,7 +262,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
244
262
|
readonly configAndSessionTrackConfigurations: ({
|
|
245
263
|
[x: string]: any;
|
|
246
264
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
247
|
-
setSubschema(slotName: string, data: unknown):
|
|
265
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
266
|
+
[x: string]: any;
|
|
267
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
268
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
269
|
+
[x: string]: any;
|
|
270
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
271
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
248
272
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
249
273
|
/**
|
|
250
274
|
* #getter
|
|
@@ -252,7 +276,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
252
276
|
readonly allTrackConfigurations: ({
|
|
253
277
|
[x: string]: any;
|
|
254
278
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
255
|
-
setSubschema(slotName: string, data: unknown):
|
|
279
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
280
|
+
[x: string]: any;
|
|
281
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
282
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
283
|
+
[x: string]: any;
|
|
284
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
285
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
256
286
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
257
287
|
/**
|
|
258
288
|
* #getter
|
|
@@ -260,7 +290,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
260
290
|
readonly allTrackConfigurationTrackIdSet: Map<any, {
|
|
261
291
|
[x: string]: any;
|
|
262
292
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
263
|
-
setSubschema(slotName: string, data: unknown):
|
|
293
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
294
|
+
[x: string]: any;
|
|
295
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
296
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
297
|
+
[x: string]: any;
|
|
298
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
299
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
264
300
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>>;
|
|
265
301
|
} & {
|
|
266
302
|
/**
|
|
@@ -270,7 +306,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
270
306
|
readonly favoriteTracks: ({
|
|
271
307
|
[x: string]: any;
|
|
272
308
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
273
|
-
setSubschema(slotName: string, data: unknown):
|
|
309
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
310
|
+
[x: string]: any;
|
|
311
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
312
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
313
|
+
[x: string]: any;
|
|
314
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
315
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
274
316
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
275
317
|
/**
|
|
276
318
|
* #getter
|
|
@@ -279,7 +321,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
279
321
|
readonly recentlyUsedTracks: ({
|
|
280
322
|
[x: string]: any;
|
|
281
323
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
282
|
-
setSubschema(slotName: string, data: unknown):
|
|
324
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
325
|
+
[x: string]: any;
|
|
326
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
327
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
328
|
+
[x: string]: any;
|
|
329
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
330
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
283
331
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
284
332
|
} & {
|
|
285
333
|
/**
|
|
@@ -290,7 +338,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
290
338
|
tracks: ({
|
|
291
339
|
[x: string]: any;
|
|
292
340
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
293
|
-
setSubschema(slotName: string, data: unknown):
|
|
341
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
342
|
+
[x: string]: any;
|
|
343
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
344
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
345
|
+
[x: string]: any;
|
|
346
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
347
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
294
348
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
295
349
|
noCategories: boolean;
|
|
296
350
|
menuItems: never[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = stateTreeFactory;
|
|
3
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
5
|
const mobx_1 = require("mobx");
|
|
5
6
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
@@ -500,4 +501,3 @@ function stateTreeFactory(pluginManager) {
|
|
|
500
501
|
},
|
|
501
502
|
}));
|
|
502
503
|
}
|
|
503
|
-
exports.default = stateTreeFactory;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.hasAnyOverlap = hasAnyOverlap;
|
|
4
|
+
exports.hasAllOverlap = hasAllOverlap;
|
|
5
|
+
exports.matches = matches;
|
|
6
|
+
exports.findSubCategories = findSubCategories;
|
|
7
|
+
exports.findTopLevelCategories = findTopLevelCategories;
|
|
4
8
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
9
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
6
10
|
function hasAnyOverlap(a1 = [], a2 = []) {
|
|
@@ -14,19 +18,16 @@ function hasAnyOverlap(a1 = [], a2 = []) {
|
|
|
14
18
|
return a2.some(a => s1.has(a));
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
|
-
exports.hasAnyOverlap = hasAnyOverlap;
|
|
18
21
|
function hasAllOverlap(a1 = [], a2 = []) {
|
|
19
22
|
const s1 = new Set(a1);
|
|
20
23
|
return a2.every(a => s1.has(a));
|
|
21
24
|
}
|
|
22
|
-
exports.hasAllOverlap = hasAllOverlap;
|
|
23
25
|
function matches(query, conf, session) {
|
|
24
26
|
const categories = ((0, configuration_1.readConfObject)(conf, 'category') || []);
|
|
25
27
|
const queryLower = query.toLowerCase();
|
|
26
28
|
return ((0, tracks_1.getTrackName)(conf, session).toLowerCase().includes(queryLower) ||
|
|
27
29
|
!!categories.filter(c => c.toLowerCase().includes(queryLower)).length);
|
|
28
30
|
}
|
|
29
|
-
exports.matches = matches;
|
|
30
31
|
function findSubCategories(obj, paths, depth = 0) {
|
|
31
32
|
let hasSubs = false;
|
|
32
33
|
for (const elt of obj) {
|
|
@@ -43,7 +44,6 @@ function findSubCategories(obj, paths, depth = 0) {
|
|
|
43
44
|
}
|
|
44
45
|
return hasSubs;
|
|
45
46
|
}
|
|
46
|
-
exports.findSubCategories = findSubCategories;
|
|
47
47
|
function findTopLevelCategories(obj, paths) {
|
|
48
48
|
for (const elt of obj) {
|
|
49
49
|
if (elt.children.length) {
|
|
@@ -51,4 +51,3 @@ function findTopLevelCategories(obj, paths) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.findTopLevelCategories = findTopLevelCategories;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = DeletePluginDialog;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -25,4 +26,3 @@ function DeletePluginDialog({ onClose, plugin, }) {
|
|
|
25
26
|
onClose();
|
|
26
27
|
} }, "Cancel"))));
|
|
27
28
|
}
|
|
28
|
-
exports.default = DeletePluginDialog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFetchPlugins =
|
|
3
|
+
exports.useFetchPlugins = useFetchPlugins;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
function useFetchPlugins() {
|
|
6
6
|
const [plugins, setPlugins] = (0, react_1.useState)();
|
|
@@ -26,4 +26,3 @@ function useFetchPlugins() {
|
|
|
26
26
|
}, []);
|
|
27
27
|
return { plugins, error };
|
|
28
28
|
}
|
|
29
|
-
exports.useFetchPlugins = useFetchPlugins;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = PluginStoreWidgetF;
|
|
29
30
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
30
31
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
31
32
|
const react_1 = require("react");
|
|
@@ -42,4 +43,3 @@ function PluginStoreWidgetF(pluginManager) {
|
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
exports.default = PluginStoreWidgetF;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = stateModelFactory;
|
|
3
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
5
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
5
6
|
function stateModelFactory(pluginManager) {
|
|
@@ -19,4 +20,3 @@ function stateModelFactory(pluginManager) {
|
|
|
19
20
|
},
|
|
20
21
|
}));
|
|
21
22
|
}
|
|
22
|
-
exports.default = stateModelFactory;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doConnect =
|
|
3
|
+
exports.doConnect = doConnect;
|
|
4
4
|
const ucsc_hub_1 = require("@gmod/ucsc-hub");
|
|
5
5
|
const ucscTrackHub_1 = require("./ucscTrackHub");
|
|
6
6
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
@@ -128,4 +128,3 @@ async function doConnect(self) {
|
|
|
128
128
|
(_a = session.breakConnection) === null || _a === void 0 ? void 0 : _a.call(session, self.configuration);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
exports.doConnect = doConnect;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = UCSCTrackHubConnectionF;
|
|
6
7
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
7
8
|
const model_1 = __importDefault(require("./model"));
|
|
8
9
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
@@ -16,4 +17,3 @@ function UCSCTrackHubConnectionF(pluginManager) {
|
|
|
16
17
|
url: '//genome.ucsc.edu/goldenPath/help/hgTrackHubHelp.html#Intro',
|
|
17
18
|
}));
|
|
18
19
|
}
|
|
19
|
-
exports.default = UCSCTrackHubConnectionF;
|
|
@@ -14,9 +14,7 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
14
14
|
};
|
|
15
15
|
assemblyNames: {
|
|
16
16
|
type: string;
|
|
17
|
-
defaultValue: never[];
|
|
18
|
-
* #action
|
|
19
|
-
*/
|
|
17
|
+
defaultValue: never[];
|
|
20
18
|
description: string;
|
|
21
19
|
};
|
|
22
20
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
@@ -34,9 +32,7 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
34
32
|
description: string;
|
|
35
33
|
};
|
|
36
34
|
assemblyNames: {
|
|
37
|
-
type: string;
|
|
38
|
-
* #property
|
|
39
|
-
*/
|
|
35
|
+
type: string;
|
|
40
36
|
defaultValue: never[];
|
|
41
37
|
description: string;
|
|
42
38
|
};
|
|
@@ -57,28 +53,12 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
57
53
|
*/
|
|
58
54
|
type: import("mobx-state-tree").ISimpleType<"UCSCTrackHubConnection">;
|
|
59
55
|
}, {
|
|
60
|
-
connect(_arg:
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
64
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
56
|
+
connect(_arg: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
65
57
|
} & {
|
|
66
58
|
afterAttach(): void;
|
|
67
|
-
addTrackConf(trackConf:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
71
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): any;
|
|
72
|
-
addTrackConfs(trackConfs: ({
|
|
73
|
-
[x: string]: any;
|
|
74
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
75
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
76
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[]): any[];
|
|
77
|
-
setTrackConfs(trackConfs: ({
|
|
78
|
-
[x: string]: any;
|
|
79
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
80
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
81
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[]): import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>>;
|
|
59
|
+
addTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
60
|
+
addTrackConfs(trackConfs: import("@jbrowse/core/configuration").AnyConfigurationModel[]): any[];
|
|
61
|
+
setTrackConfs(trackConfs: import("@jbrowse/core/configuration").AnyConfigurationModel[]): import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>>;
|
|
82
62
|
clear(): void;
|
|
83
63
|
} & {
|
|
84
64
|
/**
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = UCSCTrackHubConnection;
|
|
29
30
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
30
31
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
31
32
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
@@ -58,4 +59,3 @@ function UCSCTrackHubConnection(pluginManager) {
|
|
|
58
59
|
},
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
|
-
exports.default = UCSCTrackHubConnection;
|
|
@@ -3,7 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ucscAssemblies =
|
|
6
|
+
exports.ucscAssemblies = void 0;
|
|
7
|
+
exports.fetchGenomesFile = fetchGenomesFile;
|
|
8
|
+
exports.fetchTrackDbFile = fetchTrackDbFile;
|
|
9
|
+
exports.makeLoc = makeLoc;
|
|
10
|
+
exports.makeLocAlt = makeLocAlt;
|
|
11
|
+
exports.makeLoc2 = makeLoc2;
|
|
12
|
+
exports.generateTracks = generateTracks;
|
|
7
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
14
|
const util_1 = require("@jbrowse/core/util");
|
|
9
15
|
const io_1 = require("@jbrowse/core/util/io");
|
|
@@ -13,23 +19,19 @@ async function fetchGenomesFile(genomesLoc) {
|
|
|
13
19
|
const genomesFileText = await (0, io_1.openLocation)(genomesLoc).readFile('utf8');
|
|
14
20
|
return new ucsc_hub_1.GenomesFile(genomesFileText);
|
|
15
21
|
}
|
|
16
|
-
exports.fetchGenomesFile = fetchGenomesFile;
|
|
17
22
|
async function fetchTrackDbFile(trackDbLoc) {
|
|
18
23
|
const text = await (0, io_1.openLocation)(trackDbLoc).readFile('utf8');
|
|
19
24
|
return new ucsc_hub_1.TrackDbFile(text);
|
|
20
25
|
}
|
|
21
|
-
exports.fetchTrackDbFile = fetchTrackDbFile;
|
|
22
26
|
function makeLoc(first, base) {
|
|
23
27
|
return {
|
|
24
28
|
uri: new URL(first, new URL(base.uri, base.baseUri)).href,
|
|
25
29
|
locationType: 'UriLocation',
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
|
-
exports.makeLoc = makeLoc;
|
|
29
32
|
function makeLocAlt(first, alt, base) {
|
|
30
33
|
return first ? makeLoc(first, base) : makeLoc(alt, base);
|
|
31
34
|
}
|
|
32
|
-
exports.makeLocAlt = makeLocAlt;
|
|
33
35
|
function makeLoc2(first, alt) {
|
|
34
36
|
return first
|
|
35
37
|
? {
|
|
@@ -41,7 +43,6 @@ function makeLoc2(first, alt) {
|
|
|
41
43
|
locationType: 'UriLocation',
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
exports.makeLoc2 = makeLoc2;
|
|
45
46
|
function generateTracks({ trackDb, trackDbLoc, assemblyName, sequenceAdapter, }) {
|
|
46
47
|
return Object.entries(trackDb.data)
|
|
47
48
|
.map(([trackName, track]) => {
|
|
@@ -85,7 +86,6 @@ function generateTracks({ trackDb, trackDbLoc, assemblyName, sequenceAdapter, })
|
|
|
85
86
|
})
|
|
86
87
|
.filter(util_1.notEmpty);
|
|
87
88
|
}
|
|
88
|
-
exports.generateTracks = generateTracks;
|
|
89
89
|
function makeTrackConfig({ track, categories, trackDbLoc, trackDb, sequenceAdapter, }) {
|
|
90
90
|
var _a;
|
|
91
91
|
const trackType = track.data.type || ((_a = trackDb.data[track.data.parent || '']) === null || _a === void 0 ? void 0 : _a.data.type) || '';
|
|
@@ -41,13 +41,18 @@ const HierarchicalTree = observer(function HierarchicalTree({ height, tree, mode
|
|
|
41
41
|
model,
|
|
42
42
|
drawerPosition,
|
|
43
43
|
}), [view, model, drawerPosition, tree]);
|
|
44
|
-
|
|
44
|
+
// doing this properly without ts-expect-error is tricky, react-vtree has
|
|
45
|
+
// some typescript examples that could help
|
|
46
|
+
const treeWalker = useCallback(
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
function* treeWalker() {
|
|
45
49
|
for (const child of tree.children) {
|
|
46
50
|
yield getNodeData(child, 0, extra, obj);
|
|
47
51
|
}
|
|
48
52
|
while (true) {
|
|
49
53
|
// @ts-expect-error
|
|
50
54
|
const parentMeta = yield;
|
|
55
|
+
// @ts-expect-error
|
|
51
56
|
for (const curr of parentMeta.node.children) {
|
|
52
57
|
yield getNodeData(curr, parentMeta.nestingLevel + 1, extra, obj);
|
|
53
58
|
}
|
|
@@ -63,7 +63,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
63
63
|
readonly allTrackConfigurations: ({
|
|
64
64
|
[x: string]: any;
|
|
65
65
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
66
|
-
setSubschema(slotName: string, data: unknown):
|
|
66
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
69
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
70
|
+
[x: string]: any;
|
|
71
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
72
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
67
73
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
68
74
|
} & {
|
|
69
75
|
/**
|
|
@@ -74,7 +80,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
74
80
|
readonly conf: {
|
|
75
81
|
[x: string]: any;
|
|
76
82
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
77
|
-
setSubschema(slotName: string, data: unknown):
|
|
83
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
86
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
89
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
78
90
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
79
91
|
readonly name: string;
|
|
80
92
|
readonly category: string;
|
|
@@ -104,7 +116,13 @@ export declare function facetedStateTreeF(): import("mobx-state-tree").IModelTyp
|
|
|
104
116
|
readonly conf: {
|
|
105
117
|
[x: string]: any;
|
|
106
118
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
107
|
-
setSubschema(slotName: string, data: unknown):
|
|
119
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
122
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
125
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
108
126
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
109
127
|
readonly name: string;
|
|
110
128
|
readonly category: string;
|
|
@@ -8,5 +8,11 @@ export declare function filterTracks(tracks: AnyConfigurationModel[], self: {
|
|
|
8
8
|
}): ({
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11
|
-
setSubschema(slotName: string, data: unknown):
|
|
11
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
14
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
17
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
12
18
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
@@ -37,15 +37,19 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
37
37
|
setUseShoppingCart(f: boolean): void;
|
|
38
38
|
setFilterText(str: string): void;
|
|
39
39
|
setShowSparse(f: boolean): void;
|
|
40
|
-
setShowOptions(f: boolean): void;
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
40
|
+
setShowOptions(f: boolean): void;
|
|
43
41
|
setShowFilters(f: boolean): void;
|
|
44
42
|
} & {
|
|
45
43
|
readonly allTrackConfigurations: ({
|
|
46
44
|
[x: string]: any;
|
|
47
45
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
48
|
-
setSubschema(slotName: string, data: unknown):
|
|
46
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
49
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
52
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
49
53
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
50
54
|
} & {
|
|
51
55
|
readonly rows: {
|
|
@@ -53,7 +57,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
53
57
|
readonly conf: {
|
|
54
58
|
[x: string]: any;
|
|
55
59
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
56
|
-
setSubschema(slotName: string, data: unknown):
|
|
60
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
66
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
57
67
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
58
68
|
readonly name: string;
|
|
59
69
|
readonly category: string;
|
|
@@ -71,7 +81,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
71
81
|
readonly conf: {
|
|
72
82
|
[x: string]: any;
|
|
73
83
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
74
|
-
setSubschema(slotName: string, data: unknown):
|
|
84
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
87
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
88
|
+
[x: string]: any;
|
|
89
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
90
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
75
91
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
76
92
|
readonly name: string;
|
|
77
93
|
readonly category: string;
|
|
@@ -86,11 +102,7 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
86
102
|
}, {
|
|
87
103
|
favorites: string[];
|
|
88
104
|
recentlyUsed: string[];
|
|
89
|
-
selection:
|
|
90
|
-
[x: string]: any;
|
|
91
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
92
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
93
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
105
|
+
selection: AnyConfigurationModel[];
|
|
94
106
|
sortTrackNames: boolean;
|
|
95
107
|
sortCategories: boolean;
|
|
96
108
|
collapsed: import("mobx").ObservableMap<string, boolean>;
|
|
@@ -108,7 +120,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
108
120
|
readonly selectionSet: Set<{
|
|
109
121
|
[x: string]: any;
|
|
110
122
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
111
|
-
setSubschema(slotName: string, data: unknown):
|
|
123
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
126
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
127
|
+
[x: string]: any;
|
|
128
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
129
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
112
130
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>>;
|
|
113
131
|
/**
|
|
114
132
|
* #getter
|
|
@@ -244,7 +262,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
244
262
|
readonly configAndSessionTrackConfigurations: ({
|
|
245
263
|
[x: string]: any;
|
|
246
264
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
247
|
-
setSubschema(slotName: string, data: unknown):
|
|
265
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
266
|
+
[x: string]: any;
|
|
267
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
268
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
269
|
+
[x: string]: any;
|
|
270
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
271
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
248
272
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
249
273
|
/**
|
|
250
274
|
* #getter
|
|
@@ -252,7 +276,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
252
276
|
readonly allTrackConfigurations: ({
|
|
253
277
|
[x: string]: any;
|
|
254
278
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
255
|
-
setSubschema(slotName: string, data: unknown):
|
|
279
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
280
|
+
[x: string]: any;
|
|
281
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
282
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
283
|
+
[x: string]: any;
|
|
284
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
285
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
256
286
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
257
287
|
/**
|
|
258
288
|
* #getter
|
|
@@ -260,7 +290,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
260
290
|
readonly allTrackConfigurationTrackIdSet: Map<any, {
|
|
261
291
|
[x: string]: any;
|
|
262
292
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
263
|
-
setSubschema(slotName: string, data: unknown):
|
|
293
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
294
|
+
[x: string]: any;
|
|
295
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
296
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
297
|
+
[x: string]: any;
|
|
298
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
299
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
264
300
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>>;
|
|
265
301
|
} & {
|
|
266
302
|
/**
|
|
@@ -270,7 +306,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
270
306
|
readonly favoriteTracks: ({
|
|
271
307
|
[x: string]: any;
|
|
272
308
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
273
|
-
setSubschema(slotName: string, data: unknown):
|
|
309
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
310
|
+
[x: string]: any;
|
|
311
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
312
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
313
|
+
[x: string]: any;
|
|
314
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
315
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
274
316
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
275
317
|
/**
|
|
276
318
|
* #getter
|
|
@@ -279,7 +321,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
279
321
|
readonly recentlyUsedTracks: ({
|
|
280
322
|
[x: string]: any;
|
|
281
323
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
282
|
-
setSubschema(slotName: string, data: unknown):
|
|
324
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
325
|
+
[x: string]: any;
|
|
326
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
327
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
328
|
+
[x: string]: any;
|
|
329
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
330
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
283
331
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
284
332
|
} & {
|
|
285
333
|
/**
|
|
@@ -290,7 +338,13 @@ export default function stateTreeFactory(pluginManager: PluginManager): import("
|
|
|
290
338
|
tracks: ({
|
|
291
339
|
[x: string]: any;
|
|
292
340
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
293
|
-
setSubschema(slotName: string, data: unknown):
|
|
341
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
342
|
+
[x: string]: any;
|
|
343
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
344
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
345
|
+
[x: string]: any;
|
|
346
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
347
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
294
348
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[];
|
|
295
349
|
noCategories: boolean;
|
|
296
350
|
menuItems: never[];
|
package/esm/index.d.ts
CHANGED
|
@@ -14,9 +14,7 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
14
14
|
};
|
|
15
15
|
assemblyNames: {
|
|
16
16
|
type: string;
|
|
17
|
-
defaultValue: never[];
|
|
18
|
-
* #action
|
|
19
|
-
*/
|
|
17
|
+
defaultValue: never[];
|
|
20
18
|
description: string;
|
|
21
19
|
};
|
|
22
20
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
@@ -34,9 +32,7 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
34
32
|
description: string;
|
|
35
33
|
};
|
|
36
34
|
assemblyNames: {
|
|
37
|
-
type: string;
|
|
38
|
-
* #property
|
|
39
|
-
*/
|
|
35
|
+
type: string;
|
|
40
36
|
defaultValue: never[];
|
|
41
37
|
description: string;
|
|
42
38
|
};
|
|
@@ -57,28 +53,12 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
|
|
|
57
53
|
*/
|
|
58
54
|
type: import("mobx-state-tree").ISimpleType<"UCSCTrackHubConnection">;
|
|
59
55
|
}, {
|
|
60
|
-
connect(_arg:
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
64
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
56
|
+
connect(_arg: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
65
57
|
} & {
|
|
66
58
|
afterAttach(): void;
|
|
67
|
-
addTrackConf(trackConf:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
71
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): any;
|
|
72
|
-
addTrackConfs(trackConfs: ({
|
|
73
|
-
[x: string]: any;
|
|
74
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
75
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
76
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[]): any[];
|
|
77
|
-
setTrackConfs(trackConfs: ({
|
|
78
|
-
[x: string]: any;
|
|
79
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
80
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
81
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>)[]): import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>>;
|
|
59
|
+
addTrackConf(trackConf: import("@jbrowse/core/configuration").AnyConfigurationModel): any;
|
|
60
|
+
addTrackConfs(trackConfs: import("@jbrowse/core/configuration").AnyConfigurationModel[]): any[];
|
|
61
|
+
setTrackConfs(trackConfs: import("@jbrowse/core/configuration").AnyConfigurationModel[]): import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>>;
|
|
82
62
|
clear(): void;
|
|
83
63
|
} & {
|
|
84
64
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-data-management",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"distModule": "esm/index.js",
|
|
61
61
|
"srcModule": "src/index.ts",
|
|
62
62
|
"module": "esm/index.js",
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "1ec66736ce048a1637f52b7a7ef2eb02d956b771"
|
|
64
64
|
}
|