@teselagen/ove 0.3.24 → 0.3.25

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
@@ -18260,10 +18260,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
18260
18260
  return result;
18261
18261
  }, "_objectKeysInternal");
18262
18262
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
18263
- var $keys$2 = _objectKeysInternal;
18263
+ var $keys$3 = _objectKeysInternal;
18264
18264
  var enumBugKeys$1 = _enumBugKeys;
18265
18265
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18266
- return $keys$2(O2, enumBugKeys$1);
18266
+ return $keys$3(O2, enumBugKeys$1);
18267
18267
  }, "keys");
18268
18268
  var _objectGops = {};
18269
18269
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -18948,21 +18948,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
18948
18948
  }, "isArray");
18949
18949
  var _objectGopnExt = {};
18950
18950
  var _objectGopn = {};
18951
- var hasRequired_objectGopn;
18952
- function require_objectGopn() {
18953
- if (hasRequired_objectGopn)
18954
- return _objectGopn;
18955
- hasRequired_objectGopn = 1;
18956
- var $keys2 = _objectKeysInternal;
18957
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18958
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
18959
- return $keys2(O2, hiddenKeys);
18960
- }, "getOwnPropertyNames");
18961
- return _objectGopn;
18962
- }
18963
- __name(require_objectGopn, "require_objectGopn");
18951
+ var $keys$2 = _objectKeysInternal;
18952
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18953
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
18954
+ return $keys$2(O2, hiddenKeys);
18955
+ }, "getOwnPropertyNames");
18964
18956
  var toIObject$2 = _toIobject;
18965
- var gOPN$1 = require_objectGopn().f;
18957
+ var gOPN$1 = _objectGopn.f;
18966
18958
  var toString$5 = {}.toString;
18967
18959
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
18968
18960
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -18972,7 +18964,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
18972
18964
  return windowNames.slice();
18973
18965
  }
18974
18966
  }, "getWindowNames");
18975
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
18967
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
18976
18968
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
18977
18969
  }, "getOwnPropertyNames");
18978
18970
  var _objectGopd = {};
@@ -19111,7 +19103,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
19111
19103
  D2.enumerable = true;
19112
19104
  return D2;
19113
19105
  }, "getOwnPropertyDescriptor");
19114
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19106
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
19115
19107
  var names2 = gOPN(toIObject(it));
19116
19108
  var result = [];
19117
19109
  var i = 0;
@@ -19155,7 +19147,7 @@ if (!USE_NATIVE) {
19155
19147
  }, "toString"));
19156
19148
  $GOPD.f = $getOwnPropertyDescriptor;
19157
19149
  $DP.f = $defineProperty$1;
19158
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
19150
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19159
19151
  require_objectPie().f = $propertyIsEnumerable;
19160
19152
  $GOPS.f = $getOwnPropertySymbols;
19161
19153
  if (DESCRIPTORS && !_library) {
@@ -54934,7 +54926,7 @@ var KNOWN_STATICS = {
54934
54926
  arity: true
54935
54927
  };
54936
54928
  var defineProperty$3 = Object.defineProperty;
54937
- var getOwnPropertyNames3 = Object.getOwnPropertyNames;
54929
+ var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54938
54930
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54939
54931
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
54940
54932
  var getPrototypeOf = Object.getPrototypeOf;
@@ -54947,7 +54939,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54947
54939
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
54948
54940
  }
54949
54941
  }
54950
- var keys5 = getOwnPropertyNames3(sourceComponent);
54942
+ var keys5 = getOwnPropertyNames4(sourceComponent);
54951
54943
  if (getOwnPropertySymbols3) {
54952
54944
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
54953
54945
  }
@@ -71217,6 +71209,7 @@ function UploaderInner({
71217
71209
  // called when a file link in the filelist is clicked
71218
71210
  dropzoneProps = {},
71219
71211
  overflowList,
71212
+ autoUnzip,
71220
71213
  disabled,
71221
71214
  initializeForm,
71222
71215
  showFilesCount,
@@ -71241,7 +71234,7 @@ function UploaderInner({
71241
71234
  validateAgainstSchema = validateAgainstSchemaStore.current;
71242
71235
  }
71243
71236
  const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
71244
- if (validateAgainstSchemaStore.current && accept && !accept.some((a2) => a2.type === "zip")) {
71237
+ if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
71245
71238
  accept == null ? void 0 : accept.unshift({
71246
71239
  type: "zip",
71247
71240
  description: "Any of the following types, just compressed"
@@ -71602,7 +71595,7 @@ function UploaderInner({
71602
71595
  var _a3, _b3;
71603
71596
  let acceptedFiles = [];
71604
71597
  for (const file of _acceptedFiles) {
71605
- if (validateAgainstSchema && isZipFile(file)) {
71598
+ if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
71606
71599
  const files = yield filterFilesInZip(
71607
71600
  file,
71608
71601
  ((_a3 = simpleAccept == null ? void 0 : simpleAccept.split(", ")) == null ? void 0 : _a3.map((a2) => a2.startsWith(".") ? a2 : "." + a2)) || []
@@ -125692,7 +125685,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125692
125685
  }
125693
125686
  __name(showFileDialog, "showFileDialog");
125694
125687
  const name = "@teselagen/ove";
125695
- const version = "0.3.23";
125688
+ const version = "0.3.24";
125696
125689
  const main = "./src/index.js";
125697
125690
  const exports$1 = {
125698
125691
  ".": {
@@ -126445,8 +126438,7 @@ const getNewTranslationHandler = /* @__PURE__ */ __name((isReverse) => ({
126445
126438
  });
126446
126439
  props.annotationVisibilityShow("translations");
126447
126440
  },
126448
- isHidden: (props) => isProtein(props) || !props.annotationsToSupport || // props.readOnly ||
126449
- !props.annotationsToSupport.translations,
126441
+ isHidden: (props) => isProtein(props) || !props.annotationsToSupport || props.readOnly || !props.annotationsToSupport.translations,
126450
126442
  isDisabled: (props) => (
126451
126443
  /* (props.readOnly && readOnlyDisabledTooltip) || */
126452
126444
  props.sequenceLength === 0 || noSelection(props)
package/index.es.js CHANGED
@@ -18242,10 +18242,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
18242
18242
  return result;
18243
18243
  }, "_objectKeysInternal");
18244
18244
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
18245
- var $keys$2 = _objectKeysInternal;
18245
+ var $keys$3 = _objectKeysInternal;
18246
18246
  var enumBugKeys$1 = _enumBugKeys;
18247
18247
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18248
- return $keys$2(O2, enumBugKeys$1);
18248
+ return $keys$3(O2, enumBugKeys$1);
18249
18249
  }, "keys");
18250
18250
  var _objectGops = {};
18251
18251
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -18930,21 +18930,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
18930
18930
  }, "isArray");
18931
18931
  var _objectGopnExt = {};
18932
18932
  var _objectGopn = {};
18933
- var hasRequired_objectGopn;
18934
- function require_objectGopn() {
18935
- if (hasRequired_objectGopn)
18936
- return _objectGopn;
18937
- hasRequired_objectGopn = 1;
18938
- var $keys2 = _objectKeysInternal;
18939
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18940
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
18941
- return $keys2(O2, hiddenKeys);
18942
- }, "getOwnPropertyNames");
18943
- return _objectGopn;
18944
- }
18945
- __name(require_objectGopn, "require_objectGopn");
18933
+ var $keys$2 = _objectKeysInternal;
18934
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18935
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
18936
+ return $keys$2(O2, hiddenKeys);
18937
+ }, "getOwnPropertyNames");
18946
18938
  var toIObject$2 = _toIobject;
18947
- var gOPN$1 = require_objectGopn().f;
18939
+ var gOPN$1 = _objectGopn.f;
18948
18940
  var toString$5 = {}.toString;
18949
18941
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
18950
18942
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -18954,7 +18946,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
18954
18946
  return windowNames.slice();
18955
18947
  }
18956
18948
  }, "getWindowNames");
18957
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
18949
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
18958
18950
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
18959
18951
  }, "getOwnPropertyNames");
18960
18952
  var _objectGopd = {};
@@ -19093,7 +19085,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
19093
19085
  D2.enumerable = true;
19094
19086
  return D2;
19095
19087
  }, "getOwnPropertyDescriptor");
19096
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19088
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
19097
19089
  var names2 = gOPN(toIObject(it));
19098
19090
  var result = [];
19099
19091
  var i = 0;
@@ -19137,7 +19129,7 @@ if (!USE_NATIVE) {
19137
19129
  }, "toString"));
19138
19130
  $GOPD.f = $getOwnPropertyDescriptor;
19139
19131
  $DP.f = $defineProperty$1;
19140
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
19132
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19141
19133
  require_objectPie().f = $propertyIsEnumerable;
19142
19134
  $GOPS.f = $getOwnPropertySymbols;
19143
19135
  if (DESCRIPTORS && !_library) {
@@ -54916,7 +54908,7 @@ var KNOWN_STATICS = {
54916
54908
  arity: true
54917
54909
  };
54918
54910
  var defineProperty$3 = Object.defineProperty;
54919
- var getOwnPropertyNames3 = Object.getOwnPropertyNames;
54911
+ var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54920
54912
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54921
54913
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
54922
54914
  var getPrototypeOf = Object.getPrototypeOf;
@@ -54929,7 +54921,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54929
54921
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
54930
54922
  }
54931
54923
  }
54932
- var keys5 = getOwnPropertyNames3(sourceComponent);
54924
+ var keys5 = getOwnPropertyNames4(sourceComponent);
54933
54925
  if (getOwnPropertySymbols3) {
54934
54926
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
54935
54927
  }
@@ -71199,6 +71191,7 @@ function UploaderInner({
71199
71191
  // called when a file link in the filelist is clicked
71200
71192
  dropzoneProps = {},
71201
71193
  overflowList,
71194
+ autoUnzip,
71202
71195
  disabled,
71203
71196
  initializeForm,
71204
71197
  showFilesCount,
@@ -71223,7 +71216,7 @@ function UploaderInner({
71223
71216
  validateAgainstSchema = validateAgainstSchemaStore.current;
71224
71217
  }
71225
71218
  const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
71226
- if (validateAgainstSchemaStore.current && accept && !accept.some((a2) => a2.type === "zip")) {
71219
+ if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
71227
71220
  accept == null ? void 0 : accept.unshift({
71228
71221
  type: "zip",
71229
71222
  description: "Any of the following types, just compressed"
@@ -71584,7 +71577,7 @@ function UploaderInner({
71584
71577
  var _a3, _b3;
71585
71578
  let acceptedFiles = [];
71586
71579
  for (const file of _acceptedFiles) {
71587
- if (validateAgainstSchema && isZipFile(file)) {
71580
+ if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
71588
71581
  const files = yield filterFilesInZip(
71589
71582
  file,
71590
71583
  ((_a3 = simpleAccept == null ? void 0 : simpleAccept.split(", ")) == null ? void 0 : _a3.map((a2) => a2.startsWith(".") ? a2 : "." + a2)) || []
@@ -125674,7 +125667,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125674
125667
  }
125675
125668
  __name(showFileDialog, "showFileDialog");
125676
125669
  const name = "@teselagen/ove";
125677
- const version = "0.3.23";
125670
+ const version = "0.3.24";
125678
125671
  const main = "./src/index.js";
125679
125672
  const exports$1 = {
125680
125673
  ".": {
@@ -126427,8 +126420,7 @@ const getNewTranslationHandler = /* @__PURE__ */ __name((isReverse) => ({
126427
126420
  });
126428
126421
  props.annotationVisibilityShow("translations");
126429
126422
  },
126430
- isHidden: (props) => isProtein(props) || !props.annotationsToSupport || // props.readOnly ||
126431
- !props.annotationsToSupport.translations,
126423
+ isHidden: (props) => isProtein(props) || !props.annotationsToSupport || props.readOnly || !props.annotationsToSupport.translations,
126432
126424
  isDisabled: (props) => (
126433
126425
  /* (props.readOnly && readOnlyDisabledTooltip) || */
126434
126426
  props.sequenceLength === 0 || noSelection(props)
package/index.umd.js CHANGED
@@ -101120,6 +101120,7 @@ ${latestSubscriptionCallbackError.current.stack}
101120
101120
  // called when a file link in the filelist is clicked
101121
101121
  dropzoneProps = {},
101122
101122
  overflowList,
101123
+ autoUnzip,
101123
101124
  disabled,
101124
101125
  initializeForm,
101125
101126
  showFilesCount,
@@ -101144,7 +101145,7 @@ ${latestSubscriptionCallbackError.current.stack}
101144
101145
  validateAgainstSchema = validateAgainstSchemaStore.current;
101145
101146
  }
101146
101147
  const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
101147
- if (validateAgainstSchemaStore.current && accept && !accept.some((a2) => a2.type === "zip")) {
101148
+ if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
101148
101149
  accept == null ? void 0 : accept.unshift({
101149
101150
  type: "zip",
101150
101151
  description: "Any of the following types, just compressed"
@@ -101505,7 +101506,7 @@ ${latestSubscriptionCallbackError.current.stack}
101505
101506
  var _a3, _b3;
101506
101507
  let acceptedFiles = [];
101507
101508
  for (const file of _acceptedFiles) {
101508
- if (validateAgainstSchema && isZipFile(file)) {
101509
+ if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
101509
101510
  const files = yield filterFilesInZip(
101510
101511
  file,
101511
101512
  ((_a3 = simpleAccept == null ? void 0 : simpleAccept.split(", ")) == null ? void 0 : _a3.map((a2) => a2.startsWith(".") ? a2 : "." + a2)) || []
@@ -154974,7 +154975,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
154974
154975
  }
154975
154976
  __name(showFileDialog, "showFileDialog");
154976
154977
  const name = "@teselagen/ove";
154977
- const version = "0.3.23";
154978
+ const version = "0.3.24";
154978
154979
  const main = "./src/index.js";
154979
154980
  const exports$1 = {
154980
154981
  ".": {
@@ -155727,8 +155728,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
155727
155728
  });
155728
155729
  props.annotationVisibilityShow("translations");
155729
155730
  },
155730
- isHidden: (props) => isProtein(props) || !props.annotationsToSupport || // props.readOnly ||
155731
- !props.annotationsToSupport.translations,
155731
+ isHidden: (props) => isProtein(props) || !props.annotationsToSupport || props.readOnly || !props.annotationsToSupport.translations,
155732
155732
  isDisabled: (props) => (
155733
155733
  /* (props.readOnly && readOnlyDisabledTooltip) || */
155734
155734
  props.sequenceLength === 0 || noSelection(props)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@teselagen/sequence-utils": "0.3.7",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.24",
18
+ "@teselagen/ui": "0.3.25",
19
19
  "@teselagen/file-utils": "0.3.9",
20
20
  "@teselagen/bounce-loader": "0.3.11",
21
21
  "@teselagen/bio-parsers": "0.3.8",
@@ -132,11 +132,9 @@ class Translation extends React.Component {
132
132
  } -- Hydrophobicity: ${aminoAcid.hydrophobicity} -- Mass: ${
133
133
  aminoAcid.mass
134
134
  }\n
135
- Part of ${
136
- annotation.translationType
137
- } Translation from BPs ${annotation.start + 1} to ${
138
- annotation.end + 1
139
- } (${aminoAcids.length / 3} AAs)`}
135
+ Part of ${annotation.translationType} Translation from BPs ${
136
+ annotation.start + 1
137
+ } to ${annotation.end + 1} (${aminoAcids.length / 3} AAs)`}
140
138
  showAminoAcidNumbers={showAminoAcidNumbers}
141
139
  aminoAcidIndex={aminoAcidSliver.aminoAcidIndex}
142
140
  onDoubleClick={function (event) {
@@ -59,7 +59,7 @@ const getNewTranslationHandler = isReverse => ({
59
59
  isHidden: props =>
60
60
  isProtein(props) ||
61
61
  !props.annotationsToSupport ||
62
- // props.readOnly ||
62
+ props.readOnly ||
63
63
  !props.annotationsToSupport.translations,
64
64
  isDisabled: props =>
65
65
  /* (props.readOnly && readOnlyDisabledTooltip) || */ props.sequenceLength ===