@teselagen/ove 0.8.7 → 0.8.8
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 +2175 -2157
- package/index.es.js +38 -20
- package/index.umd.js +1693 -1675
- package/package.json +1 -1
- package/src/BarPlot/index.js +1 -1
- package/src/Editor/index.js +2 -2
- package/src/Editor/userDefinedHandlersAndOpts.js +2 -0
- package/src/redux/panelsShown.js +1 -1
- package/src/withEditorProps/index.js +19 -2
- package/withEditorProps/index.d.ts +1 -1
package/index.es.js
CHANGED
|
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
};
|
|
56
56
|
var _C, _D, _G, _J, _K, _R;
|
|
57
57
|
import { Icon, Classes, Button, Intent, MenuItem, Keys, Tag, Popover, Tooltip, Spinner, Checkbox, Switch, Position, FormGroup, InputGroup, TextArea, EditableText, NumericInput, RadioGroup, Menu, Toaster, MenuDivider, KeyCombo, ContextMenu, useHotkeys, Callout, Dialog, Card, Tabs, Tab, Colors, HTMLSelect, AnchorButton, Slider as Slider$1, ButtonGroup, Label, ResizeSensor, FocusStyleManager } from "@blueprintjs/core";
|
|
58
|
-
import * as React
|
|
58
|
+
import * as React from "react";
|
|
59
59
|
import React__default, { useState, useEffect, forwardRef as forwardRef$2, useImperativeHandle, Fragment, useMemo as useMemo$1, useRef, useReducer, useCallback as useCallback$1, createElement, Component, useLayoutEffect as useLayoutEffect$1, createContext as createContext$1, memo, useContext, isValidElement, PureComponent } from "react";
|
|
60
60
|
import { formValueSelector, initialize, change, Field, reduxForm, SubmissionError, destroy as destroy$1, touch, FormName, reducer as reducer$4, getFormValues, FieldArray } from "redux-form";
|
|
61
61
|
import ReactDOM, { unstable_batchedUpdates, createPortal, flushSync, render as render$2, findDOMNode, unmountComponentAtNode } from "react-dom";
|
|
@@ -30424,19 +30424,19 @@ function dequal(foo, bar) {
|
|
|
30424
30424
|
}
|
|
30425
30425
|
__name(dequal, "dequal");
|
|
30426
30426
|
function useDeepCompareMemoize(value) {
|
|
30427
|
-
var ref2 = React
|
|
30428
|
-
var signalRef = React
|
|
30427
|
+
var ref2 = React.useRef(value);
|
|
30428
|
+
var signalRef = React.useRef(0);
|
|
30429
30429
|
if (!dequal(value, ref2.current)) {
|
|
30430
30430
|
ref2.current = value;
|
|
30431
30431
|
signalRef.current += 1;
|
|
30432
30432
|
}
|
|
30433
|
-
return React
|
|
30433
|
+
return React.useMemo(function() {
|
|
30434
30434
|
return ref2.current;
|
|
30435
30435
|
}, [signalRef.current]);
|
|
30436
30436
|
}
|
|
30437
30437
|
__name(useDeepCompareMemoize, "useDeepCompareMemoize");
|
|
30438
30438
|
function useDeepCompareEffect(callback2, dependencies) {
|
|
30439
|
-
return React
|
|
30439
|
+
return React.useEffect(callback2, useDeepCompareMemoize(dependencies));
|
|
30440
30440
|
}
|
|
30441
30441
|
__name(useDeepCompareEffect, "useDeepCompareEffect");
|
|
30442
30442
|
var fuzzysearch_1;
|
|
@@ -34460,7 +34460,7 @@ const DraggableColumnOptions = /* @__PURE__ */ __name(({
|
|
|
34460
34460
|
)
|
|
34461
34461
|
);
|
|
34462
34462
|
}, "DraggableColumnOptions");
|
|
34463
|
-
const dragNoticeEl = /* @__PURE__ */
|
|
34463
|
+
const dragNoticeEl = /* @__PURE__ */ React__default.createElement(
|
|
34464
34464
|
"div",
|
|
34465
34465
|
{
|
|
34466
34466
|
className: Classes.TEXT_MUTED,
|
|
@@ -34469,7 +34469,7 @@ const dragNoticeEl = /* @__PURE__ */ React.createElement(
|
|
|
34469
34469
|
fontSize: "12px"
|
|
34470
34470
|
}
|
|
34471
34471
|
},
|
|
34472
|
-
/* @__PURE__ */
|
|
34472
|
+
/* @__PURE__ */ React__default.createElement(Icon, { icon: "info-sign", size: 12 }),
|
|
34473
34473
|
" Drag columns to reorder them"
|
|
34474
34474
|
);
|
|
34475
34475
|
const DisplayOptions = /* @__PURE__ */ __name(({
|
|
@@ -68857,10 +68857,10 @@ var Resizer = (
|
|
|
68857
68857
|
}
|
|
68858
68858
|
__name(Resizer2, "Resizer");
|
|
68859
68859
|
Resizer2.prototype.render = function() {
|
|
68860
|
-
return React
|
|
68860
|
+
return React.createElement("div", { className: this.props.className || "", style: __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
|
|
68861
68861
|
};
|
|
68862
68862
|
return Resizer2;
|
|
68863
|
-
}(React
|
|
68863
|
+
}(React.PureComponent)
|
|
68864
68864
|
);
|
|
68865
68865
|
var src = { exports: {} };
|
|
68866
68866
|
var hasRequiredSrc;
|
|
@@ -69637,11 +69637,11 @@ var Resizable = (
|
|
|
69637
69637
|
}
|
|
69638
69638
|
var resizers = Object.keys(enable).map(function(dir) {
|
|
69639
69639
|
if (enable[dir] !== false) {
|
|
69640
|
-
return React
|
|
69640
|
+
return React.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null);
|
|
69641
69641
|
}
|
|
69642
69642
|
return null;
|
|
69643
69643
|
});
|
|
69644
|
-
return React
|
|
69644
|
+
return React.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers);
|
|
69645
69645
|
};
|
|
69646
69646
|
Resizable2.prototype.render = function() {
|
|
69647
69647
|
var _this = this;
|
|
@@ -69657,10 +69657,10 @@ var Resizable = (
|
|
|
69657
69657
|
style2.flexBasis = this.state.flexBasis;
|
|
69658
69658
|
}
|
|
69659
69659
|
var Wrapper = this.props.as || "div";
|
|
69660
|
-
return React
|
|
69660
|
+
return React.createElement(
|
|
69661
69661
|
Wrapper,
|
|
69662
69662
|
__assign$1({ ref: this.ref, style: style2, className: this.props.className }, extendsProps),
|
|
69663
|
-
this.state.isResizing && React
|
|
69663
|
+
this.state.isResizing && React.createElement("div", { style: this.state.backgroundStyle }),
|
|
69664
69664
|
this.props.children,
|
|
69665
69665
|
this.renderResizer()
|
|
69666
69666
|
);
|
|
@@ -69693,7 +69693,7 @@ var Resizable = (
|
|
|
69693
69693
|
snapGap: 0
|
|
69694
69694
|
};
|
|
69695
69695
|
return Resizable2;
|
|
69696
|
-
}(React
|
|
69696
|
+
}(React.PureComponent)
|
|
69697
69697
|
);
|
|
69698
69698
|
/*! *****************************************************************************
|
|
69699
69699
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -95192,7 +95192,7 @@ const togglePanelFullScreen = createMetaAction("togglePanelFullScreen");
|
|
|
95192
95192
|
const collapsePanel = createMetaAction("collapsePanel");
|
|
95193
95193
|
const closePanel = createMetaAction("closePanel");
|
|
95194
95194
|
const _collapseSplitScreen = createMetaAction("_collapseSplitScreen");
|
|
95195
|
-
const setPanelAsActive = createMetaAction("
|
|
95195
|
+
const setPanelAsActive = createMetaAction("SET_PANEL_AS_ACTIVE");
|
|
95196
95196
|
const flipActiveTabFromLinearOrCircularIfNecessary = createMetaAction(
|
|
95197
95197
|
"flipActiveTabFromLinearOrCircularIfNecessary"
|
|
95198
95198
|
);
|
|
@@ -99706,7 +99706,8 @@ function mapDispatchToActions(dispatch, ownProps) {
|
|
|
99706
99706
|
editorName,
|
|
99707
99707
|
actions,
|
|
99708
99708
|
actionOverrides,
|
|
99709
|
-
dispatch
|
|
99709
|
+
dispatch,
|
|
99710
|
+
ownProps
|
|
99710
99711
|
);
|
|
99711
99712
|
const updateSel = ownProps.selectionLayerUpdate || actionsToPass.selectionLayerUpdate;
|
|
99712
99713
|
const updateCar = ownProps.caretPositionUpdate || actionsToPass.caretPositionUpdate;
|
|
@@ -99734,7 +99735,7 @@ function fakeActionOverrides() {
|
|
|
99734
99735
|
return defaultOverrides;
|
|
99735
99736
|
}
|
|
99736
99737
|
__name(fakeActionOverrides, "fakeActionOverrides");
|
|
99737
|
-
function getCombinedActions(editorName, actions2, actionOverrides, dispatch) {
|
|
99738
|
+
function getCombinedActions(editorName, actions2, actionOverrides, dispatch, ownProps) {
|
|
99738
99739
|
const meta = { editorName };
|
|
99739
99740
|
let metaActions = addMetaToActionCreators(actions2, meta);
|
|
99740
99741
|
const overrides = {};
|
|
@@ -99759,6 +99760,21 @@ function getCombinedActions(editorName, actions2, actionOverrides, dispatch) {
|
|
|
99759
99760
|
}, "redo")
|
|
99760
99761
|
}, metaActions), overrides);
|
|
99761
99762
|
const actionsToPass = __spreadValues({}, metaActions);
|
|
99763
|
+
function addGenericHook(hookName) {
|
|
99764
|
+
const oldHook = actionsToPass[hookName];
|
|
99765
|
+
actionsToPass[hookName] = (...args) => {
|
|
99766
|
+
const toRet = oldHook(...args);
|
|
99767
|
+
const newHookName = `on_${hookName}`;
|
|
99768
|
+
if (ownProps[newHookName]) {
|
|
99769
|
+
setTimeout(() => {
|
|
99770
|
+
ownProps[newHookName](...args);
|
|
99771
|
+
}, 0);
|
|
99772
|
+
}
|
|
99773
|
+
return toRet;
|
|
99774
|
+
};
|
|
99775
|
+
}
|
|
99776
|
+
__name(addGenericHook, "addGenericHook");
|
|
99777
|
+
["setPanelAsActive", "propertiesViewTabUpdate"].forEach(addGenericHook);
|
|
99762
99778
|
return bindActionCreators(actionsToPass, dispatch);
|
|
99763
99779
|
}
|
|
99764
99780
|
__name(getCombinedActions, "getCombinedActions");
|
|
@@ -116593,7 +116609,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
116593
116609
|
input.click();
|
|
116594
116610
|
}
|
|
116595
116611
|
__name(showFileDialog, "showFileDialog");
|
|
116596
|
-
const version = "0.8.
|
|
116612
|
+
const version = "0.8.7";
|
|
116597
116613
|
const packageJson = {
|
|
116598
116614
|
version
|
|
116599
116615
|
};
|
|
@@ -142356,6 +142372,8 @@ const userDefinedHandlersAndOpts = [
|
|
|
142356
142372
|
"allowPrimerBasesToBeEdited",
|
|
142357
142373
|
"truncateLabelsThatDoNotFit",
|
|
142358
142374
|
"smartCircViewLabelRender",
|
|
142375
|
+
"on_setPanelAsActive",
|
|
142376
|
+
"on_propertiesViewTabUpdate",
|
|
142359
142377
|
"onConfigureFeatureTypesClick",
|
|
142360
142378
|
"allPartTags",
|
|
142361
142379
|
"bpLimit",
|
|
@@ -144502,7 +144520,7 @@ const PropertiesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
144502
144520
|
)
|
|
144503
144521
|
);
|
|
144504
144522
|
}, "PropertiesDialog");
|
|
144505
|
-
const
|
|
144523
|
+
const PropertiesDialog$1 = withEditorProps(PropertiesDialog);
|
|
144506
144524
|
const useLadders = /* @__PURE__ */ __name(() => {
|
|
144507
144525
|
return useLocalStorageState("tg-additional-ladder", { defaultValue: [] });
|
|
144508
144526
|
}, "useLadders");
|
|
@@ -145404,7 +145422,7 @@ const _panelMap = {
|
|
|
145404
145422
|
digestTool: DigestTool$1,
|
|
145405
145423
|
pcrTool: PCRTool$1,
|
|
145406
145424
|
properties: {
|
|
145407
|
-
comp:
|
|
145425
|
+
comp: PropertiesDialog$1,
|
|
145408
145426
|
panelSpecificProps: ["PropertiesProps"]
|
|
145409
145427
|
},
|
|
145410
145428
|
mismatches: Mismatches$1
|