@teselagen/ove 0.5.31-beta.1 → 0.5.31-beta.2

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
@@ -48109,20 +48109,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48109
48109
  props = __spreadValues(__spreadValues({}, props), withSelectedEntities2 && typeof withSelectedEntities2 === "string" && {
48110
48110
  [withSelectedEntities2]: selectedEntities
48111
48111
  });
48112
- console.log("history.location", history);
48113
48112
  const currentParams = React$2.useMemo(() => {
48114
- const tmp = (urlConnected ? getCurrentParamsFromUrl(
48115
- history ? history.location : ownProps.location
48116
- ) : reduxFormQueryParams) || {};
48113
+ const tmp = (urlConnected ? getCurrentParamsFromUrl(history.location) : reduxFormQueryParams) || {};
48117
48114
  tmp.searchTerm = reduxFormSearchInput;
48118
48115
  return tmp;
48119
- }, [
48120
- history,
48121
- ownProps.location,
48122
- reduxFormQueryParams,
48123
- reduxFormSearchInput,
48124
- urlConnected
48125
- ]);
48116
+ }, [history, reduxFormQueryParams, reduxFormSearchInput, urlConnected]);
48126
48117
  const tableParams = React$2.useMemo(() => {
48127
48118
  if (!isTableParamsConnected) {
48128
48119
  const updateSearch = /* @__PURE__ */ __name((val2) => {
@@ -48159,7 +48150,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48159
48150
  _tableParams,
48160
48151
  change,
48161
48152
  currentParams,
48162
- history.replace,
48153
+ history,
48163
48154
  isTableParamsConnected,
48164
48155
  props,
48165
48156
  selectedEntities,
@@ -117754,7 +117745,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117754
117745
  }
117755
117746
  __name(showFileDialog, "showFileDialog");
117756
117747
  const name = "@teselagen/ove";
117757
- const version = "0.5.30";
117748
+ const version = "0.5.31-beta.1";
117758
117749
  const main = "./src/index.js";
117759
117750
  const type = "module";
117760
117751
  const exports$1 = {
@@ -133611,7 +133602,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
133611
133602
  RenderBases2,
133612
133603
  __spreadValues({}, {
133613
133604
  // ...this.props,
133614
- // bases,
133605
+ bases,
133615
133606
  defaultLinkedOligoMessage,
133616
133607
  getLinkedOligoLink,
133617
133608
  readOnly: this.props.readOnly,
@@ -134200,9 +134191,9 @@ const CustomContentEditable = generateField(/* @__PURE__ */ __name(function Cust
134200
134191
  start: start2,
134201
134192
  end: end2,
134202
134193
  primerBindsOn,
134203
- bases,
134204
134194
  forward
134205
134195
  }) {
134196
+ const bases = input.value;
134206
134197
  const [hasTempError, setTempError] = React$2.useState(false);
134207
134198
  const inputRef = React$2.useRef(null);
134208
134199
  const [caretPosition2, setCaretPosition] = React$2.useState({ start: 0, end: 0 });
@@ -134331,7 +134322,6 @@ const RenderBases = /* @__PURE__ */ __name((props) => {
134331
134322
  normalizedSelection,
134332
134323
  sequenceData2.sequence
134333
134324
  );
134334
- console.log("bps", bps);
134335
134325
  if (!forward) {
134336
134326
  bps = getReverseComplementSequenceString(bps);
134337
134327
  }
package/index.es.js CHANGED
@@ -48091,20 +48091,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48091
48091
  props = __spreadValues(__spreadValues({}, props), withSelectedEntities2 && typeof withSelectedEntities2 === "string" && {
48092
48092
  [withSelectedEntities2]: selectedEntities
48093
48093
  });
48094
- console.log("history.location", history);
48095
48094
  const currentParams = useMemo$1(() => {
48096
- const tmp = (urlConnected ? getCurrentParamsFromUrl(
48097
- history ? history.location : ownProps.location
48098
- ) : reduxFormQueryParams) || {};
48095
+ const tmp = (urlConnected ? getCurrentParamsFromUrl(history.location) : reduxFormQueryParams) || {};
48099
48096
  tmp.searchTerm = reduxFormSearchInput;
48100
48097
  return tmp;
48101
- }, [
48102
- history,
48103
- ownProps.location,
48104
- reduxFormQueryParams,
48105
- reduxFormSearchInput,
48106
- urlConnected
48107
- ]);
48098
+ }, [history, reduxFormQueryParams, reduxFormSearchInput, urlConnected]);
48108
48099
  const tableParams = useMemo$1(() => {
48109
48100
  if (!isTableParamsConnected) {
48110
48101
  const updateSearch = /* @__PURE__ */ __name((val2) => {
@@ -48141,7 +48132,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48141
48132
  _tableParams,
48142
48133
  change2,
48143
48134
  currentParams,
48144
- history.replace,
48135
+ history,
48145
48136
  isTableParamsConnected,
48146
48137
  props,
48147
48138
  selectedEntities,
@@ -117736,7 +117727,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117736
117727
  }
117737
117728
  __name(showFileDialog, "showFileDialog");
117738
117729
  const name = "@teselagen/ove";
117739
- const version = "0.5.30";
117730
+ const version = "0.5.31-beta.1";
117740
117731
  const main = "./src/index.js";
117741
117732
  const type = "module";
117742
117733
  const exports$1 = {
@@ -133593,7 +133584,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
133593
133584
  RenderBases2,
133594
133585
  __spreadValues({}, {
133595
133586
  // ...this.props,
133596
- // bases,
133587
+ bases,
133597
133588
  defaultLinkedOligoMessage,
133598
133589
  getLinkedOligoLink,
133599
133590
  readOnly: this.props.readOnly,
@@ -134182,9 +134173,9 @@ const CustomContentEditable = generateField(/* @__PURE__ */ __name(function Cust
134182
134173
  start: start2,
134183
134174
  end: end2,
134184
134175
  primerBindsOn,
134185
- bases,
134186
134176
  forward
134187
134177
  }) {
134178
+ const bases = input.value;
134188
134179
  const [hasTempError, setTempError] = useState(false);
134189
134180
  const inputRef = useRef(null);
134190
134181
  const [caretPosition2, setCaretPosition] = useState({ start: 0, end: 0 });
@@ -134313,7 +134304,6 @@ const RenderBases = /* @__PURE__ */ __name((props) => {
134313
134304
  normalizedSelection,
134314
134305
  sequenceData2.sequence
134315
134306
  );
134316
- console.log("bps", bps);
134317
134307
  if (!forward) {
134318
134308
  bps = getReverseComplementSequenceString(bps);
134319
134309
  }
package/index.umd.js CHANGED
@@ -77349,20 +77349,11 @@ ${latestSubscriptionCallbackError.current.stack}
77349
77349
  props = __spreadValues(__spreadValues({}, props), withSelectedEntities2 && typeof withSelectedEntities2 === "string" && {
77350
77350
  [withSelectedEntities2]: selectedEntities
77351
77351
  });
77352
- console.log("history.location", history);
77353
77352
  const currentParams = reactExports.useMemo(() => {
77354
- const tmp = (urlConnected ? getCurrentParamsFromUrl(
77355
- history ? history.location : ownProps.location
77356
- ) : reduxFormQueryParams) || {};
77353
+ const tmp = (urlConnected ? getCurrentParamsFromUrl(history.location) : reduxFormQueryParams) || {};
77357
77354
  tmp.searchTerm = reduxFormSearchInput;
77358
77355
  return tmp;
77359
- }, [
77360
- history,
77361
- ownProps.location,
77362
- reduxFormQueryParams,
77363
- reduxFormSearchInput,
77364
- urlConnected
77365
- ]);
77356
+ }, [history, reduxFormQueryParams, reduxFormSearchInput, urlConnected]);
77366
77357
  const tableParams = reactExports.useMemo(() => {
77367
77358
  if (!isTableParamsConnected) {
77368
77359
  const updateSearch = /* @__PURE__ */ __name((val2) => {
@@ -77399,7 +77390,7 @@ ${latestSubscriptionCallbackError.current.stack}
77399
77390
  _tableParams,
77400
77391
  change2,
77401
77392
  currentParams,
77402
- history.replace,
77393
+ history,
77403
77394
  isTableParamsConnected,
77404
77395
  props,
77405
77396
  selectedEntities,
@@ -146285,7 +146276,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
146285
146276
  }
146286
146277
  __name(showFileDialog, "showFileDialog");
146287
146278
  const name = "@teselagen/ove";
146288
- const version = "0.5.30";
146279
+ const version = "0.5.31-beta.1";
146289
146280
  const main = "./src/index.js";
146290
146281
  const type = "module";
146291
146282
  const exports$1 = {
@@ -160537,7 +160528,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
160537
160528
  RenderBases2,
160538
160529
  __spreadValues({}, {
160539
160530
  // ...this.props,
160540
- // bases,
160531
+ bases,
160541
160532
  defaultLinkedOligoMessage,
160542
160533
  getLinkedOligoLink,
160543
160534
  readOnly: this.props.readOnly,
@@ -161126,9 +161117,9 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
161126
161117
  start: start2,
161127
161118
  end: end2,
161128
161119
  primerBindsOn,
161129
- bases,
161130
161120
  forward
161131
161121
  }) {
161122
+ const bases = input.value;
161132
161123
  const [hasTempError, setTempError] = reactExports.useState(false);
161133
161124
  const inputRef = reactExports.useRef(null);
161134
161125
  const [caretPosition2, setCaretPosition] = reactExports.useState({ start: 0, end: 0 });
@@ -161257,7 +161248,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
161257
161248
  normalizedSelection,
161258
161249
  sequenceData2.sequence
161259
161250
  );
161260
- console.log("bps", bps);
161261
161251
  if (!forward) {
161262
161252
  bps = getReverseComplementSequenceString(bps);
161263
161253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.31-beta.1",
3
+ "version": "0.5.31-beta.2",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -429,7 +429,7 @@ class AddOrEditAnnotationDialog extends React.Component {
429
429
  <RenderBases
430
430
  {...{
431
431
  // ...this.props,
432
- // bases,
432
+ bases,
433
433
  defaultLinkedOligoMessage,
434
434
  getLinkedOligoLink,
435
435
  readOnly: this.props.readOnly,
@@ -25,7 +25,6 @@ import { Menu, MenuItem } from "@blueprintjs/core";
25
25
  import MeltingTemp from "../../StatusBar/MeltingTemp";
26
26
  import { getStructuredBases } from "../../RowItem/StackedAnnotations/getStructuredBases";
27
27
 
28
- // TODO: Default value here is not working
29
28
  const CustomContentEditable = generateField(function CustomContentEditable({
30
29
  input,
31
30
  disabled,
@@ -34,9 +33,9 @@ const CustomContentEditable = generateField(function CustomContentEditable({
34
33
  start,
35
34
  end,
36
35
  primerBindsOn,
37
- bases,
38
36
  forward
39
37
  }) {
38
+ const bases = input.value;
40
39
  const [hasTempError, setTempError] = useState(false);
41
40
  const inputRef = useRef(null);
42
41
  const [caretPosition, setCaretPosition] = useState({ start: 0, end: 0 });
@@ -171,7 +170,6 @@ const RenderBases = props => {
171
170
  normalizedSelection,
172
171
  sequenceData.sequence
173
172
  );
174
- console.log("bps", bps);
175
173
  if (!forward) {
176
174
  bps = getReverseComplementSequenceString(bps);
177
175
  }
@@ -372,7 +372,6 @@ class EnzymesDialog extends React.Component {
372
372
  <h5>Edit group name</h5>
373
373
  <div style={{ display: "flex" }}>
374
374
  <InputGroup
375
- // TODO: Table is failing here so no way to test it
376
375
  defaultValue={selectedEnzymeGroup}
377
376
  autoFocus
378
377
  className="veEditEnzymeGroupName"