higlass 1.13.1 → 1.13.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.
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import React from 'react';
2
3
  import { findDOMNode } from 'react-dom';
3
4
  import scrollIntoView from 'dom-scroll-into-view';
@@ -11,6 +11,7 @@ class CustomTrackDialog extends React.PureComponent {
11
11
  const childrenWithProp = [];
12
12
  this.props.children.forEach((Child, i) => {
13
13
  const key = `customTrackDialog_${i}`;
14
+ // eslint-disable-next-line react/jsx-props-no-spreading
14
15
  childrenWithProp.push(<Child key={key} {...this.props.bodyProps[i]} />);
15
16
  });
16
17
 
@@ -33,6 +34,9 @@ CustomTrackDialog.defaultProps = {};
33
34
 
34
35
  CustomTrackDialog.propTypes = {
35
36
  onCancel: PropTypes.func.isRequired,
37
+ title: PropTypes.string,
38
+ bodyProps: PropTypes.array,
39
+ children: PropTypes.array,
36
40
  };
37
41
 
38
42
  export default CustomTrackDialog;
@@ -856,6 +856,7 @@ GenomePositionSearchBox.propTypes = {
856
856
  autocompleteServer: PropTypes.string,
857
857
  chromInfoId: PropTypes.string,
858
858
  chromInfoServer: PropTypes.string,
859
+ chromInfoPath: PropTypes.string,
859
860
  hideAvailableAssemblies: PropTypes.bool,
860
861
  isFocused: PropTypes.bool,
861
862
  pubSub: PropTypes.object,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import PropTypes from 'prop-types';
2
3
  import React from 'react';
3
4
  import { arrayMove } from 'react-sortable-hoc';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import React from 'react';
2
3
  import { SortableContainer } from 'react-sortable-hoc';
3
4
 
@@ -2388,6 +2388,8 @@ TiledPlot.propTypes = {
2388
2388
  canvasElement: PropTypes.object,
2389
2389
  chooseTrackHandler: PropTypes.func,
2390
2390
  chromInfoPath: PropTypes.string,
2391
+ customDialog: PropTypes.array,
2392
+ closeCustomDialog: PropTypes.func,
2391
2393
  disableTrackMenu: PropTypes.bool,
2392
2394
  dragging: PropTypes.bool,
2393
2395
  draggingHappening: PropTypes.bool,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import React from 'react';
2
3
 
3
4
  import { toVoid } from '../utils';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import React from 'react';
2
3
 
3
4
  import { toVoid } from '../utils';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react/jsx-props-no-spreading */
1
2
  import React from 'react';
2
3
 
3
4
  import { toVoid } from '../utils';
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import { select } from 'd3-selection';
3
4
  import classes from '../styles/ViewHeader.module.scss';
4
5
 
@@ -397,3 +398,8 @@ export function SearchIcon({ theStyle, onClick }) {
397
398
  </svg>
398
399
  );
399
400
  }
401
+
402
+ SearchIcon.propTypes = {
403
+ theStyle: PropTypes.string,
404
+ onClick: PropTypes.func,
405
+ };
@@ -52,7 +52,7 @@ fetchTilesPool.run(function(params, done) {
52
52
  }, [workerPath]);
53
53
  */
54
54
 
55
- const sessionId = slugid.nice();
55
+ const sessionId = import.meta.env.DEV ? 'dev' : slugid.nice();
56
56
  export let requestsInFlight = 0; // eslint-disable-line import/no-mutable-exports
57
57
  export let authHeader = null; // eslint-disable-line import/no-mutable-exports
58
58