@teselagen/ove 0.7.11 → 0.7.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
@@ -17944,25 +17944,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
17944
17944
  return value;
17945
17945
  }, "GetIntrinsic");
17946
17946
  var callBind$3 = { exports: {} };
17947
- var esDefineProperty;
17948
- var hasRequiredEsDefineProperty;
17949
- function requireEsDefineProperty() {
17950
- if (hasRequiredEsDefineProperty)
17951
- return esDefineProperty;
17952
- hasRequiredEsDefineProperty = 1;
17953
- var GetIntrinsic3 = getIntrinsic;
17954
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
17955
- if ($defineProperty2) {
17956
- try {
17957
- $defineProperty2({}, "a", { value: 1 });
17958
- } catch (e) {
17959
- $defineProperty2 = false;
17960
- }
17947
+ var GetIntrinsic$4 = getIntrinsic;
17948
+ var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
17949
+ if ($defineProperty$2) {
17950
+ try {
17951
+ $defineProperty$2({}, "a", { value: 1 });
17952
+ } catch (e) {
17953
+ $defineProperty$2 = false;
17961
17954
  }
17962
- esDefineProperty = $defineProperty2;
17963
- return esDefineProperty;
17964
17955
  }
17965
- __name(requireEsDefineProperty, "requireEsDefineProperty");
17956
+ var esDefineProperty = $defineProperty$2;
17966
17957
  var GetIntrinsic$3 = getIntrinsic;
17967
17958
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
17968
17959
  if ($gOPD$1) {
@@ -17973,7 +17964,7 @@ if ($gOPD$1) {
17973
17964
  }
17974
17965
  }
17975
17966
  var gopd$1 = $gOPD$1;
17976
- var $defineProperty$1 = requireEsDefineProperty();
17967
+ var $defineProperty$1 = esDefineProperty;
17977
17968
  var $SyntaxError = syntax;
17978
17969
  var $TypeError$4 = type$1;
17979
17970
  var gopd = gopd$1;
@@ -18014,7 +18005,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
18014
18005
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
18015
18006
  }
18016
18007
  }, "defineDataProperty");
18017
- var $defineProperty = requireEsDefineProperty();
18008
+ var $defineProperty = esDefineProperty;
18018
18009
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
18019
18010
  return !!$defineProperty;
18020
18011
  }, "hasPropertyDescriptors");
@@ -18083,7 +18074,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
18083
18074
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
18084
18075
  var $call = GetIntrinsic3("%Function.prototype.call%");
18085
18076
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
18086
- var $defineProperty2 = requireEsDefineProperty();
18077
+ var $defineProperty2 = esDefineProperty;
18087
18078
  var $max = GetIntrinsic3("%Math.max%");
18088
18079
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
18089
18080
  if (typeof originalFunction !== "function") {
@@ -31888,7 +31879,7 @@ const AbstractInput = /* @__PURE__ */ __name(({
31888
31879
  disabled,
31889
31880
  fileLimit,
31890
31881
  inlineLabel,
31891
- input: { name: name2, value },
31882
+ input: { name: name2 },
31892
31883
  intent,
31893
31884
  isLabelTooltip,
31894
31885
  isLoadingDefaultValue,
@@ -31896,7 +31887,7 @@ const AbstractInput = /* @__PURE__ */ __name(({
31896
31887
  label,
31897
31888
  labelStyle,
31898
31889
  leftEl,
31899
- meta: { form, touched, error, warning: warning2 },
31890
+ meta: { form, touched, error, warning: warning2, initial },
31900
31891
  noFillField,
31901
31892
  noMarginBottom,
31902
31893
  noOuterLabel,
@@ -31913,10 +31904,9 @@ const AbstractInput = /* @__PURE__ */ __name(({
31913
31904
  tooltipProps
31914
31905
  }) => {
31915
31906
  const dispatch = reactRedux.useDispatch();
31916
- const initalValuePassed = React$2.useRef(value);
31917
31907
  const onDefaultValChanged = useStableReference(_onDefaultValChanged);
31918
31908
  const onFieldSubmit = useStableReference(_onFieldSubmit);
31919
- const doesNotHaveInitialValue = !isLoadingDefaultValue && !initalValuePassed.current;
31909
+ const doesNotHaveInitialValue = !initial;
31920
31910
  React$2.useEffect(() => {
31921
31911
  if (defaultValue2 !== void 0 && doesNotHaveInitialValue) {
31922
31912
  dispatch(reduxForm.change(form, name2, defaultValue2));
@@ -66759,16 +66749,6 @@ const setupCsvParserOptions = /* @__PURE__ */ __name((parserOptions = {}) => {
66759
66749
  return transHeader;
66760
66750
  };
66761
66751
  }
66762
- const transformToAlwaysRun = /* @__PURE__ */ __name((header) => header.trim().toLowerCase(), "transformToAlwaysRun");
66763
- if (parserOptions.transformHeader) {
66764
- const existingTransformHeader = parserOptions.transformHeader;
66765
- papaParseOpts.transformHeader = (header) => {
66766
- const trimmedHeader = transformToAlwaysRun(header);
66767
- return existingTransformHeader(trimmedHeader);
66768
- };
66769
- } else {
66770
- papaParseOpts.transformHeader = transformToAlwaysRun;
66771
- }
66772
66752
  return papaParseOpts;
66773
66753
  }, "setupCsvParserOptions");
66774
66754
  const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
@@ -122413,7 +122393,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122413
122393
  }
122414
122394
  __name(showFileDialog, "showFileDialog");
122415
122395
  const name = "@teselagen/ove";
122416
- const version = "0.7.10";
122396
+ const version = "0.7.12";
122417
122397
  const main = "./src/index.js";
122418
122398
  const type = "module";
122419
122399
  const exports$1 = {
package/index.es.js CHANGED
@@ -17926,25 +17926,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
17926
17926
  return value;
17927
17927
  }, "GetIntrinsic");
17928
17928
  var callBind$3 = { exports: {} };
17929
- var esDefineProperty;
17930
- var hasRequiredEsDefineProperty;
17931
- function requireEsDefineProperty() {
17932
- if (hasRequiredEsDefineProperty)
17933
- return esDefineProperty;
17934
- hasRequiredEsDefineProperty = 1;
17935
- var GetIntrinsic3 = getIntrinsic;
17936
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
17937
- if ($defineProperty2) {
17938
- try {
17939
- $defineProperty2({}, "a", { value: 1 });
17940
- } catch (e) {
17941
- $defineProperty2 = false;
17942
- }
17929
+ var GetIntrinsic$4 = getIntrinsic;
17930
+ var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
17931
+ if ($defineProperty$2) {
17932
+ try {
17933
+ $defineProperty$2({}, "a", { value: 1 });
17934
+ } catch (e) {
17935
+ $defineProperty$2 = false;
17943
17936
  }
17944
- esDefineProperty = $defineProperty2;
17945
- return esDefineProperty;
17946
17937
  }
17947
- __name(requireEsDefineProperty, "requireEsDefineProperty");
17938
+ var esDefineProperty = $defineProperty$2;
17948
17939
  var GetIntrinsic$3 = getIntrinsic;
17949
17940
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
17950
17941
  if ($gOPD$1) {
@@ -17955,7 +17946,7 @@ if ($gOPD$1) {
17955
17946
  }
17956
17947
  }
17957
17948
  var gopd$1 = $gOPD$1;
17958
- var $defineProperty$1 = requireEsDefineProperty();
17949
+ var $defineProperty$1 = esDefineProperty;
17959
17950
  var $SyntaxError = syntax;
17960
17951
  var $TypeError$4 = type$1;
17961
17952
  var gopd = gopd$1;
@@ -17996,7 +17987,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
17996
17987
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
17997
17988
  }
17998
17989
  }, "defineDataProperty");
17999
- var $defineProperty = requireEsDefineProperty();
17990
+ var $defineProperty = esDefineProperty;
18000
17991
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
18001
17992
  return !!$defineProperty;
18002
17993
  }, "hasPropertyDescriptors");
@@ -18065,7 +18056,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
18065
18056
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
18066
18057
  var $call = GetIntrinsic3("%Function.prototype.call%");
18067
18058
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
18068
- var $defineProperty2 = requireEsDefineProperty();
18059
+ var $defineProperty2 = esDefineProperty;
18069
18060
  var $max = GetIntrinsic3("%Math.max%");
18070
18061
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
18071
18062
  if (typeof originalFunction !== "function") {
@@ -31870,7 +31861,7 @@ const AbstractInput = /* @__PURE__ */ __name(({
31870
31861
  disabled,
31871
31862
  fileLimit,
31872
31863
  inlineLabel,
31873
- input: { name: name2, value },
31864
+ input: { name: name2 },
31874
31865
  intent,
31875
31866
  isLabelTooltip,
31876
31867
  isLoadingDefaultValue,
@@ -31878,7 +31869,7 @@ const AbstractInput = /* @__PURE__ */ __name(({
31878
31869
  label,
31879
31870
  labelStyle,
31880
31871
  leftEl,
31881
- meta: { form, touched, error, warning: warning2 },
31872
+ meta: { form, touched, error, warning: warning2, initial },
31882
31873
  noFillField,
31883
31874
  noMarginBottom,
31884
31875
  noOuterLabel,
@@ -31895,10 +31886,9 @@ const AbstractInput = /* @__PURE__ */ __name(({
31895
31886
  tooltipProps
31896
31887
  }) => {
31897
31888
  const dispatch = useDispatch();
31898
- const initalValuePassed = useRef(value);
31899
31889
  const onDefaultValChanged = useStableReference(_onDefaultValChanged);
31900
31890
  const onFieldSubmit = useStableReference(_onFieldSubmit);
31901
- const doesNotHaveInitialValue = !isLoadingDefaultValue && !initalValuePassed.current;
31891
+ const doesNotHaveInitialValue = !initial;
31902
31892
  useEffect(() => {
31903
31893
  if (defaultValue2 !== void 0 && doesNotHaveInitialValue) {
31904
31894
  dispatch(change(form, name2, defaultValue2));
@@ -66741,16 +66731,6 @@ const setupCsvParserOptions = /* @__PURE__ */ __name((parserOptions = {}) => {
66741
66731
  return transHeader;
66742
66732
  };
66743
66733
  }
66744
- const transformToAlwaysRun = /* @__PURE__ */ __name((header) => header.trim().toLowerCase(), "transformToAlwaysRun");
66745
- if (parserOptions.transformHeader) {
66746
- const existingTransformHeader = parserOptions.transformHeader;
66747
- papaParseOpts.transformHeader = (header) => {
66748
- const trimmedHeader = transformToAlwaysRun(header);
66749
- return existingTransformHeader(trimmedHeader);
66750
- };
66751
- } else {
66752
- papaParseOpts.transformHeader = transformToAlwaysRun;
66753
- }
66754
66734
  return papaParseOpts;
66755
66735
  }, "setupCsvParserOptions");
66756
66736
  const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
@@ -122395,7 +122375,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122395
122375
  }
122396
122376
  __name(showFileDialog, "showFileDialog");
122397
122377
  const name = "@teselagen/ove";
122398
- const version = "0.7.10";
122378
+ const version = "0.7.12";
122399
122379
  const main = "./src/index.js";
122400
122380
  const type = "module";
122401
122381
  const exports$1 = {
package/index.umd.js CHANGED
@@ -61163,7 +61163,7 @@ ${latestSubscriptionCallbackError.current.stack}
61163
61163
  disabled,
61164
61164
  fileLimit,
61165
61165
  inlineLabel,
61166
- input: { name: name2, value },
61166
+ input: { name: name2 },
61167
61167
  intent,
61168
61168
  isLabelTooltip,
61169
61169
  isLoadingDefaultValue,
@@ -61171,7 +61171,7 @@ ${latestSubscriptionCallbackError.current.stack}
61171
61171
  label,
61172
61172
  labelStyle,
61173
61173
  leftEl,
61174
- meta: { form: form2, touched, error, warning: warning2 },
61174
+ meta: { form: form2, touched, error, warning: warning2, initial },
61175
61175
  noFillField,
61176
61176
  noMarginBottom,
61177
61177
  noOuterLabel,
@@ -61188,10 +61188,9 @@ ${latestSubscriptionCallbackError.current.stack}
61188
61188
  tooltipProps
61189
61189
  }) => {
61190
61190
  const dispatch = useDispatch();
61191
- const initalValuePassed = reactExports.useRef(value);
61192
61191
  const onDefaultValChanged = useStableReference(_onDefaultValChanged);
61193
61192
  const onFieldSubmit = useStableReference(_onFieldSubmit);
61194
- const doesNotHaveInitialValue = !isLoadingDefaultValue && !initalValuePassed.current;
61193
+ const doesNotHaveInitialValue = !initial;
61195
61194
  reactExports.useEffect(() => {
61196
61195
  if (defaultValue2 !== void 0 && doesNotHaveInitialValue) {
61197
61196
  dispatch(change(form2, name2, defaultValue2));
@@ -96039,16 +96038,6 @@ ${latestSubscriptionCallbackError.current.stack}
96039
96038
  return transHeader;
96040
96039
  };
96041
96040
  }
96042
- const transformToAlwaysRun = /* @__PURE__ */ __name((header) => header.trim().toLowerCase(), "transformToAlwaysRun");
96043
- if (parserOptions.transformHeader) {
96044
- const existingTransformHeader = parserOptions.transformHeader;
96045
- papaParseOpts.transformHeader = (header) => {
96046
- const trimmedHeader = transformToAlwaysRun(header);
96047
- return existingTransformHeader(trimmedHeader);
96048
- };
96049
- } else {
96050
- papaParseOpts.transformHeader = transformToAlwaysRun;
96051
- }
96052
96041
  return papaParseOpts;
96053
96042
  }, "setupCsvParserOptions");
96054
96043
  const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
@@ -150984,7 +150973,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150984
150973
  }
150985
150974
  __name(showFileDialog, "showFileDialog");
150986
150975
  const name = "@teselagen/ove";
150987
- const version = "0.7.10";
150976
+ const version = "0.7.12";
150988
150977
  const main = "./src/index.js";
150989
150978
  const type = "module";
150990
150979
  const exports$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,8 +12,8 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.27",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.7.15",
16
- "@teselagen/file-utils": "0.3.17",
15
+ "@teselagen/ui": "0.7.17",
16
+ "@teselagen/file-utils": "0.3.18",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
18
  "@teselagen/bio-parsers": "0.4.22",
19
19
  "@blueprintjs/core": "3.54.0",