@jbrowse/plugin-grid-bookmark 1.4.3 → 1.5.2

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.
@@ -14,7 +14,7 @@ var util = require('@jbrowse/core/util');
14
14
  var configuration = require('@jbrowse/core/configuration');
15
15
  var mobxReact = require('mobx-react');
16
16
  var core = require('@material-ui/core');
17
- var dataGrid = require('@material-ui/data-grid');
17
+ var xDataGrid = require('@mui/x-data-grid');
18
18
  var DeleteIcon = _interopDefault(require('@material-ui/icons/Delete'));
19
19
  var ViewCompactIcon = _interopDefault(require('@material-ui/icons/ViewCompact'));
20
20
  var CloseIcon = _interopDefault(require('@material-ui/icons/Close'));
@@ -230,6 +230,8 @@ function _assertThisInitialized(self) {
230
230
  function _possibleConstructorReturn(self, call) {
231
231
  if (call && (typeof call === "object" || typeof call === "function")) {
232
232
  return call;
233
+ } else if (call !== void 0) {
234
+ throw new TypeError("Derived constructors may only return object or undefined");
233
235
  }
234
236
 
235
237
  return _assertThisInitialized(self);
@@ -537,11 +539,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
537
539
 
538
540
 
539
541
  var IteratorPrototype = {};
540
-
541
- IteratorPrototype[iteratorSymbol] = function () {
542
+ define(IteratorPrototype, iteratorSymbol, function () {
542
543
  return this;
543
- };
544
-
544
+ });
545
545
  var getProto = Object.getPrototypeOf;
546
546
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
547
547
 
@@ -552,8 +552,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
552
552
  }
553
553
 
554
554
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
555
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
556
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
555
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
556
+ define(Gp, "constructor", GeneratorFunctionPrototype);
557
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
557
558
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
558
559
  // Iterator interface in terms of a single ._invoke method.
559
560
 
@@ -658,11 +659,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
658
659
  }
659
660
 
660
661
  defineIteratorMethods(AsyncIterator.prototype);
661
-
662
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
662
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
663
663
  return this;
664
- };
665
-
664
+ });
666
665
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
667
666
  // AsyncIterator objects; they just return a Promise for the value of
668
667
  // the final result produced by the iterator.
@@ -839,13 +838,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
839
838
  // object to not be returned from this call. This ensures that doesn't happen.
840
839
  // See https://github.com/facebook/regenerator/issues/274 for more details.
841
840
 
842
- Gp[iteratorSymbol] = function () {
841
+ define(Gp, iteratorSymbol, function () {
843
842
  return this;
844
- };
845
-
846
- Gp.toString = function () {
843
+ });
844
+ define(Gp, "toString", function () {
847
845
  return "[object Generator]";
848
- };
846
+ });
849
847
 
850
848
  function pushTryEntry(locs) {
851
849
  var entry = {
@@ -1157,14 +1155,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1157
1155
  } catch (accidentalStrictMode) {
1158
1156
  // This module should not be running in strict mode, so the above
1159
1157
  // assignment should always work unless something is misconfigured. Just
1160
- // in case runtime.js accidentally runs in strict mode, we can escape
1158
+ // in case runtime.js accidentally runs in strict mode, in modern engines
1159
+ // we can explicitly access globalThis. In older engines we can escape
1161
1160
  // strict mode using a global Function call. This could conceivably fail
1162
1161
  // if a Content Security Policy forbids using Function, but in that case
1163
1162
  // the proper solution is to fix the accidental strict mode problem. If
1164
1163
  // you've misconfigured your bundler to force strict mode and applied a
1165
1164
  // CSP to forbid Function, and you're not willing to fix either of those
1166
1165
  // problems, please detail your unique predicament in a GitHub issue.
1167
- Function("r", "regeneratorRuntime = r")(runtime);
1166
+ if (typeof globalThis === "object") {
1167
+ globalThis.regeneratorRuntime = runtime;
1168
+ } else {
1169
+ Function("r", "regeneratorRuntime = r")(runtime);
1170
+ }
1168
1171
  }
1169
1172
  });
1170
1173
 
@@ -1666,7 +1669,7 @@ var BookmarkGrid = /*#__PURE__*/mobxReact.observer(function (_ref) {
1666
1669
  }, /*#__PURE__*/React__default.createElement(DeleteIcon, null));
1667
1670
  }
1668
1671
  }];
1669
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(dataGrid.DataGrid, {
1672
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(xDataGrid.DataGrid, {
1670
1673
  rows: bookmarkRows,
1671
1674
  rowHeight: compact ? 25 : undefined,
1672
1675
  headerHeight: compact ? 25 : undefined,