@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
package/index.umd.js
CHANGED
|
@@ -10047,7 +10047,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10047
10047
|
}, _typeof$7(o2);
|
|
10048
10048
|
}
|
|
10049
10049
|
__name(_typeof$7, "_typeof$7");
|
|
10050
|
-
function toPrimitive$
|
|
10050
|
+
function toPrimitive$4(t2, r2) {
|
|
10051
10051
|
if ("object" != _typeof$7(t2) || !t2)
|
|
10052
10052
|
return t2;
|
|
10053
10053
|
var e2 = t2[Symbol.toPrimitive];
|
|
@@ -10059,9 +10059,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10059
10059
|
}
|
|
10060
10060
|
return ("string" === r2 ? String : Number)(t2);
|
|
10061
10061
|
}
|
|
10062
|
-
__name(toPrimitive$
|
|
10062
|
+
__name(toPrimitive$4, "toPrimitive$4");
|
|
10063
10063
|
function toPropertyKey(t2) {
|
|
10064
|
-
var i2 = toPrimitive$
|
|
10064
|
+
var i2 = toPrimitive$4(t2, "string");
|
|
10065
10065
|
return "symbol" == _typeof$7(i2) ? i2 : String(i2);
|
|
10066
10066
|
}
|
|
10067
10067
|
__name(toPropertyKey, "toPropertyKey");
|
|
@@ -25997,10 +25997,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25997
25997
|
/* istanbul ignore next */
|
|
25998
25998
|
Object.getOwnPropertyNames
|
|
25999
25999
|
);
|
|
26000
|
-
function toPrimitive$
|
|
26000
|
+
function toPrimitive$3(value) {
|
|
26001
26001
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
26002
26002
|
}
|
|
26003
|
-
__name(toPrimitive$
|
|
26003
|
+
__name(toPrimitive$3, "toPrimitive$3");
|
|
26004
26004
|
function hasProp(target, prop2) {
|
|
26005
26005
|
return objectPrototype$2.hasOwnProperty.call(target, prop2);
|
|
26006
26006
|
}
|
|
@@ -27019,7 +27019,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27019
27019
|
return this.name_ + "[" + this.value_ + "]";
|
|
27020
27020
|
}, "toString2");
|
|
27021
27021
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
27022
|
-
return toPrimitive$
|
|
27022
|
+
return toPrimitive$3(this.get());
|
|
27023
27023
|
}, "valueOf");
|
|
27024
27024
|
_proto[_Symbol$toPrimitive] = function() {
|
|
27025
27025
|
return this.valueOf();
|
|
@@ -27204,7 +27204,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27204
27204
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
27205
27205
|
}, "toString2");
|
|
27206
27206
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
27207
|
-
return toPrimitive$
|
|
27207
|
+
return toPrimitive$3(this.get());
|
|
27208
27208
|
}, "valueOf");
|
|
27209
27209
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
27210
27210
|
return this.valueOf();
|
|
@@ -40904,20 +40904,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40904
40904
|
return true;
|
|
40905
40905
|
}
|
|
40906
40906
|
}, "_fails");
|
|
40907
|
-
var _descriptors
|
|
40908
|
-
|
|
40909
|
-
|
|
40910
|
-
|
|
40911
|
-
|
|
40912
|
-
hasRequired_descriptors = 1;
|
|
40913
|
-
_descriptors = !_fails(function() {
|
|
40914
|
-
return Object.defineProperty({}, "a", { get: function() {
|
|
40915
|
-
return 7;
|
|
40916
|
-
} }).a != 7;
|
|
40917
|
-
});
|
|
40918
|
-
return _descriptors;
|
|
40919
|
-
}
|
|
40920
|
-
__name(require_descriptors, "require_descriptors");
|
|
40907
|
+
var _descriptors = !_fails(function() {
|
|
40908
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
40909
|
+
return 7;
|
|
40910
|
+
} }).a != 7;
|
|
40911
|
+
});
|
|
40921
40912
|
var _domCreate;
|
|
40922
40913
|
var hasRequired_domCreate;
|
|
40923
40914
|
function require_domCreate() {
|
|
@@ -40933,20 +40924,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40933
40924
|
return _domCreate;
|
|
40934
40925
|
}
|
|
40935
40926
|
__name(require_domCreate, "require_domCreate");
|
|
40936
|
-
var _ie8DomDefine
|
|
40937
|
-
|
|
40938
|
-
|
|
40939
|
-
|
|
40940
|
-
|
|
40941
|
-
hasRequired_ie8DomDefine = 1;
|
|
40942
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
40943
|
-
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
40944
|
-
return 7;
|
|
40945
|
-
} }).a != 7;
|
|
40946
|
-
});
|
|
40947
|
-
return _ie8DomDefine;
|
|
40948
|
-
}
|
|
40949
|
-
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
40927
|
+
var _ie8DomDefine = !_descriptors && !_fails(function() {
|
|
40928
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
40929
|
+
return 7;
|
|
40930
|
+
} }).a != 7;
|
|
40931
|
+
});
|
|
40950
40932
|
var isObject$5 = _isObject;
|
|
40951
40933
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
40952
40934
|
if (!isObject$5(it))
|
|
@@ -40960,33 +40942,25 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40960
40942
|
return val2;
|
|
40961
40943
|
throw TypeError("Can't convert object to primitive value");
|
|
40962
40944
|
}, "_toPrimitive$1");
|
|
40963
|
-
var
|
|
40964
|
-
|
|
40965
|
-
|
|
40966
|
-
|
|
40967
|
-
|
|
40968
|
-
|
|
40969
|
-
|
|
40970
|
-
|
|
40971
|
-
|
|
40972
|
-
|
|
40973
|
-
|
|
40974
|
-
|
|
40975
|
-
|
|
40976
|
-
|
|
40977
|
-
|
|
40978
|
-
|
|
40979
|
-
|
|
40980
|
-
|
|
40981
|
-
|
|
40982
|
-
throw TypeError("Accessors not supported!");
|
|
40983
|
-
if ("value" in Attributes)
|
|
40984
|
-
O2[P2] = Attributes.value;
|
|
40985
|
-
return O2;
|
|
40986
|
-
}, "defineProperty");
|
|
40987
|
-
return _objectDp;
|
|
40988
|
-
}
|
|
40989
|
-
__name(require_objectDp, "require_objectDp");
|
|
40945
|
+
var anObject$5 = _anObject;
|
|
40946
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
40947
|
+
var toPrimitive$2 = _toPrimitive$1;
|
|
40948
|
+
var dP$3 = Object.defineProperty;
|
|
40949
|
+
_objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
40950
|
+
anObject$5(O2);
|
|
40951
|
+
P2 = toPrimitive$2(P2, true);
|
|
40952
|
+
anObject$5(Attributes);
|
|
40953
|
+
if (IE8_DOM_DEFINE$1)
|
|
40954
|
+
try {
|
|
40955
|
+
return dP$3(O2, P2, Attributes);
|
|
40956
|
+
} catch (e2) {
|
|
40957
|
+
}
|
|
40958
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
40959
|
+
throw TypeError("Accessors not supported!");
|
|
40960
|
+
if ("value" in Attributes)
|
|
40961
|
+
O2[P2] = Attributes.value;
|
|
40962
|
+
return O2;
|
|
40963
|
+
}, "defineProperty");
|
|
40990
40964
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
40991
40965
|
return {
|
|
40992
40966
|
enumerable: !(bitmap & 1),
|
|
@@ -40995,9 +40969,9 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40995
40969
|
value
|
|
40996
40970
|
};
|
|
40997
40971
|
}, "_propertyDesc");
|
|
40998
|
-
var dP$2 =
|
|
40972
|
+
var dP$2 = _objectDp;
|
|
40999
40973
|
var createDesc$3 = _propertyDesc;
|
|
41000
|
-
var _hide =
|
|
40974
|
+
var _hide = _descriptors ? function(object2, key2, value) {
|
|
41001
40975
|
return dP$2.f(object2, key2, createDesc$3(1, value));
|
|
41002
40976
|
} : function(object2, key2, value) {
|
|
41003
40977
|
object2[key2] = value;
|
|
@@ -41069,16 +41043,25 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41069
41043
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
41070
41044
|
return toString$3.call(it).slice(8, -1);
|
|
41071
41045
|
}, "_cof");
|
|
41072
|
-
var
|
|
41073
|
-
var
|
|
41074
|
-
|
|
41075
|
-
|
|
41046
|
+
var _iobject;
|
|
41047
|
+
var hasRequired_iobject;
|
|
41048
|
+
function require_iobject() {
|
|
41049
|
+
if (hasRequired_iobject)
|
|
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");
|
|
41076
41059
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
41077
41060
|
if (it == void 0)
|
|
41078
41061
|
throw TypeError("Can't call method on " + it);
|
|
41079
41062
|
return it;
|
|
41080
41063
|
}, "_defined");
|
|
41081
|
-
var IObject =
|
|
41064
|
+
var IObject = require_iobject();
|
|
41082
41065
|
var defined$2 = _defined;
|
|
41083
41066
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
41084
41067
|
return IObject(defined$2(it));
|
|
@@ -41194,12 +41177,12 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41194
41177
|
if (hasRequired_objectAssign)
|
|
41195
41178
|
return _objectAssign;
|
|
41196
41179
|
hasRequired_objectAssign = 1;
|
|
41197
|
-
var DESCRIPTORS2 =
|
|
41180
|
+
var DESCRIPTORS2 = _descriptors;
|
|
41198
41181
|
var getKeys2 = _objectKeys;
|
|
41199
41182
|
var gOPS2 = _objectGops;
|
|
41200
41183
|
var pIE2 = require_objectPie();
|
|
41201
41184
|
var toObject2 = _toObject;
|
|
41202
|
-
var IObject2 =
|
|
41185
|
+
var IObject2 = require_iobject();
|
|
41203
41186
|
var $assign = Object.assign;
|
|
41204
41187
|
_objectAssign = !$assign || _fails(function() {
|
|
41205
41188
|
var A2 = {};
|
|
@@ -41260,10 +41243,10 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41260
41243
|
}, "_iterStep");
|
|
41261
41244
|
var _iterators = {};
|
|
41262
41245
|
var _redefine = _hide;
|
|
41263
|
-
var dP$1 =
|
|
41246
|
+
var dP$1 = _objectDp;
|
|
41264
41247
|
var anObject$4 = _anObject;
|
|
41265
41248
|
var getKeys$1 = _objectKeys;
|
|
41266
|
-
var _objectDps =
|
|
41249
|
+
var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
|
|
41267
41250
|
anObject$4(O2);
|
|
41268
41251
|
var keys2 = getKeys$1(Properties2);
|
|
41269
41252
|
var length = keys2.length;
|
|
@@ -41330,7 +41313,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41330
41313
|
};
|
|
41331
41314
|
$exports.store = store$2;
|
|
41332
41315
|
var _wksExports = _wks.exports;
|
|
41333
|
-
var def =
|
|
41316
|
+
var def = _objectDp.f;
|
|
41334
41317
|
var has$b = _has;
|
|
41335
41318
|
var TAG$1 = _wksExports("toStringTag");
|
|
41336
41319
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -41603,7 +41586,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41603
41586
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
41604
41587
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
41605
41588
|
}, "_isArrayIter");
|
|
41606
|
-
var $defineProperty$1 =
|
|
41589
|
+
var $defineProperty$1 = _objectDp;
|
|
41607
41590
|
var createDesc$2 = _propertyDesc;
|
|
41608
41591
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
41609
41592
|
if (index2 in object2)
|
|
@@ -41732,7 +41715,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41732
41715
|
}
|
|
41733
41716
|
}, "_default$8");
|
|
41734
41717
|
var $export$3 = _export;
|
|
41735
|
-
$export$3($export$3.S + $export$3.F * !
|
|
41718
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
|
|
41736
41719
|
var $Object$1 = _coreExports.Object;
|
|
41737
41720
|
var defineProperty$4 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
|
|
41738
41721
|
return $Object$1.defineProperty(it, key2, desc);
|
|
@@ -41773,7 +41756,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41773
41756
|
var META$1 = _uid("meta");
|
|
41774
41757
|
var isObject$4 = _isObject;
|
|
41775
41758
|
var has$9 = _has;
|
|
41776
|
-
var setDesc =
|
|
41759
|
+
var setDesc = _objectDp.f;
|
|
41777
41760
|
var id$1 = 0;
|
|
41778
41761
|
var isExtensible = Object.isExtensible || function() {
|
|
41779
41762
|
return true;
|
|
@@ -41826,7 +41809,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41826
41809
|
var _metaExports = _meta.exports;
|
|
41827
41810
|
var core = _coreExports;
|
|
41828
41811
|
var wksExt$1 = _wksExt;
|
|
41829
|
-
var defineProperty$2 =
|
|
41812
|
+
var defineProperty$2 = _objectDp.f;
|
|
41830
41813
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
41831
41814
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
41832
41815
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -41880,9 +41863,9 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41880
41863
|
var toIObject$1 = _toIobject;
|
|
41881
41864
|
var toPrimitive$1 = _toPrimitive$1;
|
|
41882
41865
|
var has$8 = _has;
|
|
41883
|
-
var IE8_DOM_DEFINE =
|
|
41866
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
41884
41867
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
41885
|
-
_objectGopd.f =
|
|
41868
|
+
_objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
|
|
41886
41869
|
O2 = toIObject$1(O2);
|
|
41887
41870
|
P2 = toPrimitive$1(P2, true);
|
|
41888
41871
|
if (IE8_DOM_DEFINE)
|
|
@@ -41895,7 +41878,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41895
41878
|
}, "getOwnPropertyDescriptor");
|
|
41896
41879
|
var global$1 = _globalExports;
|
|
41897
41880
|
var has$7 = _has;
|
|
41898
|
-
var DESCRIPTORS =
|
|
41881
|
+
var DESCRIPTORS = _descriptors;
|
|
41899
41882
|
var $export$2 = _export;
|
|
41900
41883
|
var redefine = _redefine;
|
|
41901
41884
|
var META = _metaExports.KEY;
|
|
@@ -41918,7 +41901,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
41918
41901
|
var gOPNExt = _objectGopnExt;
|
|
41919
41902
|
var $GOPD = _objectGopd;
|
|
41920
41903
|
var $GOPS = _objectGops;
|
|
41921
|
-
var $DP =
|
|
41904
|
+
var $DP = _objectDp;
|
|
41922
41905
|
var $keys$1 = _objectKeys;
|
|
41923
41906
|
var gOPD$1 = $GOPD.f;
|
|
41924
41907
|
var dP = $DP.f;
|
|
@@ -62110,6 +62093,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
62110
62093
|
}
|
|
62111
62094
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
62112
62095
|
function getTagColorStyle(color2) {
|
|
62096
|
+
console.log(`color:`, color2);
|
|
62113
62097
|
return color2 ? {
|
|
62114
62098
|
style: {
|
|
62115
62099
|
backgroundColor: color2,
|
|
@@ -62475,22 +62459,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
62475
62459
|
})
|
|
62476
62460
|
}), rest)
|
|
62477
62461
|
);
|
|
62478
|
-
if (backgroundColor2) {
|
|
62479
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
62480
|
-
"div",
|
|
62481
|
-
{
|
|
62482
|
-
style: {
|
|
62483
|
-
backgroundColor: backgroundColor2,
|
|
62484
|
-
borderRadius: "4px 4px 4px 4px",
|
|
62485
|
-
overflow: "hidden",
|
|
62486
|
-
width: "fit-content",
|
|
62487
|
-
color: "white",
|
|
62488
|
-
border: "2px solid white"
|
|
62489
|
-
}
|
|
62490
|
-
},
|
|
62491
|
-
toRet
|
|
62492
|
-
);
|
|
62493
|
-
}
|
|
62494
62462
|
return toRet;
|
|
62495
62463
|
}
|
|
62496
62464
|
};
|
|
@@ -134916,7 +134884,7 @@ ${seq.sequence}
|
|
|
134916
134884
|
(_a2 = document.activeElement.closest(".veEditor")) == null ? void 0 : _a2.className.split(" ").forEach((c2) => {
|
|
134917
134885
|
if (!c2.trim())
|
|
134918
134886
|
return;
|
|
134919
|
-
if (!c2.trim().includes("veEditor")) {
|
|
134887
|
+
if (!c2.trim().includes("veEditor") && !c2.trim().includes("previewModeFullscreen")) {
|
|
134920
134888
|
editorName = c2;
|
|
134921
134889
|
}
|
|
134922
134890
|
});
|
|
@@ -135395,18 +135363,19 @@ ${seq.sequence}
|
|
|
135395
135363
|
),
|
|
135396
135364
|
withHandlers({
|
|
135397
135365
|
wrappedInsertSequenceDataAtPositionOrRange: (props) => {
|
|
135398
|
-
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => {
|
|
135366
|
+
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => __async(this, null, function* () {
|
|
135399
135367
|
const {
|
|
135400
135368
|
sequenceDataToInsert,
|
|
135401
135369
|
existingSequenceData,
|
|
135402
135370
|
caretPositionOrRange,
|
|
135403
135371
|
options
|
|
135404
|
-
} = props.beforeSequenceInsertOrDelete ? props.beforeSequenceInsertOrDelete(
|
|
135372
|
+
} = props.beforeSequenceInsertOrDelete ? (yield props.beforeSequenceInsertOrDelete(
|
|
135405
135373
|
tidyUpSequenceData(_sequenceDataToInsert),
|
|
135406
135374
|
tidyUpSequenceData(_existingSequenceData),
|
|
135407
135375
|
_caretPositionOrRange,
|
|
135408
135376
|
_options
|
|
135409
|
-
) || {} : {};
|
|
135377
|
+
)) || {} : {};
|
|
135378
|
+
console.log(`zoink2`);
|
|
135410
135379
|
return [
|
|
135411
135380
|
insertSequenceDataAtPositionOrRange(
|
|
135412
135381
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -135416,7 +135385,7 @@ ${seq.sequence}
|
|
|
135416
135385
|
),
|
|
135417
135386
|
options || _options || {}
|
|
135418
135387
|
];
|
|
135419
|
-
};
|
|
135388
|
+
});
|
|
135420
135389
|
},
|
|
135421
135390
|
upsertTranslation: (props) => {
|
|
135422
135391
|
return (translationToUpsert) => __async(this, null, function* () {
|
|
@@ -135501,7 +135470,7 @@ ${seq.sequence}
|
|
|
135501
135470
|
);
|
|
135502
135471
|
caretPositionUpdate2(0);
|
|
135503
135472
|
},
|
|
135504
|
-
handleReverseComplementSelection: (props) => () => {
|
|
135473
|
+
handleReverseComplementSelection: (props) => () => __async(this, null, function* () {
|
|
135505
135474
|
const {
|
|
135506
135475
|
sequenceData: sequenceData2,
|
|
135507
135476
|
updateSequenceData: updateSequenceData2,
|
|
@@ -135517,7 +135486,7 @@ ${seq.sequence}
|
|
|
135517
135486
|
range: selectionLayer2
|
|
135518
135487
|
}
|
|
135519
135488
|
);
|
|
135520
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
135489
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
135521
135490
|
reversedSeqData,
|
|
135522
135491
|
sequenceData2,
|
|
135523
135492
|
selectionLayer2,
|
|
@@ -135526,8 +135495,8 @@ ${seq.sequence}
|
|
|
135526
135495
|
}
|
|
135527
135496
|
);
|
|
135528
135497
|
updateSequenceData2(newSeqData);
|
|
135529
|
-
},
|
|
135530
|
-
handleComplementSelection: (props) => () => {
|
|
135498
|
+
}),
|
|
135499
|
+
handleComplementSelection: (props) => () => __async(this, null, function* () {
|
|
135531
135500
|
const {
|
|
135532
135501
|
sequenceData: sequenceData2,
|
|
135533
135502
|
updateSequenceData: updateSequenceData2,
|
|
@@ -135540,7 +135509,7 @@ ${seq.sequence}
|
|
|
135540
135509
|
const comp = getComplementSequenceAndAnnotations(sequenceData2, {
|
|
135541
135510
|
range: selectionLayer2
|
|
135542
135511
|
});
|
|
135543
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
135512
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
135544
135513
|
comp,
|
|
135545
135514
|
sequenceData2,
|
|
135546
135515
|
selectionLayer2,
|
|
@@ -135549,7 +135518,7 @@ ${seq.sequence}
|
|
|
135549
135518
|
}
|
|
135550
135519
|
);
|
|
135551
135520
|
updateSequenceData2(newSeqData);
|
|
135552
|
-
},
|
|
135521
|
+
}),
|
|
135553
135522
|
handleReverseComplementSequence: (props) => () => {
|
|
135554
135523
|
const { sequenceData: sequenceData2, updateSequenceData: updateSequenceData2 } = props;
|
|
135555
135524
|
updateSequenceData2(
|
|
@@ -150309,7 +150278,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
150309
150278
|
}
|
|
150310
150279
|
__name(showFileDialog, "showFileDialog");
|
|
150311
150280
|
const name = "@teselagen/ove";
|
|
150312
|
-
const version = "0.5.
|
|
150281
|
+
const version = "0.5.14";
|
|
150313
150282
|
const main = "./src/index.js";
|
|
150314
150283
|
const type = "module";
|
|
150315
150284
|
const exports$1 = {
|
|
@@ -153376,7 +153345,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153376
153345
|
caretPositionUpdate: this.caretPositionUpdate
|
|
153377
153346
|
});
|
|
153378
153347
|
}, "updateSelectionOrCaret"));
|
|
153379
|
-
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => {
|
|
153348
|
+
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => __async(this, null, function* () {
|
|
153380
153349
|
const {
|
|
153381
153350
|
caretPosition: caretPosition2 = -1,
|
|
153382
153351
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -153418,13 +153387,13 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153418
153387
|
});
|
|
153419
153388
|
if (!seqDataToInsert.sequence.length)
|
|
153420
153389
|
return window.toastr.warning("Sorry no valid base pairs to paste");
|
|
153421
|
-
insertAndSelectHelper({
|
|
153390
|
+
yield insertAndSelectHelper({
|
|
153422
153391
|
seqDataToInsert,
|
|
153423
153392
|
props: this.props
|
|
153424
153393
|
});
|
|
153425
153394
|
window.toastr.success("Sequence Pasted Successfully");
|
|
153426
153395
|
e2.preventDefault();
|
|
153427
|
-
}, "handlePaste"));
|
|
153396
|
+
}), "handlePaste"));
|
|
153428
153397
|
__publicField(this, "handleCutOrCopy", /* @__PURE__ */ __name((isCut) => (e2) => {
|
|
153429
153398
|
const {
|
|
153430
153399
|
onCopy = noop$5,
|
|
@@ -153491,7 +153460,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153491
153460
|
}, "handleCutOrCopy"));
|
|
153492
153461
|
__publicField(this, "handleCut", this.handleCutOrCopy(true));
|
|
153493
153462
|
__publicField(this, "handleCopy", this.handleCutOrCopy());
|
|
153494
|
-
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name(({ useEventPositioning })
|
|
153463
|
+
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name((_0) => __async(this, [_0], function* ({ useEventPositioning }) {
|
|
153495
153464
|
const {
|
|
153496
153465
|
caretPosition: caretPosition2 = -1,
|
|
153497
153466
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -153518,17 +153487,17 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153518
153487
|
selectionLayer: selectionLayer2,
|
|
153519
153488
|
sequenceLength,
|
|
153520
153489
|
caretPosition: caretPosition2,
|
|
153521
|
-
handleInsert: (seqDataToInsert) => {
|
|
153522
|
-
insertAndSelectHelper({
|
|
153490
|
+
handleInsert: (seqDataToInsert) => __async(this, null, function* () {
|
|
153491
|
+
yield insertAndSelectHelper({
|
|
153523
153492
|
props: this.props,
|
|
153524
153493
|
seqDataToInsert
|
|
153525
153494
|
});
|
|
153526
153495
|
window.toastr.success("Sequence Inserted Successfully");
|
|
153527
|
-
}
|
|
153496
|
+
})
|
|
153528
153497
|
});
|
|
153529
153498
|
}
|
|
153530
|
-
}, "handleDnaInsert"));
|
|
153531
|
-
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => {
|
|
153499
|
+
}), "handleDnaInsert"));
|
|
153500
|
+
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => __async(this, null, function* () {
|
|
153532
153501
|
const {
|
|
153533
153502
|
caretPosition: caretPosition2 = -1,
|
|
153534
153503
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -153569,11 +153538,14 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153569
153538
|
isCaretAtEndOfSeq = true;
|
|
153570
153539
|
}
|
|
153571
153540
|
}
|
|
153572
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
153541
|
+
const [newSeqData, { abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
153573
153542
|
{},
|
|
153574
153543
|
sequenceData2,
|
|
153575
153544
|
rangeToDelete
|
|
153576
153545
|
);
|
|
153546
|
+
console.log(`z3`);
|
|
153547
|
+
if (abortSeqChange)
|
|
153548
|
+
return;
|
|
153577
153549
|
updateSequenceData2(newSeqData);
|
|
153578
153550
|
caretPositionUpdate2(
|
|
153579
153551
|
isCaretAtEndOfSeq ? newSeqData.sequence.length : rangeToDelete.start > newSeqData.sequence.length ? (
|
|
@@ -153587,7 +153559,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
153587
153559
|
if (showToast)
|
|
153588
153560
|
window.toastr.success("Sequence Deleted Successfully");
|
|
153589
153561
|
}
|
|
153590
|
-
}, "handleDnaDelete"));
|
|
153562
|
+
}), "handleDnaDelete"));
|
|
153591
153563
|
__publicField(this, "caretPositionUpdate", /* @__PURE__ */ __name((position2) => {
|
|
153592
153564
|
const { caretPosition: caretPosition2 = -1 } = this.props;
|
|
153593
153565
|
if (caretPosition2 === position2) {
|
|
@@ -154346,7 +154318,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154346
154318
|
});
|
|
154347
154319
|
}
|
|
154348
154320
|
__name(getGenbankFromSelection, "getGenbankFromSelection");
|
|
154349
|
-
const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props })
|
|
154321
|
+
const insertAndSelectHelper = /* @__PURE__ */ __name((_0) => __async(this, [_0], function* ({ seqDataToInsert, props }) {
|
|
154350
154322
|
const {
|
|
154351
154323
|
updateSequenceData: updateSequenceData2,
|
|
154352
154324
|
wrappedInsertSequenceDataAtPositionOrRange,
|
|
@@ -154356,11 +154328,15 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154356
154328
|
selectionLayer: selectionLayer2,
|
|
154357
154329
|
bpLimit
|
|
154358
154330
|
} = props;
|
|
154359
|
-
const [newSeqData, { maintainOriginSplit }] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
154331
|
+
const [newSeqData, { maintainOriginSplit, abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
154360
154332
|
seqDataToInsert,
|
|
154361
154333
|
sequenceData2,
|
|
154362
154334
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
154363
154335
|
);
|
|
154336
|
+
console.log(`z4`);
|
|
154337
|
+
if (abortSeqChange) {
|
|
154338
|
+
throw new Error("abortSeqChange");
|
|
154339
|
+
}
|
|
154364
154340
|
if (bpLimit) {
|
|
154365
154341
|
if (newSeqData.sequence.length > bpLimit) {
|
|
154366
154342
|
window.toastr.error(
|
|
@@ -154378,7 +154354,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154378
154354
|
start: newSelectionLayerStart,
|
|
154379
154355
|
end: newSelectionLayerEnd % newSeqData.sequence.length
|
|
154380
154356
|
});
|
|
154381
|
-
}, "insertAndSelectHelper");
|
|
154357
|
+
}), "insertAndSelectHelper");
|
|
154382
154358
|
function getEditDeleteHandlers(type2, annotation) {
|
|
154383
154359
|
return [
|
|
154384
154360
|
...annotation.isEditLocked ? [
|
package/package.json
CHANGED
package/src/GlobalDialogUtils.js
CHANGED
|
@@ -23,7 +23,10 @@ export function showDialog({
|
|
|
23
23
|
?.className.split(" ")
|
|
24
24
|
.forEach(c => {
|
|
25
25
|
if (!c.trim()) return;
|
|
26
|
-
if (
|
|
26
|
+
if (
|
|
27
|
+
!c.trim().includes("veEditor") &&
|
|
28
|
+
!c.trim().includes("previewModeFullscreen")
|
|
29
|
+
) {
|
|
27
30
|
editorName = c;
|
|
28
31
|
}
|
|
29
32
|
});
|
|
@@ -202,7 +202,7 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
handlePaste = e => {
|
|
205
|
+
handlePaste = async e => {
|
|
206
206
|
const {
|
|
207
207
|
caretPosition = -1,
|
|
208
208
|
selectionLayer = { start: -1, end: -1 },
|
|
@@ -248,7 +248,7 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
248
248
|
if (!seqDataToInsert.sequence.length)
|
|
249
249
|
return window.toastr.warning("Sorry no valid base pairs to paste");
|
|
250
250
|
|
|
251
|
-
insertAndSelectHelper({
|
|
251
|
+
await insertAndSelectHelper({
|
|
252
252
|
seqDataToInsert,
|
|
253
253
|
props: this.props
|
|
254
254
|
});
|
|
@@ -344,7 +344,7 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
344
344
|
|
|
345
345
|
handleCopy = this.handleCutOrCopy();
|
|
346
346
|
|
|
347
|
-
handleDnaInsert = ({ useEventPositioning }) => {
|
|
347
|
+
handleDnaInsert = async ({ useEventPositioning }) => {
|
|
348
348
|
const {
|
|
349
349
|
caretPosition = -1,
|
|
350
350
|
selectionLayer = { start: -1, end: -1 },
|
|
@@ -371,8 +371,8 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
371
371
|
selectionLayer,
|
|
372
372
|
sequenceLength,
|
|
373
373
|
caretPosition,
|
|
374
|
-
handleInsert: seqDataToInsert => {
|
|
375
|
-
insertAndSelectHelper({
|
|
374
|
+
handleInsert: async seqDataToInsert => {
|
|
375
|
+
await insertAndSelectHelper({
|
|
376
376
|
props: this.props,
|
|
377
377
|
seqDataToInsert
|
|
378
378
|
});
|
|
@@ -383,7 +383,7 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
-
handleDnaDelete = (showToast = true) => {
|
|
386
|
+
handleDnaDelete = async (showToast = true) => {
|
|
387
387
|
const {
|
|
388
388
|
caretPosition = -1,
|
|
389
389
|
selectionLayer = { start: -1, end: -1 },
|
|
@@ -424,11 +424,13 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
424
424
|
isCaretAtEndOfSeq = true;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
427
|
+
const [newSeqData, {abortSeqChange}] = await wrappedInsertSequenceDataAtPositionOrRange(
|
|
428
428
|
{},
|
|
429
429
|
sequenceData,
|
|
430
430
|
rangeToDelete
|
|
431
431
|
);
|
|
432
|
+
console.log(`z3`)
|
|
433
|
+
if (abortSeqChange) return
|
|
432
434
|
updateSequenceData(newSeqData);
|
|
433
435
|
caretPositionUpdate(
|
|
434
436
|
isCaretAtEndOfSeq
|
|
@@ -1197,7 +1199,7 @@ function getGenbankFromSelection(selectedSeqData, sequenceData) {
|
|
|
1197
1199
|
};
|
|
1198
1200
|
}
|
|
1199
1201
|
|
|
1200
|
-
const insertAndSelectHelper = ({ seqDataToInsert, props }) => {
|
|
1202
|
+
const insertAndSelectHelper = async ({ seqDataToInsert, props }) => {
|
|
1201
1203
|
const {
|
|
1202
1204
|
updateSequenceData,
|
|
1203
1205
|
wrappedInsertSequenceDataAtPositionOrRange,
|
|
@@ -1207,31 +1209,16 @@ const insertAndSelectHelper = ({ seqDataToInsert, props }) => {
|
|
|
1207
1209
|
selectionLayer,
|
|
1208
1210
|
bpLimit
|
|
1209
1211
|
} = props;
|
|
1210
|
-
|
|
1211
|
-
// sequenceData,
|
|
1212
|
-
// caretPosition,
|
|
1213
|
-
// selectionLayer
|
|
1214
|
-
|
|
1215
|
-
// updateSequenceData(
|
|
1216
|
-
// wrappedInsertSequenceDataAtPositionOrRange(
|
|
1217
|
-
// seqDataToInsert,
|
|
1218
|
-
// sequenceData,
|
|
1219
|
-
// caretPosition > -1 ? caretPosition : selectionLayer
|
|
1220
|
-
// )
|
|
1221
|
-
// );
|
|
1222
|
-
|
|
1223
|
-
// const newSelectionLayerStart =
|
|
1224
|
-
// caretPosition > -1 ? caretPosition : (selectionLayer.start > selectionLayer.end ? 0 : selectionLayer.start);
|
|
1225
|
-
// selectionLayerUpdate({
|
|
1226
|
-
// start: newSelectionLayerStart,
|
|
1227
|
-
// end: newSelectionLayerStart + seqDataToInsert.sequence.length - 1
|
|
1228
|
-
// });
|
|
1229
|
-
const [newSeqData, { maintainOriginSplit }] =
|
|
1212
|
+
const [newSeqData, { maintainOriginSplit, abortSeqChange }] = await
|
|
1230
1213
|
wrappedInsertSequenceDataAtPositionOrRange(
|
|
1231
1214
|
seqDataToInsert,
|
|
1232
1215
|
sequenceData,
|
|
1233
1216
|
caretPosition > -1 ? caretPosition : selectionLayer
|
|
1234
1217
|
);
|
|
1218
|
+
console.log(`z4`)
|
|
1219
|
+
if (abortSeqChange) {
|
|
1220
|
+
throw new Error("abortSeqChange");
|
|
1221
|
+
}
|
|
1235
1222
|
if (bpLimit) {
|
|
1236
1223
|
if (newSeqData.sequence.length > bpLimit) {
|
|
1237
1224
|
window.toastr.error(
|