@teselagen/ove 0.5.15 → 0.5.16
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 +241 -308
- package/index.es.js +241 -308
- package/index.umd.js +10 -8
- package/package.json +2 -2
- package/src/ToolBar/index.js +7 -4
- package/src/helperComponents/AddOrEditAnnotationDialog/index.js +0 -8
- package/src/withEditorInteractions/index.js +9 -10
- package/src/withEditorProps/index.js +4 -5
package/index.umd.js
CHANGED
|
@@ -62093,7 +62093,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
62093
62093
|
}
|
|
62094
62094
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
62095
62095
|
function getTagColorStyle(color2) {
|
|
62096
|
-
console.log(`color:`, color2);
|
|
62097
62096
|
return color2 ? {
|
|
62098
62097
|
style: {
|
|
62099
62098
|
backgroundColor: color2,
|
|
@@ -80183,7 +80182,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
80183
80182
|
withTableParams({
|
|
80184
80183
|
isLocalCall: true
|
|
80185
80184
|
}),
|
|
80186
|
-
|
|
80185
|
+
branch(
|
|
80186
|
+
(props) => props.showEmptyColumnsByDefault,
|
|
80187
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", true),
|
|
80188
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", false)
|
|
80189
|
+
),
|
|
80187
80190
|
withProps((ownProps) => {
|
|
80188
80191
|
let propsToUse = ownProps;
|
|
80189
80192
|
if (!ownProps.isTableParamsConnected) {
|
|
@@ -100723,7 +100726,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100723
100726
|
onClick: handleLinkClick,
|
|
100724
100727
|
to: navTo,
|
|
100725
100728
|
className: classNames$1(MENU_ITEM, {
|
|
100726
|
-
[ACTIVE]: active2
|
|
100729
|
+
[ACTIVE]: active2,
|
|
100730
|
+
[INTENT_PRIMARY]: active2
|
|
100727
100731
|
})
|
|
100728
100732
|
},
|
|
100729
100733
|
icon && /* @__PURE__ */ React$2.createElement(Icon, { icon }),
|
|
@@ -135375,7 +135379,6 @@ ${seq.sequence}
|
|
|
135375
135379
|
_caretPositionOrRange,
|
|
135376
135380
|
_options
|
|
135377
135381
|
)) || {} : {};
|
|
135378
|
-
console.log(`zoink2`);
|
|
135379
135382
|
return [
|
|
135380
135383
|
insertSequenceDataAtPositionOrRange(
|
|
135381
135384
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -150278,7 +150281,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
150278
150281
|
}
|
|
150279
150282
|
__name(showFileDialog, "showFileDialog");
|
|
150280
150283
|
const name = "@teselagen/ove";
|
|
150281
|
-
const version = "0.5.
|
|
150284
|
+
const version = "0.5.15";
|
|
150282
150285
|
const main = "./src/index.js";
|
|
150283
150286
|
const type = "module";
|
|
150284
150287
|
const exports$1 = {
|
|
@@ -153543,7 +153546,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153543
153546
|
sequenceData2,
|
|
153544
153547
|
rangeToDelete
|
|
153545
153548
|
);
|
|
153546
|
-
console.log(`z3`);
|
|
153547
153549
|
if (abortSeqChange)
|
|
153548
153550
|
return;
|
|
153549
153551
|
updateSequenceData2(newSeqData);
|
|
@@ -154333,7 +154335,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154333
154335
|
sequenceData2,
|
|
154334
154336
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
154335
154337
|
);
|
|
154336
|
-
console.log(`z4`);
|
|
154337
154338
|
if (abortSeqChange) {
|
|
154338
154339
|
throw new Error("abortSeqChange");
|
|
154339
154340
|
}
|
|
@@ -169613,7 +169614,7 @@ ${seqDataToCopy}\r
|
|
|
169613
169614
|
},
|
|
169614
169615
|
items
|
|
169615
169616
|
) : items
|
|
169616
|
-
), additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose }));
|
|
169617
|
+
), /* @__PURE__ */ React$2.createElement("div", { style: { height: 34, display: "flex" } }, additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose })));
|
|
169617
169618
|
}
|
|
169618
169619
|
__name(ToolBar, "ToolBar");
|
|
169619
169620
|
const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
@@ -169622,6 +169623,7 @@ ${seqDataToCopy}\r
|
|
|
169622
169623
|
{
|
|
169623
169624
|
"data-tip": "Close Fullscreen Mode",
|
|
169624
169625
|
minimal: true,
|
|
169626
|
+
intent: "primary",
|
|
169625
169627
|
style: {
|
|
169626
169628
|
marginTop: 2,
|
|
169627
169629
|
marginRight: 2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.16",
|
|
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.24",
|
|
14
14
|
"@teselagen/range-utils": "0.3.7",
|
|
15
|
-
"@teselagen/ui": "0.4.
|
|
15
|
+
"@teselagen/ui": "0.4.14",
|
|
16
16
|
"@teselagen/file-utils": "0.3.16",
|
|
17
17
|
"@teselagen/bounce-loader": "0.3.11",
|
|
18
18
|
"@teselagen/bio-parsers": "0.4.18",
|
package/src/ToolBar/index.js
CHANGED
|
@@ -189,10 +189,12 @@ export function ToolBar(props) {
|
|
|
189
189
|
items
|
|
190
190
|
)}
|
|
191
191
|
</div>
|
|
192
|
-
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
<div style={{ height: 34, display: "flex" }}>
|
|
193
|
+
{additionalTopRightToolbarButtons}
|
|
194
|
+
{closeFullscreen && (
|
|
195
|
+
<CloseFullscreenButton onClick={handleFullscreenClose} />
|
|
196
|
+
)}
|
|
197
|
+
</div>
|
|
196
198
|
</div>
|
|
197
199
|
);
|
|
198
200
|
}
|
|
@@ -201,6 +203,7 @@ const CloseFullscreenButton = props => {
|
|
|
201
203
|
<Button
|
|
202
204
|
data-tip="Close Fullscreen Mode"
|
|
203
205
|
minimal
|
|
206
|
+
intent="primary"
|
|
204
207
|
style={{
|
|
205
208
|
marginTop: 2,
|
|
206
209
|
marginRight: 2
|
|
@@ -236,13 +236,6 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
236
236
|
data.forward !== undefined
|
|
237
237
|
? data.forward
|
|
238
238
|
: data.arrowheadType !== "BOTTOM";
|
|
239
|
-
// if (data.arrowheadType === "BOTH") {
|
|
240
|
-
// data.arrowheadType = "BOTH";
|
|
241
|
-
// }
|
|
242
|
-
// if (data.arrowheadType === "NONE") {
|
|
243
|
-
// data.arrowheadType = "NONE";
|
|
244
|
-
// }
|
|
245
|
-
// delete data.arrowheadType;
|
|
246
239
|
if (
|
|
247
240
|
annotationTypePlural === "features" &&
|
|
248
241
|
allowMultipleFeatureDirections
|
|
@@ -274,7 +267,6 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
274
267
|
}
|
|
275
268
|
const hasJoinedLocations =
|
|
276
269
|
updatedData.locations && updatedData.locations.length > 1;
|
|
277
|
-
|
|
278
270
|
const newAnnotation = tidyUpAnnotation(
|
|
279
271
|
convertRangeTo0Based({
|
|
280
272
|
overlapsSelf: data.overlapsSelf,
|
|
@@ -424,13 +424,13 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
424
424
|
isCaretAtEndOfSeq = true;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const [newSeqData, {abortSeqChange}] =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
if (abortSeqChange) return
|
|
427
|
+
const [newSeqData, { abortSeqChange }] =
|
|
428
|
+
await wrappedInsertSequenceDataAtPositionOrRange(
|
|
429
|
+
{},
|
|
430
|
+
sequenceData,
|
|
431
|
+
rangeToDelete
|
|
432
|
+
);
|
|
433
|
+
if (abortSeqChange) return;
|
|
434
434
|
updateSequenceData(newSeqData);
|
|
435
435
|
caretPositionUpdate(
|
|
436
436
|
isCaretAtEndOfSeq
|
|
@@ -1209,13 +1209,12 @@ const insertAndSelectHelper = async ({ seqDataToInsert, props }) => {
|
|
|
1209
1209
|
selectionLayer,
|
|
1210
1210
|
bpLimit
|
|
1211
1211
|
} = props;
|
|
1212
|
-
const [newSeqData, { maintainOriginSplit, abortSeqChange }] =
|
|
1213
|
-
wrappedInsertSequenceDataAtPositionOrRange(
|
|
1212
|
+
const [newSeqData, { maintainOriginSplit, abortSeqChange }] =
|
|
1213
|
+
await wrappedInsertSequenceDataAtPositionOrRange(
|
|
1214
1214
|
seqDataToInsert,
|
|
1215
1215
|
sequenceData,
|
|
1216
1216
|
caretPosition > -1 ? caretPosition : selectionLayer
|
|
1217
1217
|
);
|
|
1218
|
-
console.log(`z4`)
|
|
1219
1218
|
if (abortSeqChange) {
|
|
1220
1219
|
throw new Error("abortSeqChange");
|
|
1221
1220
|
}
|
|
@@ -365,15 +365,14 @@ export default compose(
|
|
|
365
365
|
existingSequenceData,
|
|
366
366
|
caretPositionOrRange,
|
|
367
367
|
options
|
|
368
|
-
} =
|
|
369
|
-
? await props.beforeSequenceInsertOrDelete(
|
|
368
|
+
} = props.beforeSequenceInsertOrDelete
|
|
369
|
+
? (await props.beforeSequenceInsertOrDelete(
|
|
370
370
|
tidyUpSequenceData(_sequenceDataToInsert),
|
|
371
371
|
tidyUpSequenceData(_existingSequenceData),
|
|
372
372
|
_caretPositionOrRange,
|
|
373
373
|
_options
|
|
374
|
-
) || {}
|
|
375
|
-
: {}
|
|
376
|
-
console.log(`zoink2`)
|
|
374
|
+
)) || {}
|
|
375
|
+
: {};
|
|
377
376
|
return [
|
|
378
377
|
insertSequenceDataAtPositionOrRange(
|
|
379
378
|
sequenceDataToInsert || _sequenceDataToInsert,
|