@jbrowse/plugin-linear-comparative-view 3.5.0 → 3.5.1

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.
@@ -192,6 +192,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
192
192
  readonly renderDelay: number;
193
193
  readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
194
194
  readonly selectedFeatureId: string | undefined;
195
+ copyInfoToClipboard(feature: Feature): void;
195
196
  } & {
196
197
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
197
198
  readonly featureUnderMouse: Feature | undefined;
@@ -234,12 +235,12 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
234
235
  updateColorTagMap(uniqueTag: string[]): void;
235
236
  setFeatureUnderMouse(feat?: Feature): void;
236
237
  selectFeature(feature: Feature): void;
237
- copyFeatureToClipboard(feature: Feature): void;
238
238
  setConfig(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
239
239
  setFilterBy(filter: import("@jbrowse/plugin-alignments/src/shared/types").FilterBy): void;
240
240
  setJexlFilters(filters: string[]): void;
241
241
  setHideSmallIndels(arg: boolean): void;
242
242
  } & {
243
+ copyFeatureToClipboard(feature: Feature): void;
243
244
  readonly rendererConfig: {
244
245
  [x: string]: any;
245
246
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
@@ -259,17 +260,13 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
259
260
  readonly filters: import("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain").default;
260
261
  } & {
261
262
  readonly rendererTypeName: string;
262
- contextMenuItems(): ({
263
+ contextMenuItems(): {
263
264
  label: string;
264
265
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
265
266
  muiName: string;
266
267
  };
267
268
  onClick: () => void;
268
- } | {
269
- label: string;
270
- icon: typeof import("@jbrowse/core/ui/Icons").ContentCopy;
271
- onClick: () => void;
272
- })[];
269
+ }[];
273
270
  readonly DisplayBlurb: ({ model, }: {
274
271
  model: {
275
272
  sortedBy?: import("@jbrowse/plugin-alignments/src/shared/types").SortedBy;
@@ -125,11 +125,11 @@ async function renderBlockEffect(props) {
125
125
  return;
126
126
  }
127
127
  const { rpcManager, renderProps } = props;
128
- const { adapterConfig, level } = renderProps;
128
+ const { sessionId, adapterConfig, level } = renderProps;
129
129
  const view = renderProps.view.views[level];
130
130
  const features = (await rpcManager.call('getFeats', 'CoreGetFeatures', {
131
131
  regions: view.staticBlocks.contentBlocks,
132
- sessionId: 'getFeats',
132
+ sessionId,
133
133
  adapterConfig,
134
134
  }));
135
135
  return {
@@ -18,7 +18,7 @@ const useStyles = (0, mui_1.makeStyles)()(() => ({
18
18
  }));
19
19
  const HeaderSearchBoxes = (0, mobx_react_1.observer)(function ({ view, }) {
20
20
  const { classes } = useStyles();
21
- const { assemblyNames, coarseTotalBp } = view;
22
- return ((0, jsx_runtime_1.jsxs)("span", { className: classes.searchBox, children: [(0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SearchBox, { model: view, showHelp: false }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyNames.join(','), " ", (0, util_1.getBpDisplayStr)(coarseTotalBp)] })] }));
21
+ const { assemblyDisplayNames, coarseTotalBp } = view;
22
+ return ((0, jsx_runtime_1.jsxs)("span", { className: classes.searchBox, children: [(0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SearchBox, { model: view, showHelp: false }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyDisplayNames.join(','), " ", (0, util_1.getBpDisplayStr)(coarseTotalBp)] })] }));
23
23
  });
24
24
  exports.default = HeaderSearchBoxes;
@@ -77,6 +77,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
77
77
  readonly width: number;
78
78
  readonly interRegionPaddingWidth: number;
79
79
  readonly assemblyNames: string[];
80
+ readonly assemblyDisplayNames: string[];
80
81
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
81
82
  readonly stickyViewHeaders: boolean | undefined;
82
83
  readonly rubberbandTop: number;
@@ -393,6 +394,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
393
394
  readonly width: number;
394
395
  readonly interRegionPaddingWidth: number;
395
396
  readonly assemblyNames: string[];
397
+ readonly assemblyDisplayNames: string[];
396
398
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
397
399
  readonly stickyViewHeaders: boolean | undefined;
398
400
  readonly rubberbandTop: number;
@@ -77,6 +77,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
77
77
  readonly width: number;
78
78
  readonly interRegionPaddingWidth: number;
79
79
  readonly assemblyNames: string[];
80
+ readonly assemblyDisplayNames: string[];
80
81
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
81
82
  readonly stickyViewHeaders: boolean | undefined;
82
83
  readonly rubberbandTop: number;
@@ -462,6 +463,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
462
463
  readonly width: number;
463
464
  readonly interRegionPaddingWidth: number;
464
465
  readonly assemblyNames: string[];
466
+ readonly assemblyDisplayNames: string[];
465
467
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
466
468
  readonly stickyViewHeaders: boolean | undefined;
467
469
  readonly rubberbandTop: number;
@@ -192,6 +192,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
192
192
  readonly renderDelay: number;
193
193
  readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
194
194
  readonly selectedFeatureId: string | undefined;
195
+ copyInfoToClipboard(feature: Feature): void;
195
196
  } & {
196
197
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
197
198
  readonly featureUnderMouse: Feature | undefined;
@@ -234,12 +235,12 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
234
235
  updateColorTagMap(uniqueTag: string[]): void;
235
236
  setFeatureUnderMouse(feat?: Feature): void;
236
237
  selectFeature(feature: Feature): void;
237
- copyFeatureToClipboard(feature: Feature): void;
238
238
  setConfig(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
239
239
  setFilterBy(filter: import("@jbrowse/plugin-alignments/src/shared/types").FilterBy): void;
240
240
  setJexlFilters(filters: string[]): void;
241
241
  setHideSmallIndels(arg: boolean): void;
242
242
  } & {
243
+ copyFeatureToClipboard(feature: Feature): void;
243
244
  readonly rendererConfig: {
244
245
  [x: string]: any;
245
246
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
@@ -259,17 +260,13 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
259
260
  readonly filters: import("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain").default;
260
261
  } & {
261
262
  readonly rendererTypeName: string;
262
- contextMenuItems(): ({
263
+ contextMenuItems(): {
263
264
  label: string;
264
265
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
265
266
  muiName: string;
266
267
  };
267
268
  onClick: () => void;
268
- } | {
269
- label: string;
270
- icon: typeof import("@jbrowse/core/ui/Icons").ContentCopy;
271
- onClick: () => void;
272
- })[];
269
+ }[];
273
270
  readonly DisplayBlurb: ({ model, }: {
274
271
  model: {
275
272
  sortedBy?: import("@jbrowse/plugin-alignments/src/shared/types").SortedBy;
@@ -123,11 +123,11 @@ async function renderBlockEffect(props) {
123
123
  return;
124
124
  }
125
125
  const { rpcManager, renderProps } = props;
126
- const { adapterConfig, level } = renderProps;
126
+ const { sessionId, adapterConfig, level } = renderProps;
127
127
  const view = renderProps.view.views[level];
128
128
  const features = (await rpcManager.call('getFeats', 'CoreGetFeatures', {
129
129
  regions: view.staticBlocks.contentBlocks,
130
- sessionId: 'getFeats',
130
+ sessionId,
131
131
  adapterConfig,
132
132
  }));
133
133
  return {
@@ -16,7 +16,7 @@ const useStyles = makeStyles()(() => ({
16
16
  }));
17
17
  const HeaderSearchBoxes = observer(function ({ view, }) {
18
18
  const { classes } = useStyles();
19
- const { assemblyNames, coarseTotalBp } = view;
20
- return (_jsxs("span", { className: classes.searchBox, children: [_jsx(SearchBox, { model: view, showHelp: false }), _jsxs(Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyNames.join(','), " ", getBpDisplayStr(coarseTotalBp)] })] }));
19
+ const { assemblyDisplayNames, coarseTotalBp } = view;
20
+ return (_jsxs("span", { className: classes.searchBox, children: [_jsx(SearchBox, { model: view, showHelp: false }), _jsxs(Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyDisplayNames.join(','), " ", getBpDisplayStr(coarseTotalBp)] })] }));
21
21
  });
22
22
  export default HeaderSearchBoxes;
@@ -77,6 +77,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
77
77
  readonly width: number;
78
78
  readonly interRegionPaddingWidth: number;
79
79
  readonly assemblyNames: string[];
80
+ readonly assemblyDisplayNames: string[];
80
81
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
81
82
  readonly stickyViewHeaders: boolean | undefined;
82
83
  readonly rubberbandTop: number;
@@ -393,6 +394,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
393
394
  readonly width: number;
394
395
  readonly interRegionPaddingWidth: number;
395
396
  readonly assemblyNames: string[];
397
+ readonly assemblyDisplayNames: string[];
396
398
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
397
399
  readonly stickyViewHeaders: boolean | undefined;
398
400
  readonly rubberbandTop: number;
@@ -77,6 +77,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
77
77
  readonly width: number;
78
78
  readonly interRegionPaddingWidth: number;
79
79
  readonly assemblyNames: string[];
80
+ readonly assemblyDisplayNames: string[];
80
81
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
81
82
  readonly stickyViewHeaders: boolean | undefined;
82
83
  readonly rubberbandTop: number;
@@ -462,6 +463,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
462
463
  readonly width: number;
463
464
  readonly interRegionPaddingWidth: number;
464
465
  readonly assemblyNames: string[];
466
+ readonly assemblyDisplayNames: string[];
465
467
  readonly isTopLevelView: import("@jbrowse/core/util").AbstractViewModel | undefined;
466
468
  readonly stickyViewHeaders: boolean | undefined;
467
469
  readonly rubberbandTop: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-linear-comparative-view",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "JBrowse 2 linear comparative view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -36,9 +36,9 @@
36
36
  "clean": "rimraf dist esm *.tsbuildinfo"
37
37
  },
38
38
  "dependencies": {
39
- "@jbrowse/core": "^3.5.0",
40
- "@jbrowse/plugin-alignments": "^3.5.0",
41
- "@jbrowse/plugin-linear-genome-view": "^3.5.0",
39
+ "@jbrowse/core": "^3.5.1",
40
+ "@jbrowse/plugin-alignments": "^3.5.1",
41
+ "@jbrowse/plugin-linear-genome-view": "^3.5.1",
42
42
  "@mui/icons-material": "^7.0.0",
43
43
  "@mui/material": "^7.0.0",
44
44
  "copy-to-clipboard": "^3.3.1",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "8a8aa0aab2229dece106a5715a767e649e2fe92b"
62
+ "gitHead": "cb8859da9d838ad2594964777c5c54f385d98f5e"
63
63
  }