@teselagen/ove 0.8.12 → 0.8.13

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
@@ -56614,10 +56614,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
56614
56614
  });
56615
56615
  }
56616
56616
  const __schema = useDeepEqualMemo(_schema);
56617
- const convertedSchema = React.useMemo(
56618
- () => convertSchema(__schema),
56619
- [__schema]
56620
- );
56617
+ const convertedSchema = React.useMemo(() => convertSchema(__schema), [__schema]);
56621
56618
  if (isLocalCall) {
56622
56619
  if (!noForm && (!formName || formName === "tgDataTable")) {
56623
56620
  throw new Error(
@@ -85561,6 +85558,11 @@ function genbankToJson(string2, options = {}) {
85561
85558
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
85562
85559
  delete feat.notes.direction;
85563
85560
  }
85561
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
85562
+ if (parsedSequence.circular === void 0) {
85563
+ parsedSequence.circular = true;
85564
+ }
85565
+ }
85564
85566
  if (parsedSequence.circular) {
85565
85567
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
85566
85568
  feat.locations = wrapOriginSpanningFeatures(
@@ -85569,6 +85571,8 @@ function genbankToJson(string2, options = {}) {
85569
85571
  inclusive1BasedStart2,
85570
85572
  inclusive1BasedEnd2
85571
85573
  );
85574
+ } else if (feat.locations && feat.locations.length > 1) {
85575
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
85572
85576
  }
85573
85577
  return feat;
85574
85578
  }
@@ -116634,7 +116638,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116634
116638
  input.click();
116635
116639
  }
116636
116640
  __name(showFileDialog, "showFileDialog");
116637
- const version = "0.8.11";
116641
+ const version = "0.8.12";
116638
116642
  const packageJson = {
116639
116643
  version
116640
116644
  };
@@ -140116,10 +140120,10 @@ const AlignmentView$1 = compose(
140116
140120
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
140117
140121
  }
140118
140122
  });
140119
- const tracks = parseTracks(alignmentTracks);
140120
- const labileSites = getLabileSites(tracks, 0.5);
140121
140123
  const annotationsWithCounts = [];
140122
140124
  if (alignmentTracks) {
140125
+ const tracks = parseTracks(alignmentTracks);
140126
+ const labileSites = getLabileSites(tracks, 0.5);
140123
140127
  let totalNumOfFeatures = 0;
140124
140128
  let totalNumOfParts = 0;
140125
140129
  alignmentTracks.forEach((seq) => {
package/index.es.js CHANGED
@@ -56596,10 +56596,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
56596
56596
  });
56597
56597
  }
56598
56598
  const __schema = useDeepEqualMemo(_schema);
56599
- const convertedSchema = useMemo$1(
56600
- () => convertSchema(__schema),
56601
- [__schema]
56602
- );
56599
+ const convertedSchema = useMemo$1(() => convertSchema(__schema), [__schema]);
56603
56600
  if (isLocalCall) {
56604
56601
  if (!noForm && (!formName || formName === "tgDataTable")) {
56605
56602
  throw new Error(
@@ -85543,6 +85540,11 @@ function genbankToJson(string2, options = {}) {
85543
85540
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
85544
85541
  delete feat.notes.direction;
85545
85542
  }
85543
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
85544
+ if (parsedSequence.circular === void 0) {
85545
+ parsedSequence.circular = true;
85546
+ }
85547
+ }
85546
85548
  if (parsedSequence.circular) {
85547
85549
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
85548
85550
  feat.locations = wrapOriginSpanningFeatures(
@@ -85551,6 +85553,8 @@ function genbankToJson(string2, options = {}) {
85551
85553
  inclusive1BasedStart2,
85552
85554
  inclusive1BasedEnd2
85553
85555
  );
85556
+ } else if (feat.locations && feat.locations.length > 1) {
85557
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
85554
85558
  }
85555
85559
  return feat;
85556
85560
  }
@@ -116616,7 +116620,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116616
116620
  input.click();
116617
116621
  }
116618
116622
  __name(showFileDialog, "showFileDialog");
116619
- const version = "0.8.11";
116623
+ const version = "0.8.12";
116620
116624
  const packageJson = {
116621
116625
  version
116622
116626
  };
@@ -140098,10 +140102,10 @@ const AlignmentView$1 = compose(
140098
140102
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
140099
140103
  }
140100
140104
  });
140101
- const tracks = parseTracks(alignmentTracks);
140102
- const labileSites = getLabileSites(tracks, 0.5);
140103
140105
  const annotationsWithCounts = [];
140104
140106
  if (alignmentTracks) {
140107
+ const tracks = parseTracks(alignmentTracks);
140108
+ const labileSites = getLabileSites(tracks, 0.5);
140105
140109
  let totalNumOfFeatures = 0;
140106
140110
  let totalNumOfParts = 0;
140107
140111
  alignmentTracks.forEach((seq) => {
package/index.umd.js CHANGED
@@ -85645,10 +85645,7 @@ ${latestSubscriptionCallbackError.current.stack}
85645
85645
  });
85646
85646
  }
85647
85647
  const __schema = useDeepEqualMemo(_schema);
85648
- const convertedSchema = reactExports.useMemo(
85649
- () => convertSchema(__schema),
85650
- [__schema]
85651
- );
85648
+ const convertedSchema = reactExports.useMemo(() => convertSchema(__schema), [__schema]);
85652
85649
  if (isLocalCall) {
85653
85650
  if (!noForm && (!formName || formName === "tgDataTable")) {
85654
85651
  throw new Error(
@@ -114464,6 +114461,11 @@ ${latestSubscriptionCallbackError.current.stack}
114464
114461
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
114465
114462
  delete feat.notes.direction;
114466
114463
  }
114464
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
114465
+ if (parsedSequence.circular === void 0) {
114466
+ parsedSequence.circular = true;
114467
+ }
114468
+ }
114467
114469
  if (parsedSequence.circular) {
114468
114470
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
114469
114471
  feat.locations = wrapOriginSpanningFeatures(
@@ -114472,6 +114474,8 @@ ${latestSubscriptionCallbackError.current.stack}
114472
114474
  inclusive1BasedStart2,
114473
114475
  inclusive1BasedEnd2
114474
114476
  );
114477
+ } else if (feat.locations && feat.locations.length > 1) {
114478
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
114475
114479
  }
114476
114480
  return feat;
114477
114481
  }
@@ -144732,7 +144736,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
144732
144736
  input.click();
144733
144737
  }
144734
144738
  __name(showFileDialog, "showFileDialog");
144735
- const version = "0.8.11";
144739
+ const version = "0.8.12";
144736
144740
  const packageJson = {
144737
144741
  version
144738
144742
  };
@@ -166612,10 +166616,10 @@ ${seqDataToCopy}\r
166612
166616
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
166613
166617
  }
166614
166618
  });
166615
- const tracks = parseTracks(alignmentTracks);
166616
- const labileSites = getLabileSites(tracks, 0.5);
166617
166619
  const annotationsWithCounts = [];
166618
166620
  if (alignmentTracks) {
166621
+ const tracks = parseTracks(alignmentTracks);
166622
+ const labileSites = getLabileSites(tracks, 0.5);
166619
166623
  let totalNumOfFeatures = 0;
166620
166624
  let totalNumOfParts = 0;
166621
166625
  alignmentTracks.forEach((seq) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1970,11 +1970,10 @@ export default compose(
1970
1970
  }
1971
1971
  });
1972
1972
 
1973
- const tracks = parseTracks(alignmentTracks);
1974
- const labileSites = getLabileSites(tracks, 0.5);
1975
-
1976
1973
  const annotationsWithCounts = [];
1977
1974
  if (alignmentTracks) {
1975
+ const tracks = parseTracks(alignmentTracks);
1976
+ const labileSites = getLabileSites(tracks, 0.5);
1978
1977
  let totalNumOfFeatures = 0;
1979
1978
  let totalNumOfParts = 0;
1980
1979
  alignmentTracks.forEach(seq => {
@@ -19,17 +19,6 @@ export const filteredRestrictionEnzymesAdd = createAction(
19
19
  // Reducer
20
20
  // ------------------------------------
21
21
  const defaultInitialState = [specialCutsiteFilterOptions.single];
22
- // let initialState = defaultInitialState;
23
- // const localDefault = window.localStorage.getItem("tgInitialCutsiteFilter");
24
-
25
- // if (localDefault) {
26
- // try {
27
- // initialState = JSON.parse(localDefault);
28
- // if (!Array.isArray(initialState)) throw new Error("Must be an array");
29
- // } catch (e) {
30
- // initialState = defaultInitialState;
31
- // }
32
- // }
33
22
 
34
23
  export default combineReducers({
35
24
  //filteredRestrictionEnzymes refer to the enzymes actively included in the react-select filter component