@teselagen/ove 0.5.4 → 0.5.6
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/html2canvas.esm--JN4fLQL.js +7891 -0
- package/html2canvas.esm-B7d7VJmQ.cjs +7891 -0
- package/index.cjs.js +5437 -9962
- package/index.es.js +5439 -9964
- package/index.umd.js +4922 -10306
- package/package.json +4 -2
- package/src/AlignmentView/AlignmentVisibilityTool.js +1 -1
- package/src/AlignmentView/Minimap.js +1 -1
- package/src/AlignmentView/index.js +3 -3
- package/src/AutoAnnotate.js +1 -1
- package/src/CircularView/Feature.js +1 -1
- package/src/CircularView/Labels/index.js +1 -1
- package/src/CircularView/Labels/relaxLabelAngles.js +1 -1
- package/src/CircularView/Part.js +1 -1
- package/src/CircularView/drawAnnotations.js +1 -1
- package/src/CircularView/index.js +1 -1
- package/src/CreateAnnotationsPage.js +1 -1
- package/src/CutsiteFilter/AdditionalCutsiteInfoDialog.js +1 -1
- package/src/CutsiteFilter/index.js +2 -2
- package/src/DigestTool/AddLaddersDialog.js +1 -1
- package/src/DigestTool/DigestTool.js +1 -1
- package/src/DigestTool/Ladder.js +2 -2
- package/src/Editor/FillWindow.js +1 -1
- package/src/Editor/index.js +2 -2
- package/src/EnzymeViewer/index.js +1 -1
- package/src/GlobalDialog.js +10 -3
- package/src/GlobalDialogUtils.js +20 -5
- package/src/LinearView/index.js +1 -1
- package/src/MenuBar/index.js +1 -1
- package/src/PCRTool/PCRTool.js +1 -1
- package/src/Reflex/ReflexContainer.js +1 -1
- package/src/Reflex/ReflexElement.js +1 -1
- package/src/RowItem/Labels.js +1 -1
- package/src/RowItem/Sequence.js +1 -1
- package/src/RowItem/StackedAnnotations/PointedAnnotation.js +1 -1
- package/src/RowItem/StackedAnnotations/getStructuredBases.js +1 -1
- package/src/RowItem/StackedAnnotations/primerBases.js +1 -1
- package/src/RowItem/getXStartAndWidthOfRangeWrtRow.js +1 -1
- package/src/RowItem/index.js +2 -2
- package/src/RowView/estimateRowHeight.js +1 -1
- package/src/RowView/index.js +1 -1
- package/src/SimpleCircularOrLinearView.js +1 -1
- package/src/StatusBar/MeltingTemp.js +1 -1
- package/src/ToolBar/ToolbarItem.js +1 -1
- package/src/ToolBar/alignmentTool.js +2 -2
- package/src/ToolBar/cutsiteTool.js +1 -1
- package/src/ToolBar/index.js +1 -1
- package/src/VersionHistoryView/index.js +1 -1
- package/src/commands/index.js +1 -1
- package/src/helperComponents/AddOrEditAnnotationDialog/index.js +1 -1
- package/src/helperComponents/AddOrEditPartDialog/index.js +1 -1
- package/src/helperComponents/AddOrEditPrimerDialog/index.js +1 -1
- package/src/helperComponents/EnzymesDialog/index.js +1 -1
- package/src/helperComponents/GoToDialog.js +1 -1
- package/src/helperComponents/MergeFeaturesDialog/index.js +1 -1
- package/src/helperComponents/PropertiesDialog/CutsiteProperties.js +2 -2
- package/src/helperComponents/PropertiesDialog/GenericAnnotationProperties.js +1 -1
- package/src/helperComponents/PropertiesDialog/OrfProperties.js +1 -1
- package/src/helperComponents/PropertiesDialog/TranslationProperties.js +1 -1
- package/src/helperComponents/PropertiesDialog/index.js +2 -2
- package/src/helperComponents/RemoveDuplicates/index.js +1 -1
- package/src/helperComponents/SelectDialog.js +1 -1
- package/src/helperComponents/UncontrolledSliderWithPlusMinusBtns.js +1 -1
- package/src/helperComponents/createSimpleDialog.js +1 -1
- package/src/helperComponents/partTagSearch.js +2 -2
- package/src/redux/alignments.js +1 -1
- package/src/redux/annotationVisibility.js +1 -1
- package/src/redux/findTool.js +1 -1
- package/src/redux/index.js +1 -1
- package/src/redux/panelsShown.js +1 -1
- package/src/redux/readOnly.js +1 -1
- package/src/redux/useAdditionalOrfStartCodons.js +1 -1
- package/src/redux/versionHistory.js +1 -1
- package/src/selectors/annotationSearchSelector.js +1 -1
- package/src/selectors/cdsFeaturesSelector.js +1 -1
- package/src/selectors/cutsitesSelector.js +1 -1
- package/src/selectors/filteredCutsitesSelector.js +1 -1
- package/src/selectors/filteredFeaturesSelector.js +1 -1
- package/src/selectors/filteredPartsSelector.js +2 -2
- package/src/selectors/filteredPrimersSelector.js +1 -1
- package/src/selectors/getAdditionalEnzymesSelector.js +1 -1
- package/src/selectors/restrictionEnzymesSelector.js +1 -1
- package/src/selectors/translationsSelector.js +1 -1
- package/src/updateEditor.js +1 -1
- package/src/utils/addWrappedAddons.js +1 -1
- package/src/utils/commandUtils.js +1 -1
- package/src/utils/editorUtils.js +2 -2
- package/src/utils/getAnnotationClassnames.js +1 -1
- package/src/utils/getAnnotationNameAndStartStopString.js +1 -1
- package/src/utils/massageTickSpacing.js +1 -1
- package/src/utils/onlyUpdateForKeysDeep.js +2 -2
- package/src/utils/pureNoFunc.js +1 -1
- package/src/utils/shouldRerender.js +1 -1
- package/src/withEditorInteractions/Keyboard.js +1 -1
- package/src/withEditorInteractions/clickAndDragUtils.js +1 -1
- package/src/withEditorInteractions/createSequenceInputPopup.js +1 -1
- package/src/withEditorInteractions/index.js +1 -1
- 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.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@teselagen/sequence-utils": "0.3.24",
|
|
14
14
|
"@teselagen/range-utils": "0.3.7",
|
|
15
|
-
"@teselagen/ui": "0.4.
|
|
15
|
+
"@teselagen/ui": "0.4.5",
|
|
16
16
|
"@teselagen/file-utils": "0.3.16",
|
|
17
17
|
"@teselagen/bounce-loader": "0.3.11",
|
|
18
18
|
"@teselagen/bio-parsers": "0.4.16",
|
|
@@ -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",
|
|
@@ -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
|
|
package/src/AutoAnnotate.js
CHANGED
|
@@ -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";
|
|
@@ -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;
|
package/src/CircularView/Part.js
CHANGED
|
@@ -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 {
|
|
@@ -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"];
|
|
@@ -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;
|
package/src/DigestTool/Ladder.js
CHANGED
|
@@ -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 = [],
|
package/src/Editor/FillWindow.js
CHANGED
package/src/Editor/index.js
CHANGED
|
@@ -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";
|
package/src/GlobalDialog.js
CHANGED
|
@@ -39,15 +39,22 @@ const Dialogs = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export function GlobalDialog(props) {
|
|
42
|
-
const { dialogOverrides = {} } = props;
|
|
43
|
-
const [uniqKey,
|
|
42
|
+
const { dialogOverrides = {}, editorName } = props;
|
|
43
|
+
const [uniqKey, setUniqKeyToForceRerender] = useState();
|
|
44
44
|
useEffect(() => {
|
|
45
45
|
//on unmount, clear the global dialog state..
|
|
46
46
|
return () => {
|
|
47
47
|
hideDialog();
|
|
48
48
|
};
|
|
49
49
|
}, []);
|
|
50
|
-
|
|
50
|
+
if (
|
|
51
|
+
dialogHolder.editorName &&
|
|
52
|
+
editorName &&
|
|
53
|
+
dialogHolder.editorName !== editorName
|
|
54
|
+
) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
dialogHolder.setUniqKeyToForceRerender = setUniqKeyToForceRerender;
|
|
51
58
|
const Comp =
|
|
52
59
|
dialogHolder.CustomModalComponent ||
|
|
53
60
|
dialogOverrides[dialogHolder.overrideName] ||
|
package/src/GlobalDialogUtils.js
CHANGED
|
@@ -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 = {};
|
|
@@ -15,17 +15,32 @@ export function showDialog({
|
|
|
15
15
|
if (!dialogHolder.dialogType && ModalComponent) {
|
|
16
16
|
dialogHolder.dialogType = "TGCustomModal";
|
|
17
17
|
}
|
|
18
|
+
// check if focused element in the dom is within a given editor and add an editor prop to the dialog
|
|
19
|
+
if (document.activeElement && document.activeElement.closest(".veEditor")) {
|
|
20
|
+
let editorName;
|
|
21
|
+
document.activeElement
|
|
22
|
+
.closest(".veEditor")
|
|
23
|
+
?.className.split(" ")
|
|
24
|
+
.forEach(c => {
|
|
25
|
+
if (!c.trim()) return;
|
|
26
|
+
if (!c.trim().includes("veEditor")) {
|
|
27
|
+
editorName = c;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
dialogHolder.editorName = editorName;
|
|
31
|
+
}
|
|
32
|
+
|
|
18
33
|
dialogHolder.CustomModalComponent = ModalComponent;
|
|
19
34
|
dialogHolder.props = props;
|
|
20
35
|
dialogHolder.overrideName = overrideName;
|
|
21
|
-
dialogHolder.
|
|
36
|
+
dialogHolder.setUniqKeyToForceRerender(shortid());
|
|
22
37
|
}
|
|
23
38
|
export function hideDialog() {
|
|
24
39
|
delete dialogHolder.dialogType;
|
|
25
40
|
delete dialogHolder.CustomModalComponent;
|
|
26
41
|
delete dialogHolder.props;
|
|
27
42
|
delete dialogHolder.overrideName;
|
|
28
|
-
dialogHolder.
|
|
43
|
+
dialogHolder.setUniqKeyToForceRerender();
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
const typeToDialogType = {
|
|
@@ -57,8 +72,8 @@ export function showAddOrEditAnnotationDialog({
|
|
|
57
72
|
annotation.strand === -1
|
|
58
73
|
? false
|
|
59
74
|
: annotation.forward !== undefined
|
|
60
|
-
|
|
61
|
-
|
|
75
|
+
? !!annotation.forward
|
|
76
|
+
: true;
|
|
62
77
|
showDialog({
|
|
63
78
|
overrideName: `AddOrEdit${nameUpper}DialogOverride`,
|
|
64
79
|
dialogType,
|
package/src/LinearView/index.js
CHANGED
package/src/MenuBar/index.js
CHANGED
|
@@ -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";
|
package/src/PCRTool/PCRTool.js
CHANGED
|
@@ -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";
|
package/src/RowItem/Labels.js
CHANGED
|
@@ -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";
|
package/src/RowItem/Sequence.js
CHANGED
|
@@ -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";
|
package/src/RowItem/index.js
CHANGED
|
@@ -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
|
|
package/src/RowView/index.js
CHANGED
|
@@ -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 = {} }) => {
|
package/src/ToolBar/index.js
CHANGED
|
@@ -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
|
|
package/src/commands/index.js
CHANGED
|
@@ -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 {
|
|
@@ -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";
|
|
@@ -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";
|