@teselagen/ove 0.5.14 → 0.5.15
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 +242 -231
- package/index.es.js +242 -231
- package/index.umd.js +100 -124
- package/package.json +1 -1
- package/src/GlobalDialogUtils.js +4 -1
- package/src/withEditorInteractions/index.js +15 -28
- package/src/withEditorProps/index.js +9 -8
- package/style.css +7 -0
|
@@ -354,7 +354,7 @@ export default compose(
|
|
|
354
354
|
),
|
|
355
355
|
withHandlers({
|
|
356
356
|
wrappedInsertSequenceDataAtPositionOrRange: props => {
|
|
357
|
-
return (
|
|
357
|
+
return async (
|
|
358
358
|
_sequenceDataToInsert,
|
|
359
359
|
_existingSequenceData,
|
|
360
360
|
_caretPositionOrRange,
|
|
@@ -365,14 +365,15 @@ export default compose(
|
|
|
365
365
|
existingSequenceData,
|
|
366
366
|
caretPositionOrRange,
|
|
367
367
|
options
|
|
368
|
-
} =
|
|
369
|
-
? props.beforeSequenceInsertOrDelete(
|
|
368
|
+
} = (props.beforeSequenceInsertOrDelete
|
|
369
|
+
? await props.beforeSequenceInsertOrDelete(
|
|
370
370
|
tidyUpSequenceData(_sequenceDataToInsert),
|
|
371
371
|
tidyUpSequenceData(_existingSequenceData),
|
|
372
372
|
_caretPositionOrRange,
|
|
373
373
|
_options
|
|
374
374
|
) || {}
|
|
375
|
-
: {};
|
|
375
|
+
: {});
|
|
376
|
+
console.log(`zoink2`)
|
|
376
377
|
return [
|
|
377
378
|
insertSequenceDataAtPositionOrRange(
|
|
378
379
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -483,7 +484,7 @@ export default compose(
|
|
|
483
484
|
caretPositionUpdate(0);
|
|
484
485
|
},
|
|
485
486
|
|
|
486
|
-
handleReverseComplementSelection: props => () => {
|
|
487
|
+
handleReverseComplementSelection: props => async () => {
|
|
487
488
|
const {
|
|
488
489
|
sequenceData,
|
|
489
490
|
updateSequenceData,
|
|
@@ -499,7 +500,7 @@ export default compose(
|
|
|
499
500
|
range: selectionLayer
|
|
500
501
|
}
|
|
501
502
|
);
|
|
502
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
503
|
+
const [newSeqData] = await wrappedInsertSequenceDataAtPositionOrRange(
|
|
503
504
|
reversedSeqData,
|
|
504
505
|
sequenceData,
|
|
505
506
|
selectionLayer,
|
|
@@ -510,7 +511,7 @@ export default compose(
|
|
|
510
511
|
updateSequenceData(newSeqData);
|
|
511
512
|
},
|
|
512
513
|
|
|
513
|
-
handleComplementSelection: props => () => {
|
|
514
|
+
handleComplementSelection: props => async () => {
|
|
514
515
|
const {
|
|
515
516
|
sequenceData,
|
|
516
517
|
updateSequenceData,
|
|
@@ -523,7 +524,7 @@ export default compose(
|
|
|
523
524
|
const comp = getComplementSequenceAndAnnotations(sequenceData, {
|
|
524
525
|
range: selectionLayer
|
|
525
526
|
});
|
|
526
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
527
|
+
const [newSeqData] = await wrappedInsertSequenceDataAtPositionOrRange(
|
|
527
528
|
comp,
|
|
528
529
|
sequenceData,
|
|
529
530
|
selectionLayer,
|
package/style.css
CHANGED
|
@@ -9086,6 +9086,13 @@ button:not(:disabled):active {
|
|
|
9086
9086
|
width: 100%;
|
|
9087
9087
|
min-width: 170px;
|
|
9088
9088
|
}
|
|
9089
|
+
.tg-select.tg-select-as-tag {
|
|
9090
|
+
/* background-color: red; */
|
|
9091
|
+
border-radius: 4px;
|
|
9092
|
+
width: fit-content;
|
|
9093
|
+
color: white;
|
|
9094
|
+
border: 2px solid white;
|
|
9095
|
+
}
|
|
9089
9096
|
.tg-select.tg-select-as-tag .bp3-tag.bp3-minimal.bp3-intent-primary {
|
|
9090
9097
|
color: white !important;
|
|
9091
9098
|
}
|