@teselagen/ove 0.8.16 → 0.8.18

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
@@ -116640,7 +116640,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116640
116640
  input.click();
116641
116641
  }
116642
116642
  __name(showFileDialog, "showFileDialog");
116643
- const version = "0.8.15";
116643
+ const version = "0.8.17";
116644
116644
  const packageJson = {
116645
116645
  version
116646
116646
  };
@@ -122383,7 +122383,7 @@ function SequenceName({
122383
122383
  showAminoAcidUnitAsCodon
122384
122384
  }) {
122385
122385
  const proteinUnits = showAminoAcidUnitAsCodon ? "codons" : "AAs";
122386
- return /* @__PURE__ */ React.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React.createElement("span", null, sequenceName, " "), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
122386
+ return /* @__PURE__ */ React.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React.createElement("span", { title: sequenceName }, sequenceName, " "), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
122387
122387
  }
122388
122388
  __name(SequenceName, "SequenceName");
122389
122389
  function massageTickSpacing(spacing) {
@@ -143607,7 +143607,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
143607
143607
  this.commands = getCommands(this);
143608
143608
  }
143609
143609
  render() {
143610
- var _a2, _b2;
143610
+ var _a2, _b2, _c;
143611
143611
  const {
143612
143612
  readOnly: readOnly2,
143613
143613
  annotations = {},
@@ -143631,7 +143631,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
143631
143631
  });
143632
143632
  });
143633
143633
  const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
143634
- const additionalColumns = ((_b2 = PropertiesProps == null ? void 0 : PropertiesProps[annotationType]) == null ? void 0 : _b2.additionalColumns) || [];
143634
+ const additionalColumns = ((_c = (_b2 = PropertiesProps == null ? void 0 : PropertiesProps.propertiesList) == null ? void 0 : _b2.find(
143635
+ (p2) => (p2.name || p2) === (pluralize(annotationType) || "")
143636
+ )) == null ? void 0 : _c.additionalColumns) || [];
143635
143637
  this.schema = {
143636
143638
  fields: [
143637
143639
  {
package/index.es.js CHANGED
@@ -116622,7 +116622,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116622
116622
  input.click();
116623
116623
  }
116624
116624
  __name(showFileDialog, "showFileDialog");
116625
- const version = "0.8.15";
116625
+ const version = "0.8.17";
116626
116626
  const packageJson = {
116627
116627
  version
116628
116628
  };
@@ -122365,7 +122365,7 @@ function SequenceName({
122365
122365
  showAminoAcidUnitAsCodon
122366
122366
  }) {
122367
122367
  const proteinUnits = showAminoAcidUnitAsCodon ? "codons" : "AAs";
122368
- return /* @__PURE__ */ React__default.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React__default.createElement("span", null, sequenceName, " "), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
122368
+ return /* @__PURE__ */ React__default.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React__default.createElement("span", { title: sequenceName }, sequenceName, " "), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
122369
122369
  }
122370
122370
  __name(SequenceName, "SequenceName");
122371
122371
  function massageTickSpacing(spacing) {
@@ -143589,7 +143589,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
143589
143589
  this.commands = getCommands(this);
143590
143590
  }
143591
143591
  render() {
143592
- var _a2, _b2;
143592
+ var _a2, _b2, _c;
143593
143593
  const {
143594
143594
  readOnly: readOnly2,
143595
143595
  annotations = {},
@@ -143613,7 +143613,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
143613
143613
  });
143614
143614
  });
143615
143615
  const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
143616
- const additionalColumns = ((_b2 = PropertiesProps == null ? void 0 : PropertiesProps[annotationType]) == null ? void 0 : _b2.additionalColumns) || [];
143616
+ const additionalColumns = ((_c = (_b2 = PropertiesProps == null ? void 0 : PropertiesProps.propertiesList) == null ? void 0 : _b2.find(
143617
+ (p2) => (p2.name || p2) === (pluralize(annotationType) || "")
143618
+ )) == null ? void 0 : _c.additionalColumns) || [];
143617
143619
  this.schema = {
143618
143620
  fields: [
143619
143621
  {
package/index.umd.js CHANGED
@@ -144738,7 +144738,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
144738
144738
  input.click();
144739
144739
  }
144740
144740
  __name(showFileDialog, "showFileDialog");
144741
- const version = "0.8.15";
144741
+ const version = "0.8.17";
144742
144742
  const packageJson = {
144743
144743
  version
144744
144744
  };
@@ -148879,7 +148879,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
148879
148879
  showAminoAcidUnitAsCodon
148880
148880
  }) {
148881
148881
  const proteinUnits = showAminoAcidUnitAsCodon ? "codons" : "AAs";
148882
- return /* @__PURE__ */ React.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React.createElement("span", null, sequenceName, " "), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
148882
+ return /* @__PURE__ */ React.createElement("div", { key: "sequenceNameText", className: "sequenceNameText" }, /* @__PURE__ */ React.createElement("span", { title: sequenceName }, sequenceName, " "), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("span", null, isProtein2 ? `${Math.floor(sequenceLength / 3)} ${proteinUnits}` : `${sequenceLength} bps`));
148883
148883
  }
148884
148884
  __name(SequenceName, "SequenceName");
148885
148885
  function massageTickSpacing(spacing) {
@@ -170103,7 +170103,7 @@ ${seqDataToCopy}\r
170103
170103
  this.commands = getCommands(this);
170104
170104
  }
170105
170105
  render() {
170106
- var _a2, _b2;
170106
+ var _a2, _b2, _c2;
170107
170107
  const {
170108
170108
  readOnly: readOnly2,
170109
170109
  annotations = {},
@@ -170127,7 +170127,9 @@ ${seqDataToCopy}\r
170127
170127
  });
170128
170128
  });
170129
170129
  const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
170130
- const additionalColumns = ((_b2 = PropertiesProps == null ? void 0 : PropertiesProps[annotationType]) == null ? void 0 : _b2.additionalColumns) || [];
170130
+ const additionalColumns = ((_c2 = (_b2 = PropertiesProps == null ? void 0 : PropertiesProps.propertiesList) == null ? void 0 : _b2.find(
170131
+ (p2) => (p2.name || p2) === (pluralize(annotationType) || "")
170132
+ )) == null ? void 0 : _c2.additionalColumns) || [];
170131
170133
  this.schema = {
170132
170134
  fields: [
170133
170135
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "@blueprintjs/core": "3.54.0",
15
15
  "@hello-pangea/dnd": "16.2.0",
16
16
  "@risingstack/react-easy-state": "^6.3.0",
17
- "@teselagen/bio-parsers": "0.4.31",
17
+ "@teselagen/bio-parsers": "0.4.32",
18
18
  "@teselagen/file-utils": "0.3.20",
19
19
  "@teselagen/range-utils": "0.3.13",
20
20
  "@teselagen/react-list": "0.8.18",
@@ -9,7 +9,7 @@ export function SequenceName({
9
9
  const proteinUnits = showAminoAcidUnitAsCodon ? "codons" : "AAs";
10
10
  return (
11
11
  <div key="sequenceNameText" className="sequenceNameText">
12
- <span>{sequenceName} </span>
12
+ <span title={sequenceName}>{sequenceName} </span>
13
13
  <br />
14
14
  <span>
15
15
  {isProtein
@@ -20,6 +20,7 @@ import {
20
20
  Tooltip
21
21
  } from "@blueprintjs/core";
22
22
  import { getRangeLength } from "@teselagen/range-utils";
23
+ import pluralize from "pluralize";
23
24
  // import { Popover } from "@blueprintjs/core";
24
25
  // import ColorPicker from "./ColorPicker";
25
26
  import { connectToEditor } from "../../withEditorProps";
@@ -87,9 +88,10 @@ const genericAnnotationProperties = ({
87
88
  });
88
89
 
89
90
  const keyedPartTags = getKeyedTagsAndTagOptions(allPartTags) ?? {};
90
-
91
91
  const additionalColumns =
92
- PropertiesProps?.[annotationType]?.additionalColumns || [];
92
+ PropertiesProps?.propertiesList?.find(
93
+ p => (p.name || p) === (pluralize(annotationType) || "")
94
+ )?.additionalColumns || [];
93
95
 
94
96
  this.schema = {
95
97
  fields: [