@jbrowse/core 3.3.0 → 3.5.0

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.
Files changed (42) hide show
  1. package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +2 -1
  2. package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +2 -1
  3. package/BaseFeatureWidget/BaseFeatureDetail/index.js +2 -2
  4. package/BaseFeatureWidget/stateModelFactory.d.ts +15 -10
  5. package/BaseFeatureWidget/stateModelFactory.js +7 -12
  6. package/BaseFeatureWidget/types.d.ts +9 -1
  7. package/BaseFeatureWidget/util.d.ts +4 -1
  8. package/BaseFeatureWidget/util.js +11 -0
  9. package/PluginManager.d.ts +1 -143
  10. package/PluginManager.js +3 -2
  11. package/ReExports/BaseFeatureDetails.d.ts +1 -0
  12. package/ReExports/BaseFeatureDetails.js +45 -0
  13. package/ReExports/MuiDataGridReExports.d.ts +2 -0
  14. package/ReExports/MuiDataGridReExports.js +167 -0
  15. package/ReExports/MuiReExports.d.ts +133 -0
  16. package/ReExports/MuiReExports.js +150 -0
  17. package/ReExports/lazify.d.ts +2 -0
  18. package/ReExports/lazify.js +14 -0
  19. package/ReExports/list.js +1 -0
  20. package/ReExports/modules.d.ts +1 -173
  21. package/ReExports/modules.js +36 -308
  22. package/TextSearch/TextSearchManager.d.ts +17 -2
  23. package/TextSearch/TextSearchManager.js +23 -3
  24. package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +0 -1
  25. package/data_adapters/CytobandAdapter/CytobandAdapter.js +1 -1
  26. package/package.json +7 -6
  27. package/pluggableElementTypes/models/baseTrackConfig.js +25 -8
  28. package/pluggableElementTypes/renderers/FeatureRendererType.js +8 -2
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/ui/Dialog.d.ts +1 -0
  31. package/ui/Dialog.js +9 -3
  32. package/ui/ErrorMessageStackTraceDialog.js +2 -4
  33. package/ui/ExternalLink.d.ts +2 -0
  34. package/ui/ExternalLink.js +13 -0
  35. package/ui/index.d.ts +2 -0
  36. package/ui/index.js +5 -1
  37. package/ui/theme.d.ts +2 -2
  38. package/ui/theme.js +13 -5
  39. package/util/index.d.ts +1 -0
  40. package/util/index.js +7 -3
  41. package/util/offscreenCanvasUtils.d.ts +7 -6
  42. package/util/offscreenCanvasUtils.js +6 -6
@@ -1,3 +1,4 @@
1
+ import type { Descriptors } from '../types';
1
2
  export default function Attributes(props: {
2
3
  attributes: {
3
4
  [key: string]: unknown;
@@ -6,7 +7,7 @@ export default function Attributes(props: {
6
7
  omit?: string[];
7
8
  omitSingleLevel?: string[];
8
9
  formatter?: (val: unknown, key: string) => React.ReactNode;
9
- descriptions?: Record<string, React.ReactNode>;
10
+ descriptions?: Descriptors;
10
11
  prefix?: string[];
11
12
  hideUris?: boolean;
12
13
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,11 @@
1
1
  import type { SimpleFeatureSerialized } from '../../util';
2
+ import type { Descriptors } from '../types';
2
3
  import type { IAnyStateTreeNode } from 'mobx-state-tree';
3
4
  export default function FeatureDetails(props: {
4
5
  model: IAnyStateTreeNode;
5
6
  feature: SimpleFeatureSerialized;
6
7
  depth?: number;
7
8
  omit?: string[];
8
- descriptions?: Record<string, React.ReactNode>;
9
+ descriptions?: Descriptors;
9
10
  formatter?: (val: unknown, key: string) => React.ReactNode;
10
11
  }): import("react/jsx-runtime").JSX.Element;
@@ -11,7 +11,7 @@ const util_2 = require("../util");
11
11
  const FeatureDetails_1 = __importDefault(require("./FeatureDetails"));
12
12
  const ui_1 = require("../../ui");
13
13
  const BaseFeatureDetail = (0, mobx_react_1.observer)(function ({ model }) {
14
- const { error, featureData } = model;
14
+ const { error, descriptions, featureData } = model;
15
15
  if (error) {
16
16
  return (0, jsx_runtime_1.jsx)(ui_1.ErrorMessage, { error: error });
17
17
  }
@@ -20,7 +20,7 @@ const BaseFeatureDetail = (0, mobx_react_1.observer)(function ({ model }) {
20
20
  }
21
21
  else {
22
22
  const featureData2 = (0, util_2.replaceUndefinedWithNull)(featureData);
23
- return (0, util_1.isEmpty)(featureData2) ? null : ((0, jsx_runtime_1.jsx)(FeatureDetails_1.default, { model: model, feature: featureData2 }));
23
+ return (0, util_1.isEmpty)(featureData2) ? null : ((0, jsx_runtime_1.jsx)(FeatureDetails_1.default, { model: model, feature: featureData2, descriptions: descriptions }));
24
24
  }
25
25
  });
26
26
  exports.default = BaseFeatureDetail;
@@ -1,11 +1,13 @@
1
1
  import type PluginManager from '../PluginManager';
2
+ import type { SimpleFeatureSerialized } from '../util';
3
+ import type { MaybeSerializedFeat } from './types';
2
4
  import type { Instance } from 'mobx-state-tree';
3
5
  export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
4
6
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
5
7
  type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
6
- featureData: import("mobx-state-tree").IType<any, any, any>;
8
+ featureData: import("mobx-state-tree").IType<MaybeSerializedFeat, MaybeSerializedFeat, MaybeSerializedFeat>;
7
9
  formattedFields: import("mobx-state-tree").IType<any, any, any>;
8
- unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
10
+ unformattedFeatureData: import("mobx-state-tree").IType<MaybeSerializedFeat, MaybeSerializedFeat, MaybeSerializedFeat>;
9
11
  view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
10
12
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
11
13
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -17,10 +19,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
17
19
  upDownBp: number;
18
20
  upperCaseCDS: boolean;
19
21
  charactersPerRow: number;
20
- feature: import("../util").SimpleFeatureSerialized | undefined;
22
+ feature: SimpleFeatureSerialized | undefined;
21
23
  mode: string;
22
24
  } & {
23
- setFeature(f: import("../util").SimpleFeatureSerialized): void;
25
+ setFeature(f: SimpleFeatureSerialized): void;
24
26
  setUpDownBp(f: number): void;
25
27
  setIntronBp(f: number): void;
26
28
  setUpperCaseCDS(f: boolean): void;
@@ -35,12 +37,13 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
35
37
  } & {
36
38
  afterAttach(): void;
37
39
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
40
+ descriptions: import("mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
38
41
  }, {
39
42
  error: unknown;
40
43
  } & {
41
- setFeatureData(featureData: Record<string, unknown>): void;
44
+ setFeatureData(featureData: SimpleFeatureSerialized): void;
42
45
  clearFeatureData(): void;
43
- setFormattedData(feat: Record<string, unknown>): void;
46
+ setFormattedData(feat: SimpleFeatureSerialized): void;
44
47
  setExtra(type?: string, trackId?: string, maxDepth?: number): void;
45
48
  setError(e: unknown): void;
46
49
  } & {
@@ -48,9 +51,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
48
51
  }, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
49
52
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
50
53
  type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
51
- featureData: import("mobx-state-tree").IType<any, any, any>;
54
+ featureData: import("mobx-state-tree").IType<MaybeSerializedFeat, MaybeSerializedFeat, MaybeSerializedFeat>;
52
55
  formattedFields: import("mobx-state-tree").IType<any, any, any>;
53
- unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
56
+ unformattedFeatureData: import("mobx-state-tree").IType<MaybeSerializedFeat, MaybeSerializedFeat, MaybeSerializedFeat>;
54
57
  view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
55
58
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
56
59
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -62,10 +65,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
62
65
  upDownBp: number;
63
66
  upperCaseCDS: boolean;
64
67
  charactersPerRow: number;
65
- feature: import("../util").SimpleFeatureSerialized | undefined;
68
+ feature: SimpleFeatureSerialized | undefined;
66
69
  mode: string;
67
70
  } & {
68
- setFeature(f: import("../util").SimpleFeatureSerialized): void;
71
+ setFeature(f: SimpleFeatureSerialized): void;
69
72
  setUpDownBp(f: number): void;
70
73
  setIntronBp(f: number): void;
71
74
  setUpperCaseCDS(f: boolean): void;
@@ -80,6 +83,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
80
83
  } & {
81
84
  afterAttach(): void;
82
85
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
86
+ descriptions: import("mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
83
87
  }>>, {
84
88
  type: "BaseFeatureWidget";
85
89
  id: string;
@@ -90,6 +94,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
90
94
  maxDepth: number | undefined;
91
95
  sequenceFeatureDetails: import("mobx-state-tree").ModelSnapshotType<{}>;
92
96
  formattedFields: any;
97
+ descriptions: Record<string, unknown> | undefined;
93
98
  finalizedFeatureData: any;
94
99
  }>;
95
100
  export type BaseFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
@@ -8,16 +8,6 @@ const util_1 = require("../util");
8
8
  const model_1 = require("./SequenceFeatureDetails/model");
9
9
  const util_2 = require("./util");
10
10
  const mst_1 = require("../util/types/mst");
11
- function formatSubfeatures(obj, depth, parse, currentDepth = 0, returnObj = {}) {
12
- var _a;
13
- if (depth <= currentDepth) {
14
- return;
15
- }
16
- (_a = obj.subfeatures) === null || _a === void 0 ? void 0 : _a.map(sub => {
17
- formatSubfeatures(sub, depth, parse, currentDepth + 1, returnObj);
18
- parse(sub);
19
- });
20
- }
21
11
  function stateModelFactory(pluginManager) {
22
12
  return mobx_state_tree_1.types
23
13
  .model('BaseFeatureWidget', {
@@ -32,6 +22,7 @@ function stateModelFactory(pluginManager) {
32
22
  trackType: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
33
23
  maxDepth: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
34
24
  sequenceFeatureDetails: mobx_state_tree_1.types.optional((0, model_1.SequenceFeatureDetailsF)(), {}),
25
+ descriptions: mobx_state_tree_1.types.frozen(),
35
26
  })
36
27
  .volatile(() => ({
37
28
  error: undefined,
@@ -72,7 +63,7 @@ function stateModelFactory(pluginManager) {
72
63
  });
73
64
  if (track) {
74
65
  feature.__jbrowsefmt = combine('feature', feature);
75
- formatSubfeatures(feature, (0, configuration_1.getConf)(track, ['formatDetails', 'depth']), sub => {
66
+ (0, util_2.formatSubfeatures)(feature, (0, configuration_1.getConf)(track, ['formatDetails', 'depth']), sub => {
76
67
  sub.__jbrowsefmt = combine('subfeatures', sub);
77
68
  });
78
69
  }
@@ -96,8 +87,12 @@ function stateModelFactory(pluginManager) {
96
87
  })
97
88
  .postProcessSnapshot(snap => {
98
89
  const { unformattedFeatureData, featureData, ...rest } = snap;
90
+ const s2 = JSON.stringify(featureData, (_, v) => v === undefined ? null : v);
91
+ const featureTooLargeToBeSerialized = !s2 || s2.length > 2000000;
99
92
  return {
100
- finalizedFeatureData: (0, util_2.replaceUndefinedWithNull)(featureData),
93
+ finalizedFeatureData: featureTooLargeToBeSerialized
94
+ ? undefined
95
+ : JSON.parse(s2),
101
96
  ...rest,
102
97
  };
103
98
  });
@@ -1,10 +1,13 @@
1
1
  import type React from 'react';
2
2
  import type { BaseFeatureWidgetModel } from './stateModelFactory';
3
3
  import type { SimpleFeatureSerialized } from '../util/simpleFeature';
4
+ export interface Descriptors {
5
+ [key: string]: React.ReactNode | Descriptors;
6
+ }
4
7
  export interface BaseProps extends BaseCardProps {
5
8
  feature: SimpleFeatureSerialized;
6
9
  formatter?: (val: unknown, key: string) => React.ReactNode;
7
- descriptions?: Record<string, React.ReactNode>;
10
+ descriptions?: Descriptors;
8
11
  model?: BaseFeatureWidgetModel;
9
12
  }
10
13
  export interface BaseCardProps {
@@ -12,3 +15,8 @@ export interface BaseCardProps {
12
15
  defaultExpanded?: boolean;
13
16
  children?: React.ReactNode;
14
17
  }
18
+ export interface SerializedFeat {
19
+ [key: string]: unknown;
20
+ subfeatures?: Record<string, unknown>[];
21
+ }
22
+ export type MaybeSerializedFeat = SimpleFeatureSerialized | undefined;
@@ -1,3 +1,5 @@
1
+ import type { SimpleFeatureSerialized } from '../util';
2
+ import type { SerializedFeat } from './types';
1
3
  export interface Feat {
2
4
  start: number;
3
5
  end: number;
@@ -42,4 +44,5 @@ export declare function calculateUTRs2(cds: Feat[], parentFeat: Feat): {
42
44
  end: number;
43
45
  }[];
44
46
  export declare function ellipses(slug: string): string;
45
- export declare function replaceUndefinedWithNull(obj: Record<string, unknown>): any;
47
+ export declare function replaceUndefinedWithNull(obj: SimpleFeatureSerialized): any;
48
+ export declare function formatSubfeatures(obj: SerializedFeat, depth: number, parse: (obj: Record<string, unknown>) => void, currentDepth?: number, returnObj?: Record<string, unknown>): void;
@@ -7,6 +7,7 @@ exports.calculateUTRs = calculateUTRs;
7
7
  exports.calculateUTRs2 = calculateUTRs2;
8
8
  exports.ellipses = ellipses;
9
9
  exports.replaceUndefinedWithNull = replaceUndefinedWithNull;
10
+ exports.formatSubfeatures = formatSubfeatures;
10
11
  function stitch(subfeats, sequence) {
11
12
  return subfeats.map(sub => sequence.slice(sub.start, sub.end)).join('');
12
13
  }
@@ -64,3 +65,13 @@ function ellipses(slug) {
64
65
  function replaceUndefinedWithNull(obj) {
65
66
  return JSON.parse(JSON.stringify(obj, (_, v) => (v === undefined ? null : v)));
66
67
  }
68
+ function formatSubfeatures(obj, depth, parse, currentDepth = 0, returnObj = {}) {
69
+ var _a;
70
+ if (depth <= currentDepth) {
71
+ return;
72
+ }
73
+ (_a = obj.subfeatures) === null || _a === void 0 ? void 0 : _a.map(sub => {
74
+ formatSubfeatures(sub, depth, parse, currentDepth + 1, returnObj);
75
+ parse(sub);
76
+ });
77
+ }
@@ -108,149 +108,7 @@ export default class PluginManager {
108
108
  pluggableMstType(groupName: PluggableElementTypeGroup, fieldName: PluggableElementMember, fallback?: IAnyType): IAnyType;
109
109
  pluggableConfigSchemaType(typeGroup: PluggableElementTypeGroup, fieldName?: PluggableElementMember): IAnyModelType;
110
110
  jbrequireCache: Map<any, any>;
111
- lib: {
112
- '@material-ui/lab/ToggleButton': import("react").LazyExoticComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").ToggleButtonTypeMap<{}, "button">>>;
113
- '@material-ui/lab/ToggleButtonGroup': import("react").LazyExoticComponent<typeof import("@mui/material").ToggleButtonGroup>;
114
- '@material-ui/lab/Autocomplete': import("react").LazyExoticComponent<typeof import("@mui/material").Autocomplete>;
115
- '@material-ui/lab/Alert': import("react").LazyExoticComponent<typeof import("@mui/material").Alert>;
116
- '@material-ui/lab': {
117
- Alert: import("react").LazyExoticComponent<typeof import("@mui/material").Alert>;
118
- Autocomplete: import("react").LazyExoticComponent<typeof import("@mui/material").Autocomplete>;
119
- ToggleButton: import("react").LazyExoticComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").ToggleButtonTypeMap<{}, "button">>>;
120
- ToggleButtonGroup: import("react").LazyExoticComponent<typeof import("@mui/material").ToggleButtonGroup>;
121
- };
122
- '@jbrowse/core/Plugin': typeof Plugin;
123
- '@jbrowse/core/pluggableElementTypes': typeof import("./pluggableElementTypes");
124
- '@jbrowse/core/pluggableElementTypes/ViewType': typeof ViewType;
125
- '@jbrowse/core/pluggableElementTypes/AdapterType': typeof AdapterType;
126
- '@jbrowse/core/pluggableElementTypes/DisplayType': typeof DisplayType;
127
- '@jbrowse/core/pluggableElementTypes/TrackType': typeof TrackType;
128
- '@jbrowse/core/pluggableElementTypes/WidgetType': typeof WidgetType;
129
- '@jbrowse/core/pluggableElementTypes/models': typeof import("./pluggableElementTypes/models");
130
- '@jbrowse/core/pluggableElementTypes/renderers/ServerSideRendererType': typeof import("./pluggableElementTypes/renderers/ServerSideRendererType");
131
- '@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType': typeof import("./pluggableElementTypes").CircularChordRendererType;
132
- '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType': typeof import("./pluggableElementTypes/renderers/BoxRendererType");
133
- '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType': typeof import("./pluggableElementTypes/renderers/FeatureRendererType");
134
- '@jbrowse/core/pluggableElementTypes/renderers/RendererType': typeof import("./pluggableElementTypes/renderers/RendererType");
135
- '@jbrowse/core/configuration': typeof import("./configuration");
136
- '@jbrowse/core/util/types/mst': typeof import("./util/types/mst");
137
- '@jbrowse/core/ui': typeof import("./ui");
138
- '@jbrowse/core/util': typeof import("./util");
139
- '@jbrowse/core/util/color': typeof import("./util/color");
140
- '@jbrowse/core/util/layouts': typeof import("./util/layouts");
141
- '@jbrowse/core/util/tracks': typeof import("./util/tracks");
142
- '@jbrowse/core/util/Base1DViewModel': import("mobx-state-tree").IModelType<{
143
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
144
- displayedRegions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./util").Region[], import("./util").Region[], import("./util").Region[]>, [undefined]>;
145
- bpPerPx: import("mobx-state-tree").IType<number | undefined, number, number>;
146
- offsetPx: import("mobx-state-tree").IType<number | undefined, number, number>;
147
- interRegionPaddingWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
148
- minimumBlockWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
149
- }, {
150
- features: undefined | import("./util").Feature[];
151
- volatileWidth: number;
152
- } & {
153
- setDisplayedRegions(regions: import("./util").Region[]): void;
154
- setBpPerPx(val: number): void;
155
- setVolatileWidth(width: number): void;
156
- } & {
157
- readonly width: number;
158
- readonly assemblyNames: string[];
159
- readonly displayedRegionsTotalPx: number;
160
- readonly maxOffset: number;
161
- readonly minOffset: number;
162
- readonly totalBp: number;
163
- } & {
164
- readonly dynamicBlocks: import("./util/blockTypes").BlockSet;
165
- readonly staticBlocks: import("./util/blockTypes").BlockSet;
166
- readonly currBp: number;
167
- } & {
168
- pxToBp(px: number): {
169
- coord: number;
170
- index: number;
171
- refName: string;
172
- oob: boolean;
173
- assemblyName: string;
174
- offset: number;
175
- start: number;
176
- end: number;
177
- reversed?: boolean;
178
- };
179
- bpToPx({ refName, coord, regionNumber, }: {
180
- refName: string;
181
- coord: number;
182
- regionNumber?: number;
183
- }): number | undefined;
184
- } & {
185
- setFeatures(features: import("./util").Feature[]): void;
186
- showAllRegions(): void;
187
- zoomOut(): void;
188
- zoomIn(): void;
189
- zoomTo(bpPerPx: number, offset?: number): number;
190
- scrollTo(offsetPx: number): number;
191
- centerAt(coord: number, refName: string | undefined, regionNumber: number): void;
192
- scroll(distance: number): number;
193
- } & {
194
- moveTo(start?: import("./util/Base1DUtils").BpOffset, end?: import("./util/Base1DUtils").BpOffset): void;
195
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
196
- '@jbrowse/core/util/io': typeof import("./util/io");
197
- '@jbrowse/core/util/mst-reflection': typeof import("./util/mst-reflection");
198
- '@jbrowse/core/util/rxjs': typeof import("./util/rxjs");
199
- '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail': {
200
- Attributes: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
201
- FeatureDetails: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
202
- BaseCard: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
203
- BaseCoreDetails: import("react").LazyExoticComponent<typeof import("./BaseFeatureWidget/BaseFeatureDetail").BaseCoreDetails>;
204
- BaseAttributes: import("react").LazyExoticComponent<typeof import("./BaseFeatureWidget/BaseFeatureDetail").BaseAttributes>;
205
- };
206
- '@jbrowse/core/data_adapters/BaseAdapter': typeof import("./data_adapters/BaseAdapter");
207
- mobx: typeof import("mobx");
208
- 'mobx-state-tree': typeof import("mobx-state-tree");
209
- react: typeof import("react");
210
- 'react/jsx-runtime': typeof import("react/jsx-runtime");
211
- 'react-dom': typeof import("react-dom");
212
- 'react-dom/client': typeof import("react-dom/client");
213
- 'mobx-react': typeof import("mobx-react");
214
- '@mui/x-data-grid': {
215
- useGridApiContext: typeof import("@mui/x-data-grid").useGridApiContext;
216
- useGridApiRef: <Api extends import("@mui/x-data-grid").GridApiCommon = import("@mui/x-data-grid/internals").GridApiCommunity>() => import("@mui/x-internals/types").RefObject<Api | null>;
217
- useGridRootProps: () => import("@mui/x-data-grid/internals").DataGridProcessedProps;
218
- };
219
- '@mui/material/utils': typeof import("@mui/material/utils");
220
- '@material-ui/core/utils': typeof import("@mui/material/utils");
221
- 'tss-react/mui': {
222
- makeStyles: <Params = void, RuleNameSubsetReferencableInNestedSelectors extends string = never>(params?: {
223
- name?: string | Record<string, unknown> | undefined;
224
- uniqId?: string | undefined;
225
- } | undefined) => <RuleName extends string>(cssObjectByRuleNameOrGetCssObjectByRuleName: Record<RuleName, import("tss-react").CSSObject> | ((theme: import("@mui/material").Theme, params: Params, classes: Record<RuleNameSubsetReferencableInNestedSelectors, string>) => Record<RuleNameSubsetReferencableInNestedSelectors | RuleName, import("tss-react").CSSObject>)) => (params: Params, muiStyleOverridesParams?: {
226
- props: Record<string, unknown>;
227
- ownerState?: Record<string, unknown> | undefined;
228
- } | undefined) => {
229
- classes: Record<RuleName, string>;
230
- theme: import("@mui/material").Theme;
231
- css: import("tss-react").Css;
232
- cx: import("tss-react").Cx;
233
- };
234
- };
235
- '@material-ui/core': {
236
- useTheme: typeof import("@mui/material").useTheme;
237
- alpha: typeof import("@mui/system").alpha;
238
- makeStyles: (args: any) => () => Record<string, string>;
239
- };
240
- '@mui/material': {
241
- alpha: typeof import("@mui/system").alpha;
242
- useTheme: typeof import("@mui/material").useTheme;
243
- createTheme: typeof import("@mui/material").createTheme;
244
- };
245
- '@mui/material/styles': {
246
- MUIStyles: typeof import("@mui/material/styles");
247
- makeStyles: (args: any) => () => Record<string, string>;
248
- };
249
- '@material-ui/core/styles': {
250
- MUIStyles: typeof import("@mui/material/styles");
251
- makeStyles: (args: any) => () => Record<string, string>;
252
- };
253
- };
111
+ lib: any;
254
112
  load: <FTYPE extends AnyFunction>(lib: FTYPE) => ReturnType<FTYPE>;
255
113
  jbrequire: (lib: keyof typeof ReExports | AnyFunction | {
256
114
  default: AnyFunction;
package/PluginManager.js CHANGED
@@ -102,10 +102,11 @@ class PluginManager {
102
102
  }
103
103
  return pack;
104
104
  }
105
- if (typeof lib === 'function') {
105
+ else if (typeof lib === 'function') {
106
106
  return this.load(lib);
107
107
  }
108
- if (lib.default) {
108
+ else if (lib.default) {
109
+ console.warn('initiated jbrequire on a {default:Function}');
109
110
  return this.jbrequire(lib.default);
110
111
  }
111
112
  throw new TypeError('lib passed to jbrequire must be either a string or a function');
@@ -0,0 +1 @@
1
+ export declare const BaseFeatureDetail: any;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.BaseFeatureDetail = void 0;
37
+ const react_1 = require("react");
38
+ const lazify_1 = require("./lazify");
39
+ exports.BaseFeatureDetail = (0, lazify_1.lazyMap)({
40
+ Attributes: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../BaseFeatureWidget/BaseFeatureDetail/Attributes')))),
41
+ FeatureDetails: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../BaseFeatureWidget/BaseFeatureDetail/FeatureDetails')))),
42
+ BaseCard: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../BaseFeatureWidget/BaseFeatureDetail/BaseCard')))),
43
+ BaseAttributes: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../BaseFeatureWidget/BaseFeatureDetail/BaseAttributes')))),
44
+ BaseCoreDetails: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails')))),
45
+ }, '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail/');
@@ -0,0 +1,2 @@
1
+ import { type LazyExoticComponent } from 'react';
2
+ export declare const DataGridEntries: Record<string, LazyExoticComponent<any>>;
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.DataGridEntries = void 0;
37
+ const react_1 = require("react");
38
+ exports.DataGridEntries = {
39
+ DataGrid: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({ default: module.DataGrid }))),
40
+ GridActionsCellItem: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
41
+ default: module.GridActionsCellItem,
42
+ }))),
43
+ GridAddIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
44
+ default: module.GridAddIcon,
45
+ }))),
46
+ GridArrowDownwardIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
47
+ default: module.GridArrowDownwardIcon,
48
+ }))),
49
+ GridArrowUpwardIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
50
+ default: module.GridArrowUpwardIcon,
51
+ }))),
52
+ GridCellCheckboxForwardRef: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
53
+ default: module.GridCellCheckboxForwardRef,
54
+ }))),
55
+ GridCellCheckboxRenderer: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
56
+ default: module.GridCellCheckboxRenderer,
57
+ }))),
58
+ GridCheckCircleIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
59
+ default: module.GridCheckCircleIcon,
60
+ }))),
61
+ GridCheckIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
62
+ default: module.GridCheckIcon,
63
+ }))),
64
+ GridCloseIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
65
+ default: module.GridCloseIcon,
66
+ }))),
67
+ GridColumnHeaderSeparator: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
68
+ default: module.GridColumnHeaderSeparator,
69
+ }))),
70
+ GridColumnHeaderSortIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
71
+ default: module.GridColumnHeaderSortIcon,
72
+ }))),
73
+ GridColumnIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
74
+ default: module.GridColumnIcon,
75
+ }))),
76
+ GridColumnMenu: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
77
+ default: module.GridColumnMenu,
78
+ }))),
79
+ GridColumnMenuContainer: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
80
+ default: module.GridColumnMenuContainer,
81
+ }))),
82
+ GridDragIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
83
+ default: module.GridDragIcon,
84
+ }))),
85
+ GridExpandMoreIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
86
+ default: module.GridExpandMoreIcon,
87
+ }))),
88
+ GridFilterAltIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
89
+ default: module.GridFilterAltIcon,
90
+ }))),
91
+ GridFilterForm: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
92
+ default: module.GridFilterForm,
93
+ }))),
94
+ GridFilterListIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
95
+ default: module.GridFilterListIcon,
96
+ }))),
97
+ GridFilterPanel: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
98
+ default: module.GridFilterPanel,
99
+ }))),
100
+ GridFooter: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({ default: module.GridFooter }))),
101
+ GridFooterContainer: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
102
+ default: module.GridFooterContainer,
103
+ }))),
104
+ GridHeader: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({ default: module.GridHeader }))),
105
+ GridHeaderCheckbox: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
106
+ default: module.GridHeaderCheckbox,
107
+ }))),
108
+ GridKeyboardArrowRight: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
109
+ default: module.GridKeyboardArrowRight,
110
+ }))),
111
+ GridLoadIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
112
+ default: module.GridLoadIcon,
113
+ }))),
114
+ GridLoadingOverlay: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
115
+ default: module.GridLoadingOverlay,
116
+ }))),
117
+ GridMenuIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
118
+ default: module.GridMenuIcon,
119
+ }))),
120
+ GridMoreVertIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
121
+ default: module.GridMoreVertIcon,
122
+ }))),
123
+ GridNoRowsOverlay: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
124
+ default: module.GridNoRowsOverlay,
125
+ }))),
126
+ GridOverlay: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
127
+ default: module.GridOverlay,
128
+ }))),
129
+ GridPagination: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
130
+ default: module.GridPagination,
131
+ }))),
132
+ GridPanel: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({ default: module.GridPanel }))),
133
+ GridPanelWrapper: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
134
+ default: module.GridPanelWrapper,
135
+ }))),
136
+ GridRemoveIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
137
+ default: module.GridRemoveIcon,
138
+ }))),
139
+ GridRoot: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({ default: module.GridRoot }))),
140
+ GridRowCount: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
141
+ default: module.GridRowCount,
142
+ }))),
143
+ GridSearchIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
144
+ default: module.GridSearchIcon,
145
+ }))),
146
+ GridSelectedRowCount: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
147
+ default: module.GridSelectedRowCount,
148
+ }))),
149
+ GridSeparatorIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
150
+ default: module.GridSeparatorIcon,
151
+ }))),
152
+ GridTableRowsIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
153
+ default: module.GridTableRowsIcon,
154
+ }))),
155
+ GridToolbarExportContainer: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
156
+ default: module.GridToolbarExportContainer,
157
+ }))),
158
+ GridTripleDotsVerticalIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
159
+ default: module.GridTripleDotsVerticalIcon,
160
+ }))),
161
+ GridViewHeadlineIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
162
+ default: module.GridViewHeadlineIcon,
163
+ }))),
164
+ GridViewStreamIcon: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@mui/x-data-grid'))).then(module => ({
165
+ default: module.GridViewStreamIcon,
166
+ }))),
167
+ };