@jbrowse/product-core 2.7.1 → 2.8.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/Session/BaseSession.d.ts +13 -11
- package/dist/Session/BaseSession.js +15 -2
- package/dist/Session/Connections.d.ts +18 -0
- package/dist/Session/MultipleViews.d.ts +3 -3
- package/dist/Session/SessionTracks.d.ts +2 -0
- package/dist/Session/Tracks.d.ts +2 -0
- package/dist/ui/AboutDialogContents.js +14 -1
- package/esm/Session/BaseSession.d.ts +13 -11
- package/esm/Session/BaseSession.js +15 -2
- package/esm/Session/Connections.d.ts +18 -0
- package/esm/Session/MultipleViews.d.ts +3 -3
- package/esm/Session/SessionTracks.d.ts +2 -0
- package/esm/Session/Tracks.d.ts +2 -0
- package/esm/ui/AboutDialogContents.js +14 -1
- package/package.json +3 -3
|
@@ -19,6 +19,13 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
19
19
|
* is.
|
|
20
20
|
*/
|
|
21
21
|
selection: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* #volatile
|
|
24
|
+
* this is the globally "hovered" object. can be anything. code that
|
|
25
|
+
* wants to deal with this should examine it to see what kind of thing it
|
|
26
|
+
* is.
|
|
27
|
+
*/
|
|
28
|
+
hovered: unknown;
|
|
22
29
|
} & {
|
|
23
30
|
readonly root: import("mobx-state-tree").TypeOrStateTreeNodeToStateTreeNode<ROOT_MODEL_TYPE>;
|
|
24
31
|
} & {
|
|
@@ -52,11 +59,6 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
52
59
|
setSubschema(slotName: string, data: unknown): any;
|
|
53
60
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
54
61
|
aliases: {
|
|
55
|
-
/**
|
|
56
|
-
* #stateModel BaseSessionModel
|
|
57
|
-
* base session shared by **all** JBrowse products. Be careful what you include
|
|
58
|
-
* here, everything will use it.
|
|
59
|
-
*/
|
|
60
62
|
type: string;
|
|
61
63
|
defaultValue: never[];
|
|
62
64
|
description: string;
|
|
@@ -71,12 +73,8 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
71
73
|
adapter: import("mobx-state-tree").IAnyModelType;
|
|
72
74
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
73
75
|
cytobands: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
74
|
-
adapter: import("mobx-state-tree").IAnyModelType;
|
|
75
|
-
|
|
76
|
-
*/
|
|
77
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>; /**
|
|
78
|
-
* #getter
|
|
79
|
-
*/
|
|
76
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
77
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
80
78
|
displayName: {
|
|
81
79
|
type: string;
|
|
82
80
|
defaultValue: string;
|
|
@@ -95,6 +93,10 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
95
93
|
* clears the global selection
|
|
96
94
|
*/
|
|
97
95
|
clearSelection(): void;
|
|
96
|
+
/**
|
|
97
|
+
* #action
|
|
98
|
+
*/
|
|
99
|
+
setHovered(thing: unknown): void;
|
|
98
100
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
99
101
|
/** Session mixin MST type for the most basic session */
|
|
100
102
|
export type BaseSessionType = ReturnType<typeof BaseSessionModel>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isSession = exports.isBaseSession = exports.BaseSessionModel = void 0;
|
|
4
|
-
const nanoid_1 = require("@jbrowse/core/util/nanoid");
|
|
5
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
+
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel BaseSessionModel
|
|
8
8
|
* base session shared by **all** JBrowse products. Be careful what you include
|
|
@@ -14,7 +14,7 @@ function BaseSessionModel(_pluginManager) {
|
|
|
14
14
|
/**
|
|
15
15
|
* #property
|
|
16
16
|
*/
|
|
17
|
-
id:
|
|
17
|
+
id: mst_1.ElementId,
|
|
18
18
|
/**
|
|
19
19
|
* #property
|
|
20
20
|
*/
|
|
@@ -32,6 +32,13 @@ function BaseSessionModel(_pluginManager) {
|
|
|
32
32
|
* is.
|
|
33
33
|
*/
|
|
34
34
|
selection: undefined,
|
|
35
|
+
/**
|
|
36
|
+
* #volatile
|
|
37
|
+
* this is the globally "hovered" object. can be anything. code that
|
|
38
|
+
* wants to deal with this should examine it to see what kind of thing it
|
|
39
|
+
* is.
|
|
40
|
+
*/
|
|
41
|
+
hovered: undefined,
|
|
35
42
|
}))
|
|
36
43
|
.views(self => ({
|
|
37
44
|
get root() {
|
|
@@ -94,6 +101,12 @@ function BaseSessionModel(_pluginManager) {
|
|
|
94
101
|
clearSelection() {
|
|
95
102
|
self.selection = undefined;
|
|
96
103
|
},
|
|
104
|
+
/**
|
|
105
|
+
* #action
|
|
106
|
+
*/
|
|
107
|
+
setHovered(thing) {
|
|
108
|
+
self.hovered = thing;
|
|
109
|
+
},
|
|
97
110
|
}));
|
|
98
111
|
}
|
|
99
112
|
exports.BaseSessionModel = BaseSessionModel;
|
|
@@ -26,6 +26,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
26
26
|
};
|
|
27
27
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
28
28
|
}, {
|
|
29
|
+
connect(_arg: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
32
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
33
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
34
|
+
} & {
|
|
29
35
|
afterAttach(): void;
|
|
30
36
|
addTrackConf(trackConf: {
|
|
31
37
|
[x: string]: any;
|
|
@@ -90,6 +96,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
90
96
|
};
|
|
91
97
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>>;
|
|
92
98
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
99
|
+
connect(_arg: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
102
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
103
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
104
|
+
} & {
|
|
93
105
|
afterAttach(): void;
|
|
94
106
|
addTrackConf(trackConf: {
|
|
95
107
|
[x: string]: any;
|
|
@@ -125,6 +137,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
125
137
|
};
|
|
126
138
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
127
139
|
}, {
|
|
140
|
+
connect(_arg: {
|
|
141
|
+
[x: string]: any;
|
|
142
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
143
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
144
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
145
|
+
} & {
|
|
128
146
|
afterAttach(): void;
|
|
129
147
|
addTrackConf(trackConf: {
|
|
130
148
|
[x: string]: any;
|
|
@@ -22,9 +22,8 @@ export declare function MultipleViewsSessionMixin(pluginManager: PluginManager):
|
|
|
22
22
|
*/
|
|
23
23
|
views: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
24
24
|
}, {
|
|
25
|
-
selection: unknown;
|
|
26
|
-
|
|
27
|
-
*/
|
|
25
|
+
selection: unknown;
|
|
26
|
+
hovered: unknown;
|
|
28
27
|
} & {
|
|
29
28
|
readonly root: {
|
|
30
29
|
jbrowse: any;
|
|
@@ -1782,6 +1781,7 @@ export declare function MultipleViewsSessionMixin(pluginManager: PluginManager):
|
|
|
1782
1781
|
} & {
|
|
1783
1782
|
setSelection(thing: unknown): void;
|
|
1784
1783
|
clearSelection(): void;
|
|
1784
|
+
setHovered(thing: unknown): void;
|
|
1785
1785
|
} & {
|
|
1786
1786
|
readonly visibleWidget: any;
|
|
1787
1787
|
} & {
|
|
@@ -15,6 +15,7 @@ export declare function SessionTracksManagerSessionMixin(pluginManager: PluginMa
|
|
|
15
15
|
sessionTracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
16
16
|
}, {
|
|
17
17
|
selection: unknown;
|
|
18
|
+
hovered: unknown;
|
|
18
19
|
} & {
|
|
19
20
|
readonly root: {
|
|
20
21
|
jbrowse: any;
|
|
@@ -1782,6 +1783,7 @@ export declare function SessionTracksManagerSessionMixin(pluginManager: PluginMa
|
|
|
1782
1783
|
} & {
|
|
1783
1784
|
setSelection(thing: unknown): void;
|
|
1784
1785
|
clearSelection(): void;
|
|
1786
|
+
setHovered(thing: unknown): void;
|
|
1785
1787
|
} & {
|
|
1786
1788
|
getReferring(object: IAnyStateTreeNode): import("./ReferenceManagement").ReferringNode[];
|
|
1787
1789
|
} & {
|
package/dist/Session/Tracks.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare function TracksManagerSessionMixin(pluginManager: PluginManager):
|
|
|
13
13
|
margin: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
14
14
|
}, {
|
|
15
15
|
selection: unknown;
|
|
16
|
+
hovered: unknown;
|
|
16
17
|
} & {
|
|
17
18
|
readonly root: {
|
|
18
19
|
jbrowse: any;
|
|
@@ -1764,6 +1765,7 @@ export declare function TracksManagerSessionMixin(pluginManager: PluginManager):
|
|
|
1764
1765
|
} & {
|
|
1765
1766
|
setSelection(thing: unknown): void;
|
|
1766
1767
|
clearSelection(): void;
|
|
1768
|
+
setHovered(thing: unknown): void;
|
|
1767
1769
|
} & {
|
|
1768
1770
|
getReferring(object: IAnyStateTreeNode): import("./ReferenceManagement").ReferringNode[];
|
|
1769
1771
|
} & {
|
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const react_1 = __importStar(require("react"));
|
|
30
|
+
const clone_1 = __importDefault(require("clone"));
|
|
30
31
|
const copy_to_clipboard_1 = __importDefault(require("copy-to-clipboard"));
|
|
31
32
|
const material_1 = require("@mui/material");
|
|
32
33
|
const mui_1 = require("tss-react/mui");
|
|
@@ -39,6 +40,17 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
39
40
|
minWidth: 800,
|
|
40
41
|
},
|
|
41
42
|
});
|
|
43
|
+
function removeAttr(obj, attr) {
|
|
44
|
+
for (const prop in obj) {
|
|
45
|
+
if (prop === attr) {
|
|
46
|
+
delete obj[prop];
|
|
47
|
+
}
|
|
48
|
+
else if (typeof obj[prop] === 'object') {
|
|
49
|
+
removeAttr(obj[prop], attr);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
42
54
|
function AboutContents({ config, }) {
|
|
43
55
|
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
44
56
|
const conf = (0, configuration_1.readConfObject)(config);
|
|
@@ -58,7 +70,8 @@ function AboutContents({ config, }) {
|
|
|
58
70
|
return (react_1.default.createElement("div", { className: classes.content },
|
|
59
71
|
react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: "Configuration" },
|
|
60
72
|
!hideUris ? (react_1.default.createElement(material_1.Button, { variant: "contained", style: { float: 'right' }, onClick: () => {
|
|
61
|
-
(0,
|
|
73
|
+
const snap = removeAttr((0, clone_1.default)(conf), 'baseUri');
|
|
74
|
+
(0, copy_to_clipboard_1.default)(JSON.stringify(snap, null, 2));
|
|
62
75
|
setCopied(true);
|
|
63
76
|
setTimeout(() => setCopied(false), 1000);
|
|
64
77
|
} }, copied ? 'Copied to clipboard!' : 'Copy config')) : null,
|
|
@@ -19,6 +19,13 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
19
19
|
* is.
|
|
20
20
|
*/
|
|
21
21
|
selection: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* #volatile
|
|
24
|
+
* this is the globally "hovered" object. can be anything. code that
|
|
25
|
+
* wants to deal with this should examine it to see what kind of thing it
|
|
26
|
+
* is.
|
|
27
|
+
*/
|
|
28
|
+
hovered: unknown;
|
|
22
29
|
} & {
|
|
23
30
|
readonly root: import("mobx-state-tree").TypeOrStateTreeNodeToStateTreeNode<ROOT_MODEL_TYPE>;
|
|
24
31
|
} & {
|
|
@@ -52,11 +59,6 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
52
59
|
setSubschema(slotName: string, data: unknown): any;
|
|
53
60
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
54
61
|
aliases: {
|
|
55
|
-
/**
|
|
56
|
-
* #stateModel BaseSessionModel
|
|
57
|
-
* base session shared by **all** JBrowse products. Be careful what you include
|
|
58
|
-
* here, everything will use it.
|
|
59
|
-
*/
|
|
60
62
|
type: string;
|
|
61
63
|
defaultValue: never[];
|
|
62
64
|
description: string;
|
|
@@ -71,12 +73,8 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
71
73
|
adapter: import("mobx-state-tree").IAnyModelType;
|
|
72
74
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
73
75
|
cytobands: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
74
|
-
adapter: import("mobx-state-tree").IAnyModelType;
|
|
75
|
-
|
|
76
|
-
*/
|
|
77
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>; /**
|
|
78
|
-
* #getter
|
|
79
|
-
*/
|
|
76
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
77
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
80
78
|
displayName: {
|
|
81
79
|
type: string;
|
|
82
80
|
defaultValue: string;
|
|
@@ -95,6 +93,10 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
|
|
|
95
93
|
* clears the global selection
|
|
96
94
|
*/
|
|
97
95
|
clearSelection(): void;
|
|
96
|
+
/**
|
|
97
|
+
* #action
|
|
98
|
+
*/
|
|
99
|
+
setHovered(thing: unknown): void;
|
|
98
100
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
99
101
|
/** Session mixin MST type for the most basic session */
|
|
100
102
|
export type BaseSessionType = ReturnType<typeof BaseSessionModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nanoid } from '@jbrowse/core/util/nanoid';
|
|
2
1
|
import { getParent, isStateTreeNode, types, } from 'mobx-state-tree';
|
|
2
|
+
import { ElementId } from '@jbrowse/core/util/types/mst';
|
|
3
3
|
/**
|
|
4
4
|
* #stateModel BaseSessionModel
|
|
5
5
|
* base session shared by **all** JBrowse products. Be careful what you include
|
|
@@ -11,7 +11,7 @@ export function BaseSessionModel(_pluginManager) {
|
|
|
11
11
|
/**
|
|
12
12
|
* #property
|
|
13
13
|
*/
|
|
14
|
-
id:
|
|
14
|
+
id: ElementId,
|
|
15
15
|
/**
|
|
16
16
|
* #property
|
|
17
17
|
*/
|
|
@@ -29,6 +29,13 @@ export function BaseSessionModel(_pluginManager) {
|
|
|
29
29
|
* is.
|
|
30
30
|
*/
|
|
31
31
|
selection: undefined,
|
|
32
|
+
/**
|
|
33
|
+
* #volatile
|
|
34
|
+
* this is the globally "hovered" object. can be anything. code that
|
|
35
|
+
* wants to deal with this should examine it to see what kind of thing it
|
|
36
|
+
* is.
|
|
37
|
+
*/
|
|
38
|
+
hovered: undefined,
|
|
32
39
|
}))
|
|
33
40
|
.views(self => ({
|
|
34
41
|
get root() {
|
|
@@ -91,6 +98,12 @@ export function BaseSessionModel(_pluginManager) {
|
|
|
91
98
|
clearSelection() {
|
|
92
99
|
self.selection = undefined;
|
|
93
100
|
},
|
|
101
|
+
/**
|
|
102
|
+
* #action
|
|
103
|
+
*/
|
|
104
|
+
setHovered(thing) {
|
|
105
|
+
self.hovered = thing;
|
|
106
|
+
},
|
|
94
107
|
}));
|
|
95
108
|
}
|
|
96
109
|
/** Type guard for BaseSession */
|
|
@@ -26,6 +26,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
26
26
|
};
|
|
27
27
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
28
28
|
}, {
|
|
29
|
+
connect(_arg: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
32
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
33
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
34
|
+
} & {
|
|
29
35
|
afterAttach(): void;
|
|
30
36
|
addTrackConf(trackConf: {
|
|
31
37
|
[x: string]: any;
|
|
@@ -90,6 +96,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
90
96
|
};
|
|
91
97
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>>;
|
|
92
98
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
99
|
+
connect(_arg: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
102
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
103
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
104
|
+
} & {
|
|
93
105
|
afterAttach(): void;
|
|
94
106
|
addTrackConf(trackConf: {
|
|
95
107
|
[x: string]: any;
|
|
@@ -125,6 +137,12 @@ export declare function ConnectionManagementSessionMixin(pluginManager: PluginMa
|
|
|
125
137
|
};
|
|
126
138
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
127
139
|
}, {
|
|
140
|
+
connect(_arg: {
|
|
141
|
+
[x: string]: any;
|
|
142
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
143
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
144
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
|
|
145
|
+
} & {
|
|
128
146
|
afterAttach(): void;
|
|
129
147
|
addTrackConf(trackConf: {
|
|
130
148
|
[x: string]: any;
|
|
@@ -22,9 +22,8 @@ export declare function MultipleViewsSessionMixin(pluginManager: PluginManager):
|
|
|
22
22
|
*/
|
|
23
23
|
views: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
24
24
|
}, {
|
|
25
|
-
selection: unknown;
|
|
26
|
-
|
|
27
|
-
*/
|
|
25
|
+
selection: unknown;
|
|
26
|
+
hovered: unknown;
|
|
28
27
|
} & {
|
|
29
28
|
readonly root: {
|
|
30
29
|
jbrowse: any;
|
|
@@ -1782,6 +1781,7 @@ export declare function MultipleViewsSessionMixin(pluginManager: PluginManager):
|
|
|
1782
1781
|
} & {
|
|
1783
1782
|
setSelection(thing: unknown): void;
|
|
1784
1783
|
clearSelection(): void;
|
|
1784
|
+
setHovered(thing: unknown): void;
|
|
1785
1785
|
} & {
|
|
1786
1786
|
readonly visibleWidget: any;
|
|
1787
1787
|
} & {
|
|
@@ -15,6 +15,7 @@ export declare function SessionTracksManagerSessionMixin(pluginManager: PluginMa
|
|
|
15
15
|
sessionTracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
16
16
|
}, {
|
|
17
17
|
selection: unknown;
|
|
18
|
+
hovered: unknown;
|
|
18
19
|
} & {
|
|
19
20
|
readonly root: {
|
|
20
21
|
jbrowse: any;
|
|
@@ -1782,6 +1783,7 @@ export declare function SessionTracksManagerSessionMixin(pluginManager: PluginMa
|
|
|
1782
1783
|
} & {
|
|
1783
1784
|
setSelection(thing: unknown): void;
|
|
1784
1785
|
clearSelection(): void;
|
|
1786
|
+
setHovered(thing: unknown): void;
|
|
1785
1787
|
} & {
|
|
1786
1788
|
getReferring(object: IAnyStateTreeNode): import("./ReferenceManagement").ReferringNode[];
|
|
1787
1789
|
} & {
|
package/esm/Session/Tracks.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare function TracksManagerSessionMixin(pluginManager: PluginManager):
|
|
|
13
13
|
margin: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
14
14
|
}, {
|
|
15
15
|
selection: unknown;
|
|
16
|
+
hovered: unknown;
|
|
16
17
|
} & {
|
|
17
18
|
readonly root: {
|
|
18
19
|
jbrowse: any;
|
|
@@ -1764,6 +1765,7 @@ export declare function TracksManagerSessionMixin(pluginManager: PluginManager):
|
|
|
1764
1765
|
} & {
|
|
1765
1766
|
setSelection(thing: unknown): void;
|
|
1766
1767
|
clearSelection(): void;
|
|
1768
|
+
setHovered(thing: unknown): void;
|
|
1767
1769
|
} & {
|
|
1768
1770
|
getReferring(object: IAnyStateTreeNode): import("./ReferenceManagement").ReferringNode[];
|
|
1769
1771
|
} & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
import clone from 'clone';
|
|
2
3
|
import copy from 'copy-to-clipboard';
|
|
3
4
|
import { Button } from '@mui/material';
|
|
4
5
|
import { makeStyles } from 'tss-react/mui';
|
|
@@ -11,6 +12,17 @@ const useStyles = makeStyles()({
|
|
|
11
12
|
minWidth: 800,
|
|
12
13
|
},
|
|
13
14
|
});
|
|
15
|
+
function removeAttr(obj, attr) {
|
|
16
|
+
for (const prop in obj) {
|
|
17
|
+
if (prop === attr) {
|
|
18
|
+
delete obj[prop];
|
|
19
|
+
}
|
|
20
|
+
else if (typeof obj[prop] === 'object') {
|
|
21
|
+
removeAttr(obj[prop], attr);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return obj;
|
|
25
|
+
}
|
|
14
26
|
export default function AboutContents({ config, }) {
|
|
15
27
|
const [copied, setCopied] = useState(false);
|
|
16
28
|
const conf = readConfObject(config);
|
|
@@ -30,7 +42,8 @@ export default function AboutContents({ config, }) {
|
|
|
30
42
|
return (React.createElement("div", { className: classes.content },
|
|
31
43
|
React.createElement(BaseCard, { title: "Configuration" },
|
|
32
44
|
!hideUris ? (React.createElement(Button, { variant: "contained", style: { float: 'right' }, onClick: () => {
|
|
33
|
-
|
|
45
|
+
const snap = removeAttr(clone(conf), 'baseUri');
|
|
46
|
+
copy(JSON.stringify(snap, null, 2));
|
|
34
47
|
setCopied(true);
|
|
35
48
|
setTimeout(() => setCopied(false), 1000);
|
|
36
49
|
} }, copied ? 'Copied to clipboard!' : 'Copy config')) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/product-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "JBrowse 2 code shared between products but not used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.16.3",
|
|
46
|
-
"@jbrowse/core": "^2.
|
|
46
|
+
"@jbrowse/core": "^2.8.0",
|
|
47
47
|
"@mui/icons-material": "^5.0.0",
|
|
48
48
|
"@mui/material": "^5.10.17",
|
|
49
49
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
|
|
67
67
|
}
|