@teselagen/ove 0.5.15 → 0.5.17
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 +52 -47
- package/index.es.js +52 -47
- package/index.umd.js +18 -23
- package/package.json +2 -2
- package/src/ToolBar/index.js +7 -4
- package/src/helperComponents/AddOrEditAnnotationDialog/index.js +2 -8
- package/src/withEditorInteractions/index.js +9 -10
- package/src/withEditorProps/index.js +4 -5
package/index.cjs.js
CHANGED
|
@@ -14480,10 +14480,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
14480
14480
|
return result;
|
|
14481
14481
|
}, "_objectKeysInternal");
|
|
14482
14482
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
14483
|
-
var $keys$
|
|
14483
|
+
var $keys$3 = _objectKeysInternal;
|
|
14484
14484
|
var enumBugKeys = _enumBugKeys;
|
|
14485
14485
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
14486
|
-
return $keys$
|
|
14486
|
+
return $keys$3(O2, enumBugKeys);
|
|
14487
14487
|
}, "keys");
|
|
14488
14488
|
var _objectGops = {};
|
|
14489
14489
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -14934,11 +14934,11 @@ var ArrayProto = Array.prototype;
|
|
|
14934
14934
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
14935
14935
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
14936
14936
|
}, "_isArrayIter");
|
|
14937
|
-
var $defineProperty$
|
|
14937
|
+
var $defineProperty$3 = require_objectDp();
|
|
14938
14938
|
var createDesc$2 = _propertyDesc;
|
|
14939
14939
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
14940
14940
|
if (index2 in object3)
|
|
14941
|
-
$defineProperty$
|
|
14941
|
+
$defineProperty$3.f(object3, index2, createDesc$2(0, value));
|
|
14942
14942
|
else
|
|
14943
14943
|
object3[index2] = value;
|
|
14944
14944
|
}, "_createProperty");
|
|
@@ -15186,21 +15186,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
|
|
|
15186
15186
|
}, "isArray");
|
|
15187
15187
|
var _objectGopnExt = {};
|
|
15188
15188
|
var _objectGopn = {};
|
|
15189
|
-
var
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
var $keys2 = _objectKeysInternal;
|
|
15195
|
-
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15196
|
-
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
|
|
15197
|
-
return $keys2(O2, hiddenKeys);
|
|
15198
|
-
}, "getOwnPropertyNames");
|
|
15199
|
-
return _objectGopn;
|
|
15200
|
-
}
|
|
15201
|
-
__name(require_objectGopn, "require_objectGopn");
|
|
15189
|
+
var $keys$2 = _objectKeysInternal;
|
|
15190
|
+
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15191
|
+
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
|
|
15192
|
+
return $keys$2(O2, hiddenKeys);
|
|
15193
|
+
}, "getOwnPropertyNames");
|
|
15202
15194
|
var toIObject$2 = _toIobject;
|
|
15203
|
-
var gOPN$1 =
|
|
15195
|
+
var gOPN$1 = _objectGopn.f;
|
|
15204
15196
|
var toString$4 = {}.toString;
|
|
15205
15197
|
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
15206
15198
|
var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
@@ -15210,7 +15202,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
|
15210
15202
|
return windowNames.slice();
|
|
15211
15203
|
}
|
|
15212
15204
|
}, "getWindowNames");
|
|
15213
|
-
_objectGopnExt.f = /* @__PURE__ */ __name(function
|
|
15205
|
+
_objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
15214
15206
|
return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
15215
15207
|
}, "getOwnPropertyNames");
|
|
15216
15208
|
var _objectGopd = {};
|
|
@@ -15300,9 +15292,9 @@ var isSymbol$7 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
15300
15292
|
} : function(it) {
|
|
15301
15293
|
return it instanceof $Symbol;
|
|
15302
15294
|
};
|
|
15303
|
-
var $defineProperty$
|
|
15295
|
+
var $defineProperty$2 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
15304
15296
|
if (it === ObjectProto)
|
|
15305
|
-
$defineProperty$
|
|
15297
|
+
$defineProperty$2(OPSymbols, key, D2);
|
|
15306
15298
|
anObject(it);
|
|
15307
15299
|
key = toPrimitive(key, true);
|
|
15308
15300
|
anObject(D2);
|
|
@@ -15327,7 +15319,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2)
|
|
|
15327
15319
|
var l2 = keys5.length;
|
|
15328
15320
|
var key;
|
|
15329
15321
|
while (l2 > i)
|
|
15330
|
-
$defineProperty$
|
|
15322
|
+
$defineProperty$2(it, key = keys5[i++], P2[key]);
|
|
15331
15323
|
return it;
|
|
15332
15324
|
}, "defineProperties");
|
|
15333
15325
|
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
@@ -15349,7 +15341,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
|
|
|
15349
15341
|
D2.enumerable = true;
|
|
15350
15342
|
return D2;
|
|
15351
15343
|
}, "getOwnPropertyDescriptor");
|
|
15352
|
-
var $getOwnPropertyNames = /* @__PURE__ */ __name(function
|
|
15344
|
+
var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
|
|
15353
15345
|
var names2 = gOPN(toIObject(it));
|
|
15354
15346
|
var result = [];
|
|
15355
15347
|
var i = 0;
|
|
@@ -15392,8 +15384,8 @@ if (!USE_NATIVE) {
|
|
|
15392
15384
|
return this._k;
|
|
15393
15385
|
}, "toString"));
|
|
15394
15386
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
15395
|
-
$DP.f = $defineProperty$
|
|
15396
|
-
|
|
15387
|
+
$DP.f = $defineProperty$2;
|
|
15388
|
+
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
15397
15389
|
require_objectPie().f = $propertyIsEnumerable;
|
|
15398
15390
|
$GOPS.f = $getOwnPropertySymbols;
|
|
15399
15391
|
if (DESCRIPTORS && !_library) {
|
|
@@ -15435,7 +15427,7 @@ $export$2($export$2.S + $export$2.F * !USE_NATIVE, "Object", {
|
|
|
15435
15427
|
// 19.1.2.2 Object.create(O [, Properties])
|
|
15436
15428
|
create: $create,
|
|
15437
15429
|
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
|
15438
|
-
defineProperty: $defineProperty$
|
|
15430
|
+
defineProperty: $defineProperty$2,
|
|
15439
15431
|
// 19.1.2.3 Object.defineProperties(O, Properties)
|
|
15440
15432
|
defineProperties: $defineProperties,
|
|
15441
15433
|
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
|
@@ -35995,7 +35987,6 @@ function getKeyedTagsAndTagOptions(tags) {
|
|
|
35995
35987
|
}
|
|
35996
35988
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
35997
35989
|
function getTagColorStyle(color2) {
|
|
35998
|
-
console.log(`color:`, color2);
|
|
35999
35990
|
return color2 ? {
|
|
36000
35991
|
style: {
|
|
36001
35992
|
backgroundColor: color2,
|
|
@@ -37305,16 +37296,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
|
|
|
37305
37296
|
return value;
|
|
37306
37297
|
}, "GetIntrinsic");
|
|
37307
37298
|
var callBind$3 = { exports: {} };
|
|
37308
|
-
var
|
|
37309
|
-
var
|
|
37310
|
-
|
|
37311
|
-
|
|
37312
|
-
|
|
37313
|
-
|
|
37314
|
-
|
|
37299
|
+
var esDefineProperty;
|
|
37300
|
+
var hasRequiredEsDefineProperty;
|
|
37301
|
+
function requireEsDefineProperty() {
|
|
37302
|
+
if (hasRequiredEsDefineProperty)
|
|
37303
|
+
return esDefineProperty;
|
|
37304
|
+
hasRequiredEsDefineProperty = 1;
|
|
37305
|
+
var GetIntrinsic3 = getIntrinsic;
|
|
37306
|
+
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
37307
|
+
if ($defineProperty2) {
|
|
37308
|
+
try {
|
|
37309
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
37310
|
+
} catch (e2) {
|
|
37311
|
+
$defineProperty2 = false;
|
|
37312
|
+
}
|
|
37315
37313
|
}
|
|
37314
|
+
esDefineProperty = $defineProperty2;
|
|
37315
|
+
return esDefineProperty;
|
|
37316
37316
|
}
|
|
37317
|
-
|
|
37317
|
+
__name(requireEsDefineProperty, "requireEsDefineProperty");
|
|
37318
37318
|
var GetIntrinsic$3 = getIntrinsic;
|
|
37319
37319
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
37320
37320
|
if ($gOPD$1) {
|
|
@@ -37325,7 +37325,7 @@ if ($gOPD$1) {
|
|
|
37325
37325
|
}
|
|
37326
37326
|
}
|
|
37327
37327
|
var gopd$1 = $gOPD$1;
|
|
37328
|
-
var $defineProperty$1 =
|
|
37328
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
37329
37329
|
var $SyntaxError = syntax;
|
|
37330
37330
|
var $TypeError$4 = type$1;
|
|
37331
37331
|
var gopd = gopd$1;
|
|
@@ -37366,7 +37366,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
|
|
|
37366
37366
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
37367
37367
|
}
|
|
37368
37368
|
}, "defineDataProperty");
|
|
37369
|
-
var $defineProperty =
|
|
37369
|
+
var $defineProperty = requireEsDefineProperty();
|
|
37370
37370
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
37371
37371
|
return !!$defineProperty;
|
|
37372
37372
|
}, "hasPropertyDescriptors");
|
|
@@ -37435,7 +37435,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
|
|
|
37435
37435
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
37436
37436
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
37437
37437
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
37438
|
-
var $defineProperty2 =
|
|
37438
|
+
var $defineProperty2 = requireEsDefineProperty();
|
|
37439
37439
|
var $max = GetIntrinsic3("%Math.max%");
|
|
37440
37440
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
37441
37441
|
if (typeof originalFunction !== "function") {
|
|
@@ -49902,7 +49902,7 @@ var KNOWN_STATICS = {
|
|
|
49902
49902
|
arity: true
|
|
49903
49903
|
};
|
|
49904
49904
|
var defineProperty$3 = Object.defineProperty;
|
|
49905
|
-
var
|
|
49905
|
+
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
49906
49906
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
49907
49907
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
49908
49908
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
@@ -49915,7 +49915,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
49915
49915
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
49916
49916
|
}
|
|
49917
49917
|
}
|
|
49918
|
-
var keys5 =
|
|
49918
|
+
var keys5 = getOwnPropertyNames4(sourceComponent);
|
|
49919
49919
|
if (getOwnPropertySymbols3) {
|
|
49920
49920
|
keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
|
|
49921
49921
|
}
|
|
@@ -50336,7 +50336,11 @@ const dataTableEnhancer = compose(
|
|
|
50336
50336
|
withTableParams({
|
|
50337
50337
|
isLocalCall: true
|
|
50338
50338
|
}),
|
|
50339
|
-
|
|
50339
|
+
branch(
|
|
50340
|
+
(props) => props.showEmptyColumnsByDefault,
|
|
50341
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", true),
|
|
50342
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", false)
|
|
50343
|
+
),
|
|
50340
50344
|
withProps((ownProps) => {
|
|
50341
50345
|
let propsToUse = ownProps;
|
|
50342
50346
|
if (!ownProps.isTableParamsConnected) {
|
|
@@ -70886,7 +70890,8 @@ function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
|
70886
70890
|
onClick: handleLinkClick,
|
|
70887
70891
|
to: navTo,
|
|
70888
70892
|
className: classNames(core$5.Classes.MENU_ITEM, {
|
|
70889
|
-
[core$5.Classes.ACTIVE]: active3
|
|
70893
|
+
[core$5.Classes.ACTIVE]: active3,
|
|
70894
|
+
[core$5.Classes.INTENT_PRIMARY]: active3
|
|
70890
70895
|
})
|
|
70891
70896
|
},
|
|
70892
70897
|
icon && /* @__PURE__ */ React$2.createElement(core$5.Icon, { icon }),
|
|
@@ -106127,7 +106132,6 @@ const withEditorProps = compose(
|
|
|
106127
106132
|
_caretPositionOrRange,
|
|
106128
106133
|
_options
|
|
106129
106134
|
)) || {} : {};
|
|
106130
|
-
console.log(`zoink2`);
|
|
106131
106135
|
return [
|
|
106132
106136
|
insertSequenceDataAtPositionOrRange(
|
|
106133
106137
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -121051,7 +121055,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
121051
121055
|
}
|
|
121052
121056
|
__name(showFileDialog, "showFileDialog");
|
|
121053
121057
|
const name = "@teselagen/ove";
|
|
121054
|
-
const version = "0.5.
|
|
121058
|
+
const version = "0.5.16";
|
|
121055
121059
|
const main = "./src/index.js";
|
|
121056
121060
|
const type = "module";
|
|
121057
121061
|
const exports$1 = {
|
|
@@ -125921,7 +125925,6 @@ function VectorInteractionHOC(Component) {
|
|
|
125921
125925
|
sequenceData2,
|
|
125922
125926
|
rangeToDelete
|
|
125923
125927
|
);
|
|
125924
|
-
console.log(`z3`);
|
|
125925
125928
|
if (abortSeqChange)
|
|
125926
125929
|
return;
|
|
125927
125930
|
updateSequenceData2(newSeqData);
|
|
@@ -126711,7 +126714,6 @@ const insertAndSelectHelper = /* @__PURE__ */ __name((_0) => __async(exports, [_
|
|
|
126711
126714
|
sequenceData2,
|
|
126712
126715
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
126713
126716
|
);
|
|
126714
|
-
console.log(`z4`);
|
|
126715
126717
|
if (abortSeqChange) {
|
|
126716
126718
|
throw new Error("abortSeqChange");
|
|
126717
126719
|
}
|
|
@@ -136604,6 +136606,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
|
|
|
136604
136606
|
updatedData = data;
|
|
136605
136607
|
}
|
|
136606
136608
|
}
|
|
136609
|
+
const _bases = updatedData.bases || bases;
|
|
136607
136610
|
if (!data.useLinkedOligo) {
|
|
136608
136611
|
delete updatedData.bases;
|
|
136609
136612
|
}
|
|
@@ -136636,6 +136639,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
|
|
|
136636
136639
|
);
|
|
136637
136640
|
if (beforeAnnotationCreate) {
|
|
136638
136641
|
const shouldContinue = yield beforeAnnotationCreate({
|
|
136642
|
+
bases: _bases,
|
|
136639
136643
|
annotationTypePlural,
|
|
136640
136644
|
annotation: newAnnotation,
|
|
136641
136645
|
props: this.props,
|
|
@@ -142503,7 +142507,7 @@ function ToolBar(props) {
|
|
|
142503
142507
|
},
|
|
142504
142508
|
items
|
|
142505
142509
|
) : items
|
|
142506
|
-
), additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose }));
|
|
142510
|
+
), /* @__PURE__ */ React$2.createElement("div", { style: { height: 34, display: "flex" } }, additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose })));
|
|
142507
142511
|
}
|
|
142508
142512
|
__name(ToolBar, "ToolBar");
|
|
142509
142513
|
const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
@@ -142512,6 +142516,7 @@ const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
|
142512
142516
|
{
|
|
142513
142517
|
"data-tip": "Close Fullscreen Mode",
|
|
142514
142518
|
minimal: true,
|
|
142519
|
+
intent: "primary",
|
|
142515
142520
|
style: {
|
|
142516
142521
|
marginTop: 2,
|
|
142517
142522
|
marginRight: 2
|
package/index.es.js
CHANGED
|
@@ -14462,10 +14462,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
14462
14462
|
return result;
|
|
14463
14463
|
}, "_objectKeysInternal");
|
|
14464
14464
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
14465
|
-
var $keys$
|
|
14465
|
+
var $keys$3 = _objectKeysInternal;
|
|
14466
14466
|
var enumBugKeys = _enumBugKeys;
|
|
14467
14467
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
14468
|
-
return $keys$
|
|
14468
|
+
return $keys$3(O2, enumBugKeys);
|
|
14469
14469
|
}, "keys");
|
|
14470
14470
|
var _objectGops = {};
|
|
14471
14471
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -14916,11 +14916,11 @@ var ArrayProto = Array.prototype;
|
|
|
14916
14916
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
14917
14917
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
14918
14918
|
}, "_isArrayIter");
|
|
14919
|
-
var $defineProperty$
|
|
14919
|
+
var $defineProperty$3 = require_objectDp();
|
|
14920
14920
|
var createDesc$2 = _propertyDesc;
|
|
14921
14921
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
14922
14922
|
if (index2 in object3)
|
|
14923
|
-
$defineProperty$
|
|
14923
|
+
$defineProperty$3.f(object3, index2, createDesc$2(0, value));
|
|
14924
14924
|
else
|
|
14925
14925
|
object3[index2] = value;
|
|
14926
14926
|
}, "_createProperty");
|
|
@@ -15168,21 +15168,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
|
|
|
15168
15168
|
}, "isArray");
|
|
15169
15169
|
var _objectGopnExt = {};
|
|
15170
15170
|
var _objectGopn = {};
|
|
15171
|
-
var
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
var $keys2 = _objectKeysInternal;
|
|
15177
|
-
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15178
|
-
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
|
|
15179
|
-
return $keys2(O2, hiddenKeys);
|
|
15180
|
-
}, "getOwnPropertyNames");
|
|
15181
|
-
return _objectGopn;
|
|
15182
|
-
}
|
|
15183
|
-
__name(require_objectGopn, "require_objectGopn");
|
|
15171
|
+
var $keys$2 = _objectKeysInternal;
|
|
15172
|
+
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15173
|
+
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
|
|
15174
|
+
return $keys$2(O2, hiddenKeys);
|
|
15175
|
+
}, "getOwnPropertyNames");
|
|
15184
15176
|
var toIObject$2 = _toIobject;
|
|
15185
|
-
var gOPN$1 =
|
|
15177
|
+
var gOPN$1 = _objectGopn.f;
|
|
15186
15178
|
var toString$4 = {}.toString;
|
|
15187
15179
|
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
15188
15180
|
var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
@@ -15192,7 +15184,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
|
15192
15184
|
return windowNames.slice();
|
|
15193
15185
|
}
|
|
15194
15186
|
}, "getWindowNames");
|
|
15195
|
-
_objectGopnExt.f = /* @__PURE__ */ __name(function
|
|
15187
|
+
_objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
15196
15188
|
return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
15197
15189
|
}, "getOwnPropertyNames");
|
|
15198
15190
|
var _objectGopd = {};
|
|
@@ -15282,9 +15274,9 @@ var isSymbol$7 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
15282
15274
|
} : function(it) {
|
|
15283
15275
|
return it instanceof $Symbol;
|
|
15284
15276
|
};
|
|
15285
|
-
var $defineProperty$
|
|
15277
|
+
var $defineProperty$2 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
15286
15278
|
if (it === ObjectProto)
|
|
15287
|
-
$defineProperty$
|
|
15279
|
+
$defineProperty$2(OPSymbols, key, D2);
|
|
15288
15280
|
anObject(it);
|
|
15289
15281
|
key = toPrimitive(key, true);
|
|
15290
15282
|
anObject(D2);
|
|
@@ -15309,7 +15301,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2)
|
|
|
15309
15301
|
var l2 = keys5.length;
|
|
15310
15302
|
var key;
|
|
15311
15303
|
while (l2 > i)
|
|
15312
|
-
$defineProperty$
|
|
15304
|
+
$defineProperty$2(it, key = keys5[i++], P2[key]);
|
|
15313
15305
|
return it;
|
|
15314
15306
|
}, "defineProperties");
|
|
15315
15307
|
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
@@ -15331,7 +15323,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
|
|
|
15331
15323
|
D2.enumerable = true;
|
|
15332
15324
|
return D2;
|
|
15333
15325
|
}, "getOwnPropertyDescriptor");
|
|
15334
|
-
var $getOwnPropertyNames = /* @__PURE__ */ __name(function
|
|
15326
|
+
var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
|
|
15335
15327
|
var names2 = gOPN(toIObject(it));
|
|
15336
15328
|
var result = [];
|
|
15337
15329
|
var i = 0;
|
|
@@ -15374,8 +15366,8 @@ if (!USE_NATIVE) {
|
|
|
15374
15366
|
return this._k;
|
|
15375
15367
|
}, "toString"));
|
|
15376
15368
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
15377
|
-
$DP.f = $defineProperty$
|
|
15378
|
-
|
|
15369
|
+
$DP.f = $defineProperty$2;
|
|
15370
|
+
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
15379
15371
|
require_objectPie().f = $propertyIsEnumerable;
|
|
15380
15372
|
$GOPS.f = $getOwnPropertySymbols;
|
|
15381
15373
|
if (DESCRIPTORS && !_library) {
|
|
@@ -15417,7 +15409,7 @@ $export$2($export$2.S + $export$2.F * !USE_NATIVE, "Object", {
|
|
|
15417
15409
|
// 19.1.2.2 Object.create(O [, Properties])
|
|
15418
15410
|
create: $create,
|
|
15419
15411
|
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
|
15420
|
-
defineProperty: $defineProperty$
|
|
15412
|
+
defineProperty: $defineProperty$2,
|
|
15421
15413
|
// 19.1.2.3 Object.defineProperties(O, Properties)
|
|
15422
15414
|
defineProperties: $defineProperties,
|
|
15423
15415
|
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
|
@@ -35977,7 +35969,6 @@ function getKeyedTagsAndTagOptions(tags) {
|
|
|
35977
35969
|
}
|
|
35978
35970
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
35979
35971
|
function getTagColorStyle(color2) {
|
|
35980
|
-
console.log(`color:`, color2);
|
|
35981
35972
|
return color2 ? {
|
|
35982
35973
|
style: {
|
|
35983
35974
|
backgroundColor: color2,
|
|
@@ -37287,16 +37278,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
|
|
|
37287
37278
|
return value;
|
|
37288
37279
|
}, "GetIntrinsic");
|
|
37289
37280
|
var callBind$3 = { exports: {} };
|
|
37290
|
-
var
|
|
37291
|
-
var
|
|
37292
|
-
|
|
37293
|
-
|
|
37294
|
-
|
|
37295
|
-
|
|
37296
|
-
|
|
37281
|
+
var esDefineProperty;
|
|
37282
|
+
var hasRequiredEsDefineProperty;
|
|
37283
|
+
function requireEsDefineProperty() {
|
|
37284
|
+
if (hasRequiredEsDefineProperty)
|
|
37285
|
+
return esDefineProperty;
|
|
37286
|
+
hasRequiredEsDefineProperty = 1;
|
|
37287
|
+
var GetIntrinsic3 = getIntrinsic;
|
|
37288
|
+
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
37289
|
+
if ($defineProperty2) {
|
|
37290
|
+
try {
|
|
37291
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
37292
|
+
} catch (e2) {
|
|
37293
|
+
$defineProperty2 = false;
|
|
37294
|
+
}
|
|
37297
37295
|
}
|
|
37296
|
+
esDefineProperty = $defineProperty2;
|
|
37297
|
+
return esDefineProperty;
|
|
37298
37298
|
}
|
|
37299
|
-
|
|
37299
|
+
__name(requireEsDefineProperty, "requireEsDefineProperty");
|
|
37300
37300
|
var GetIntrinsic$3 = getIntrinsic;
|
|
37301
37301
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
37302
37302
|
if ($gOPD$1) {
|
|
@@ -37307,7 +37307,7 @@ if ($gOPD$1) {
|
|
|
37307
37307
|
}
|
|
37308
37308
|
}
|
|
37309
37309
|
var gopd$1 = $gOPD$1;
|
|
37310
|
-
var $defineProperty$1 =
|
|
37310
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
37311
37311
|
var $SyntaxError = syntax;
|
|
37312
37312
|
var $TypeError$4 = type$1;
|
|
37313
37313
|
var gopd = gopd$1;
|
|
@@ -37348,7 +37348,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
|
|
|
37348
37348
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
37349
37349
|
}
|
|
37350
37350
|
}, "defineDataProperty");
|
|
37351
|
-
var $defineProperty =
|
|
37351
|
+
var $defineProperty = requireEsDefineProperty();
|
|
37352
37352
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
37353
37353
|
return !!$defineProperty;
|
|
37354
37354
|
}, "hasPropertyDescriptors");
|
|
@@ -37417,7 +37417,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
|
|
|
37417
37417
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
37418
37418
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
37419
37419
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
37420
|
-
var $defineProperty2 =
|
|
37420
|
+
var $defineProperty2 = requireEsDefineProperty();
|
|
37421
37421
|
var $max = GetIntrinsic3("%Math.max%");
|
|
37422
37422
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
37423
37423
|
if (typeof originalFunction !== "function") {
|
|
@@ -49884,7 +49884,7 @@ var KNOWN_STATICS = {
|
|
|
49884
49884
|
arity: true
|
|
49885
49885
|
};
|
|
49886
49886
|
var defineProperty$3 = Object.defineProperty;
|
|
49887
|
-
var
|
|
49887
|
+
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
49888
49888
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
49889
49889
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
49890
49890
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
@@ -49897,7 +49897,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
49897
49897
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
49898
49898
|
}
|
|
49899
49899
|
}
|
|
49900
|
-
var keys5 =
|
|
49900
|
+
var keys5 = getOwnPropertyNames4(sourceComponent);
|
|
49901
49901
|
if (getOwnPropertySymbols3) {
|
|
49902
49902
|
keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
|
|
49903
49903
|
}
|
|
@@ -50318,7 +50318,11 @@ const dataTableEnhancer = compose(
|
|
|
50318
50318
|
withTableParams({
|
|
50319
50319
|
isLocalCall: true
|
|
50320
50320
|
}),
|
|
50321
|
-
|
|
50321
|
+
branch(
|
|
50322
|
+
(props) => props.showEmptyColumnsByDefault,
|
|
50323
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", true),
|
|
50324
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", false)
|
|
50325
|
+
),
|
|
50322
50326
|
withProps((ownProps) => {
|
|
50323
50327
|
let propsToUse = ownProps;
|
|
50324
50328
|
if (!ownProps.isTableParamsConnected) {
|
|
@@ -70868,7 +70872,8 @@ function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
|
70868
70872
|
onClick: handleLinkClick,
|
|
70869
70873
|
to: navTo,
|
|
70870
70874
|
className: classNames(Classes.MENU_ITEM, {
|
|
70871
|
-
[Classes.ACTIVE]: active3
|
|
70875
|
+
[Classes.ACTIVE]: active3,
|
|
70876
|
+
[Classes.INTENT_PRIMARY]: active3
|
|
70872
70877
|
})
|
|
70873
70878
|
},
|
|
70874
70879
|
icon && /* @__PURE__ */ React__default$1.createElement(Icon, { icon }),
|
|
@@ -106109,7 +106114,6 @@ const withEditorProps = compose(
|
|
|
106109
106114
|
_caretPositionOrRange,
|
|
106110
106115
|
_options
|
|
106111
106116
|
)) || {} : {};
|
|
106112
|
-
console.log(`zoink2`);
|
|
106113
106117
|
return [
|
|
106114
106118
|
insertSequenceDataAtPositionOrRange(
|
|
106115
106119
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -121033,7 +121037,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
121033
121037
|
}
|
|
121034
121038
|
__name(showFileDialog, "showFileDialog");
|
|
121035
121039
|
const name = "@teselagen/ove";
|
|
121036
|
-
const version = "0.5.
|
|
121040
|
+
const version = "0.5.16";
|
|
121037
121041
|
const main = "./src/index.js";
|
|
121038
121042
|
const type = "module";
|
|
121039
121043
|
const exports$1 = {
|
|
@@ -125903,7 +125907,6 @@ function VectorInteractionHOC(Component2) {
|
|
|
125903
125907
|
sequenceData2,
|
|
125904
125908
|
rangeToDelete
|
|
125905
125909
|
);
|
|
125906
|
-
console.log(`z3`);
|
|
125907
125910
|
if (abortSeqChange)
|
|
125908
125911
|
return;
|
|
125909
125912
|
updateSequenceData2(newSeqData);
|
|
@@ -126693,7 +126696,6 @@ const insertAndSelectHelper = /* @__PURE__ */ __name((_0) => __async(void 0, [_0
|
|
|
126693
126696
|
sequenceData2,
|
|
126694
126697
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
126695
126698
|
);
|
|
126696
|
-
console.log(`z4`);
|
|
126697
126699
|
if (abortSeqChange) {
|
|
126698
126700
|
throw new Error("abortSeqChange");
|
|
126699
126701
|
}
|
|
@@ -136586,6 +136588,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
|
|
|
136586
136588
|
updatedData = data;
|
|
136587
136589
|
}
|
|
136588
136590
|
}
|
|
136591
|
+
const _bases = updatedData.bases || bases;
|
|
136589
136592
|
if (!data.useLinkedOligo) {
|
|
136590
136593
|
delete updatedData.bases;
|
|
136591
136594
|
}
|
|
@@ -136618,6 +136621,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
|
|
|
136618
136621
|
);
|
|
136619
136622
|
if (beforeAnnotationCreate) {
|
|
136620
136623
|
const shouldContinue = yield beforeAnnotationCreate({
|
|
136624
|
+
bases: _bases,
|
|
136621
136625
|
annotationTypePlural,
|
|
136622
136626
|
annotation: newAnnotation,
|
|
136623
136627
|
props: this.props,
|
|
@@ -142485,7 +142489,7 @@ function ToolBar(props) {
|
|
|
142485
142489
|
},
|
|
142486
142490
|
items
|
|
142487
142491
|
) : items
|
|
142488
|
-
), additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React__default$1.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose }));
|
|
142492
|
+
), /* @__PURE__ */ React__default$1.createElement("div", { style: { height: 34, display: "flex" } }, additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React__default$1.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose })));
|
|
142489
142493
|
}
|
|
142490
142494
|
__name(ToolBar, "ToolBar");
|
|
142491
142495
|
const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
@@ -142494,6 +142498,7 @@ const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
|
142494
142498
|
{
|
|
142495
142499
|
"data-tip": "Close Fullscreen Mode",
|
|
142496
142500
|
minimal: true,
|
|
142501
|
+
intent: "primary",
|
|
142497
142502
|
style: {
|
|
142498
142503
|
marginTop: 2,
|
|
142499
142504
|
marginRight: 2
|
package/index.umd.js
CHANGED
|
@@ -41043,25 +41043,16 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41043
41043
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
41044
41044
|
return toString$3.call(it).slice(8, -1);
|
|
41045
41045
|
}, "_cof");
|
|
41046
|
-
var
|
|
41047
|
-
var
|
|
41048
|
-
|
|
41049
|
-
|
|
41050
|
-
return _iobject;
|
|
41051
|
-
hasRequired_iobject = 1;
|
|
41052
|
-
var cof2 = _cof;
|
|
41053
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
41054
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
41055
|
-
};
|
|
41056
|
-
return _iobject;
|
|
41057
|
-
}
|
|
41058
|
-
__name(require_iobject, "require_iobject");
|
|
41046
|
+
var cof$2 = _cof;
|
|
41047
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
41048
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
41049
|
+
};
|
|
41059
41050
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
41060
41051
|
if (it == void 0)
|
|
41061
41052
|
throw TypeError("Can't call method on " + it);
|
|
41062
41053
|
return it;
|
|
41063
41054
|
}, "_defined");
|
|
41064
|
-
var IObject =
|
|
41055
|
+
var IObject = _iobject;
|
|
41065
41056
|
var defined$2 = _defined;
|
|
41066
41057
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
41067
41058
|
return IObject(defined$2(it));
|
|
@@ -41182,7 +41173,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41182
41173
|
var gOPS2 = _objectGops;
|
|
41183
41174
|
var pIE2 = require_objectPie();
|
|
41184
41175
|
var toObject2 = _toObject;
|
|
41185
|
-
var IObject2 =
|
|
41176
|
+
var IObject2 = _iobject;
|
|
41186
41177
|
var $assign = Object.assign;
|
|
41187
41178
|
_objectAssign = !$assign || _fails(function() {
|
|
41188
41179
|
var A2 = {};
|
|
@@ -62093,7 +62084,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
62093
62084
|
}
|
|
62094
62085
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
62095
62086
|
function getTagColorStyle(color2) {
|
|
62096
|
-
console.log(`color:`, color2);
|
|
62097
62087
|
return color2 ? {
|
|
62098
62088
|
style: {
|
|
62099
62089
|
backgroundColor: color2,
|
|
@@ -80183,7 +80173,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
80183
80173
|
withTableParams({
|
|
80184
80174
|
isLocalCall: true
|
|
80185
80175
|
}),
|
|
80186
|
-
|
|
80176
|
+
branch(
|
|
80177
|
+
(props) => props.showEmptyColumnsByDefault,
|
|
80178
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", true),
|
|
80179
|
+
withState("showForcedHiddenColumns", "setShowForcedHidden", false)
|
|
80180
|
+
),
|
|
80187
80181
|
withProps((ownProps) => {
|
|
80188
80182
|
let propsToUse = ownProps;
|
|
80189
80183
|
if (!ownProps.isTableParamsConnected) {
|
|
@@ -100723,7 +100717,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100723
100717
|
onClick: handleLinkClick,
|
|
100724
100718
|
to: navTo,
|
|
100725
100719
|
className: classNames$1(MENU_ITEM, {
|
|
100726
|
-
[ACTIVE]: active2
|
|
100720
|
+
[ACTIVE]: active2,
|
|
100721
|
+
[INTENT_PRIMARY]: active2
|
|
100727
100722
|
})
|
|
100728
100723
|
},
|
|
100729
100724
|
icon && /* @__PURE__ */ React$2.createElement(Icon, { icon }),
|
|
@@ -135375,7 +135370,6 @@ ${seq.sequence}
|
|
|
135375
135370
|
_caretPositionOrRange,
|
|
135376
135371
|
_options
|
|
135377
135372
|
)) || {} : {};
|
|
135378
|
-
console.log(`zoink2`);
|
|
135379
135373
|
return [
|
|
135380
135374
|
insertSequenceDataAtPositionOrRange(
|
|
135381
135375
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -150278,7 +150272,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
150278
150272
|
}
|
|
150279
150273
|
__name(showFileDialog, "showFileDialog");
|
|
150280
150274
|
const name = "@teselagen/ove";
|
|
150281
|
-
const version = "0.5.
|
|
150275
|
+
const version = "0.5.16";
|
|
150282
150276
|
const main = "./src/index.js";
|
|
150283
150277
|
const type = "module";
|
|
150284
150278
|
const exports$1 = {
|
|
@@ -153543,7 +153537,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153543
153537
|
sequenceData2,
|
|
153544
153538
|
rangeToDelete
|
|
153545
153539
|
);
|
|
153546
|
-
console.log(`z3`);
|
|
153547
153540
|
if (abortSeqChange)
|
|
153548
153541
|
return;
|
|
153549
153542
|
updateSequenceData2(newSeqData);
|
|
@@ -154333,7 +154326,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154333
154326
|
sequenceData2,
|
|
154334
154327
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
154335
154328
|
);
|
|
154336
|
-
console.log(`z4`);
|
|
154337
154329
|
if (abortSeqChange) {
|
|
154338
154330
|
throw new Error("abortSeqChange");
|
|
154339
154331
|
}
|
|
@@ -164226,6 +164218,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
164226
164218
|
updatedData = data;
|
|
164227
164219
|
}
|
|
164228
164220
|
}
|
|
164221
|
+
const _bases = updatedData.bases || bases;
|
|
164229
164222
|
if (!data.useLinkedOligo) {
|
|
164230
164223
|
delete updatedData.bases;
|
|
164231
164224
|
}
|
|
@@ -164258,6 +164251,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
164258
164251
|
);
|
|
164259
164252
|
if (beforeAnnotationCreate) {
|
|
164260
164253
|
const shouldContinue = yield beforeAnnotationCreate({
|
|
164254
|
+
bases: _bases,
|
|
164261
164255
|
annotationTypePlural,
|
|
164262
164256
|
annotation: newAnnotation,
|
|
164263
164257
|
props: this.props,
|
|
@@ -169613,7 +169607,7 @@ ${seqDataToCopy}\r
|
|
|
169613
169607
|
},
|
|
169614
169608
|
items
|
|
169615
169609
|
) : items
|
|
169616
|
-
), additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose }));
|
|
169610
|
+
), /* @__PURE__ */ React$2.createElement("div", { style: { height: 34, display: "flex" } }, additionalTopRightToolbarButtons, closeFullscreen && /* @__PURE__ */ React$2.createElement(CloseFullscreenButton, { onClick: handleFullscreenClose })));
|
|
169617
169611
|
}
|
|
169618
169612
|
__name(ToolBar, "ToolBar");
|
|
169619
169613
|
const CloseFullscreenButton = /* @__PURE__ */ __name((props) => {
|
|
@@ -169622,6 +169616,7 @@ ${seqDataToCopy}\r
|
|
|
169622
169616
|
{
|
|
169623
169617
|
"data-tip": "Close Fullscreen Mode",
|
|
169624
169618
|
minimal: true,
|
|
169619
|
+
intent: "primary",
|
|
169625
169620
|
style: {
|
|
169626
169621
|
marginTop: 2,
|
|
169627
169622
|
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.17",
|
|
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
|
|
@@ -261,6 +254,7 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
261
254
|
updatedData = data;
|
|
262
255
|
}
|
|
263
256
|
}
|
|
257
|
+
const _bases = updatedData.bases || bases;
|
|
264
258
|
if (!data.useLinkedOligo) {
|
|
265
259
|
delete updatedData.bases;
|
|
266
260
|
}
|
|
@@ -274,7 +268,6 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
274
268
|
}
|
|
275
269
|
const hasJoinedLocations =
|
|
276
270
|
updatedData.locations && updatedData.locations.length > 1;
|
|
277
|
-
|
|
278
271
|
const newAnnotation = tidyUpAnnotation(
|
|
279
272
|
convertRangeTo0Based({
|
|
280
273
|
overlapsSelf: data.overlapsSelf,
|
|
@@ -299,6 +292,7 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
299
292
|
|
|
300
293
|
if (beforeAnnotationCreate) {
|
|
301
294
|
const shouldContinue = await beforeAnnotationCreate({
|
|
295
|
+
bases: _bases,
|
|
302
296
|
annotationTypePlural,
|
|
303
297
|
annotation: newAnnotation,
|
|
304
298
|
props: this.props,
|
|
@@ -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,
|