@jbrowse/plugin-linear-genome-view 4.1.14 → 4.1.15
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/esm/BaseLinearDisplay/components/LoadingOverlay.js +1 -1
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +2 -2
- package/esm/BaseLinearDisplay/model.d.ts +1 -0
- package/esm/BaseLinearDisplay/model.js +8 -0
- package/esm/LinearBareDisplay/model.d.ts +1 -0
- package/esm/LinearBasicDisplay/model.d.ts +1 -0
- package/esm/LinearFeatureDisplay/model.d.ts +1 -0
- package/esm/index.d.ts +2 -1
- package/package.json +6 -6
|
@@ -45,5 +45,5 @@ const useStyles = makeStyles()({
|
|
|
45
45
|
export default function LoadingOverlay({ statusMessage, children, height, }) {
|
|
46
46
|
const { classes } = useStyles();
|
|
47
47
|
const isLoading = !!statusMessage;
|
|
48
|
-
return (_jsxs("div", { className: classes.container, style: height ? { height } : undefined, children: [children, _jsx("span", { className: cx(classes.overlay, isLoading && classes.visible), "data-testid": isLoading ? 'loading-overlay' : undefined, children: _jsx("span", { className: classes.dots, children: statusMessage || 'Loading' }) })] }));
|
|
48
|
+
return (_jsxs("div", { className: classes.container, style: height ? { minHeight: height } : undefined, children: [children, _jsx("span", { className: cx(classes.overlay, isLoading && classes.visible), "data-testid": isLoading ? 'loading-overlay' : undefined, children: _jsx("span", { className: classes.dots, children: statusMessage || 'Loading' }) })] }));
|
|
49
49
|
}
|
|
@@ -1088,6 +1088,7 @@ export declare const BaseLinearDisplay: import("@jbrowse/mobx-state-tree").IMode
|
|
|
1088
1088
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1089
1089
|
onMouseLeave(_: unknown): void;
|
|
1090
1090
|
onContextMenu(_: unknown): void;
|
|
1091
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1091
1092
|
};
|
|
1092
1093
|
renderProps(): any;
|
|
1093
1094
|
} & {
|
|
@@ -361,6 +361,14 @@ function stateModelFactory() {
|
|
|
361
361
|
self.setContextMenuFeature(undefined);
|
|
362
362
|
self.clearFeatureSelection();
|
|
363
363
|
},
|
|
364
|
+
onFeatureClick(_, featureId) {
|
|
365
|
+
if (featureId) {
|
|
366
|
+
self.selectFeatureById(featureId).catch((e) => {
|
|
367
|
+
console.error(e);
|
|
368
|
+
getSession(self).notifyError(`${e}`, e);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
},
|
|
364
372
|
};
|
|
365
373
|
},
|
|
366
374
|
renderProps() {
|
|
@@ -1083,6 +1083,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1083
1083
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1084
1084
|
onMouseLeave(_: unknown): void;
|
|
1085
1085
|
onContextMenu(_: unknown): void;
|
|
1086
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1086
1087
|
};
|
|
1087
1088
|
renderProps(): any;
|
|
1088
1089
|
} & {
|
|
@@ -1096,6 +1096,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1096
1096
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1097
1097
|
onMouseLeave(_: unknown): void;
|
|
1098
1098
|
onContextMenu(_: unknown): void;
|
|
1099
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1099
1100
|
};
|
|
1100
1101
|
renderProps(): any;
|
|
1101
1102
|
} & {
|
|
@@ -1092,6 +1092,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1092
1092
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1093
1093
|
onMouseLeave(_: unknown): void;
|
|
1094
1094
|
onContextMenu(_: unknown): void;
|
|
1095
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1095
1096
|
};
|
|
1096
1097
|
renderProps(): any;
|
|
1097
1098
|
} & {
|
package/esm/index.d.ts
CHANGED
|
@@ -1088,6 +1088,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
1088
1088
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1089
1089
|
onMouseLeave(_: unknown): void;
|
|
1090
1090
|
onContextMenu(_: unknown): void;
|
|
1091
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1091
1092
|
};
|
|
1092
1093
|
renderProps(): any;
|
|
1093
1094
|
} & {
|
|
@@ -1234,7 +1235,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
1234
1235
|
trackLabels: {
|
|
1235
1236
|
type: string;
|
|
1236
1237
|
defaultValue: string;
|
|
1237
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
1238
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"offset" | "hidden" | "overlapping">;
|
|
1238
1239
|
};
|
|
1239
1240
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
1240
1241
|
install(pluginManager: PluginManager): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 linear genome view",
|
|
6
6
|
"keywords": [
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"esm"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@jbrowse/mobx-state-tree": "^5.
|
|
25
|
-
"@mui/icons-material": "^7.3.
|
|
26
|
-
"@mui/material": "^7.3.
|
|
24
|
+
"@jbrowse/mobx-state-tree": "^5.6.0",
|
|
25
|
+
"@mui/icons-material": "^7.3.9",
|
|
26
|
+
"@mui/material": "^7.3.9",
|
|
27
27
|
"@types/file-saver-es": "^2.0.3",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|
|
29
29
|
"file-saver-es": "^2.0.5",
|
|
30
30
|
"mobx": "^6.15.0",
|
|
31
31
|
"mobx-react": "^9.2.1",
|
|
32
|
-
"@jbrowse/
|
|
33
|
-
"@jbrowse/core": "^4.1.
|
|
32
|
+
"@jbrowse/core": "^4.1.15",
|
|
33
|
+
"@jbrowse/product-core": "^4.1.15"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18.0.0",
|