@jbrowse/plugin-circular-view 1.4.2 → 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.
@@ -11,7 +11,7 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
11
11
  assemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
12
  }, {
13
13
  rendererTypeName: string;
14
- error: Error | undefined;
14
+ error: unknown;
15
15
  } & {
16
16
  readonly RenderingComponent: React.FC<{
17
17
  model: import("mobx-state-tree").ModelInstanceTypeProps<{
@@ -20,14 +20,14 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
20
20
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
21
21
  }> & {
22
22
  rendererTypeName: string;
23
- error: Error | undefined;
23
+ error: unknown;
24
24
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
25
25
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
26
26
  type: import("mobx-state-tree").ISimpleType<string>;
27
27
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
28
28
  }, {
29
29
  rendererTypeName: string;
30
- error: Error | undefined;
30
+ error: unknown;
31
31
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
32
32
  onHorizontalScroll?: Function | undefined;
33
33
  blockState?: Record<string, any> | undefined;
@@ -39,14 +39,14 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
39
39
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
40
40
  }> & {
41
41
  rendererTypeName: string;
42
- error: Error | undefined;
42
+ error: unknown;
43
43
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
44
44
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
45
45
  type: import("mobx-state-tree").ISimpleType<string>;
46
46
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
47
47
  }, {
48
48
  rendererTypeName: string;
49
- error: Error | undefined;
49
+ error: unknown;
50
50
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
51
51
  }> | null;
52
52
  readonly adapterConfig: any;
@@ -58,7 +58,7 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
58
58
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
59
59
  regionCannotBeRendered(): undefined;
60
60
  } & {
61
- setError(error?: Error | undefined): void;
61
+ setError(error?: unknown): void;
62
62
  setRpcDriverName(rpcDriverName: string): void;
63
63
  reload(): void;
64
64
  } & {
@@ -66,7 +66,6 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
66
66
  reactElement: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
67
67
  data: undefined;
68
68
  message: string;
69
- error: Error | undefined;
70
69
  renderingComponent: React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
71
70
  refNameMap: Record<string, string> | undefined;
72
71
  } & {
@@ -93,9 +92,8 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
93
92
  reactElement: React.ReactElement;
94
93
  renderingComponent: AnyReactComponentType;
95
94
  }): void;
96
- renderError(error: Error): void;
95
+ renderError(error: unknown): void;
97
96
  setRefNameMap(refNameMap: Record<string, string>): void;
98
- setError(error: Error): void;
99
97
  } & {
100
98
  afterAttach(): void;
101
99
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
@@ -85,7 +85,7 @@ export default function CircularView(pluginManager: PluginManager): import("mobx
85
85
  setModelViewWhenAdjust(secondCondition: boolean): void;
86
86
  closeView(): void;
87
87
  setDisplayedRegions(regions: SnapshotOrInstance<typeof Region>[]): void;
88
- activateTrackSelector(): void;
88
+ activateTrackSelector(): import("@jbrowse/core/util").Widget;
89
89
  toggleTrack(trackId: string): void;
90
90
  setError(error: Error): void;
91
91
  showTrack(trackId: string, initialSnapshot?: {}): void;
@@ -235,6 +235,8 @@ function _assertThisInitialized(self) {
235
235
  function _possibleConstructorReturn(self, call) {
236
236
  if (call && (typeof call === "object" || typeof call === "function")) {
237
237
  return call;
238
+ } else if (call !== void 0) {
239
+ throw new TypeError("Derived constructors may only return object or undefined");
238
240
  }
239
241
 
240
242
  return _assertThisInitialized(self);
@@ -1513,11 +1515,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1513
1515
 
1514
1516
 
1515
1517
  var IteratorPrototype = {};
1516
-
1517
- IteratorPrototype[iteratorSymbol] = function () {
1518
+ define(IteratorPrototype, iteratorSymbol, function () {
1518
1519
  return this;
1519
- };
1520
-
1520
+ });
1521
1521
  var getProto = Object.getPrototypeOf;
1522
1522
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1523
1523
 
@@ -1528,8 +1528,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1528
1528
  }
1529
1529
 
1530
1530
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
1531
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
1532
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
1531
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
1532
+ define(Gp, "constructor", GeneratorFunctionPrototype);
1533
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1533
1534
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
1534
1535
  // Iterator interface in terms of a single ._invoke method.
1535
1536
 
@@ -1634,11 +1635,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1634
1635
  }
1635
1636
 
1636
1637
  defineIteratorMethods(AsyncIterator.prototype);
1637
-
1638
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
1638
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1639
1639
  return this;
1640
- };
1641
-
1640
+ });
1642
1641
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
1643
1642
  // AsyncIterator objects; they just return a Promise for the value of
1644
1643
  // the final result produced by the iterator.
@@ -1815,13 +1814,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1815
1814
  // object to not be returned from this call. This ensures that doesn't happen.
1816
1815
  // See https://github.com/facebook/regenerator/issues/274 for more details.
1817
1816
 
1818
- Gp[iteratorSymbol] = function () {
1817
+ define(Gp, iteratorSymbol, function () {
1819
1818
  return this;
1820
- };
1821
-
1822
- Gp.toString = function () {
1819
+ });
1820
+ define(Gp, "toString", function () {
1823
1821
  return "[object Generator]";
1824
- };
1822
+ });
1825
1823
 
1826
1824
  function pushTryEntry(locs) {
1827
1825
  var entry = {
@@ -2133,14 +2131,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
2133
2131
  } catch (accidentalStrictMode) {
2134
2132
  // This module should not be running in strict mode, so the above
2135
2133
  // assignment should always work unless something is misconfigured. Just
2136
- // in case runtime.js accidentally runs in strict mode, we can escape
2134
+ // in case runtime.js accidentally runs in strict mode, in modern engines
2135
+ // we can explicitly access globalThis. In older engines we can escape
2137
2136
  // strict mode using a global Function call. This could conceivably fail
2138
2137
  // if a Content Security Policy forbids using Function, but in that case
2139
2138
  // the proper solution is to fix the accidental strict mode problem. If
2140
2139
  // you've misconfigured your bundler to force strict mode and applied a
2141
2140
  // CSP to forbid Function, and you're not willing to fix either of those
2142
2141
  // problems, please detail your unique predicament in a GitHub issue.
2143
- Function("r", "regeneratorRuntime = r")(runtime);
2142
+ if (typeof globalThis === "object") {
2143
+ globalThis.regeneratorRuntime = runtime;
2144
+ } else {
2145
+ Function("r", "regeneratorRuntime = r")(runtime);
2146
+ }
2144
2147
  }
2145
2148
  });
2146
2149
 
@@ -2274,7 +2277,6 @@ var BaseChordDisplayModel = /*#__PURE__*/mobxStateTree.types.compose('BaseChordD
2274
2277
  reactElement: undefined,
2275
2278
  data: undefined,
2276
2279
  message: '',
2277
- error: undefined,
2278
2280
  renderingComponent: undefined,
2279
2281
  refNameMap: undefined
2280
2282
  };
@@ -2426,9 +2428,6 @@ var BaseChordDisplayModel = /*#__PURE__*/mobxStateTree.types.compose('BaseChordD
2426
2428
  },
2427
2429
  setRefNameMap: function setRefNameMap(refNameMap) {
2428
2430
  self.refNameMap = refNameMap;
2429
- },
2430
- setError: function setError(error) {
2431
- self.error = error;
2432
2431
  }
2433
2432
  };
2434
2433
  }).actions(function (self) {
@@ -2535,7 +2534,7 @@ var CircularViewPlugin = /*#__PURE__*/function (_Plugin) {
2535
2534
  key: "configure",
2536
2535
  value: function configure(pluginManager) {
2537
2536
  if (util.isAbstractMenuManager(pluginManager.rootModel)) {
2538
- pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {
2537
+ pluginManager.rootModel.appendToSubMenu(['Add'], {
2539
2538
  label: 'Circular view',
2540
2539
  icon: DataUsageIcon,
2541
2540
  onClick: function onClick(session) {