@teselagen/ove 0.7.24 → 0.7.26
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/commands/index.d.ts +1 -1
- package/index.cjs.js +20428 -22086
- package/index.d.ts +1 -0
- package/index.es.js +20769 -22427
- package/index.umd.js +32564 -33662
- package/package.json +14 -31
- package/src/Editor/index.js +2 -0
- package/src/commands/index.js +8 -13
- package/src/index.js +1 -0
- package/Menlo.ttf +0 -0
- package/Monaco.ttf +0 -0
- package/fileUtils.d.ts +0 -12
- package/html2canvas.esm--JN4fLQL.mjs +0 -7891
- package/html2canvas.esm-B7d7VJmQ.js +0 -7891
- package/html2canvas.esm-BabtSl1E.cjs +0 -7848
- package/html2canvas.esm-ClY198IE.js +0 -7848
- package/html2canvas.esm-GLpiTZLt.cjs +0 -7891
- package/html2canvas.esm-GLpiTZLt.js +0 -7891
- package/html2canvas.esm-nFNn58sx.js +0 -7891
- package/html2canvas.esm-nFNn58sx.mjs +0 -7891
- package/src/fileUtils.js +0 -103
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -11,47 +11,28 @@
|
|
|
11
11
|
"./*": "./*"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@teselagen/sequence-utils": "
|
|
15
|
-
"@teselagen/range-utils": "
|
|
16
|
-
"@teselagen/ui": "
|
|
17
|
-
"@teselagen/file-utils": "
|
|
18
|
-
"@teselagen/bio-parsers": "
|
|
14
|
+
"@teselagen/sequence-utils": "file:../sequence-utils",
|
|
15
|
+
"@teselagen/range-utils": "file:../range-utils",
|
|
16
|
+
"@teselagen/ui": "file:../ui",
|
|
17
|
+
"@teselagen/file-utils": "file:../file-utils",
|
|
18
|
+
"@teselagen/bio-parsers": "file:../bio-parsers",
|
|
19
19
|
"@blueprintjs/core": "3.54.0",
|
|
20
|
-
"@blueprintjs/datetime": "^3.24.1",
|
|
21
|
-
"@blueprintjs/icons": "3.33.0",
|
|
22
|
-
"@blueprintjs/select": "3.18.11",
|
|
23
|
-
"@dnd-kit/modifiers": "^7.0.0",
|
|
24
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
25
|
-
"@dnd-kit/utilities": "3.2.2",
|
|
26
20
|
"@hello-pangea/dnd": "16.2.0",
|
|
27
21
|
"@risingstack/react-easy-state": "^6.3.0",
|
|
28
22
|
"@teselagen/react-list": "0.8.18",
|
|
29
|
-
"@teselagen/react-table": "6.10.16",
|
|
30
|
-
"bluebird": "3.7.2",
|
|
31
|
-
"bson-objectid": "2.0.4",
|
|
32
|
-
"buffer": "6.0.3",
|
|
33
|
-
"bufferpack": "0.0.6",
|
|
34
23
|
"classnames": "^2.3.2",
|
|
35
24
|
"color": "^3.2.1",
|
|
36
25
|
"combokeys": "^3.0.1",
|
|
37
26
|
"copy-to-clipboard": "^3.3.1",
|
|
38
27
|
"deep-equal": "^1.1.1",
|
|
39
|
-
"dom-scroll-into-view": "^2.0.1",
|
|
40
28
|
"dom-to-image": "^2.6.0",
|
|
41
29
|
"downloadjs": "^1.4.7",
|
|
42
|
-
"escape-string-regexp": "5.0.0",
|
|
43
|
-
"fflate": "0.8.2",
|
|
44
30
|
"file-saver": "^2.0.5",
|
|
45
|
-
"fuse.js": "^6.6.2",
|
|
46
|
-
"fuzzysearch": "^1.0.3",
|
|
47
31
|
"html2canvas": "^1.4.1",
|
|
48
32
|
"immer": "^9.0.15",
|
|
49
33
|
"is-mobile": "^3.0.0",
|
|
50
|
-
"jsondiffpatch": "0.4.1",
|
|
51
|
-
"jszip": "^3.10.1",
|
|
52
34
|
"lodash": "4.17.21",
|
|
53
35
|
"lodash-es": "^4.17.21",
|
|
54
|
-
"math-expression-evaluator": "^1.3.7",
|
|
55
36
|
"node-interval-tree": "^1.3.3",
|
|
56
37
|
"papaparse": "5.3.2",
|
|
57
38
|
"paths-js": "^0.4.11",
|
|
@@ -59,7 +40,6 @@
|
|
|
59
40
|
"popper.js": "^1.16.1",
|
|
60
41
|
"prop-types": "^15.6.2",
|
|
61
42
|
"react": "^18.3.1",
|
|
62
|
-
"react-color": "^2.19.3",
|
|
63
43
|
"react-dom": "^18.3.1",
|
|
64
44
|
"react-draggable": "4.4.5",
|
|
65
45
|
"react-dropzone": "^11.4.2",
|
|
@@ -67,7 +47,6 @@
|
|
|
67
47
|
"react-measure": "^2.5.2",
|
|
68
48
|
"react-redux": "^8.0.5",
|
|
69
49
|
"react-sizeme": "^2.6.12",
|
|
70
|
-
"react-transition-group": "^2.4.0",
|
|
71
50
|
"recompose": "npm:react-recompose@0.31.1",
|
|
72
51
|
"redux": "^4.1.2",
|
|
73
52
|
"redux-act": "^1.8.0",
|
|
@@ -76,13 +55,17 @@
|
|
|
76
55
|
"remark-gfm": "^4.0.0",
|
|
77
56
|
"reselect": "^4.1.7",
|
|
78
57
|
"tg-use-local-storage-state": "^16.0.3",
|
|
79
|
-
"tippy.js": "^6.3.7",
|
|
80
58
|
"to-regex-range": "5.0.1",
|
|
81
|
-
"url-join": "^4.0.1",
|
|
82
59
|
"use-debounce": "^8.0.4",
|
|
83
|
-
"use-deep-compare-effect": "^1.6.1",
|
|
84
60
|
"validate.io-nonnegative-integer-array": "^1.0.1",
|
|
85
|
-
"
|
|
61
|
+
"cypress-real-events": "^1.13.0",
|
|
62
|
+
"biomsa": "^0.2.4",
|
|
63
|
+
"shortid": "2.2.16",
|
|
64
|
+
"@use-gesture/react": "10.3.0",
|
|
65
|
+
"vite": "^5.2.11",
|
|
66
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
67
|
+
"vite-plugin-libcss": "^1.1.1",
|
|
68
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
86
69
|
},
|
|
87
70
|
"license": "MIT"
|
|
88
71
|
}
|
package/src/Editor/index.js
CHANGED
|
@@ -55,6 +55,8 @@ import { getClientX, getClientY } from "../utils/editorUtils";
|
|
|
55
55
|
import PCRTool from "../PCRTool/PCRTool";
|
|
56
56
|
import classNames from "classnames";
|
|
57
57
|
|
|
58
|
+
|
|
59
|
+
|
|
58
60
|
// if (process.env.NODE_ENV !== 'production') {
|
|
59
61
|
// const {whyDidYouUpdate} = require('why-did-you-update');
|
|
60
62
|
// whyDidYouUpdate(React);
|
package/src/commands/index.js
CHANGED
|
@@ -265,8 +265,7 @@ const fileCommandDefs = {
|
|
|
265
265
|
props.exportSequenceToFile(isProtein(props) ? "genpept" : "genbank")
|
|
266
266
|
},
|
|
267
267
|
exportDNASequenceAsFasta: {
|
|
268
|
-
name: props =>
|
|
269
|
-
`Download ${props.sequenceData.isProtein ? "DNA " : ""}FASTA File`,
|
|
268
|
+
name: props => `Download ${isProtein(props) ? "DNA " : ""}FASTA File`,
|
|
270
269
|
isHidden: props => !props.sequenceData.sequence,
|
|
271
270
|
handler: props =>
|
|
272
271
|
props.exportSequenceToFile("fasta", {
|
|
@@ -418,7 +417,12 @@ const editCommandDefs = {
|
|
|
418
417
|
hotkey: "mod+x"
|
|
419
418
|
},
|
|
420
419
|
createNewFromSubsequence: {
|
|
421
|
-
name:
|
|
420
|
+
name: props =>
|
|
421
|
+
isProtein(props)
|
|
422
|
+
? "Create New AA Sequence From Selection"
|
|
423
|
+
: isOligo(props)
|
|
424
|
+
? "Create New Oligo From Selection"
|
|
425
|
+
: "Create New DNA Sequence From Selection",
|
|
422
426
|
isDisabled: props =>
|
|
423
427
|
props.sequenceLength === 0 || props.selectionLayer.start === -1,
|
|
424
428
|
isHidden: props => !props.onCreateNewFromSubsequence,
|
|
@@ -1190,11 +1194,6 @@ const annotationToggleCommandDefs = {};
|
|
|
1190
1194
|
);
|
|
1191
1195
|
}
|
|
1192
1196
|
},
|
|
1193
|
-
// {
|
|
1194
|
-
// type: "aminoAcidNumbers",
|
|
1195
|
-
// isHidden: (p, c) =>
|
|
1196
|
-
// (c.isDnaMenu && p.isProtein) || (!c.isDnaMenu && !p.isProtein)
|
|
1197
|
-
// },
|
|
1198
1197
|
{ type: "aminoAcidNumbers" },
|
|
1199
1198
|
"axisNumbers",
|
|
1200
1199
|
{
|
|
@@ -1288,7 +1287,7 @@ const additionalAnnotationCommandsDefs = {
|
|
|
1288
1287
|
showAll: {
|
|
1289
1288
|
handler: props => {
|
|
1290
1289
|
annotationTypes.forEach(type => {
|
|
1291
|
-
if (props
|
|
1290
|
+
if (isProtein(props)) {
|
|
1292
1291
|
if (type === "translations" || type === "cutsites")
|
|
1293
1292
|
return props.annotationVisibilityHide(type);
|
|
1294
1293
|
}
|
|
@@ -1306,10 +1305,6 @@ const additionalAnnotationCommandsDefs = {
|
|
|
1306
1305
|
showAllLabels: {
|
|
1307
1306
|
handler: props => {
|
|
1308
1307
|
annotationTypes.forEach(type => {
|
|
1309
|
-
// if (props.isProtein) {
|
|
1310
|
-
// if (type === "translations" || type === "cutsites")
|
|
1311
|
-
// return props.annotationVisibilityHide(type);
|
|
1312
|
-
// }
|
|
1313
1308
|
props.annotationLabelVisibilityShow(type);
|
|
1314
1309
|
});
|
|
1315
1310
|
}
|
package/src/index.js
CHANGED
|
@@ -52,3 +52,4 @@ export { default as EnzymeViewer } from "./EnzymeViewer";
|
|
|
52
52
|
export { default as AlignmentView } from "./AlignmentView";
|
|
53
53
|
export { default as getOveHotkeyDefs } from "./commands/getOveHotkeyDefs";
|
|
54
54
|
export { getStructuredBases } from "./RowItem/StackedAnnotations/getStructuredBases";
|
|
55
|
+
export { divideBy3 } from "./utils/proteinUtils";
|
package/Menlo.ttf
DELETED
|
Binary file
|
package/Monaco.ttf
DELETED
|
Binary file
|
package/fileUtils.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const allowedCsvFileTypes: string[];
|
|
2
|
-
export function isZipFile(file: any): boolean;
|
|
3
|
-
export function getExt(file: any): any;
|
|
4
|
-
export function isExcelFile(file: any): boolean;
|
|
5
|
-
export function isCsvFile(file: any): boolean;
|
|
6
|
-
export function isTextFile(file: any): boolean;
|
|
7
|
-
export function parseCsvFile(csvFile: any, parserOptions?: {}): Promise<any>;
|
|
8
|
-
export function parseCsvString(csvString: any, parserOptions?: {}): void;
|
|
9
|
-
export function cleanCommaSeparatedCell(cellData: any): any;
|
|
10
|
-
export function cleanCsvExport(rows: any): any;
|
|
11
|
-
export function validateCSVRequiredHeaders(fields: any, requiredHeaders: any, filename: any): string | undefined;
|
|
12
|
-
export function validateCSVRow(row: any, requiredHeaders: any, index: any): string | undefined;
|