@teselagen/ove 0.7.3-beta.5 → 0.7.3-beta.6
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 -4
- package/index.cjs.js +54 -31
- package/index.es.js +54 -31
- package/index.umd.js +34 -31
- package/package.json +1 -1
- package/src/AlignmentView/index.js +4 -4
- package/src/withEditorInteractions/index.js +2 -2
package/AlignmentView/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/react';
|
|
2
|
-
import { default as Clipboard } from 'clipboard';
|
|
3
2
|
export class AlignmentView extends React.Component<any, any, any> {
|
|
4
3
|
constructor(props: any);
|
|
5
4
|
bindOutsideChangeHelper: {};
|
|
@@ -90,9 +89,9 @@ export class AlignmentView extends React.Component<any, any, any> {
|
|
|
90
89
|
}) => void;
|
|
91
90
|
render(): import("react/jsx-runtime").JSX.Element | "corrupted data!";
|
|
92
91
|
veTracksAndAlignmentHolder: HTMLDivElement | null | undefined;
|
|
93
|
-
copyAllAlignmentsFastaClipboardHelper:
|
|
94
|
-
copySpecificAlignmentFastaClipboardHelper:
|
|
95
|
-
copySpecificAlignmentAsPlainClipboardHelper:
|
|
92
|
+
copyAllAlignmentsFastaClipboardHelper: ClipboardJS | undefined;
|
|
93
|
+
copySpecificAlignmentFastaClipboardHelper: ClipboardJS | undefined;
|
|
94
|
+
copySpecificAlignmentAsPlainClipboardHelper: ClipboardJS | undefined;
|
|
96
95
|
InfiniteScroller: any;
|
|
97
96
|
isZooming: boolean | undefined;
|
|
98
97
|
getTrackTrimmingOptions({ e, allTracks, upsertAlignmentRun, currentPairwiseAlignmentIndex, alignmentId }: {
|
|
@@ -105,3 +104,4 @@ export class AlignmentView extends React.Component<any, any, any> {
|
|
|
105
104
|
}
|
|
106
105
|
declare const _default: any;
|
|
107
106
|
export default _default;
|
|
107
|
+
import * as ClipboardJS from "clipboard";
|
package/index.cjs.js
CHANGED
|
@@ -84,6 +84,26 @@ function _interopNamespaceDefault(e) {
|
|
|
84
84
|
return Object.freeze(n2);
|
|
85
85
|
}
|
|
86
86
|
__name(_interopNamespaceDefault, "_interopNamespaceDefault");
|
|
87
|
+
function _mergeNamespaces(n2, m2) {
|
|
88
|
+
for (var i = 0; i < m2.length; i++) {
|
|
89
|
+
const e = m2[i];
|
|
90
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
91
|
+
for (const k2 in e) {
|
|
92
|
+
if (k2 !== "default" && !(k2 in n2)) {
|
|
93
|
+
const d2 = Object.getOwnPropertyDescriptor(e, k2);
|
|
94
|
+
if (d2) {
|
|
95
|
+
Object.defineProperty(n2, k2, d2.get ? d2 : {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: () => e[k2]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
|
|
105
|
+
}
|
|
106
|
+
__name(_mergeNamespaces, "_mergeNamespaces");
|
|
87
107
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React$2);
|
|
88
108
|
var top = "top";
|
|
89
109
|
var bottom = "bottom";
|
|
@@ -17928,25 +17948,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
|
|
|
17928
17948
|
return value;
|
|
17929
17949
|
}, "GetIntrinsic");
|
|
17930
17950
|
var callBind$3 = { exports: {} };
|
|
17931
|
-
var
|
|
17932
|
-
var
|
|
17933
|
-
|
|
17934
|
-
|
|
17935
|
-
|
|
17936
|
-
|
|
17937
|
-
|
|
17938
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
17939
|
-
if ($defineProperty2) {
|
|
17940
|
-
try {
|
|
17941
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
17942
|
-
} catch (e) {
|
|
17943
|
-
$defineProperty2 = false;
|
|
17944
|
-
}
|
|
17951
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
17952
|
+
var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
|
|
17953
|
+
if ($defineProperty$2) {
|
|
17954
|
+
try {
|
|
17955
|
+
$defineProperty$2({}, "a", { value: 1 });
|
|
17956
|
+
} catch (e) {
|
|
17957
|
+
$defineProperty$2 = false;
|
|
17945
17958
|
}
|
|
17946
|
-
esDefineProperty = $defineProperty2;
|
|
17947
|
-
return esDefineProperty;
|
|
17948
17959
|
}
|
|
17949
|
-
|
|
17960
|
+
var esDefineProperty = $defineProperty$2;
|
|
17950
17961
|
var GetIntrinsic$3 = getIntrinsic;
|
|
17951
17962
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
17952
17963
|
if ($gOPD$1) {
|
|
@@ -17957,7 +17968,7 @@ if ($gOPD$1) {
|
|
|
17957
17968
|
}
|
|
17958
17969
|
}
|
|
17959
17970
|
var gopd$1 = $gOPD$1;
|
|
17960
|
-
var $defineProperty$1 =
|
|
17971
|
+
var $defineProperty$1 = esDefineProperty;
|
|
17961
17972
|
var $SyntaxError = syntax;
|
|
17962
17973
|
var $TypeError$4 = type$1;
|
|
17963
17974
|
var gopd = gopd$1;
|
|
@@ -17998,7 +18009,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
|
|
|
17998
18009
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
17999
18010
|
}
|
|
18000
18011
|
}, "defineDataProperty");
|
|
18001
|
-
var $defineProperty =
|
|
18012
|
+
var $defineProperty = esDefineProperty;
|
|
18002
18013
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
18003
18014
|
return !!$defineProperty;
|
|
18004
18015
|
}, "hasPropertyDescriptors");
|
|
@@ -18067,7 +18078,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
|
|
|
18067
18078
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
18068
18079
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
18069
18080
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
18070
|
-
var $defineProperty2 =
|
|
18081
|
+
var $defineProperty2 = esDefineProperty;
|
|
18071
18082
|
var $max = GetIntrinsic3("%Math.max%");
|
|
18072
18083
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
18073
18084
|
if (typeof originalFunction !== "function") {
|
|
@@ -69315,11 +69326,19 @@ const Loading = /* @__PURE__ */ __name(({
|
|
|
69315
69326
|
inDialog,
|
|
69316
69327
|
centeredInPage
|
|
69317
69328
|
}) => {
|
|
69329
|
+
const [longerThan200MS, setLongerThan200MS] = React$2.useState(false);
|
|
69330
|
+
React$2.useEffect(() => {
|
|
69331
|
+
const timeoutId = setTimeout(() => {
|
|
69332
|
+
setLongerThan200MS(true);
|
|
69333
|
+
}, 200);
|
|
69334
|
+
return () => {
|
|
69335
|
+
clearTimeout(timeoutId);
|
|
69336
|
+
};
|
|
69337
|
+
}, []);
|
|
69318
69338
|
const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
|
|
69319
69339
|
const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
|
|
69320
69340
|
if (loading || !children) {
|
|
69321
|
-
if (!displayInstantly &&
|
|
69322
|
-
(!bounce && !inDialog || withTimeout)) {
|
|
69341
|
+
if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
|
|
69323
69342
|
return /* @__PURE__ */ React$2.createElement("div", null);
|
|
69324
69343
|
}
|
|
69325
69344
|
return /* @__PURE__ */ React$2.createElement(
|
|
@@ -116397,7 +116416,7 @@ const ConnectedDroppable = reactRedux.connect(
|
|
|
116397
116416
|
)(Droppable$1);
|
|
116398
116417
|
ConnectedDroppable.defaultProps = defaultProps;
|
|
116399
116418
|
var ConnectedDroppable$1 = ConnectedDroppable;
|
|
116400
|
-
var clipboard = { exports: {} };
|
|
116419
|
+
var clipboard$1 = { exports: {} };
|
|
116401
116420
|
/*!
|
|
116402
116421
|
* clipboard.js v2.0.8
|
|
116403
116422
|
* https://clipboardjs.com/
|
|
@@ -117173,9 +117192,13 @@ var clipboard = { exports: {} };
|
|
|
117173
117192
|
}().default
|
|
117174
117193
|
);
|
|
117175
117194
|
});
|
|
117176
|
-
})(clipboard);
|
|
117177
|
-
var clipboardExports = clipboard.exports;
|
|
117178
|
-
const
|
|
117195
|
+
})(clipboard$1);
|
|
117196
|
+
var clipboardExports = clipboard$1.exports;
|
|
117197
|
+
const clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboardExports);
|
|
117198
|
+
const ClipboardJS = /* @__PURE__ */ _mergeNamespaces({
|
|
117199
|
+
__proto__: null,
|
|
117200
|
+
default: clipboard
|
|
117201
|
+
}, [clipboardExports]);
|
|
117179
117202
|
var connectionStore = /* @__PURE__ */ new WeakMap();
|
|
117180
117203
|
var ITERATION_KEY = Symbol("iteration key");
|
|
117181
117204
|
function storeObservable(obj) {
|
|
@@ -123150,7 +123173,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
123150
123173
|
}
|
|
123151
123174
|
__name(showFileDialog, "showFileDialog");
|
|
123152
123175
|
const name = "@teselagen/ove";
|
|
123153
|
-
const version = "0.7.3-beta.
|
|
123176
|
+
const version = "0.7.3-beta.5";
|
|
123154
123177
|
const main = "./src/index.js";
|
|
123155
123178
|
const type = "module";
|
|
123156
123179
|
const exports$1 = {
|
|
@@ -128150,7 +128173,7 @@ function VectorInteractionHOC(Component) {
|
|
|
128150
128173
|
const { sequenceData: sequenceData2, readOnly: readOnly2, disableBpEditing, selectionLayer: selectionLayer2 } = this.props;
|
|
128151
128174
|
const { isProtein: isProtein2 } = sequenceData2;
|
|
128152
128175
|
const makeTextCopyable = /* @__PURE__ */ __name((transformFunc, className, action2 = "copy") => {
|
|
128153
|
-
return new
|
|
128176
|
+
return new ClipboardJS(`.${className}`, {
|
|
128154
128177
|
action: () => action2,
|
|
128155
128178
|
text: () => {
|
|
128156
128179
|
const { selectionLayer: selectionLayer22, editorName, store: store2 } = this.props;
|
|
@@ -141028,7 +141051,7 @@ ${seqDataToCopy}\r
|
|
|
141028
141051
|
this.copyAllAlignmentsFastaClipboardHelper && this.copyAllAlignmentsFastaClipboardHelper.destroy();
|
|
141029
141052
|
},
|
|
141030
141053
|
didMount: () => {
|
|
141031
|
-
this.copyAllAlignmentsFastaClipboardHelper = new
|
|
141054
|
+
this.copyAllAlignmentsFastaClipboardHelper = new ClipboardJS(
|
|
141032
141055
|
`.copyAllAlignmentsFastaClipboardHelper`,
|
|
141033
141056
|
{
|
|
141034
141057
|
action: "copyAllAlignmentsFasta",
|
|
@@ -141049,7 +141072,7 @@ ${seqDataToCopy}\r
|
|
|
141049
141072
|
this.copySpecificAlignmentFastaClipboardHelper && this.copySpecificAlignmentFastaClipboardHelper.destroy();
|
|
141050
141073
|
},
|
|
141051
141074
|
didMount: () => {
|
|
141052
|
-
this.copySpecificAlignmentFastaClipboardHelper = new
|
|
141075
|
+
this.copySpecificAlignmentFastaClipboardHelper = new ClipboardJS(
|
|
141053
141076
|
`.copySpecificAlignmentFastaClipboardHelper`,
|
|
141054
141077
|
{
|
|
141055
141078
|
action: "copySpecificAlignmentFasta",
|
|
@@ -141080,7 +141103,7 @@ ${seqDataToCopy}\r
|
|
|
141080
141103
|
this.copySpecificAlignmentAsPlainClipboardHelper && this.copySpecificAlignmentAsPlainClipboardHelper.destroy();
|
|
141081
141104
|
},
|
|
141082
141105
|
didMount: () => {
|
|
141083
|
-
this.copySpecificAlignmentAsPlainClipboardHelper = new
|
|
141106
|
+
this.copySpecificAlignmentAsPlainClipboardHelper = new ClipboardJS(
|
|
141084
141107
|
`.copySpecificAlignmentAsPlainClipboardHelper`,
|
|
141085
141108
|
{
|
|
141086
141109
|
action: "copySpecificAlignmentFasta",
|
package/index.es.js
CHANGED
|
@@ -67,6 +67,26 @@ import { DateRangeInput, DateInput } from "@blueprintjs/datetime";
|
|
|
67
67
|
import { getCreateNewItem, MultiSelect, Suggest } from "@blueprintjs/select";
|
|
68
68
|
import { compose as compose$1, combineReducers, createStore as createStore$2, applyMiddleware, bindActionCreators } from "redux";
|
|
69
69
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
70
|
+
function _mergeNamespaces(n2, m2) {
|
|
71
|
+
for (var i = 0; i < m2.length; i++) {
|
|
72
|
+
const e = m2[i];
|
|
73
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
74
|
+
for (const k2 in e) {
|
|
75
|
+
if (k2 !== "default" && !(k2 in n2)) {
|
|
76
|
+
const d2 = Object.getOwnPropertyDescriptor(e, k2);
|
|
77
|
+
if (d2) {
|
|
78
|
+
Object.defineProperty(n2, k2, d2.get ? d2 : {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: () => e[k2]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
|
|
88
|
+
}
|
|
89
|
+
__name(_mergeNamespaces, "_mergeNamespaces");
|
|
70
90
|
var top = "top";
|
|
71
91
|
var bottom = "bottom";
|
|
72
92
|
var right = "right";
|
|
@@ -17910,25 +17930,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
|
|
|
17910
17930
|
return value;
|
|
17911
17931
|
}, "GetIntrinsic");
|
|
17912
17932
|
var callBind$3 = { exports: {} };
|
|
17913
|
-
var
|
|
17914
|
-
var
|
|
17915
|
-
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
17921
|
-
if ($defineProperty2) {
|
|
17922
|
-
try {
|
|
17923
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
17924
|
-
} catch (e) {
|
|
17925
|
-
$defineProperty2 = false;
|
|
17926
|
-
}
|
|
17933
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
17934
|
+
var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
|
|
17935
|
+
if ($defineProperty$2) {
|
|
17936
|
+
try {
|
|
17937
|
+
$defineProperty$2({}, "a", { value: 1 });
|
|
17938
|
+
} catch (e) {
|
|
17939
|
+
$defineProperty$2 = false;
|
|
17927
17940
|
}
|
|
17928
|
-
esDefineProperty = $defineProperty2;
|
|
17929
|
-
return esDefineProperty;
|
|
17930
17941
|
}
|
|
17931
|
-
|
|
17942
|
+
var esDefineProperty = $defineProperty$2;
|
|
17932
17943
|
var GetIntrinsic$3 = getIntrinsic;
|
|
17933
17944
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
17934
17945
|
if ($gOPD$1) {
|
|
@@ -17939,7 +17950,7 @@ if ($gOPD$1) {
|
|
|
17939
17950
|
}
|
|
17940
17951
|
}
|
|
17941
17952
|
var gopd$1 = $gOPD$1;
|
|
17942
|
-
var $defineProperty$1 =
|
|
17953
|
+
var $defineProperty$1 = esDefineProperty;
|
|
17943
17954
|
var $SyntaxError = syntax;
|
|
17944
17955
|
var $TypeError$4 = type$1;
|
|
17945
17956
|
var gopd = gopd$1;
|
|
@@ -17980,7 +17991,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
|
|
|
17980
17991
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
17981
17992
|
}
|
|
17982
17993
|
}, "defineDataProperty");
|
|
17983
|
-
var $defineProperty =
|
|
17994
|
+
var $defineProperty = esDefineProperty;
|
|
17984
17995
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
17985
17996
|
return !!$defineProperty;
|
|
17986
17997
|
}, "hasPropertyDescriptors");
|
|
@@ -18049,7 +18060,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
|
|
|
18049
18060
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
18050
18061
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
18051
18062
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
18052
|
-
var $defineProperty2 =
|
|
18063
|
+
var $defineProperty2 = esDefineProperty;
|
|
18053
18064
|
var $max = GetIntrinsic3("%Math.max%");
|
|
18054
18065
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
18055
18066
|
if (typeof originalFunction !== "function") {
|
|
@@ -69297,11 +69308,19 @@ const Loading = /* @__PURE__ */ __name(({
|
|
|
69297
69308
|
inDialog,
|
|
69298
69309
|
centeredInPage
|
|
69299
69310
|
}) => {
|
|
69311
|
+
const [longerThan200MS, setLongerThan200MS] = useState(false);
|
|
69312
|
+
useEffect(() => {
|
|
69313
|
+
const timeoutId = setTimeout(() => {
|
|
69314
|
+
setLongerThan200MS(true);
|
|
69315
|
+
}, 200);
|
|
69316
|
+
return () => {
|
|
69317
|
+
clearTimeout(timeoutId);
|
|
69318
|
+
};
|
|
69319
|
+
}, []);
|
|
69300
69320
|
const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
|
|
69301
69321
|
const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
|
|
69302
69322
|
if (loading || !children) {
|
|
69303
|
-
if (!displayInstantly &&
|
|
69304
|
-
(!bounce && !inDialog || withTimeout)) {
|
|
69323
|
+
if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
|
|
69305
69324
|
return /* @__PURE__ */ React__default$1.createElement("div", null);
|
|
69306
69325
|
}
|
|
69307
69326
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
@@ -116379,7 +116398,7 @@ const ConnectedDroppable = connect(
|
|
|
116379
116398
|
)(Droppable$1);
|
|
116380
116399
|
ConnectedDroppable.defaultProps = defaultProps;
|
|
116381
116400
|
var ConnectedDroppable$1 = ConnectedDroppable;
|
|
116382
|
-
var clipboard = { exports: {} };
|
|
116401
|
+
var clipboard$1 = { exports: {} };
|
|
116383
116402
|
/*!
|
|
116384
116403
|
* clipboard.js v2.0.8
|
|
116385
116404
|
* https://clipboardjs.com/
|
|
@@ -117155,9 +117174,13 @@ var clipboard = { exports: {} };
|
|
|
117155
117174
|
}().default
|
|
117156
117175
|
);
|
|
117157
117176
|
});
|
|
117158
|
-
})(clipboard);
|
|
117159
|
-
var clipboardExports = clipboard.exports;
|
|
117160
|
-
const
|
|
117177
|
+
})(clipboard$1);
|
|
117178
|
+
var clipboardExports = clipboard$1.exports;
|
|
117179
|
+
const clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboardExports);
|
|
117180
|
+
const ClipboardJS = /* @__PURE__ */ _mergeNamespaces({
|
|
117181
|
+
__proto__: null,
|
|
117182
|
+
default: clipboard
|
|
117183
|
+
}, [clipboardExports]);
|
|
117161
117184
|
var connectionStore = /* @__PURE__ */ new WeakMap();
|
|
117162
117185
|
var ITERATION_KEY = Symbol("iteration key");
|
|
117163
117186
|
function storeObservable(obj) {
|
|
@@ -123132,7 +123155,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
123132
123155
|
}
|
|
123133
123156
|
__name(showFileDialog, "showFileDialog");
|
|
123134
123157
|
const name = "@teselagen/ove";
|
|
123135
|
-
const version = "0.7.3-beta.
|
|
123158
|
+
const version = "0.7.3-beta.5";
|
|
123136
123159
|
const main = "./src/index.js";
|
|
123137
123160
|
const type = "module";
|
|
123138
123161
|
const exports$1 = {
|
|
@@ -128132,7 +128155,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
128132
128155
|
const { sequenceData: sequenceData2, readOnly: readOnly2, disableBpEditing, selectionLayer: selectionLayer2 } = this.props;
|
|
128133
128156
|
const { isProtein: isProtein2 } = sequenceData2;
|
|
128134
128157
|
const makeTextCopyable = /* @__PURE__ */ __name((transformFunc, className, action2 = "copy") => {
|
|
128135
|
-
return new
|
|
128158
|
+
return new ClipboardJS(`.${className}`, {
|
|
128136
128159
|
action: () => action2,
|
|
128137
128160
|
text: () => {
|
|
128138
128161
|
const { selectionLayer: selectionLayer22, editorName, store: store2 } = this.props;
|
|
@@ -141010,7 +141033,7 @@ ${seqDataToCopy}\r
|
|
|
141010
141033
|
this.copyAllAlignmentsFastaClipboardHelper && this.copyAllAlignmentsFastaClipboardHelper.destroy();
|
|
141011
141034
|
},
|
|
141012
141035
|
didMount: () => {
|
|
141013
|
-
this.copyAllAlignmentsFastaClipboardHelper = new
|
|
141036
|
+
this.copyAllAlignmentsFastaClipboardHelper = new ClipboardJS(
|
|
141014
141037
|
`.copyAllAlignmentsFastaClipboardHelper`,
|
|
141015
141038
|
{
|
|
141016
141039
|
action: "copyAllAlignmentsFasta",
|
|
@@ -141031,7 +141054,7 @@ ${seqDataToCopy}\r
|
|
|
141031
141054
|
this.copySpecificAlignmentFastaClipboardHelper && this.copySpecificAlignmentFastaClipboardHelper.destroy();
|
|
141032
141055
|
},
|
|
141033
141056
|
didMount: () => {
|
|
141034
|
-
this.copySpecificAlignmentFastaClipboardHelper = new
|
|
141057
|
+
this.copySpecificAlignmentFastaClipboardHelper = new ClipboardJS(
|
|
141035
141058
|
`.copySpecificAlignmentFastaClipboardHelper`,
|
|
141036
141059
|
{
|
|
141037
141060
|
action: "copySpecificAlignmentFasta",
|
|
@@ -141062,7 +141085,7 @@ ${seqDataToCopy}\r
|
|
|
141062
141085
|
this.copySpecificAlignmentAsPlainClipboardHelper && this.copySpecificAlignmentAsPlainClipboardHelper.destroy();
|
|
141063
141086
|
},
|
|
141064
141087
|
didMount: () => {
|
|
141065
|
-
this.copySpecificAlignmentAsPlainClipboardHelper = new
|
|
141088
|
+
this.copySpecificAlignmentAsPlainClipboardHelper = new ClipboardJS(
|
|
141066
141089
|
`.copySpecificAlignmentAsPlainClipboardHelper`,
|
|
141067
141090
|
{
|
|
141068
141091
|
action: "copySpecificAlignmentFasta",
|
package/index.umd.js
CHANGED
|
@@ -9860,25 +9860,16 @@ 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
|
-
|
|
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
|
-
}
|
|
9863
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
9864
|
+
var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
|
|
9865
|
+
if ($defineProperty$2) {
|
|
9866
|
+
try {
|
|
9867
|
+
$defineProperty$2({}, "a", { value: 1 });
|
|
9868
|
+
} catch (e2) {
|
|
9869
|
+
$defineProperty$2 = false;
|
|
9877
9870
|
}
|
|
9878
|
-
esDefineProperty = $defineProperty2;
|
|
9879
|
-
return esDefineProperty;
|
|
9880
9871
|
}
|
|
9881
|
-
|
|
9872
|
+
var esDefineProperty = $defineProperty$2;
|
|
9882
9873
|
var GetIntrinsic$3 = getIntrinsic;
|
|
9883
9874
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
9884
9875
|
if ($gOPD$1) {
|
|
@@ -9889,7 +9880,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9889
9880
|
}
|
|
9890
9881
|
}
|
|
9891
9882
|
var gopd$1 = $gOPD$1;
|
|
9892
|
-
var $defineProperty$1 =
|
|
9883
|
+
var $defineProperty$1 = esDefineProperty;
|
|
9893
9884
|
var $SyntaxError = syntax;
|
|
9894
9885
|
var $TypeError$4 = type$1;
|
|
9895
9886
|
var gopd = gopd$1;
|
|
@@ -9930,7 +9921,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9930
9921
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9931
9922
|
}
|
|
9932
9923
|
}, "defineDataProperty");
|
|
9933
|
-
var $defineProperty =
|
|
9924
|
+
var $defineProperty = esDefineProperty;
|
|
9934
9925
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
9935
9926
|
return !!$defineProperty;
|
|
9936
9927
|
}, "hasPropertyDescriptors");
|
|
@@ -9999,7 +9990,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9999
9990
|
var $apply = GetIntrinsic2("%Function.prototype.apply%");
|
|
10000
9991
|
var $call = GetIntrinsic2("%Function.prototype.call%");
|
|
10001
9992
|
var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
10002
|
-
var $defineProperty2 =
|
|
9993
|
+
var $defineProperty2 = esDefineProperty;
|
|
10003
9994
|
var $max = GetIntrinsic2("%Math.max%");
|
|
10004
9995
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
10005
9996
|
if (typeof originalFunction !== "function") {
|
|
@@ -98604,11 +98595,19 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
98604
98595
|
inDialog,
|
|
98605
98596
|
centeredInPage
|
|
98606
98597
|
}) => {
|
|
98598
|
+
const [longerThan200MS, setLongerThan200MS] = reactExports.useState(false);
|
|
98599
|
+
reactExports.useEffect(() => {
|
|
98600
|
+
const timeoutId = setTimeout(() => {
|
|
98601
|
+
setLongerThan200MS(true);
|
|
98602
|
+
}, 200);
|
|
98603
|
+
return () => {
|
|
98604
|
+
clearTimeout(timeoutId);
|
|
98605
|
+
};
|
|
98606
|
+
}, []);
|
|
98607
98607
|
const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
|
|
98608
98608
|
const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
|
|
98609
98609
|
if (loading || !children) {
|
|
98610
|
-
if (!displayInstantly &&
|
|
98611
|
-
(!bounce && !inDialog || withTimeout)) {
|
|
98610
|
+
if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
|
|
98612
98611
|
return /* @__PURE__ */ React$2.createElement("div", null);
|
|
98613
98612
|
}
|
|
98614
98613
|
return /* @__PURE__ */ React$2.createElement(
|
|
@@ -145011,7 +145010,7 @@ ${seq.sequence}
|
|
|
145011
145010
|
)(Droppable$1);
|
|
145012
145011
|
ConnectedDroppable.defaultProps = defaultProps;
|
|
145013
145012
|
var ConnectedDroppable$1 = ConnectedDroppable;
|
|
145014
|
-
var clipboard = { exports: {} };
|
|
145013
|
+
var clipboard$1 = { exports: {} };
|
|
145015
145014
|
/*!
|
|
145016
145015
|
* clipboard.js v2.0.8
|
|
145017
145016
|
* https://clipboardjs.com/
|
|
@@ -145787,9 +145786,13 @@ ${seq.sequence}
|
|
|
145787
145786
|
}().default
|
|
145788
145787
|
);
|
|
145789
145788
|
});
|
|
145790
|
-
})(clipboard);
|
|
145791
|
-
var clipboardExports = clipboard.exports;
|
|
145792
|
-
const
|
|
145789
|
+
})(clipboard$1);
|
|
145790
|
+
var clipboardExports = clipboard$1.exports;
|
|
145791
|
+
const clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboardExports);
|
|
145792
|
+
const ClipboardJS = /* @__PURE__ */ _mergeNamespaces({
|
|
145793
|
+
__proto__: null,
|
|
145794
|
+
default: clipboard
|
|
145795
|
+
}, [clipboardExports]);
|
|
145793
145796
|
var connectionStore = /* @__PURE__ */ new WeakMap();
|
|
145794
145797
|
var ITERATION_KEY = Symbol("iteration key");
|
|
145795
145798
|
function storeObservable(obj) {
|
|
@@ -151730,7 +151733,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
151730
151733
|
}
|
|
151731
151734
|
__name(showFileDialog, "showFileDialog");
|
|
151732
151735
|
const name = "@teselagen/ove";
|
|
151733
|
-
const version = "0.7.3-beta.
|
|
151736
|
+
const version = "0.7.3-beta.5";
|
|
151734
151737
|
const main = "./src/index.js";
|
|
151735
151738
|
const type = "module";
|
|
151736
151739
|
const exports$1 = {
|
|
@@ -155125,7 +155128,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
155125
155128
|
const { sequenceData: sequenceData2, readOnly: readOnly2, disableBpEditing, selectionLayer: selectionLayer2 } = this.props;
|
|
155126
155129
|
const { isProtein: isProtein2 } = sequenceData2;
|
|
155127
155130
|
const makeTextCopyable = /* @__PURE__ */ __name((transformFunc, className, action2 = "copy") => {
|
|
155128
|
-
return new
|
|
155131
|
+
return new ClipboardJS(`.${className}`, {
|
|
155129
155132
|
action: () => action2,
|
|
155130
155133
|
text: () => {
|
|
155131
155134
|
const { selectionLayer: selectionLayer22, editorName, store: store2 } = this.props;
|
|
@@ -168003,7 +168006,7 @@ ${seqDataToCopy}\r
|
|
|
168003
168006
|
this.copyAllAlignmentsFastaClipboardHelper && this.copyAllAlignmentsFastaClipboardHelper.destroy();
|
|
168004
168007
|
},
|
|
168005
168008
|
didMount: () => {
|
|
168006
|
-
this.copyAllAlignmentsFastaClipboardHelper = new
|
|
168009
|
+
this.copyAllAlignmentsFastaClipboardHelper = new ClipboardJS(
|
|
168007
168010
|
`.copyAllAlignmentsFastaClipboardHelper`,
|
|
168008
168011
|
{
|
|
168009
168012
|
action: "copyAllAlignmentsFasta",
|
|
@@ -168024,7 +168027,7 @@ ${seqDataToCopy}\r
|
|
|
168024
168027
|
this.copySpecificAlignmentFastaClipboardHelper && this.copySpecificAlignmentFastaClipboardHelper.destroy();
|
|
168025
168028
|
},
|
|
168026
168029
|
didMount: () => {
|
|
168027
|
-
this.copySpecificAlignmentFastaClipboardHelper = new
|
|
168030
|
+
this.copySpecificAlignmentFastaClipboardHelper = new ClipboardJS(
|
|
168028
168031
|
`.copySpecificAlignmentFastaClipboardHelper`,
|
|
168029
168032
|
{
|
|
168030
168033
|
action: "copySpecificAlignmentFasta",
|
|
@@ -168055,7 +168058,7 @@ ${seqDataToCopy}\r
|
|
|
168055
168058
|
this.copySpecificAlignmentAsPlainClipboardHelper && this.copySpecificAlignmentAsPlainClipboardHelper.destroy();
|
|
168056
168059
|
},
|
|
168057
168060
|
didMount: () => {
|
|
168058
|
-
this.copySpecificAlignmentAsPlainClipboardHelper = new
|
|
168061
|
+
this.copySpecificAlignmentAsPlainClipboardHelper = new ClipboardJS(
|
|
168059
168062
|
`.copySpecificAlignmentAsPlainClipboardHelper`,
|
|
168060
168063
|
{
|
|
168061
168064
|
action: "copySpecificAlignmentFasta",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Droppable,
|
|
5
5
|
Draggable as DndDraggable
|
|
6
6
|
} from "@hello-pangea/dnd";
|
|
7
|
-
import
|
|
7
|
+
import * as ClipboardJS from "clipboard";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { connect } from "react-redux";
|
|
10
10
|
import {
|
|
@@ -1214,7 +1214,7 @@ export class AlignmentView extends React.Component {
|
|
|
1214
1214
|
},
|
|
1215
1215
|
didMount: () => {
|
|
1216
1216
|
this.copyAllAlignmentsFastaClipboardHelper =
|
|
1217
|
-
new
|
|
1217
|
+
new ClipboardJS(
|
|
1218
1218
|
`.copyAllAlignmentsFastaClipboardHelper`,
|
|
1219
1219
|
{
|
|
1220
1220
|
action: "copyAllAlignmentsFasta",
|
|
@@ -1239,7 +1239,7 @@ export class AlignmentView extends React.Component {
|
|
|
1239
1239
|
},
|
|
1240
1240
|
didMount: () => {
|
|
1241
1241
|
this.copySpecificAlignmentFastaClipboardHelper =
|
|
1242
|
-
new
|
|
1242
|
+
new ClipboardJS(
|
|
1243
1243
|
`.copySpecificAlignmentFastaClipboardHelper`,
|
|
1244
1244
|
{
|
|
1245
1245
|
action: "copySpecificAlignmentFasta",
|
|
@@ -1278,7 +1278,7 @@ export class AlignmentView extends React.Component {
|
|
|
1278
1278
|
},
|
|
1279
1279
|
didMount: () => {
|
|
1280
1280
|
this.copySpecificAlignmentAsPlainClipboardHelper =
|
|
1281
|
-
new
|
|
1281
|
+
new ClipboardJS(
|
|
1282
1282
|
`.copySpecificAlignmentAsPlainClipboardHelper`,
|
|
1283
1283
|
{
|
|
1284
1284
|
action: "copySpecificAlignmentFasta",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getAminoAcidStringFromSequenceString
|
|
5
5
|
} from "@teselagen/sequence-utils";
|
|
6
6
|
import { getSequenceWithinRange } from "@teselagen/range-utils";
|
|
7
|
-
import
|
|
7
|
+
import * as ClipboardJS from "clipboard";
|
|
8
8
|
import { compose } from "redux";
|
|
9
9
|
import {
|
|
10
10
|
getReverseComplementSequenceAndAnnotations,
|
|
@@ -599,7 +599,7 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
599
599
|
this.props;
|
|
600
600
|
const { isProtein } = sequenceData;
|
|
601
601
|
const makeTextCopyable = (transformFunc, className, action = "copy") => {
|
|
602
|
-
return new
|
|
602
|
+
return new ClipboardJS(`.${className}`, {
|
|
603
603
|
action: () => action,
|
|
604
604
|
text: () => {
|
|
605
605
|
const { selectionLayer, editorName, store } = this.props;
|