@jbrowse/plugin-data-management 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.
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration';
2
3
  declare const AssemblyEditor: ({ assembly, }: {
3
- assembly: any;
4
+ assembly?: ({
5
+ [x: string]: any;
6
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
7
+ setSubschema(slotName: string, data: unknown): any;
8
+ } & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
4
9
  }) => React.JSX.Element;
5
10
  export default AssemblyEditor;
@@ -6,8 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
7
  const mobx_react_1 = require("mobx-react");
8
8
  const plugin_config_1 = require("@jbrowse/plugin-config");
9
- const AssemblyEditor = (0, mobx_react_1.observer)(({ assembly, }) => {
10
- return (react_1.default.createElement("div", { style: { maxHeight: 600, overflow: 'auto' } },
11
- react_1.default.createElement(plugin_config_1.ConfigurationEditor, { model: { target: assembly } })));
9
+ const mui_1 = require("tss-react/mui");
10
+ const useStyles = (0, mui_1.makeStyles)()({
11
+ container: {
12
+ overflow: 'auto',
13
+ maxHeight: 600,
14
+ },
15
+ });
16
+ const AssemblyEditor = (0, mobx_react_1.observer)(function ({ assembly, }) {
17
+ const { classes } = useStyles();
18
+ return (react_1.default.createElement("div", { className: classes.container }, assembly ? (react_1.default.createElement(plugin_config_1.ConfigurationEditor, { model: { target: assembly } })) : (react_1.default.createElement("div", null, "No assembly"))));
12
19
  });
13
20
  exports.default = AssemblyEditor;
@@ -12,7 +12,7 @@ export declare function generateHierarchy({ model, trackConfs, extra, }: {
12
12
  filterText: string;
13
13
  activeSortTrackNames: boolean;
14
14
  activeSortCategories: boolean;
15
- collapsed: Map<string, boolean>;
15
+ collapsed: Map<string | number, boolean>;
16
16
  view?: {
17
17
  tracks: {
18
18
  configuration: AnyConfigurationModel;
@@ -43,6 +43,12 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
43
43
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
44
44
  type: import("mobx-state-tree").ISimpleType<"UCSCTrackHubConnection">;
45
45
  }, {
46
+ connect(_arg: {
47
+ [x: string]: any;
48
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
49
+ setSubschema(slotName: string, data: unknown): any;
50
+ } & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
51
+ } & {
46
52
  afterAttach(): void;
47
53
  addTrackConf(trackConf: {
48
54
  [x: string]: any;
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration';
2
3
  declare const AssemblyEditor: ({ assembly, }: {
3
- assembly: any;
4
+ assembly?: ({
5
+ [x: string]: any;
6
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
7
+ setSubschema(slotName: string, data: unknown): any;
8
+ } & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
4
9
  }) => React.JSX.Element;
5
10
  export default AssemblyEditor;
@@ -1,8 +1,15 @@
1
1
  import React from 'react';
2
2
  import { observer } from 'mobx-react';
3
3
  import { ConfigurationEditor } from '@jbrowse/plugin-config';
4
- const AssemblyEditor = observer(({ assembly, }) => {
5
- return (React.createElement("div", { style: { maxHeight: 600, overflow: 'auto' } },
6
- React.createElement(ConfigurationEditor, { model: { target: assembly } })));
4
+ import { makeStyles } from 'tss-react/mui';
5
+ const useStyles = makeStyles()({
6
+ container: {
7
+ overflow: 'auto',
8
+ maxHeight: 600,
9
+ },
10
+ });
11
+ const AssemblyEditor = observer(function ({ assembly, }) {
12
+ const { classes } = useStyles();
13
+ return (React.createElement("div", { className: classes.container }, assembly ? (React.createElement(ConfigurationEditor, { model: { target: assembly } })) : (React.createElement("div", null, "No assembly"))));
7
14
  });
8
15
  export default AssemblyEditor;
@@ -12,7 +12,7 @@ export declare function generateHierarchy({ model, trackConfs, extra, }: {
12
12
  filterText: string;
13
13
  activeSortTrackNames: boolean;
14
14
  activeSortCategories: boolean;
15
- collapsed: Map<string, boolean>;
15
+ collapsed: Map<string | number, boolean>;
16
16
  view?: {
17
17
  tracks: {
18
18
  configuration: AnyConfigurationModel;
@@ -43,6 +43,12 @@ export default function UCSCTrackHubConnection(pluginManager: PluginManager): im
43
43
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
44
44
  type: import("mobx-state-tree").ISimpleType<"UCSCTrackHubConnection">;
45
45
  }, {
46
+ connect(_arg: {
47
+ [x: string]: any;
48
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
49
+ setSubschema(slotName: string, data: unknown): any;
50
+ } & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>): void;
51
+ } & {
46
52
  afterAttach(): void;
47
53
  addTrackConf(trackConf: {
48
54
  [x: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-data-management",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "description": "JBrowse 2 linear genome view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -61,5 +61,5 @@
61
61
  "distModule": "esm/index.js",
62
62
  "srcModule": "src/index.ts",
63
63
  "module": "esm/index.js",
64
- "gitHead": "2cda1611eebd12517f2a3cfc1b612face27005d4"
64
+ "gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
65
65
  }