@teselagen/ove 0.7.3 → 0.7.4
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/AlignmentView/index.d.ts +4 -0
- package/index.cjs.js +726 -95
- package/index.es.js +726 -95
- package/index.umd.js +735 -86
- package/package.json +2 -1
- package/src/AlignmentView/index.js +45 -83
- package/src/withEditorInteractions/index.js +13 -20
package/index.umd.js
CHANGED
|
@@ -9860,16 +9860,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9860
9860
|
return value;
|
|
9861
9861
|
}, "GetIntrinsic");
|
|
9862
9862
|
var callBind$3 = { exports: {} };
|
|
9863
|
-
var
|
|
9864
|
-
var
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9863
|
+
var esDefineProperty;
|
|
9864
|
+
var hasRequiredEsDefineProperty;
|
|
9865
|
+
function requireEsDefineProperty() {
|
|
9866
|
+
if (hasRequiredEsDefineProperty)
|
|
9867
|
+
return esDefineProperty;
|
|
9868
|
+
hasRequiredEsDefineProperty = 1;
|
|
9869
|
+
var GetIntrinsic2 = getIntrinsic;
|
|
9870
|
+
var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true) || false;
|
|
9871
|
+
if ($defineProperty2) {
|
|
9872
|
+
try {
|
|
9873
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
9874
|
+
} catch (e2) {
|
|
9875
|
+
$defineProperty2 = false;
|
|
9876
|
+
}
|
|
9870
9877
|
}
|
|
9878
|
+
esDefineProperty = $defineProperty2;
|
|
9879
|
+
return esDefineProperty;
|
|
9871
9880
|
}
|
|
9872
|
-
|
|
9881
|
+
__name(requireEsDefineProperty, "requireEsDefineProperty");
|
|
9873
9882
|
var GetIntrinsic$3 = getIntrinsic;
|
|
9874
9883
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
9875
9884
|
if ($gOPD$1) {
|
|
@@ -9880,7 +9889,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9880
9889
|
}
|
|
9881
9890
|
}
|
|
9882
9891
|
var gopd$1 = $gOPD$1;
|
|
9883
|
-
var $defineProperty$1 =
|
|
9892
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
9884
9893
|
var $SyntaxError = syntax;
|
|
9885
9894
|
var $TypeError$4 = type$1;
|
|
9886
9895
|
var gopd = gopd$1;
|
|
@@ -9921,7 +9930,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9921
9930
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9922
9931
|
}
|
|
9923
9932
|
}, "defineDataProperty");
|
|
9924
|
-
var $defineProperty =
|
|
9933
|
+
var $defineProperty = requireEsDefineProperty();
|
|
9925
9934
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
9926
9935
|
return !!$defineProperty;
|
|
9927
9936
|
}, "hasPropertyDescriptors");
|
|
@@ -9990,7 +9999,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9990
9999
|
var $apply = GetIntrinsic2("%Function.prototype.apply%");
|
|
9991
10000
|
var $call = GetIntrinsic2("%Function.prototype.call%");
|
|
9992
10001
|
var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
9993
|
-
var $defineProperty2 =
|
|
10002
|
+
var $defineProperty2 = requireEsDefineProperty();
|
|
9994
10003
|
var $max = GetIntrinsic2("%Math.max%");
|
|
9995
10004
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
9996
10005
|
if (typeof originalFunction !== "function") {
|
|
@@ -145041,6 +145050,684 @@ ${seq.sequence}
|
|
|
145041
145050
|
)(Droppable$1);
|
|
145042
145051
|
ConnectedDroppable.defaultProps = defaultProps;
|
|
145043
145052
|
var ConnectedDroppable$1 = ConnectedDroppable;
|
|
145053
|
+
var clipboard = { exports: {} };
|
|
145054
|
+
/*!
|
|
145055
|
+
* clipboard.js v2.0.11
|
|
145056
|
+
* https://clipboardjs.com/
|
|
145057
|
+
*
|
|
145058
|
+
* Licensed MIT © Zeno Rocha
|
|
145059
|
+
*/
|
|
145060
|
+
(function(module2, exports3) {
|
|
145061
|
+
(/* @__PURE__ */ __name(function webpackUniversalModuleDefinition(root2, factory) {
|
|
145062
|
+
module2.exports = factory();
|
|
145063
|
+
}, "webpackUniversalModuleDefinition"))(commonjsGlobal, function() {
|
|
145064
|
+
return (
|
|
145065
|
+
/******/
|
|
145066
|
+
function() {
|
|
145067
|
+
var __webpack_modules__ = {
|
|
145068
|
+
/***/
|
|
145069
|
+
686: (
|
|
145070
|
+
/***/
|
|
145071
|
+
function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
145072
|
+
__webpack_require__2.d(__webpack_exports__, {
|
|
145073
|
+
"default": function() {
|
|
145074
|
+
return (
|
|
145075
|
+
/* binding */
|
|
145076
|
+
clipboard2
|
|
145077
|
+
);
|
|
145078
|
+
}
|
|
145079
|
+
});
|
|
145080
|
+
var tiny_emitter = __webpack_require__2(279);
|
|
145081
|
+
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
145082
|
+
var listen = __webpack_require__2(370);
|
|
145083
|
+
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
145084
|
+
var src_select = __webpack_require__2(817);
|
|
145085
|
+
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
145086
|
+
function command(type2) {
|
|
145087
|
+
try {
|
|
145088
|
+
return document.execCommand(type2);
|
|
145089
|
+
} catch (err2) {
|
|
145090
|
+
return false;
|
|
145091
|
+
}
|
|
145092
|
+
}
|
|
145093
|
+
__name(command, "command");
|
|
145094
|
+
var ClipboardActionCut = /* @__PURE__ */ __name(function ClipboardActionCut2(target) {
|
|
145095
|
+
var selectedText = select_default()(target);
|
|
145096
|
+
command("cut");
|
|
145097
|
+
return selectedText;
|
|
145098
|
+
}, "ClipboardActionCut");
|
|
145099
|
+
var actions_cut = ClipboardActionCut;
|
|
145100
|
+
function createFakeElement(value) {
|
|
145101
|
+
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
145102
|
+
var fakeElement = document.createElement("textarea");
|
|
145103
|
+
fakeElement.style.fontSize = "12pt";
|
|
145104
|
+
fakeElement.style.border = "0";
|
|
145105
|
+
fakeElement.style.padding = "0";
|
|
145106
|
+
fakeElement.style.margin = "0";
|
|
145107
|
+
fakeElement.style.position = "absolute";
|
|
145108
|
+
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
145109
|
+
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
145110
|
+
fakeElement.style.top = "".concat(yPosition, "px");
|
|
145111
|
+
fakeElement.setAttribute("readonly", "");
|
|
145112
|
+
fakeElement.value = value;
|
|
145113
|
+
return fakeElement;
|
|
145114
|
+
}
|
|
145115
|
+
__name(createFakeElement, "createFakeElement");
|
|
145116
|
+
var fakeCopyAction = /* @__PURE__ */ __name(function fakeCopyAction2(value, options) {
|
|
145117
|
+
var fakeElement = createFakeElement(value);
|
|
145118
|
+
options.container.appendChild(fakeElement);
|
|
145119
|
+
var selectedText = select_default()(fakeElement);
|
|
145120
|
+
command("copy");
|
|
145121
|
+
fakeElement.remove();
|
|
145122
|
+
return selectedText;
|
|
145123
|
+
}, "fakeCopyAction");
|
|
145124
|
+
var ClipboardActionCopy = /* @__PURE__ */ __name(function ClipboardActionCopy2(target) {
|
|
145125
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
145126
|
+
container: document.body
|
|
145127
|
+
};
|
|
145128
|
+
var selectedText = "";
|
|
145129
|
+
if (typeof target === "string") {
|
|
145130
|
+
selectedText = fakeCopyAction(target, options);
|
|
145131
|
+
} else if (target instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(target === null || target === void 0 ? void 0 : target.type)) {
|
|
145132
|
+
selectedText = fakeCopyAction(target.value, options);
|
|
145133
|
+
} else {
|
|
145134
|
+
selectedText = select_default()(target);
|
|
145135
|
+
command("copy");
|
|
145136
|
+
}
|
|
145137
|
+
return selectedText;
|
|
145138
|
+
}, "ClipboardActionCopy");
|
|
145139
|
+
var actions_copy = ClipboardActionCopy;
|
|
145140
|
+
function _typeof2(obj) {
|
|
145141
|
+
"@babel/helpers - typeof";
|
|
145142
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
145143
|
+
_typeof2 = /* @__PURE__ */ __name(function _typeof3(obj2) {
|
|
145144
|
+
return typeof obj2;
|
|
145145
|
+
}, "_typeof");
|
|
145146
|
+
} else {
|
|
145147
|
+
_typeof2 = /* @__PURE__ */ __name(function _typeof3(obj2) {
|
|
145148
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
145149
|
+
}, "_typeof");
|
|
145150
|
+
}
|
|
145151
|
+
return _typeof2(obj);
|
|
145152
|
+
}
|
|
145153
|
+
__name(_typeof2, "_typeof");
|
|
145154
|
+
var ClipboardActionDefault = /* @__PURE__ */ __name(function ClipboardActionDefault2() {
|
|
145155
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
145156
|
+
var _options$action = options.action, action2 = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text2 = options.text;
|
|
145157
|
+
if (action2 !== "copy" && action2 !== "cut") {
|
|
145158
|
+
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
145159
|
+
}
|
|
145160
|
+
if (target !== void 0) {
|
|
145161
|
+
if (target && _typeof2(target) === "object" && target.nodeType === 1) {
|
|
145162
|
+
if (action2 === "copy" && target.hasAttribute("disabled")) {
|
|
145163
|
+
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
145164
|
+
}
|
|
145165
|
+
if (action2 === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
145166
|
+
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
145167
|
+
}
|
|
145168
|
+
} else {
|
|
145169
|
+
throw new Error('Invalid "target" value, use a valid Element');
|
|
145170
|
+
}
|
|
145171
|
+
}
|
|
145172
|
+
if (text2) {
|
|
145173
|
+
return actions_copy(text2, {
|
|
145174
|
+
container
|
|
145175
|
+
});
|
|
145176
|
+
}
|
|
145177
|
+
if (target) {
|
|
145178
|
+
return action2 === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
145179
|
+
container
|
|
145180
|
+
});
|
|
145181
|
+
}
|
|
145182
|
+
}, "ClipboardActionDefault");
|
|
145183
|
+
var actions_default = ClipboardActionDefault;
|
|
145184
|
+
function clipboard_typeof(obj) {
|
|
145185
|
+
"@babel/helpers - typeof";
|
|
145186
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
145187
|
+
clipboard_typeof = /* @__PURE__ */ __name(function _typeof3(obj2) {
|
|
145188
|
+
return typeof obj2;
|
|
145189
|
+
}, "_typeof");
|
|
145190
|
+
} else {
|
|
145191
|
+
clipboard_typeof = /* @__PURE__ */ __name(function _typeof3(obj2) {
|
|
145192
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
145193
|
+
}, "_typeof");
|
|
145194
|
+
}
|
|
145195
|
+
return clipboard_typeof(obj);
|
|
145196
|
+
}
|
|
145197
|
+
__name(clipboard_typeof, "clipboard_typeof");
|
|
145198
|
+
function _classCallCheck2(instance, Constructor) {
|
|
145199
|
+
if (!(instance instanceof Constructor)) {
|
|
145200
|
+
throw new TypeError("Cannot call a class as a function");
|
|
145201
|
+
}
|
|
145202
|
+
}
|
|
145203
|
+
__name(_classCallCheck2, "_classCallCheck");
|
|
145204
|
+
function _defineProperties2(target, props) {
|
|
145205
|
+
for (var i2 = 0; i2 < props.length; i2++) {
|
|
145206
|
+
var descriptor = props[i2];
|
|
145207
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
145208
|
+
descriptor.configurable = true;
|
|
145209
|
+
if ("value" in descriptor)
|
|
145210
|
+
descriptor.writable = true;
|
|
145211
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
145212
|
+
}
|
|
145213
|
+
}
|
|
145214
|
+
__name(_defineProperties2, "_defineProperties");
|
|
145215
|
+
function _createClass2(Constructor, protoProps, staticProps) {
|
|
145216
|
+
if (protoProps)
|
|
145217
|
+
_defineProperties2(Constructor.prototype, protoProps);
|
|
145218
|
+
if (staticProps)
|
|
145219
|
+
_defineProperties2(Constructor, staticProps);
|
|
145220
|
+
return Constructor;
|
|
145221
|
+
}
|
|
145222
|
+
__name(_createClass2, "_createClass");
|
|
145223
|
+
function _inherits2(subClass, superClass) {
|
|
145224
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
145225
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
145226
|
+
}
|
|
145227
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
145228
|
+
if (superClass)
|
|
145229
|
+
_setPrototypeOf2(subClass, superClass);
|
|
145230
|
+
}
|
|
145231
|
+
__name(_inherits2, "_inherits");
|
|
145232
|
+
function _setPrototypeOf2(o2, p2) {
|
|
145233
|
+
_setPrototypeOf2 = Object.setPrototypeOf || /* @__PURE__ */ __name(function _setPrototypeOf3(o3, p3) {
|
|
145234
|
+
o3.__proto__ = p3;
|
|
145235
|
+
return o3;
|
|
145236
|
+
}, "_setPrototypeOf");
|
|
145237
|
+
return _setPrototypeOf2(o2, p2);
|
|
145238
|
+
}
|
|
145239
|
+
__name(_setPrototypeOf2, "_setPrototypeOf");
|
|
145240
|
+
function _createSuper2(Derived) {
|
|
145241
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct2();
|
|
145242
|
+
return /* @__PURE__ */ __name(function _createSuperInternal() {
|
|
145243
|
+
var Super = _getPrototypeOf2(Derived), result;
|
|
145244
|
+
if (hasNativeReflectConstruct) {
|
|
145245
|
+
var NewTarget = _getPrototypeOf2(this).constructor;
|
|
145246
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
145247
|
+
} else {
|
|
145248
|
+
result = Super.apply(this, arguments);
|
|
145249
|
+
}
|
|
145250
|
+
return _possibleConstructorReturn2(this, result);
|
|
145251
|
+
}, "_createSuperInternal");
|
|
145252
|
+
}
|
|
145253
|
+
__name(_createSuper2, "_createSuper");
|
|
145254
|
+
function _possibleConstructorReturn2(self2, call2) {
|
|
145255
|
+
if (call2 && (clipboard_typeof(call2) === "object" || typeof call2 === "function")) {
|
|
145256
|
+
return call2;
|
|
145257
|
+
}
|
|
145258
|
+
return _assertThisInitialized2(self2);
|
|
145259
|
+
}
|
|
145260
|
+
__name(_possibleConstructorReturn2, "_possibleConstructorReturn");
|
|
145261
|
+
function _assertThisInitialized2(self2) {
|
|
145262
|
+
if (self2 === void 0) {
|
|
145263
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
145264
|
+
}
|
|
145265
|
+
return self2;
|
|
145266
|
+
}
|
|
145267
|
+
__name(_assertThisInitialized2, "_assertThisInitialized");
|
|
145268
|
+
function _isNativeReflectConstruct2() {
|
|
145269
|
+
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
145270
|
+
return false;
|
|
145271
|
+
if (Reflect.construct.sham)
|
|
145272
|
+
return false;
|
|
145273
|
+
if (typeof Proxy === "function")
|
|
145274
|
+
return true;
|
|
145275
|
+
try {
|
|
145276
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
145277
|
+
}));
|
|
145278
|
+
return true;
|
|
145279
|
+
} catch (e2) {
|
|
145280
|
+
return false;
|
|
145281
|
+
}
|
|
145282
|
+
}
|
|
145283
|
+
__name(_isNativeReflectConstruct2, "_isNativeReflectConstruct");
|
|
145284
|
+
function _getPrototypeOf2(o2) {
|
|
145285
|
+
_getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf : /* @__PURE__ */ __name(function _getPrototypeOf3(o3) {
|
|
145286
|
+
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
145287
|
+
}, "_getPrototypeOf");
|
|
145288
|
+
return _getPrototypeOf2(o2);
|
|
145289
|
+
}
|
|
145290
|
+
__name(_getPrototypeOf2, "_getPrototypeOf");
|
|
145291
|
+
function getAttributeValue(suffix, element2) {
|
|
145292
|
+
var attribute = "data-clipboard-".concat(suffix);
|
|
145293
|
+
if (!element2.hasAttribute(attribute)) {
|
|
145294
|
+
return;
|
|
145295
|
+
}
|
|
145296
|
+
return element2.getAttribute(attribute);
|
|
145297
|
+
}
|
|
145298
|
+
__name(getAttributeValue, "getAttributeValue");
|
|
145299
|
+
var Clipboard2 = /* @__PURE__ */ function(_Emitter) {
|
|
145300
|
+
_inherits2(Clipboard3, _Emitter);
|
|
145301
|
+
var _super = _createSuper2(Clipboard3);
|
|
145302
|
+
function Clipboard3(trigger2, options) {
|
|
145303
|
+
var _this;
|
|
145304
|
+
_classCallCheck2(this, Clipboard3);
|
|
145305
|
+
_this = _super.call(this);
|
|
145306
|
+
_this.resolveOptions(options);
|
|
145307
|
+
_this.listenClick(trigger2);
|
|
145308
|
+
return _this;
|
|
145309
|
+
}
|
|
145310
|
+
__name(Clipboard3, "Clipboard");
|
|
145311
|
+
_createClass2(Clipboard3, [{
|
|
145312
|
+
key: "resolveOptions",
|
|
145313
|
+
value: /* @__PURE__ */ __name(function resolveOptions() {
|
|
145314
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
145315
|
+
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
145316
|
+
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
145317
|
+
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
145318
|
+
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
145319
|
+
}, "resolveOptions")
|
|
145320
|
+
/**
|
|
145321
|
+
* Adds a click event listener to the passed trigger.
|
|
145322
|
+
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
|
|
145323
|
+
*/
|
|
145324
|
+
}, {
|
|
145325
|
+
key: "listenClick",
|
|
145326
|
+
value: /* @__PURE__ */ __name(function listenClick(trigger2) {
|
|
145327
|
+
var _this2 = this;
|
|
145328
|
+
this.listener = listen_default()(trigger2, "click", function(e2) {
|
|
145329
|
+
return _this2.onClick(e2);
|
|
145330
|
+
});
|
|
145331
|
+
}, "listenClick")
|
|
145332
|
+
/**
|
|
145333
|
+
* Defines a new `ClipboardAction` on each click event.
|
|
145334
|
+
* @param {Event} e
|
|
145335
|
+
*/
|
|
145336
|
+
}, {
|
|
145337
|
+
key: "onClick",
|
|
145338
|
+
value: /* @__PURE__ */ __name(function onClick(e2) {
|
|
145339
|
+
var trigger2 = e2.delegateTarget || e2.currentTarget;
|
|
145340
|
+
var action2 = this.action(trigger2) || "copy";
|
|
145341
|
+
var text2 = actions_default({
|
|
145342
|
+
action: action2,
|
|
145343
|
+
container: this.container,
|
|
145344
|
+
target: this.target(trigger2),
|
|
145345
|
+
text: this.text(trigger2)
|
|
145346
|
+
});
|
|
145347
|
+
this.emit(text2 ? "success" : "error", {
|
|
145348
|
+
action: action2,
|
|
145349
|
+
text: text2,
|
|
145350
|
+
trigger: trigger2,
|
|
145351
|
+
clearSelection: /* @__PURE__ */ __name(function clearSelection() {
|
|
145352
|
+
if (trigger2) {
|
|
145353
|
+
trigger2.focus();
|
|
145354
|
+
}
|
|
145355
|
+
window.getSelection().removeAllRanges();
|
|
145356
|
+
}, "clearSelection")
|
|
145357
|
+
});
|
|
145358
|
+
}, "onClick")
|
|
145359
|
+
/**
|
|
145360
|
+
* Default `action` lookup function.
|
|
145361
|
+
* @param {Element} trigger
|
|
145362
|
+
*/
|
|
145363
|
+
}, {
|
|
145364
|
+
key: "defaultAction",
|
|
145365
|
+
value: /* @__PURE__ */ __name(function defaultAction(trigger2) {
|
|
145366
|
+
return getAttributeValue("action", trigger2);
|
|
145367
|
+
}, "defaultAction")
|
|
145368
|
+
/**
|
|
145369
|
+
* Default `target` lookup function.
|
|
145370
|
+
* @param {Element} trigger
|
|
145371
|
+
*/
|
|
145372
|
+
}, {
|
|
145373
|
+
key: "defaultTarget",
|
|
145374
|
+
value: /* @__PURE__ */ __name(function defaultTarget(trigger2) {
|
|
145375
|
+
var selector = getAttributeValue("target", trigger2);
|
|
145376
|
+
if (selector) {
|
|
145377
|
+
return document.querySelector(selector);
|
|
145378
|
+
}
|
|
145379
|
+
}, "defaultTarget")
|
|
145380
|
+
/**
|
|
145381
|
+
* Allow fire programmatically a copy action
|
|
145382
|
+
* @param {String|HTMLElement} target
|
|
145383
|
+
* @param {Object} options
|
|
145384
|
+
* @returns Text copied.
|
|
145385
|
+
*/
|
|
145386
|
+
}, {
|
|
145387
|
+
key: "defaultText",
|
|
145388
|
+
/**
|
|
145389
|
+
* Default `text` lookup function.
|
|
145390
|
+
* @param {Element} trigger
|
|
145391
|
+
*/
|
|
145392
|
+
value: /* @__PURE__ */ __name(function defaultText(trigger2) {
|
|
145393
|
+
return getAttributeValue("text", trigger2);
|
|
145394
|
+
}, "defaultText")
|
|
145395
|
+
/**
|
|
145396
|
+
* Destroy lifecycle.
|
|
145397
|
+
*/
|
|
145398
|
+
}, {
|
|
145399
|
+
key: "destroy",
|
|
145400
|
+
value: /* @__PURE__ */ __name(function destroy2() {
|
|
145401
|
+
this.listener.destroy();
|
|
145402
|
+
}, "destroy")
|
|
145403
|
+
}], [{
|
|
145404
|
+
key: "copy",
|
|
145405
|
+
value: /* @__PURE__ */ __name(function copy2(target) {
|
|
145406
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
145407
|
+
container: document.body
|
|
145408
|
+
};
|
|
145409
|
+
return actions_copy(target, options);
|
|
145410
|
+
}, "copy")
|
|
145411
|
+
/**
|
|
145412
|
+
* Allow fire programmatically a cut action
|
|
145413
|
+
* @param {String|HTMLElement} target
|
|
145414
|
+
* @returns Text cutted.
|
|
145415
|
+
*/
|
|
145416
|
+
}, {
|
|
145417
|
+
key: "cut",
|
|
145418
|
+
value: /* @__PURE__ */ __name(function cut(target) {
|
|
145419
|
+
return actions_cut(target);
|
|
145420
|
+
}, "cut")
|
|
145421
|
+
/**
|
|
145422
|
+
* Returns the support of the given action, or all actions if no action is
|
|
145423
|
+
* given.
|
|
145424
|
+
* @param {String} [action]
|
|
145425
|
+
*/
|
|
145426
|
+
}, {
|
|
145427
|
+
key: "isSupported",
|
|
145428
|
+
value: /* @__PURE__ */ __name(function isSupported() {
|
|
145429
|
+
var action2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
145430
|
+
var actions2 = typeof action2 === "string" ? [action2] : action2;
|
|
145431
|
+
var support = !!document.queryCommandSupported;
|
|
145432
|
+
actions2.forEach(function(action3) {
|
|
145433
|
+
support = support && !!document.queryCommandSupported(action3);
|
|
145434
|
+
});
|
|
145435
|
+
return support;
|
|
145436
|
+
}, "isSupported")
|
|
145437
|
+
}]);
|
|
145438
|
+
return Clipboard3;
|
|
145439
|
+
}(tiny_emitter_default());
|
|
145440
|
+
var clipboard2 = Clipboard2;
|
|
145441
|
+
}
|
|
145442
|
+
),
|
|
145443
|
+
/***/
|
|
145444
|
+
828: (
|
|
145445
|
+
/***/
|
|
145446
|
+
function(module3) {
|
|
145447
|
+
var DOCUMENT_NODE_TYPE = 9;
|
|
145448
|
+
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
145449
|
+
var proto = Element.prototype;
|
|
145450
|
+
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
145451
|
+
}
|
|
145452
|
+
function closest2(element2, selector) {
|
|
145453
|
+
while (element2 && element2.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
145454
|
+
if (typeof element2.matches === "function" && element2.matches(selector)) {
|
|
145455
|
+
return element2;
|
|
145456
|
+
}
|
|
145457
|
+
element2 = element2.parentNode;
|
|
145458
|
+
}
|
|
145459
|
+
}
|
|
145460
|
+
__name(closest2, "closest");
|
|
145461
|
+
module3.exports = closest2;
|
|
145462
|
+
}
|
|
145463
|
+
),
|
|
145464
|
+
/***/
|
|
145465
|
+
438: (
|
|
145466
|
+
/***/
|
|
145467
|
+
function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
145468
|
+
var closest2 = __webpack_require__2(828);
|
|
145469
|
+
function _delegate(element2, selector, type2, callback2, useCapture) {
|
|
145470
|
+
var listenerFn = listener.apply(this, arguments);
|
|
145471
|
+
element2.addEventListener(type2, listenerFn, useCapture);
|
|
145472
|
+
return {
|
|
145473
|
+
destroy: function() {
|
|
145474
|
+
element2.removeEventListener(type2, listenerFn, useCapture);
|
|
145475
|
+
}
|
|
145476
|
+
};
|
|
145477
|
+
}
|
|
145478
|
+
__name(_delegate, "_delegate");
|
|
145479
|
+
function delegate(elements, selector, type2, callback2, useCapture) {
|
|
145480
|
+
if (typeof elements.addEventListener === "function") {
|
|
145481
|
+
return _delegate.apply(null, arguments);
|
|
145482
|
+
}
|
|
145483
|
+
if (typeof type2 === "function") {
|
|
145484
|
+
return _delegate.bind(null, document).apply(null, arguments);
|
|
145485
|
+
}
|
|
145486
|
+
if (typeof elements === "string") {
|
|
145487
|
+
elements = document.querySelectorAll(elements);
|
|
145488
|
+
}
|
|
145489
|
+
return Array.prototype.map.call(elements, function(element2) {
|
|
145490
|
+
return _delegate(element2, selector, type2, callback2, useCapture);
|
|
145491
|
+
});
|
|
145492
|
+
}
|
|
145493
|
+
__name(delegate, "delegate");
|
|
145494
|
+
function listener(element2, selector, type2, callback2) {
|
|
145495
|
+
return function(e2) {
|
|
145496
|
+
e2.delegateTarget = closest2(e2.target, selector);
|
|
145497
|
+
if (e2.delegateTarget) {
|
|
145498
|
+
callback2.call(element2, e2);
|
|
145499
|
+
}
|
|
145500
|
+
};
|
|
145501
|
+
}
|
|
145502
|
+
__name(listener, "listener");
|
|
145503
|
+
module3.exports = delegate;
|
|
145504
|
+
}
|
|
145505
|
+
),
|
|
145506
|
+
/***/
|
|
145507
|
+
879: (
|
|
145508
|
+
/***/
|
|
145509
|
+
function(__unused_webpack_module, exports4) {
|
|
145510
|
+
exports4.node = function(value) {
|
|
145511
|
+
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
145512
|
+
};
|
|
145513
|
+
exports4.nodeList = function(value) {
|
|
145514
|
+
var type2 = Object.prototype.toString.call(value);
|
|
145515
|
+
return value !== void 0 && (type2 === "[object NodeList]" || type2 === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports4.node(value[0]));
|
|
145516
|
+
};
|
|
145517
|
+
exports4.string = function(value) {
|
|
145518
|
+
return typeof value === "string" || value instanceof String;
|
|
145519
|
+
};
|
|
145520
|
+
exports4.fn = function(value) {
|
|
145521
|
+
var type2 = Object.prototype.toString.call(value);
|
|
145522
|
+
return type2 === "[object Function]";
|
|
145523
|
+
};
|
|
145524
|
+
}
|
|
145525
|
+
),
|
|
145526
|
+
/***/
|
|
145527
|
+
370: (
|
|
145528
|
+
/***/
|
|
145529
|
+
function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
145530
|
+
var is2 = __webpack_require__2(879);
|
|
145531
|
+
var delegate = __webpack_require__2(438);
|
|
145532
|
+
function listen(target, type2, callback2) {
|
|
145533
|
+
if (!target && !type2 && !callback2) {
|
|
145534
|
+
throw new Error("Missing required arguments");
|
|
145535
|
+
}
|
|
145536
|
+
if (!is2.string(type2)) {
|
|
145537
|
+
throw new TypeError("Second argument must be a String");
|
|
145538
|
+
}
|
|
145539
|
+
if (!is2.fn(callback2)) {
|
|
145540
|
+
throw new TypeError("Third argument must be a Function");
|
|
145541
|
+
}
|
|
145542
|
+
if (is2.node(target)) {
|
|
145543
|
+
return listenNode(target, type2, callback2);
|
|
145544
|
+
} else if (is2.nodeList(target)) {
|
|
145545
|
+
return listenNodeList(target, type2, callback2);
|
|
145546
|
+
} else if (is2.string(target)) {
|
|
145547
|
+
return listenSelector(target, type2, callback2);
|
|
145548
|
+
} else {
|
|
145549
|
+
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
145550
|
+
}
|
|
145551
|
+
}
|
|
145552
|
+
__name(listen, "listen");
|
|
145553
|
+
function listenNode(node2, type2, callback2) {
|
|
145554
|
+
node2.addEventListener(type2, callback2);
|
|
145555
|
+
return {
|
|
145556
|
+
destroy: function() {
|
|
145557
|
+
node2.removeEventListener(type2, callback2);
|
|
145558
|
+
}
|
|
145559
|
+
};
|
|
145560
|
+
}
|
|
145561
|
+
__name(listenNode, "listenNode");
|
|
145562
|
+
function listenNodeList(nodeList, type2, callback2) {
|
|
145563
|
+
Array.prototype.forEach.call(nodeList, function(node2) {
|
|
145564
|
+
node2.addEventListener(type2, callback2);
|
|
145565
|
+
});
|
|
145566
|
+
return {
|
|
145567
|
+
destroy: function() {
|
|
145568
|
+
Array.prototype.forEach.call(nodeList, function(node2) {
|
|
145569
|
+
node2.removeEventListener(type2, callback2);
|
|
145570
|
+
});
|
|
145571
|
+
}
|
|
145572
|
+
};
|
|
145573
|
+
}
|
|
145574
|
+
__name(listenNodeList, "listenNodeList");
|
|
145575
|
+
function listenSelector(selector, type2, callback2) {
|
|
145576
|
+
return delegate(document.body, selector, type2, callback2);
|
|
145577
|
+
}
|
|
145578
|
+
__name(listenSelector, "listenSelector");
|
|
145579
|
+
module3.exports = listen;
|
|
145580
|
+
}
|
|
145581
|
+
),
|
|
145582
|
+
/***/
|
|
145583
|
+
817: (
|
|
145584
|
+
/***/
|
|
145585
|
+
function(module3) {
|
|
145586
|
+
function select(element2) {
|
|
145587
|
+
var selectedText;
|
|
145588
|
+
if (element2.nodeName === "SELECT") {
|
|
145589
|
+
element2.focus();
|
|
145590
|
+
selectedText = element2.value;
|
|
145591
|
+
} else if (element2.nodeName === "INPUT" || element2.nodeName === "TEXTAREA") {
|
|
145592
|
+
var isReadOnly = element2.hasAttribute("readonly");
|
|
145593
|
+
if (!isReadOnly) {
|
|
145594
|
+
element2.setAttribute("readonly", "");
|
|
145595
|
+
}
|
|
145596
|
+
element2.select();
|
|
145597
|
+
element2.setSelectionRange(0, element2.value.length);
|
|
145598
|
+
if (!isReadOnly) {
|
|
145599
|
+
element2.removeAttribute("readonly");
|
|
145600
|
+
}
|
|
145601
|
+
selectedText = element2.value;
|
|
145602
|
+
} else {
|
|
145603
|
+
if (element2.hasAttribute("contenteditable")) {
|
|
145604
|
+
element2.focus();
|
|
145605
|
+
}
|
|
145606
|
+
var selection = window.getSelection();
|
|
145607
|
+
var range2 = document.createRange();
|
|
145608
|
+
range2.selectNodeContents(element2);
|
|
145609
|
+
selection.removeAllRanges();
|
|
145610
|
+
selection.addRange(range2);
|
|
145611
|
+
selectedText = selection.toString();
|
|
145612
|
+
}
|
|
145613
|
+
return selectedText;
|
|
145614
|
+
}
|
|
145615
|
+
__name(select, "select");
|
|
145616
|
+
module3.exports = select;
|
|
145617
|
+
}
|
|
145618
|
+
),
|
|
145619
|
+
/***/
|
|
145620
|
+
279: (
|
|
145621
|
+
/***/
|
|
145622
|
+
function(module3) {
|
|
145623
|
+
function E2() {
|
|
145624
|
+
}
|
|
145625
|
+
__name(E2, "E");
|
|
145626
|
+
E2.prototype = {
|
|
145627
|
+
on: function(name2, callback2, ctx) {
|
|
145628
|
+
var e2 = this.e || (this.e = {});
|
|
145629
|
+
(e2[name2] || (e2[name2] = [])).push({
|
|
145630
|
+
fn: callback2,
|
|
145631
|
+
ctx
|
|
145632
|
+
});
|
|
145633
|
+
return this;
|
|
145634
|
+
},
|
|
145635
|
+
once: function(name2, callback2, ctx) {
|
|
145636
|
+
var self2 = this;
|
|
145637
|
+
function listener() {
|
|
145638
|
+
self2.off(name2, listener);
|
|
145639
|
+
callback2.apply(ctx, arguments);
|
|
145640
|
+
}
|
|
145641
|
+
__name(listener, "listener");
|
|
145642
|
+
listener._ = callback2;
|
|
145643
|
+
return this.on(name2, listener, ctx);
|
|
145644
|
+
},
|
|
145645
|
+
emit: function(name2) {
|
|
145646
|
+
var data = [].slice.call(arguments, 1);
|
|
145647
|
+
var evtArr = ((this.e || (this.e = {}))[name2] || []).slice();
|
|
145648
|
+
var i2 = 0;
|
|
145649
|
+
var len2 = evtArr.length;
|
|
145650
|
+
for (i2; i2 < len2; i2++) {
|
|
145651
|
+
evtArr[i2].fn.apply(evtArr[i2].ctx, data);
|
|
145652
|
+
}
|
|
145653
|
+
return this;
|
|
145654
|
+
},
|
|
145655
|
+
off: function(name2, callback2) {
|
|
145656
|
+
var e2 = this.e || (this.e = {});
|
|
145657
|
+
var evts = e2[name2];
|
|
145658
|
+
var liveEvents = [];
|
|
145659
|
+
if (evts && callback2) {
|
|
145660
|
+
for (var i2 = 0, len2 = evts.length; i2 < len2; i2++) {
|
|
145661
|
+
if (evts[i2].fn !== callback2 && evts[i2].fn._ !== callback2)
|
|
145662
|
+
liveEvents.push(evts[i2]);
|
|
145663
|
+
}
|
|
145664
|
+
}
|
|
145665
|
+
liveEvents.length ? e2[name2] = liveEvents : delete e2[name2];
|
|
145666
|
+
return this;
|
|
145667
|
+
}
|
|
145668
|
+
};
|
|
145669
|
+
module3.exports = E2;
|
|
145670
|
+
module3.exports.TinyEmitter = E2;
|
|
145671
|
+
}
|
|
145672
|
+
)
|
|
145673
|
+
/******/
|
|
145674
|
+
};
|
|
145675
|
+
var __webpack_module_cache__ = {};
|
|
145676
|
+
function __webpack_require__(moduleId) {
|
|
145677
|
+
if (__webpack_module_cache__[moduleId]) {
|
|
145678
|
+
return __webpack_module_cache__[moduleId].exports;
|
|
145679
|
+
}
|
|
145680
|
+
var module3 = __webpack_module_cache__[moduleId] = {
|
|
145681
|
+
/******/
|
|
145682
|
+
// no module.id needed
|
|
145683
|
+
/******/
|
|
145684
|
+
// no module.loaded needed
|
|
145685
|
+
/******/
|
|
145686
|
+
exports: {}
|
|
145687
|
+
/******/
|
|
145688
|
+
};
|
|
145689
|
+
__webpack_modules__[moduleId](module3, module3.exports, __webpack_require__);
|
|
145690
|
+
return module3.exports;
|
|
145691
|
+
}
|
|
145692
|
+
__name(__webpack_require__, "__webpack_require__");
|
|
145693
|
+
!function() {
|
|
145694
|
+
__webpack_require__.n = function(module3) {
|
|
145695
|
+
var getter = module3 && module3.__esModule ? (
|
|
145696
|
+
/******/
|
|
145697
|
+
function() {
|
|
145698
|
+
return module3["default"];
|
|
145699
|
+
}
|
|
145700
|
+
) : (
|
|
145701
|
+
/******/
|
|
145702
|
+
function() {
|
|
145703
|
+
return module3;
|
|
145704
|
+
}
|
|
145705
|
+
);
|
|
145706
|
+
__webpack_require__.d(getter, { a: getter });
|
|
145707
|
+
return getter;
|
|
145708
|
+
};
|
|
145709
|
+
}();
|
|
145710
|
+
!function() {
|
|
145711
|
+
__webpack_require__.d = function(exports4, definition2) {
|
|
145712
|
+
for (var key2 in definition2) {
|
|
145713
|
+
if (__webpack_require__.o(definition2, key2) && !__webpack_require__.o(exports4, key2)) {
|
|
145714
|
+
Object.defineProperty(exports4, key2, { enumerable: true, get: definition2[key2] });
|
|
145715
|
+
}
|
|
145716
|
+
}
|
|
145717
|
+
};
|
|
145718
|
+
}();
|
|
145719
|
+
!function() {
|
|
145720
|
+
__webpack_require__.o = function(obj, prop2) {
|
|
145721
|
+
return Object.prototype.hasOwnProperty.call(obj, prop2);
|
|
145722
|
+
};
|
|
145723
|
+
}();
|
|
145724
|
+
return __webpack_require__(686);
|
|
145725
|
+
}().default
|
|
145726
|
+
);
|
|
145727
|
+
});
|
|
145728
|
+
})(clipboard);
|
|
145729
|
+
var clipboardExports = clipboard.exports;
|
|
145730
|
+
const Clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboardExports);
|
|
145044
145731
|
var connectionStore = /* @__PURE__ */ new WeakMap();
|
|
145045
145732
|
var ITERATION_KEY = Symbol("iteration key");
|
|
145046
145733
|
function storeObservable(obj) {
|
|
@@ -150981,7 +151668,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
150981
151668
|
}
|
|
150982
151669
|
__name(showFileDialog, "showFileDialog");
|
|
150983
151670
|
const name = "@teselagen/ove";
|
|
150984
|
-
const version = "0.7.
|
|
151671
|
+
const version = "0.7.3";
|
|
150985
151672
|
const main = "./src/index.js";
|
|
150986
151673
|
const type = "module";
|
|
150987
151674
|
const exports$1 = {
|
|
@@ -154376,8 +155063,14 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154376
155063
|
const { sequenceData: sequenceData2, readOnly: readOnly2, disableBpEditing, selectionLayer: selectionLayer2 } = this.props;
|
|
154377
155064
|
const { isProtein: isProtein2 } = sequenceData2;
|
|
154378
155065
|
const makeTextCopyable = /* @__PURE__ */ __name((transformFunc, className, action2 = "copy") => {
|
|
154379
|
-
|
|
154380
|
-
|
|
155066
|
+
return new Clipboard(`.${className}`, {
|
|
155067
|
+
action: () => action2,
|
|
155068
|
+
text: () => {
|
|
155069
|
+
if (action2 === "copy") {
|
|
155070
|
+
document.body.addEventListener("copy", this.handleCopy);
|
|
155071
|
+
} else {
|
|
155072
|
+
document.body.addEventListener("cut", this.handleCut);
|
|
155073
|
+
}
|
|
154381
155074
|
const { editorName, store: store2 } = this.props;
|
|
154382
155075
|
const { sequenceData: sequenceData22, copyOptions: copyOptions2, selectionLayer: selectionLayer22 } = store2.getState().VectorEditor[editorName];
|
|
154383
155076
|
const selectedSeqData = getSequenceDataBetweenRange(
|
|
@@ -154402,22 +155095,12 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154402
155095
|
sequenceData22
|
|
154403
155096
|
);
|
|
154404
155097
|
this.sequenceDataToCopy = sequenceDataToCopy;
|
|
154405
|
-
const textToCopy = sequenceDataToCopy.textToCopy || sequenceDataToCopy.sequence;
|
|
154406
|
-
try {
|
|
154407
|
-
yield navigator.clipboard.writeText(textToCopy);
|
|
154408
|
-
} catch (err2) {
|
|
154409
|
-
console.error("Failed to copy text:", err2);
|
|
154410
|
-
}
|
|
154411
|
-
if (action2 === "copy") {
|
|
154412
|
-
document.body.addEventListener("copy", this.handleCopy);
|
|
154413
|
-
} else {
|
|
154414
|
-
document.body.addEventListener("cut", this.handleCut);
|
|
154415
|
-
}
|
|
154416
155098
|
if (window.Cypress) {
|
|
154417
155099
|
window.Cypress.textToCopy = sequenceDataToCopy.textToCopy;
|
|
154418
155100
|
window.Cypress.seqDataToCopy = sequenceDataToCopy;
|
|
154419
155101
|
}
|
|
154420
|
-
|
|
155102
|
+
return sequenceDataToCopy.textToCopy || sequenceDataToCopy.sequence;
|
|
155103
|
+
}
|
|
154421
155104
|
});
|
|
154422
155105
|
}, "makeTextCopyable");
|
|
154423
155106
|
const aaCopy = {
|
|
@@ -173228,27 +173911,15 @@ ${seqDataToCopy}\r
|
|
|
173228
173911
|
this.copyAllAlignmentsFastaClipboardHelper && this.copyAllAlignmentsFastaClipboardHelper.destroy();
|
|
173229
173912
|
},
|
|
173230
173913
|
didMount: () => {
|
|
173231
|
-
|
|
173232
|
-
`.copyAllAlignmentsFastaClipboardHelper
|
|
173914
|
+
this.copyAllAlignmentsFastaClipboardHelper = new Clipboard(
|
|
173915
|
+
`.copyAllAlignmentsFastaClipboardHelper`,
|
|
173916
|
+
{
|
|
173917
|
+
action: "copyAllAlignmentsFasta",
|
|
173918
|
+
text: () => {
|
|
173919
|
+
return this.getAllAlignmentsFastaText();
|
|
173920
|
+
}
|
|
173921
|
+
}
|
|
173233
173922
|
);
|
|
173234
|
-
elements.forEach((element2) => {
|
|
173235
|
-
element2.addEventListener(
|
|
173236
|
-
"click",
|
|
173237
|
-
() => __async(this, null, function* () {
|
|
173238
|
-
const textToCopy = this.getAllAlignmentsFastaText();
|
|
173239
|
-
try {
|
|
173240
|
-
yield navigator.clipboard.writeText(
|
|
173241
|
-
textToCopy
|
|
173242
|
-
);
|
|
173243
|
-
} catch (err2) {
|
|
173244
|
-
console.error(
|
|
173245
|
-
"Failed to copy text:",
|
|
173246
|
-
err2
|
|
173247
|
-
);
|
|
173248
|
-
}
|
|
173249
|
-
})
|
|
173250
|
-
);
|
|
173251
|
-
});
|
|
173252
173923
|
},
|
|
173253
173924
|
onClick: () => {
|
|
173254
173925
|
window.toastr.success("Selection Copied");
|
|
@@ -173261,13 +173932,11 @@ ${seqDataToCopy}\r
|
|
|
173261
173932
|
this.copySpecificAlignmentFastaClipboardHelper && this.copySpecificAlignmentFastaClipboardHelper.destroy();
|
|
173262
173933
|
},
|
|
173263
173934
|
didMount: () => {
|
|
173264
|
-
|
|
173265
|
-
`.copySpecificAlignmentFastaClipboardHelper
|
|
173266
|
-
|
|
173267
|
-
|
|
173268
|
-
|
|
173269
|
-
"click",
|
|
173270
|
-
() => __async(this, null, function* () {
|
|
173935
|
+
this.copySpecificAlignmentFastaClipboardHelper = new Clipboard(
|
|
173936
|
+
`.copySpecificAlignmentFastaClipboardHelper`,
|
|
173937
|
+
{
|
|
173938
|
+
action: "copySpecificAlignmentFasta",
|
|
173939
|
+
text: () => {
|
|
173271
173940
|
const { selectionLayer: selectionLayer2 } = this.props.store.getState().VectorEditor.__allEditorsOptions.alignments[this.props.id] || {};
|
|
173272
173941
|
const seqDataToCopy = getSequenceDataBetweenRange(
|
|
173273
173942
|
alignmentData,
|
|
@@ -173276,19 +173945,10 @@ ${seqDataToCopy}\r
|
|
|
173276
173945
|
const seqDataToCopyAsFasta = `>${name2}\r
|
|
173277
173946
|
${seqDataToCopy}\r
|
|
173278
173947
|
`;
|
|
173279
|
-
|
|
173280
|
-
|
|
173281
|
-
|
|
173282
|
-
|
|
173283
|
-
} catch (err2) {
|
|
173284
|
-
console.error(
|
|
173285
|
-
"Failed to copy text:",
|
|
173286
|
-
err2
|
|
173287
|
-
);
|
|
173288
|
-
}
|
|
173289
|
-
})
|
|
173290
|
-
);
|
|
173291
|
-
});
|
|
173948
|
+
return seqDataToCopyAsFasta;
|
|
173949
|
+
}
|
|
173950
|
+
}
|
|
173951
|
+
);
|
|
173292
173952
|
},
|
|
173293
173953
|
onClick: () => {
|
|
173294
173954
|
window.toastr.success(
|
|
@@ -173303,31 +173963,20 @@ ${seqDataToCopy}\r
|
|
|
173303
173963
|
this.copySpecificAlignmentAsPlainClipboardHelper && this.copySpecificAlignmentAsPlainClipboardHelper.destroy();
|
|
173304
173964
|
},
|
|
173305
173965
|
didMount: () => {
|
|
173306
|
-
|
|
173307
|
-
`.copySpecificAlignmentAsPlainClipboardHelper
|
|
173308
|
-
|
|
173309
|
-
|
|
173310
|
-
|
|
173311
|
-
"click",
|
|
173312
|
-
() => __async(this, null, function* () {
|
|
173966
|
+
this.copySpecificAlignmentAsPlainClipboardHelper = new Clipboard(
|
|
173967
|
+
`.copySpecificAlignmentAsPlainClipboardHelper`,
|
|
173968
|
+
{
|
|
173969
|
+
action: "copySpecificAlignmentFasta",
|
|
173970
|
+
text: () => {
|
|
173313
173971
|
const { selectionLayer: selectionLayer2 } = this.props.store.getState().VectorEditor.__allEditorsOptions.alignments[this.props.id] || {};
|
|
173314
173972
|
const seqDataToCopy = getSequenceDataBetweenRange(
|
|
173315
173973
|
alignmentData,
|
|
173316
173974
|
selectionLayer2
|
|
173317
173975
|
).sequence;
|
|
173318
|
-
|
|
173319
|
-
|
|
173320
|
-
|
|
173321
|
-
|
|
173322
|
-
} catch (err2) {
|
|
173323
|
-
console.error(
|
|
173324
|
-
"Failed to copy text:",
|
|
173325
|
-
err2
|
|
173326
|
-
);
|
|
173327
|
-
}
|
|
173328
|
-
})
|
|
173329
|
-
);
|
|
173330
|
-
});
|
|
173976
|
+
return seqDataToCopy;
|
|
173977
|
+
}
|
|
173978
|
+
}
|
|
173979
|
+
);
|
|
173331
173980
|
},
|
|
173332
173981
|
onClick: () => {
|
|
173333
173982
|
window.toastr.success("Selection Copied");
|