@teselagen/ove 0.5.20 → 0.5.21

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
@@ -72086,7 +72086,6 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React$
72086
72086
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
72087
72087
  let ResizableDraggableDialog = _ResizableDraggableDialog;
72088
72088
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3, disabled }) {
72089
- console.log(`navTo:`, navTo);
72090
72089
  if (disabled) {
72091
72090
  return /* @__PURE__ */ React$2.createElement("li", { className: core.Classes.POPOVER_DISMISS }, /* @__PURE__ */ React$2.createElement(core.MenuItem, { icon, disabled: true, text: text2 }));
72092
72091
  }
@@ -72138,7 +72137,6 @@ const EnhancedMenuItem = compose(
72138
72137
  if (navTo) {
72139
72138
  MenuItemComp = MenuItemLink;
72140
72139
  }
72141
- console.log(`navTo:`, navTo);
72142
72140
  return /* @__PURE__ */ React$2.createElement(
72143
72141
  MenuItemComp,
72144
72142
  __spreadProps(__spreadValues(__spreadValues({
@@ -122383,7 +122381,7 @@ function oveCommandFactory(instance, commandDefs2) {
122383
122381
  return args;
122384
122382
  },
122385
122383
  handleReturn: noop$6,
122386
- commandDefs: commandDefs2
122384
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
122387
122385
  });
122388
122386
  }
122389
122387
  __name(oveCommandFactory, "oveCommandFactory");
@@ -122411,7 +122409,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122411
122409
  }
122412
122410
  __name(showFileDialog, "showFileDialog");
122413
122411
  const name = "@teselagen/ove";
122414
- const version = "0.5.19";
122412
+ const version = "0.5.20";
122415
122413
  const main = "./src/index.js";
122416
122414
  const type = "module";
122417
122415
  const exports$1 = {
@@ -143196,6 +143194,7 @@ const userDefinedHandlersAndOpts = [
143196
143194
  "disableSetReadOnly",
143197
143195
  "allowAnnotationEditLocking",
143198
143196
  "disableBpEditing",
143197
+ "massageCmds",
143199
143198
  "showReadOnly",
143200
143199
  "showCircularity",
143201
143200
  "onHiddenEnzymeAdd",
package/index.es.js CHANGED
@@ -72068,7 +72068,6 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React_
72068
72068
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
72069
72069
  let ResizableDraggableDialog = _ResizableDraggableDialog;
72070
72070
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3, disabled }) {
72071
- console.log(`navTo:`, navTo);
72072
72071
  if (disabled) {
72073
72072
  return /* @__PURE__ */ React__default$1.createElement("li", { className: Classes.POPOVER_DISMISS }, /* @__PURE__ */ React__default$1.createElement(MenuItem, { icon, disabled: true, text: text2 }));
72074
72073
  }
@@ -72120,7 +72119,6 @@ const EnhancedMenuItem = compose(
72120
72119
  if (navTo) {
72121
72120
  MenuItemComp = MenuItemLink;
72122
72121
  }
72123
- console.log(`navTo:`, navTo);
72124
72122
  return /* @__PURE__ */ React__default$1.createElement(
72125
72123
  MenuItemComp,
72126
72124
  __spreadProps(__spreadValues(__spreadValues({
@@ -122365,7 +122363,7 @@ function oveCommandFactory(instance, commandDefs2) {
122365
122363
  return args;
122366
122364
  },
122367
122365
  handleReturn: noop$6,
122368
- commandDefs: commandDefs2
122366
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
122369
122367
  });
122370
122368
  }
122371
122369
  __name(oveCommandFactory, "oveCommandFactory");
@@ -122393,7 +122391,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122393
122391
  }
122394
122392
  __name(showFileDialog, "showFileDialog");
122395
122393
  const name = "@teselagen/ove";
122396
- const version = "0.5.19";
122394
+ const version = "0.5.20";
122397
122395
  const main = "./src/index.js";
122398
122396
  const type = "module";
122399
122397
  const exports$1 = {
@@ -143178,6 +143176,7 @@ const userDefinedHandlersAndOpts = [
143178
143176
  "disableSetReadOnly",
143179
143177
  "allowAnnotationEditLocking",
143180
143178
  "disableBpEditing",
143179
+ "massageCmds",
143181
143180
  "showReadOnly",
143182
143181
  "showCircularity",
143183
143182
  "onHiddenEnzymeAdd",
package/index.umd.js CHANGED
@@ -101256,7 +101256,6 @@ ${latestSubscriptionCallbackError.current.stack}
101256
101256
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
101257
101257
  let ResizableDraggableDialog = _ResizableDraggableDialog;
101258
101258
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active2, disabled }) {
101259
- console.log(`navTo:`, navTo);
101260
101259
  if (disabled) {
101261
101260
  return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS }, /* @__PURE__ */ React$2.createElement(MenuItem, { icon, disabled: true, text: text2 }));
101262
101261
  }
@@ -101308,7 +101307,6 @@ ${latestSubscriptionCallbackError.current.stack}
101308
101307
  if (navTo) {
101309
101308
  MenuItemComp = MenuItemLink;
101310
101309
  }
101311
- console.log(`navTo:`, navTo);
101312
101310
  return /* @__PURE__ */ React$2.createElement(
101313
101311
  MenuItemComp,
101314
101312
  __spreadProps(__spreadValues(__spreadValues({
@@ -150850,7 +150848,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150850
150848
  return args;
150851
150849
  },
150852
150850
  handleReturn: noop$6,
150853
- commandDefs: commandDefs2
150851
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
150854
150852
  });
150855
150853
  }
150856
150854
  __name(oveCommandFactory, "oveCommandFactory");
@@ -150878,7 +150876,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150878
150876
  }
150879
150877
  __name(showFileDialog, "showFileDialog");
150880
150878
  const name = "@teselagen/ove";
150881
- const version = "0.5.19";
150879
+ const version = "0.5.20";
150882
150880
  const main = "./src/index.js";
150883
150881
  const type = "module";
150884
150882
  const exports$1 = {
@@ -169546,6 +169544,7 @@ ${seqDataToCopy}\r
169546
169544
  "disableSetReadOnly",
169547
169545
  "allowAnnotationEditLocking",
169548
169546
  "disableBpEditing",
169547
+ "massageCmds",
169549
169548
  "showReadOnly",
169550
169549
  "showCircularity",
169551
169550
  "onHiddenEnzymeAdd",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.20",
3
+ "version": "0.5.21",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.25",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.4.17",
15
+ "@teselagen/ui": "0.4.18",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
18
  "@teselagen/bio-parsers": "0.4.19",
@@ -22,6 +22,7 @@ export const userDefinedHandlersAndOpts = [
22
22
  "disableSetReadOnly",
23
23
  "allowAnnotationEditLocking",
24
24
  "disableBpEditing",
25
+ "massageCmds",
25
26
  "showReadOnly",
26
27
  "showCircularity",
27
28
  "onHiddenEnzymeAdd",
@@ -16,8 +16,9 @@ export default function MeltingTemp({
16
16
  </Button>
17
17
  )
18
18
  }) {
19
- const [primerConc/* , setPrimerConcentration */] = React.useState(0.0000005);
20
- const [monovalentCationConc/* , setMonovalentCationConc */] = React.useState(0.05);
19
+ const [primerConc /* , setPrimerConcentration */] = React.useState(0.0000005);
20
+ const [monovalentCationConc /* , setMonovalentCationConc */] =
21
+ React.useState(0.05);
21
22
  const [tmType, setTmType] = useTmType();
22
23
  let tm = (tmType === "neb_tm" ? calculateNebTm : calculateTm)(sequence, {
23
24
  monovalentCationConc,
@@ -13,6 +13,8 @@ export function oveCommandFactory(instance, commandDefs) {
13
13
  return args;
14
14
  },
15
15
  handleReturn: noop,
16
- commandDefs
16
+ commandDefs: instance.props.massageCmds
17
+ ? instance.props.massageCmds(commandDefs)
18
+ : commandDefs
17
19
  });
18
20
  }
package/style.css CHANGED
@@ -9042,6 +9042,9 @@ button:not(:disabled):active {
9042
9042
  .bp3-tabs.bp3-vertical > .bp3-tab-panel {
9043
9043
  min-width: 0px;
9044
9044
  }
9045
+ .bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts {
9046
+ border: 1px solid white !important;
9047
+ }
9045
9048
  .bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts:hover {
9046
9049
  /* background: blue !important; */
9047
9050
  /* background: unset !important; */