@jbrowse/product-core 2.7.1 → 2.7.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.
@@ -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
- * #getter
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: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.identifier, (0, nanoid_1.nanoid)()),
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
- * #action
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
  } & {
@@ -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
  } & {
@@ -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
- * #getter
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: types.optional(types.identifier, nanoid()),
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
- * #action
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
  } & {
@@ -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
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/product-core",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
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.7.1",
46
+ "@jbrowse/core": "^2.7.2",
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": "2cda1611eebd12517f2a3cfc1b612face27005d4"
66
+ "gitHead": "9052b295f2d322e729254457ed9fe2231fb22cce"
67
67
  }