@teselagen/ove 0.5.5 → 0.5.7

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.
Files changed (97) hide show
  1. package/html2canvas.esm--JN4fLQL.js +7891 -0
  2. package/html2canvas.esm-B7d7VJmQ.cjs +7891 -0
  3. package/index.cjs.js +5254 -9829
  4. package/index.es.js +5256 -9831
  5. package/index.umd.js +4832 -10266
  6. package/package.json +5 -5
  7. package/src/AlignmentView/AlignmentVisibilityTool.js +1 -1
  8. package/src/AlignmentView/Minimap.js +1 -1
  9. package/src/AlignmentView/index.js +3 -3
  10. package/src/AutoAnnotate.js +1 -1
  11. package/src/CircularView/Feature.js +1 -1
  12. package/src/CircularView/Labels/index.js +1 -1
  13. package/src/CircularView/Labels/relaxLabelAngles.js +1 -1
  14. package/src/CircularView/Part.js +1 -1
  15. package/src/CircularView/drawAnnotations.js +1 -1
  16. package/src/CircularView/index.js +5 -5
  17. package/src/CreateAnnotationsPage.js +1 -1
  18. package/src/CutsiteFilter/AdditionalCutsiteInfoDialog.js +1 -1
  19. package/src/CutsiteFilter/index.js +2 -2
  20. package/src/DigestTool/AddLaddersDialog.js +1 -1
  21. package/src/DigestTool/DigestTool.js +1 -1
  22. package/src/DigestTool/Ladder.js +2 -2
  23. package/src/Editor/FillWindow.js +1 -1
  24. package/src/Editor/index.js +2 -2
  25. package/src/EnzymeViewer/index.js +1 -1
  26. package/src/GlobalDialogUtils.js +1 -1
  27. package/src/LinearView/index.js +1 -1
  28. package/src/MenuBar/index.js +1 -1
  29. package/src/PCRTool/PCRTool.js +1 -1
  30. package/src/Reflex/ReflexContainer.js +1 -1
  31. package/src/Reflex/ReflexElement.js +1 -1
  32. package/src/RowItem/Labels.js +1 -1
  33. package/src/RowItem/Sequence.js +1 -1
  34. package/src/RowItem/StackedAnnotations/PointedAnnotation.js +1 -1
  35. package/src/RowItem/StackedAnnotations/getStructuredBases.js +1 -1
  36. package/src/RowItem/StackedAnnotations/primerBases.js +5 -5
  37. package/src/RowItem/getXStartAndWidthOfRangeWrtRow.js +1 -1
  38. package/src/RowItem/index.js +2 -2
  39. package/src/RowView/estimateRowHeight.js +1 -1
  40. package/src/RowView/index.js +1 -1
  41. package/src/SimpleCircularOrLinearView.js +1 -1
  42. package/src/StatusBar/MeltingTemp.js +1 -1
  43. package/src/ToolBar/ToolbarItem.js +1 -1
  44. package/src/ToolBar/alignmentTool.js +2 -2
  45. package/src/ToolBar/cutsiteTool.js +1 -1
  46. package/src/ToolBar/index.js +1 -1
  47. package/src/VersionHistoryView/index.js +1 -1
  48. package/src/commands/index.js +1 -1
  49. package/src/helperComponents/AddOrEditAnnotationDialog/index.js +1 -1
  50. package/src/helperComponents/AddOrEditPartDialog/index.js +1 -1
  51. package/src/helperComponents/AddOrEditPrimerDialog/index.js +3 -3
  52. package/src/helperComponents/EnzymesDialog/index.js +1 -1
  53. package/src/helperComponents/GoToDialog.js +1 -1
  54. package/src/helperComponents/MergeFeaturesDialog/index.js +1 -1
  55. package/src/helperComponents/PropertiesDialog/CutsiteProperties.js +2 -2
  56. package/src/helperComponents/PropertiesDialog/GenericAnnotationProperties.js +1 -1
  57. package/src/helperComponents/PropertiesDialog/OrfProperties.js +1 -1
  58. package/src/helperComponents/PropertiesDialog/TranslationProperties.js +1 -1
  59. package/src/helperComponents/PropertiesDialog/index.js +2 -2
  60. package/src/helperComponents/RemoveDuplicates/index.js +1 -1
  61. package/src/helperComponents/SelectDialog.js +1 -1
  62. package/src/helperComponents/UncontrolledSliderWithPlusMinusBtns.js +1 -1
  63. package/src/helperComponents/createSimpleDialog.js +1 -1
  64. package/src/helperComponents/partTagSearch.js +2 -2
  65. package/src/redux/alignments.js +1 -1
  66. package/src/redux/annotationVisibility.js +1 -1
  67. package/src/redux/findTool.js +1 -1
  68. package/src/redux/index.js +1 -1
  69. package/src/redux/panelsShown.js +1 -1
  70. package/src/redux/readOnly.js +1 -1
  71. package/src/redux/useAdditionalOrfStartCodons.js +1 -1
  72. package/src/redux/versionHistory.js +1 -1
  73. package/src/selectors/annotationSearchSelector.js +1 -1
  74. package/src/selectors/cdsFeaturesSelector.js +1 -1
  75. package/src/selectors/cutsitesSelector.js +1 -1
  76. package/src/selectors/filteredCutsitesSelector.js +1 -1
  77. package/src/selectors/filteredFeaturesSelector.js +1 -1
  78. package/src/selectors/filteredPartsSelector.js +2 -2
  79. package/src/selectors/filteredPrimersSelector.js +1 -1
  80. package/src/selectors/getAdditionalEnzymesSelector.js +1 -1
  81. package/src/selectors/restrictionEnzymesSelector.js +1 -1
  82. package/src/selectors/translationsSelector.js +1 -1
  83. package/src/updateEditor.js +1 -1
  84. package/src/utils/addWrappedAddons.js +1 -1
  85. package/src/utils/commandUtils.js +1 -1
  86. package/src/utils/editorUtils.js +2 -2
  87. package/src/utils/getAnnotationClassnames.js +1 -1
  88. package/src/utils/getAnnotationNameAndStartStopString.js +3 -3
  89. package/src/utils/massageTickSpacing.js +1 -1
  90. package/src/utils/onlyUpdateForKeysDeep.js +2 -2
  91. package/src/utils/pureNoFunc.js +1 -1
  92. package/src/utils/shouldRerender.js +1 -1
  93. package/src/withEditorInteractions/Keyboard.js +1 -1
  94. package/src/withEditorInteractions/clickAndDragUtils.js +3 -3
  95. package/src/withEditorInteractions/createSequenceInputPopup.js +1 -1
  96. package/src/withEditorInteractions/index.js +1 -1
  97. package/src/withEditorProps/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,10 +12,10 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.24",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.4.4",
15
+ "@teselagen/ui": "0.4.5",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
- "@teselagen/bio-parsers": "0.4.16",
18
+ "@teselagen/bio-parsers": "0.4.17",
19
19
  "@blueprintjs/core": "3.52.0",
20
20
  "@blueprintjs/datetime": "3.23.19",
21
21
  "@blueprintjs/icons": "3.33.0",
@@ -50,6 +50,8 @@
50
50
  "is-mobile": "^3.0.0",
51
51
  "jsondiffpatch": "0.4.1",
52
52
  "jszip": "^3.10.1",
53
+ "lodash": "4.17.21",
54
+ "lodash-es": "^4.17.21",
53
55
  "math-expression-evaluator": "^1.3.7",
54
56
  "mobx": "^6.10.2",
55
57
  "mobx-react": "^9.0.1",
@@ -62,9 +64,7 @@
62
64
  "popper.js": "^1.16.1",
63
65
  "prop-types": "^15.6.2",
64
66
  "qs": "^6.9.6",
65
- "react": "18.2.0",
66
67
  "react-color": "^2.19.3",
67
- "react-dom": "18.2.0",
68
68
  "react-draggable": "4.4.5",
69
69
  "react-dropzone": "^11.4.2",
70
70
  "react-markdown": "8.0.7",
@@ -8,7 +8,7 @@ import {
8
8
  MenuItem
9
9
  } from "@blueprintjs/core";
10
10
  import React from "react";
11
- import { map, startCase } from "lodash";
11
+ import { map, startCase } from "lodash-es";
12
12
  import pureNoFunc from "../utils/pureNoFunc";
13
13
  // import { fullSequenceTranslationMenu } from "../MenuBar/viewSubmenu";
14
14
 
@@ -4,7 +4,7 @@ import ReactList from "@teselagen/react-list";
4
4
  import Axis from "../RowItem/Axis";
5
5
  import getXStartAndWidthFromNonCircularRange from "../RowItem/getXStartAndWidthFromNonCircularRange";
6
6
  import { view } from "@risingstack/react-easy-state";
7
- import { flatMap, some, toNumber } from "lodash";
7
+ import { flatMap, some, toNumber } from "lodash-es";
8
8
  import {
9
9
  getOverlapOfNonCircularRanges,
10
10
  invertRange,
@@ -30,7 +30,7 @@ import {
30
30
  isFunction,
31
31
  unset,
32
32
  omit
33
- } from "lodash";
33
+ } from "lodash-es";
34
34
  import { getSequenceDataBetweenRange } from "@teselagen/sequence-utils";
35
35
  import ReactList from "@teselagen/react-list";
36
36
  import ReactDOM from "react-dom";
@@ -56,9 +56,9 @@ import { ResizeSensor } from "@blueprintjs/core";
56
56
  import ReactDraggable from "react-draggable";
57
57
  import draggableClassnames from "../constants/draggableClassnames";
58
58
  import Caret from "../RowItem/Caret";
59
- import { debounce } from "lodash";
59
+ import { debounce } from "lodash-es";
60
60
  import { view } from "@risingstack/react-easy-state";
61
- import { noop } from "lodash";
61
+ import { noop } from "lodash-es";
62
62
  import { massageTickSpacing } from "../utils/massageTickSpacing";
63
63
  import { getClientX, getClientY } from "../utils/editorUtils";
64
64
 
@@ -31,7 +31,7 @@ import {
31
31
  showConfirmationDialog,
32
32
  wrapDialog
33
33
  } from "@teselagen/ui";
34
- import { startCase } from "lodash";
34
+ import { startCase } from "lodash-es";
35
35
  import withEditorProps from "./withEditorProps";
36
36
  import { useEffect, useState } from "react";
37
37
  import { Colors, Tab, Tabs } from "@blueprintjs/core";
@@ -1,4 +1,4 @@
1
- import { startsWith } from "lodash";
1
+ import { startsWith } from "lodash-es";
2
2
  import React from "react";
3
3
 
4
4
  import drawDirectedPiePiece from "./drawDirectedPiePiece";
@@ -3,7 +3,7 @@ import relaxLabelAngles from "./relaxLabelAngles";
3
3
  import withHover from "../../helperComponents/withHover";
4
4
  import "./style.css";
5
5
  import React from "react";
6
- import { cloneDeep, clamp, noop } from "lodash";
6
+ import { cloneDeep, clamp, noop } from "lodash-es";
7
7
  import { avoidOverlapWith } from "../drawAnnotations";
8
8
 
9
9
  const fontWidthToFontSize = 1.75;
@@ -1,4 +1,4 @@
1
- import { cloneDeep } from "lodash";
1
+ import { cloneDeep } from "lodash-es";
2
2
 
3
3
  export default relaxLabelAngles;
4
4
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { startsWith } from "lodash";
2
+ import { startsWith } from "lodash-es";
3
3
  import drawDirectedPiePiece from "./drawDirectedPiePiece";
4
4
 
5
5
  export default function Part({
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import IntervalTree from "node-interval-tree";
3
- import { sortBy, noop } from "lodash";
3
+ import { sortBy, noop } from "lodash-es";
4
4
  import { getRangeLength } from "@teselagen/range-utils";
5
5
  import getRangeAngles from "./getRangeAnglesSpecial";
6
6
  import getYOffset from "./getYOffset";
@@ -27,7 +27,7 @@ import "./style.css";
27
27
  import draggableClassnames from "../constants/draggableClassnames";
28
28
  import { getOrfColor } from "../constants/orfFrameToColorMap";
29
29
  import { getSingular } from "../utils/annotationTypes";
30
- import { upperFirst, map, flatMap, noop } from "lodash";
30
+ import { upperFirst, map, flatMap, noop } from "lodash-es";
31
31
 
32
32
  import useAnnotationLimits from "../utils/useAnnotationLimits";
33
33
  import {
@@ -275,8 +275,8 @@ export function CircularView(props) {
275
275
  rangeToShowLength < 10
276
276
  ? 2
277
277
  : rangeToShowLength < 50
278
- ? Math.ceil(rangeToShowLength / 25) * 5
279
- : Math.ceil(rangeToShowLength / 100) * 10,
278
+ ? Math.ceil(rangeToShowLength / 25) * 5
279
+ : Math.ceil(rangeToShowLength / 100) * 10,
280
280
  sequenceLength,
281
281
  isProtein
282
282
  }).map(pos => {
@@ -767,8 +767,8 @@ export function CircularView(props) {
767
767
  caretPosition > -1
768
768
  ? caretPosition
769
769
  : selectionLayer.start > -1
770
- ? getMiddleOfRange(selectionLayer, sequenceLength)
771
- : undefined;
770
+ ? getMiddleOfRange(selectionLayer, sequenceLength)
771
+ : undefined;
772
772
  if (caret !== undefined) {
773
773
  const radToRotateTo = (caret / sequenceLength) * Math.PI * 2;
774
774
  rotateHelper.current.triggerChange &&
@@ -11,7 +11,7 @@ import {
11
11
  } from "@teselagen/ui";
12
12
  import { useEffect } from "react";
13
13
  import { hideDialog } from "./GlobalDialogUtils";
14
- import { startCase } from "lodash";
14
+ import { startCase } from "lodash-es";
15
15
  import { tidyUpAnnotation } from "@teselagen/sequence-utils";
16
16
 
17
17
  const schemaFeatures = ["name", typeField, "start", "end", "strand"];
@@ -13,7 +13,7 @@ import {
13
13
  map,
14
14
  noop,
15
15
  sortBy
16
- } from "lodash";
16
+ } from "lodash-es";
17
17
  import SingleEnzymeCutsiteInfo from "../helperComponents/PropertiesDialog/SingleEnzymeCutsiteInfo";
18
18
  import { showDialog } from "../GlobalDialogUtils";
19
19
 
@@ -8,8 +8,8 @@ import React, { useState } from "react";
8
8
  import "./style.css";
9
9
  import { popoverOverflowModifiers, TgSelect } from "@teselagen/ui";
10
10
 
11
- import { map, flatMap, includes, pickBy, isEmpty, noop } from "lodash";
12
- import { omit } from "lodash";
11
+ import { map, flatMap, includes, pickBy, isEmpty, noop } from "lodash-es";
12
+ import { omit } from "lodash-es";
13
13
  import { showDialog } from "../GlobalDialogUtils";
14
14
  import {
15
15
  addCutsiteGroupClickHandler,
@@ -5,7 +5,7 @@ import { reduxForm } from "redux-form";
5
5
  import useLadders from "../utils/useLadders";
6
6
  import { MenuItem } from "@blueprintjs/core";
7
7
  import downloadjs from "downloadjs";
8
- import { isArray } from "lodash";
8
+ import { isArray } from "lodash-es";
9
9
  import { hideDialog } from "../GlobalDialogUtils";
10
10
 
11
11
  export const AddLaddersDialog = compose(
@@ -18,7 +18,7 @@ import {
18
18
  } from "@blueprintjs/core";
19
19
  import withEditorInteractions from "../withEditorInteractions";
20
20
  import { userDefinedHandlersAndOpts } from "../Editor/userDefinedHandlersAndOpts";
21
- import { noop, pick } from "lodash";
21
+ import { noop, pick } from "lodash-es";
22
22
 
23
23
  const MAX_DIGEST_CUTSITES = 50;
24
24
  const MAX_PARTIAL_DIGEST_CUTSITES = 10;
@@ -8,8 +8,8 @@ import { showDialog } from "../GlobalDialogUtils";
8
8
  import { AddLaddersDialog } from "./AddLaddersDialog";
9
9
  import { ladderDefaults } from "./ladderDefaults";
10
10
  import useLadders from "../utils/useLadders";
11
- import { map } from "lodash";
12
- import { filter } from "lodash";
11
+ import { map } from "lodash-es";
12
+ import { filter } from "lodash-es";
13
13
 
14
14
  export default function Ladder({
15
15
  // gelDigestEnzymes = [],
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { debounce } from "lodash";
2
+ import { debounce } from "lodash-es";
3
3
 
4
4
  export default class FillWindow extends React.Component {
5
5
  updateDimensions = debounce(() => {
@@ -1,4 +1,4 @@
1
- import { debounce, find, get, some, isArray } from "lodash";
1
+ import { debounce, find, get, some, isArray } from "lodash-es";
2
2
  // import sizeMe from "react-sizeme";
3
3
  import { showContextMenu } from "@teselagen/ui";
4
4
  import {
@@ -33,7 +33,7 @@ import CommandHotkeyHandler from "./CommandHotkeyHandler";
33
33
  import { ReflexContainer, ReflexSplitter, ReflexElement } from "../Reflex";
34
34
  /* eslint-enable */
35
35
 
36
- import { flatMap, map, filter, pick, camelCase } from "lodash";
36
+ import { flatMap, map, filter, pick, camelCase } from "lodash-es";
37
37
 
38
38
  import { ToolBar } from "../ToolBar";
39
39
  import CircularView from "../CircularView";
@@ -5,7 +5,7 @@ import copyToClipboard from "copy-to-clipboard";
5
5
  import RowItem from "../RowItem";
6
6
  import "./style.css";
7
7
  import classNames from "classnames";
8
- import { noop } from "lodash";
8
+ import { noop } from "lodash-es";
9
9
 
10
10
  export default ({
11
11
  extraClasses = "",
@@ -1,6 +1,6 @@
1
1
  import shortid from "shortid";
2
2
 
3
- import { cloneDeep, startCase } from "lodash";
3
+ import { cloneDeep, startCase } from "lodash-es";
4
4
  import { convertRangeTo1Based } from "@teselagen/range-utils";
5
5
 
6
6
  export const dialogHolder = {};
@@ -1,4 +1,4 @@
1
- import { debounce, noop, startCase } from "lodash";
1
+ import { debounce, noop, startCase } from "lodash-es";
2
2
  import draggableClassnames from "../constants/draggableClassnames";
3
3
  import prepareRowData from "../utils/prepareRowData";
4
4
  import React from "react";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { MenuBar, commandMenuEnhancer } from "@teselagen/ui";
3
3
  import { compose } from "redux";
4
- import { memoize } from "lodash";
4
+ import { memoize } from "lodash-es";
5
5
  import withEditorProps from "../withEditorProps";
6
6
  import menuDef from "./defaultConfig";
7
7
  import getCommands from "../commands";
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import withEditorInteractions from "../withEditorInteractions";
5
5
  import { ReactSelectField, tgFormValues } from "@teselagen/ui";
6
6
  import { reduxForm } from "redux-form";
7
- import { flatMap, forEach, keyBy } from "lodash";
7
+ import { flatMap, forEach, keyBy } from "lodash-es";
8
8
  import SimpleCircularOrLinearView from "../SimpleCircularOrLinearView";
9
9
  import {
10
10
  getReverseComplementSequenceString,
@@ -9,7 +9,7 @@ import ReflexEvents from "./ReflexEvents";
9
9
  import PropTypes from "prop-types";
10
10
  import ReactDOM from "react-dom";
11
11
  import React from "react";
12
- import { cloneDeep, round } from "lodash";
12
+ import { cloneDeep, round } from "lodash-es";
13
13
 
14
14
  class ReflexContainer extends React.Component {
15
15
  /////////////////////////////////////////////////////////
@@ -4,7 +4,7 @@
4
4
  // December 2016
5
5
  //
6
6
  ///////////////////////////////////////////////////////////
7
- import { throttle } from "lodash";
7
+ import { throttle } from "lodash-es";
8
8
  import Measure from "react-measure";
9
9
  import PropTypes from "prop-types";
10
10
  import Browser from "./Browser";
@@ -4,7 +4,7 @@ import withHover from "../helperComponents/withHover";
4
4
  import getXStartAndWidthOfRowAnnotation from "./getXStartAndWidthOfRowAnnotation";
5
5
  import IntervalTree from "node-interval-tree";
6
6
  import getYOffset from "../CircularView/getYOffset";
7
- import { reduce, values, startCase, filter, clamp } from "lodash";
7
+ import { reduce, values, startCase, filter, clamp } from "lodash-es";
8
8
  import { getRangeLength } from "@teselagen/range-utils";
9
9
  import { doesLabelFitInAnnotation } from "./utils";
10
10
  import getAnnotationNameAndStartStopString from "../utils/getAnnotationNameAndStartStopString";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { times, map } from "lodash";
2
+ import { times, map } from "lodash-es";
3
3
  import { view } from "@risingstack/react-easy-state";
4
4
  import { getVisibleStartEnd } from "../utils/getVisibleStartEnd";
5
5
  import { fudge2, realCharWidth } from "./constants";
@@ -5,7 +5,7 @@ import getAnnotationNameAndStartStopString from "../../utils/getAnnotationNameAn
5
5
 
6
6
  import React, { useState } from "react";
7
7
  import { doesLabelFitInAnnotation } from "../utils";
8
- import { noop } from "lodash";
8
+ import { noop } from "lodash-es";
9
9
  import getAnnotationClassnames from "../../utils/getAnnotationClassnames";
10
10
  import { getStripedPattern } from "../../utils/editorUtils";
11
11
  import { ANNOTATION_LABEL_FONT_WIDTH } from "../constants";
@@ -1,4 +1,4 @@
1
- import { clone } from "lodash";
1
+ import { clone } from "lodash-es";
2
2
  import { getRangeLength, getSequenceWithinRange } from "@teselagen/range-utils";
3
3
  import { getComplementSequenceString } from "@teselagen/sequence-utils";
4
4
  import { bioData } from "@teselagen/sequence-utils";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { map } from "lodash";
2
+ import { map } from "lodash-es";
3
3
  import { fudge2, realCharWidth } from "../constants";
4
4
  import getYOffset from "../../CircularView/getYOffset";
5
5
  import { getRangeLength } from "@teselagen/range-utils";
@@ -167,10 +167,10 @@ export function getBasesToShow({
167
167
  b === "&"
168
168
  ? "tg-no-show-seq"
169
169
  : isMatch
170
- ? ""
171
- : isAmbiguousMatch
172
- ? "tg-ambiguous-match-seq"
173
- : "tg-no-match-seq"
170
+ ? ""
171
+ : isAmbiguousMatch
172
+ ? "tg-ambiguous-match-seq"
173
+ : "tg-no-match-seq"
174
174
  }
175
175
  textLength={textLength}
176
176
  >
@@ -1,5 +1,5 @@
1
1
  import { normalizePositionByRangeLength } from "@teselagen/range-utils";
2
- import { isNumber } from "lodash";
2
+ import { isNumber } from "lodash-es";
3
3
 
4
4
  export default function getXStartAndWidthOfRangeWrtRow({
5
5
  range,
@@ -11,7 +11,7 @@ import {
11
11
  flatMap,
12
12
  assign,
13
13
  noop
14
- } from "lodash";
14
+ } from "lodash-es";
15
15
  import { getComplementSequenceString } from "@teselagen/sequence-utils";
16
16
  import React, { useMemo } from "react";
17
17
  import pluralize from "pluralize";
@@ -28,7 +28,7 @@ import "./style.css";
28
28
  import Chromatogram from "./Chromatograms/Chromatogram";
29
29
  import { rowHeights } from "../RowView/estimateRowHeight";
30
30
  import { getAllSelectionLayers } from "../utils/selectionLayer";
31
- import { filter } from "lodash";
31
+ import { filter } from "lodash-es";
32
32
  import { defaultCharWidth } from "../constants/rowviewContants";
33
33
  import { CutsiteSelectionLayers } from "./CutsiteSelectionLayers";
34
34
 
@@ -1,4 +1,4 @@
1
- import { forEach } from "lodash";
1
+ import { forEach } from "lodash-es";
2
2
 
3
3
  const debug = 0;
4
4
  // const debug = console.log("comment me back out!") || 1;
@@ -1,6 +1,6 @@
1
1
  import { Button } from "@blueprintjs/core";
2
2
  import draggableClassnames from "../constants/draggableClassnames";
3
- import { some, debounce, noop } from "lodash";
3
+ import { some, debounce, noop } from "lodash-es";
4
4
  import prepareRowData from "../utils/prepareRowData";
5
5
  import React from "react";
6
6
  import Draggable from "react-draggable";
@@ -13,7 +13,7 @@ import { HoveredIdContext } from "./helperComponents/withHover";
13
13
  import { visibilityDefaultValues } from "./redux/annotationVisibility";
14
14
  import { addWrappedAddons } from "./utils/addWrappedAddons";
15
15
  import { SimpleOligoPreview } from "./SimpleOligoPreview";
16
- import { cloneDeep, flatMap, map, startCase } from "lodash";
16
+ import { cloneDeep, flatMap, map, startCase } from "lodash-es";
17
17
  import {
18
18
  Button,
19
19
  ButtonGroup,
@@ -3,7 +3,7 @@ import { Button, Icon, Popover, RadioGroup } from "@blueprintjs/core";
3
3
 
4
4
  import { calculateTm, calculateNebTm } from "@teselagen/sequence-utils";
5
5
 
6
- import { isString } from "lodash";
6
+ import { isString } from "lodash-es";
7
7
  import { popoverOverflowModifiers } from "@teselagen/ui";
8
8
  import useTmType from "../utils/useTmType";
9
9
 
@@ -10,7 +10,7 @@ import {
10
10
  } from "@blueprintjs/core";
11
11
  import React from "react";
12
12
  import "./style.css";
13
- import { noop } from "lodash";
13
+ import { noop } from "lodash-es";
14
14
 
15
15
  class ToolbarItem extends React.Component {
16
16
  toggleDropdown = ({ forceClose } = {}) => {
@@ -9,9 +9,9 @@ import {
9
9
  } from "@teselagen/ui";
10
10
  import { reduxForm, FieldArray } from "redux-form";
11
11
  import { anyToJson } from "@teselagen/bio-parsers";
12
- import { flatMap } from "lodash";
12
+ import { flatMap } from "lodash-es";
13
13
  import uniqid from "shortid";
14
- import { cloneDeep } from "lodash";
14
+ import { cloneDeep } from "lodash-es";
15
15
  import classNames from "classnames";
16
16
 
17
17
  import ToolbarItem from "./ToolbarItem";
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import ToolbarItem from "./ToolbarItem";
5
5
  import { connectToEditor } from "../withEditorProps";
6
6
  import { userDefinedHandlersAndOpts } from "../Editor/userDefinedHandlersAndOpts";
7
- import { pick } from "lodash";
7
+ import { pick } from "lodash-es";
8
8
 
9
9
  export default connectToEditor(
10
10
  ({ readOnly, annotationVisibility = {}, toolBar = {} }) => {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { flatMap, isString, pick } from "lodash";
2
+ import { flatMap, isString, pick } from "lodash-es";
3
3
  import versionHistoryTool from "./versionHistoryTool";
4
4
  // import {connectToEditor} from "../withEditorProps";
5
5
  import MenuBar from "../MenuBar";
@@ -6,7 +6,7 @@ import { DataTable } from "@teselagen/ui";
6
6
  import Editor from "../Editor";
7
7
  import FillWindow from "../Editor/FillWindow";
8
8
  import withEditorProps from "../withEditorProps";
9
- import { noop } from "lodash";
9
+ import { noop } from "lodash-es";
10
10
 
11
11
  const SIDE_PANEL_WIDTH = 350;
12
12
 
@@ -25,7 +25,7 @@ import {
25
25
  some,
26
26
  sortBy,
27
27
  noop
28
- } from "lodash";
28
+ } from "lodash-es";
29
29
  import showFileDialog from "../utils/showFileDialog";
30
30
  import { defaultCopyOptions } from "../redux/copyOptions";
31
31
  import { divideBy3 } from "../utils/proteinUtils";
@@ -39,7 +39,7 @@ import { store, view } from "@risingstack/react-easy-state";
39
39
 
40
40
  import withEditorProps from "../../withEditorProps";
41
41
  import { withProps } from "recompose";
42
- import { map, flatMap, round } from "lodash";
42
+ import { map, flatMap, round } from "lodash-es";
43
43
  import "./style.css";
44
44
 
45
45
  class AddOrEditAnnotationDialog extends React.Component {
@@ -7,7 +7,7 @@ import {
7
7
  InfoHelper
8
8
  } from "@teselagen/ui";
9
9
  import { getFeatureTypes } from "@teselagen/sequence-utils";
10
- import { get } from "lodash";
10
+ import { get } from "lodash-es";
11
11
 
12
12
  const renderTypes = ({ readOnly }) => (
13
13
  <ReactSelectField
@@ -16,7 +16,7 @@ import { convertRangeTo0Based } from "@teselagen/range-utils";
16
16
  import classNames from "classnames";
17
17
  import "./style.css";
18
18
  import { getSequenceWithinRange } from "@teselagen/range-utils";
19
- import { flatMap } from "lodash";
19
+ import { flatMap } from "lodash-es";
20
20
  import CaretPositioning, {
21
21
  selectionSaveCaretPosition
22
22
  } from "./EditCaretPosition";
@@ -84,8 +84,8 @@ const CustomContentEditable = generateField(function CustomContentEditable({
84
84
  isMatch
85
85
  ? ""
86
86
  : isAmbiguousMatch
87
- ? "tg-ambiguous-match-seq"
88
- : "tg-no-match-seq"
87
+ ? "tg-ambiguous-match-seq"
88
+ : "tg-no-match-seq"
89
89
  }">${b}</span>`;
90
90
  }
91
91
  );
@@ -22,7 +22,7 @@ import withEditorProps from "../../withEditorProps";
22
22
  import EnzymeViewer from "../../EnzymeViewer";
23
23
  import "./style.css";
24
24
 
25
- import { map, flatMap, countBy, reduce, uniq, omitBy } from "lodash";
25
+ import { map, flatMap, countBy, reduce, uniq, omitBy } from "lodash-es";
26
26
  import {
27
27
  aliasedEnzymesByName,
28
28
  defaultEnzymesByName,
@@ -1,6 +1,6 @@
1
1
  import createSimpleDialog from "./createSimpleDialog";
2
2
  import { NumericInputField } from "@teselagen/ui";
3
- import { get } from "lodash";
3
+ import { get } from "lodash-es";
4
4
  import { tryToRefocusEditor } from "../utils/editorUtils";
5
5
 
6
6
  export default createSimpleDialog({
@@ -12,7 +12,7 @@ import {
12
12
  } from "@teselagen/ui";
13
13
  import { compose } from "redux";
14
14
  import { Button, Intent, Classes } from "@blueprintjs/core";
15
- import { flatMap } from "lodash";
15
+ import { flatMap } from "lodash-es";
16
16
  import classNames from "classnames";
17
17
  import withEditorProps from "../../withEditorProps";
18
18
  import { CheckboxField } from "@teselagen/ui";
@@ -4,7 +4,7 @@ import {
4
4
  withSelectedEntities,
5
5
  createCommandMenu
6
6
  } from "@teselagen/ui";
7
- import { map, get } from "lodash";
7
+ import { map, get } from "lodash-es";
8
8
  import CutsiteFilter from "../../CutsiteFilter";
9
9
  import { Button, ButtonGroup } from "@blueprintjs/core";
10
10
  import { connectToEditor } from "../../withEditorProps";
@@ -12,7 +12,7 @@ import { compose } from "recompose";
12
12
  import selectors from "../../selectors";
13
13
  import commands from "../../commands";
14
14
  import { userDefinedHandlersAndOpts } from "../../Editor/userDefinedHandlersAndOpts";
15
- import { pick } from "lodash";
15
+ import { pick } from "lodash-es";
16
16
  import SingleEnzymeCutsiteInfo from "./SingleEnzymeCutsiteInfo";
17
17
  import { withRestrictionEnzymes } from "../../CutsiteFilter/withRestrictionEnzymes";
18
18
  import { cutsitesSubmenu } from "../../MenuBar/viewSubmenu";
@@ -10,7 +10,7 @@ import {
10
10
  popoverOverflowModifiers,
11
11
  removeDuplicatesIcon
12
12
  } from "@teselagen/ui";
13
- import { map, upperFirst, pick, startCase, isFunction } from "lodash";
13
+ import { map, upperFirst, pick, startCase, isFunction } from "lodash-es";
14
14
  import {
15
15
  AnchorButton,
16
16
  ButtonGroup,
@@ -4,7 +4,7 @@ import {
4
4
  withSelectedEntities,
5
5
  createCommandMenu
6
6
  } from "@teselagen/ui";
7
- import { map } from "lodash";
7
+ import { map } from "lodash-es";
8
8
  // import { Button } from "@blueprintjs/core";
9
9
  import { getRangeLength } from "@teselagen/range-utils";
10
10
  import { getOrfColor } from "../../constants/orfFrameToColorMap";
@@ -6,7 +6,7 @@ import {
6
6
  createCommandMenu
7
7
  } from "@teselagen/ui";
8
8
  import getCommands from "../../commands";
9
- import { map } from "lodash";
9
+ import { map } from "lodash-es";
10
10
  import { getRangeLength } from "@teselagen/range-utils";
11
11
  import { connectToEditor } from "../../withEditorProps";
12
12
  import { compose } from "recompose";