@teselagen/ove 0.8.24 → 0.8.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/index.cjs.js CHANGED
@@ -84059,6 +84059,15 @@ function getAnnotationsBetweenRange(annotationsToBeAdjusted, range2, maxLength,
84059
84059
  }
84060
84060
  const overlaps = getZeroedRangeOverlaps(annotation, range2, maxLength).map(
84061
84061
  (overlap) => {
84062
+ const allLocations = annotation.locations;
84063
+ if (allLocations && allLocations.length) {
84064
+ const newLocations = allLocations.filter((loc) => {
84065
+ return isRangeWithinRange(loc, overlap, maxLength);
84066
+ });
84067
+ return assignIn({}, annotation, overlap, {
84068
+ locations: newLocations
84069
+ });
84070
+ }
84062
84071
  return assignIn({}, annotation, overlap);
84063
84072
  }
84064
84073
  );
@@ -116977,7 +116986,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116977
116986
  input.click();
116978
116987
  }
116979
116988
  __name(showFileDialog, "showFileDialog");
116980
- const version = "0.8.23";
116989
+ const version = "0.8.26";
116981
116990
  const packageJson = {
116982
116991
  version
116983
116992
  };
@@ -124356,28 +124365,30 @@ const __LinearView = class __LinearView extends React.Component {
124356
124365
  maxAnnotationsToDisplay
124357
124366
  } = this.props;
124358
124367
  this.paredDownMessages = [];
124359
- const paredDownSeqData = ["parts", "features", "cutsites"].reduce(
124360
- (acc, type2) => {
124361
- const nameUpper = startCase(type2);
124362
- const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
124363
- const [annotations, paredDown] = pareDownAnnotations(
124364
- sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
124365
- maxToShow
124368
+ const paredDownSeqData = [
124369
+ "parts",
124370
+ "features",
124371
+ "cutsites",
124372
+ "primers"
124373
+ ].reduce((acc, type2) => {
124374
+ const nameUpper = startCase(type2);
124375
+ const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
124376
+ const [annotations, paredDown] = pareDownAnnotations(
124377
+ sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
124378
+ maxToShow
124379
+ );
124380
+ if (paredDown) {
124381
+ this.paredDownMessages.push(
124382
+ getParedDownWarning({
124383
+ nameUpper,
124384
+ isAdjustable: !maxAnnotationsToDisplay,
124385
+ maxToShow
124386
+ })
124366
124387
  );
124367
- if (paredDown) {
124368
- this.paredDownMessages.push(
124369
- getParedDownWarning({
124370
- nameUpper,
124371
- isAdjustable: !maxAnnotationsToDisplay,
124372
- maxToShow
124373
- })
124374
- );
124375
- }
124376
- acc[type2] = annotations;
124377
- return acc;
124378
- },
124379
- {}
124380
- );
124388
+ }
124389
+ acc[type2] = annotations;
124390
+ return acc;
124391
+ }, {});
124381
124392
  this.rowData = prepareRowData(
124382
124393
  __spreadValues(__spreadValues({}, sequenceData2), paredDownSeqData),
124383
124394
  sequenceData2.sequence ? sequenceData2.sequence.length : 0
package/index.es.js CHANGED
@@ -84041,6 +84041,15 @@ function getAnnotationsBetweenRange(annotationsToBeAdjusted, range2, maxLength,
84041
84041
  }
84042
84042
  const overlaps = getZeroedRangeOverlaps(annotation, range2, maxLength).map(
84043
84043
  (overlap) => {
84044
+ const allLocations = annotation.locations;
84045
+ if (allLocations && allLocations.length) {
84046
+ const newLocations = allLocations.filter((loc) => {
84047
+ return isRangeWithinRange(loc, overlap, maxLength);
84048
+ });
84049
+ return assignIn({}, annotation, overlap, {
84050
+ locations: newLocations
84051
+ });
84052
+ }
84044
84053
  return assignIn({}, annotation, overlap);
84045
84054
  }
84046
84055
  );
@@ -116959,7 +116968,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116959
116968
  input.click();
116960
116969
  }
116961
116970
  __name(showFileDialog, "showFileDialog");
116962
- const version = "0.8.23";
116971
+ const version = "0.8.26";
116963
116972
  const packageJson = {
116964
116973
  version
116965
116974
  };
@@ -124338,28 +124347,30 @@ const __LinearView = class __LinearView extends React__default.Component {
124338
124347
  maxAnnotationsToDisplay
124339
124348
  } = this.props;
124340
124349
  this.paredDownMessages = [];
124341
- const paredDownSeqData = ["parts", "features", "cutsites"].reduce(
124342
- (acc, type2) => {
124343
- const nameUpper = startCase(type2);
124344
- const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
124345
- const [annotations, paredDown] = pareDownAnnotations(
124346
- sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
124347
- maxToShow
124350
+ const paredDownSeqData = [
124351
+ "parts",
124352
+ "features",
124353
+ "cutsites",
124354
+ "primers"
124355
+ ].reduce((acc, type2) => {
124356
+ const nameUpper = startCase(type2);
124357
+ const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
124358
+ const [annotations, paredDown] = pareDownAnnotations(
124359
+ sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
124360
+ maxToShow
124361
+ );
124362
+ if (paredDown) {
124363
+ this.paredDownMessages.push(
124364
+ getParedDownWarning({
124365
+ nameUpper,
124366
+ isAdjustable: !maxAnnotationsToDisplay,
124367
+ maxToShow
124368
+ })
124348
124369
  );
124349
- if (paredDown) {
124350
- this.paredDownMessages.push(
124351
- getParedDownWarning({
124352
- nameUpper,
124353
- isAdjustable: !maxAnnotationsToDisplay,
124354
- maxToShow
124355
- })
124356
- );
124357
- }
124358
- acc[type2] = annotations;
124359
- return acc;
124360
- },
124361
- {}
124362
- );
124370
+ }
124371
+ acc[type2] = annotations;
124372
+ return acc;
124373
+ }, {});
124363
124374
  this.rowData = prepareRowData(
124364
124375
  __spreadValues(__spreadValues({}, sequenceData2), paredDownSeqData),
124365
124376
  sequenceData2.sequence ? sequenceData2.sequence.length : 0
package/index.umd.js CHANGED
@@ -112962,6 +112962,15 @@ ${latestSubscriptionCallbackError.current.stack}
112962
112962
  }
112963
112963
  const overlaps = getZeroedRangeOverlaps(annotation, range2, maxLength).map(
112964
112964
  (overlap) => {
112965
+ const allLocations = annotation.locations;
112966
+ if (allLocations && allLocations.length) {
112967
+ const newLocations = allLocations.filter((loc) => {
112968
+ return isRangeWithinRange(loc, overlap, maxLength);
112969
+ });
112970
+ return assignIn({}, annotation, overlap, {
112971
+ locations: newLocations
112972
+ });
112973
+ }
112965
112974
  return assignIn({}, annotation, overlap);
112966
112975
  }
112967
112976
  );
@@ -145075,7 +145084,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
145075
145084
  input.click();
145076
145085
  }
145077
145086
  __name(showFileDialog, "showFileDialog");
145078
- const version = "0.8.23";
145087
+ const version = "0.8.26";
145079
145088
  const packageJson = {
145080
145089
  version
145081
145090
  };
@@ -150852,28 +150861,30 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150852
150861
  maxAnnotationsToDisplay
150853
150862
  } = this.props;
150854
150863
  this.paredDownMessages = [];
150855
- const paredDownSeqData = ["parts", "features", "cutsites"].reduce(
150856
- (acc, type2) => {
150857
- const nameUpper = startCase(type2);
150858
- const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
150859
- const [annotations, paredDown] = pareDownAnnotations(
150860
- sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
150861
- maxToShow
150864
+ const paredDownSeqData = [
150865
+ "parts",
150866
+ "features",
150867
+ "cutsites",
150868
+ "primers"
150869
+ ].reduce((acc, type2) => {
150870
+ const nameUpper = startCase(type2);
150871
+ const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
150872
+ const [annotations, paredDown] = pareDownAnnotations(
150873
+ sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
150874
+ maxToShow
150875
+ );
150876
+ if (paredDown) {
150877
+ this.paredDownMessages.push(
150878
+ getParedDownWarning({
150879
+ nameUpper,
150880
+ isAdjustable: !maxAnnotationsToDisplay,
150881
+ maxToShow
150882
+ })
150862
150883
  );
150863
- if (paredDown) {
150864
- this.paredDownMessages.push(
150865
- getParedDownWarning({
150866
- nameUpper,
150867
- isAdjustable: !maxAnnotationsToDisplay,
150868
- maxToShow
150869
- })
150870
- );
150871
- }
150872
- acc[type2] = annotations;
150873
- return acc;
150874
- },
150875
- {}
150876
- );
150884
+ }
150885
+ acc[type2] = annotations;
150886
+ return acc;
150887
+ }, {});
150877
150888
  this.rowData = prepareRowData(
150878
150889
  __spreadValues(__spreadValues({}, sequenceData2), paredDownSeqData),
150879
150890
  sequenceData2.sequence ? sequenceData2.sequence.length : 0
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.24",
3
+ "version": "0.8.26",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
+ "repository": "https://github.com/TeselaGen/tg-oss",
6
7
  "exports": {
7
8
  ".": {
8
9
  "import": "./index.es.js",
@@ -14,12 +15,12 @@
14
15
  "@blueprintjs/core": "3.54.0",
15
16
  "@hello-pangea/dnd": "16.2.0",
16
17
  "@risingstack/react-easy-state": "^6.3.0",
17
- "@teselagen/bio-parsers": "0.4.32",
18
- "@teselagen/file-utils": "0.3.20",
19
- "@teselagen/range-utils": "0.3.13",
18
+ "@teselagen/bio-parsers": "0.4.33",
19
+ "@teselagen/file-utils": "0.3.23",
20
+ "@teselagen/range-utils": "0.3.20",
20
21
  "@teselagen/react-list": "0.8.18",
21
- "@teselagen/sequence-utils": "0.3.37",
22
- "@teselagen/ui": "0.10.15",
22
+ "@teselagen/sequence-utils": "0.3.41",
23
+ "@teselagen/ui": "0.10.17",
23
24
  "@use-gesture/react": "10.3.0",
24
25
  "biomsa": "^0.2.4",
25
26
  "classnames": "^2.3.2",
@@ -62,6 +63,5 @@
62
63
  "to-regex-range": "5.0.1",
63
64
  "use-debounce": "^8.0.4",
64
65
  "validate.io-nonnegative-integer-array": "^1.0.1"
65
- },
66
- "license": "MIT"
67
- }
66
+ }
67
+ }
@@ -104,32 +104,34 @@ class _LinearView extends React.Component {
104
104
  } = this.props;
105
105
  // if (!isEqual(sequenceData, this.oldSeqData)) {
106
106
  this.paredDownMessages = [];
107
- const paredDownSeqData = ["parts", "features", "cutsites"].reduce(
108
- (acc, type) => {
109
- const nameUpper = startCase(type);
110
- const maxToShow =
111
- (maxAnnotationsToDisplay
112
- ? maxAnnotationsToDisplay[type]
113
- : limits[type]) || 50;
114
- const [annotations, paredDown] = pareDownAnnotations(
115
- sequenceData["filtered" + nameUpper] || sequenceData[type] || {},
116
- maxToShow
117
- );
107
+ const paredDownSeqData = [
108
+ "parts",
109
+ "features",
110
+ "cutsites",
111
+ "primers"
112
+ ].reduce((acc, type) => {
113
+ const nameUpper = startCase(type);
114
+ const maxToShow =
115
+ (maxAnnotationsToDisplay
116
+ ? maxAnnotationsToDisplay[type]
117
+ : limits[type]) || 50;
118
+ const [annotations, paredDown] = pareDownAnnotations(
119
+ sequenceData["filtered" + nameUpper] || sequenceData[type] || {},
120
+ maxToShow
121
+ );
118
122
 
119
- if (paredDown) {
120
- this.paredDownMessages.push(
121
- getParedDownWarning({
122
- nameUpper,
123
- isAdjustable: !maxAnnotationsToDisplay,
124
- maxToShow
125
- })
126
- );
127
- }
128
- acc[type] = annotations;
129
- return acc;
130
- },
131
- {}
132
- );
123
+ if (paredDown) {
124
+ this.paredDownMessages.push(
125
+ getParedDownWarning({
126
+ nameUpper,
127
+ isAdjustable: !maxAnnotationsToDisplay,
128
+ maxToShow
129
+ })
130
+ );
131
+ }
132
+ acc[type] = annotations;
133
+ return acc;
134
+ }, {});
133
135
  this.rowData = prepareRowData(
134
136
  {
135
137
  ...sequenceData,