@jbrowse/react-app2 3.7.0 → 4.0.1
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/esm/JBrowseApp/JBrowseApp.d.ts +2 -2
- package/esm/JBrowseApp/JBrowseApp.js +3 -3
- package/esm/JBrowseApp/index.d.ts +1 -1
- package/esm/JBrowseApp/index.js +1 -1
- package/esm/components/PreferencesDialog.d.ts +2 -0
- package/esm/components/PreferencesDialog.js +7 -5
- package/esm/corePlugins.d.ts +2 -2
- package/esm/corePlugins.js +2 -2
- package/esm/createModel.d.ts +56 -41
- package/esm/createModel.js +3 -3
- package/esm/createViewState.d.ts +160 -112
- package/esm/createViewState.js +2 -2
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/jbrowseModel.d.ts +53 -35
- package/esm/jbrowseModel.js +2 -2
- package/esm/rootModel/rootModel.d.ts +53 -38
- package/esm/rootModel/rootModel.js +23 -12
- package/esm/rpcWorker.d.ts +1 -1
- package/esm/rpcWorker.js +2 -2
- package/esm/sessionModel/index.d.ts +1645 -1866
- package/esm/types.d.ts +1 -1
- package/esm/util.d.ts +2 -2
- package/esm/util.js +5 -5
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/webpack.d.ts +4 -4
- package/esm/webpack.js +4 -4
- package/package.json +65 -74
- package/dist/JBrowseApp/AppReExport.d.ts +0 -1
- package/dist/JBrowseApp/AppReExport.js +0 -5
- package/dist/JBrowseApp/JBrowseApp.d.ts +0 -5
- package/dist/JBrowseApp/JBrowseApp.js +0 -55
- package/dist/JBrowseApp/index.d.ts +0 -1
- package/dist/JBrowseApp/index.js +0 -8
- package/dist/components/AboutDialog.d.ts +0 -1
- package/dist/components/AboutDialog.js +0 -5
- package/dist/components/PreferencesDialog.d.ts +0 -14
- package/dist/components/PreferencesDialog.js +0 -21
- package/dist/corePlugins.d.ts +0 -3
- package/dist/corePlugins.js +0 -64
- package/dist/createModel.d.ts +0 -565
- package/dist/createModel.js +0 -26
- package/dist/createViewState.d.ts +0 -1684
- package/dist/createViewState.js +0 -26
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -14
- package/dist/jbrowseModel.d.ts +0 -139
- package/dist/jbrowseModel.js +0 -7
- package/dist/loadPlugins.d.ts +0 -12
- package/dist/loadPlugins.js +0 -12
- package/dist/react-app.umd.production.min.js +0 -229
- package/dist/react-app.umd.production.min.js.LICENSE.txt +0 -195
- package/dist/react-app.umd.production.min.js.map +0 -1
- package/dist/rootModel/rootModel.d.ts +0 -577
- package/dist/rootModel/rootModel.js +0 -166
- package/dist/rootModel/rootModel.test.d.ts +0 -1
- package/dist/rootModel/rootModel.test.js +0 -140
- package/dist/rpcWorker.d.ts +0 -2
- package/dist/rpcWorker.js +0 -57
- package/dist/sessionModel/index.d.ts +0 -10028
- package/dist/sessionModel/index.js +0 -10
- package/dist/types.d.ts +0 -27
- package/dist/types.js +0 -2
- package/dist/util.d.ts +0 -5
- package/dist/util.js +0 -119
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/webpack.d.ts +0 -7
- package/dist/webpack.js +0 -53
- package/dist/workerPolyfill.d.ts +0 -0
- package/dist/workerPolyfill.js +0 -34
- package/esm/workerPolyfill.d.ts +0 -0
- package/esm/workerPolyfill.js +0 -34
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = RootModel;
|
|
7
|
-
const app_core_1 = require("@jbrowse/app-core");
|
|
8
|
-
const TextSearchManager_1 = __importDefault(require("@jbrowse/core/TextSearch/TextSearchManager"));
|
|
9
|
-
const assemblyConfigSchema_1 = __importDefault(require("@jbrowse/core/assemblyManager/assemblyConfigSchema"));
|
|
10
|
-
const RpcManager_1 = __importDefault(require("@jbrowse/core/rpc/RpcManager"));
|
|
11
|
-
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
12
|
-
const product_core_1 = require("@jbrowse/product-core");
|
|
13
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
14
|
-
const GetApp_1 = __importDefault(require("@mui/icons-material/GetApp"));
|
|
15
|
-
const Publish_1 = __importDefault(require("@mui/icons-material/Publish"));
|
|
16
|
-
const Storage_1 = __importDefault(require("@mui/icons-material/Storage"));
|
|
17
|
-
const file_saver_1 = require("file-saver");
|
|
18
|
-
const mobx_1 = require("mobx");
|
|
19
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
20
|
-
const jbrowseModel_1 = __importDefault(require("../jbrowseModel"));
|
|
21
|
-
const util_1 = require("../util");
|
|
22
|
-
const version_1 = require("../version");
|
|
23
|
-
function RootModel({ pluginManager, sessionModelFactory, makeWorkerInstance = () => {
|
|
24
|
-
throw new Error('no makeWorkerInstance supplied');
|
|
25
|
-
}, }) {
|
|
26
|
-
const assemblyConfigSchema = (0, assemblyConfigSchema_1.default)(pluginManager);
|
|
27
|
-
return mobx_state_tree_1.types
|
|
28
|
-
.compose((0, product_core_1.BaseRootModelFactory)({
|
|
29
|
-
pluginManager,
|
|
30
|
-
jbrowseModelType: (0, jbrowseModel_1.default)({
|
|
31
|
-
pluginManager,
|
|
32
|
-
assemblyConfigSchema,
|
|
33
|
-
}),
|
|
34
|
-
sessionModelType: sessionModelFactory({
|
|
35
|
-
pluginManager,
|
|
36
|
-
assemblyConfigSchema,
|
|
37
|
-
}),
|
|
38
|
-
assemblyConfigSchema,
|
|
39
|
-
}), (0, product_core_1.InternetAccountsRootModelMixin)(pluginManager), (0, app_core_1.RootAppMenuMixin)())
|
|
40
|
-
.volatile(self => ({
|
|
41
|
-
version: version_1.version,
|
|
42
|
-
pluginsUpdated: false,
|
|
43
|
-
rpcManager: new RpcManager_1.default(pluginManager, self.jbrowse.configuration.rpc, {
|
|
44
|
-
WebWorkerRpcDriver: {
|
|
45
|
-
makeWorkerInstance,
|
|
46
|
-
},
|
|
47
|
-
MainThreadRpcDriver: {},
|
|
48
|
-
}),
|
|
49
|
-
textSearchManager: new TextSearchManager_1.default(pluginManager),
|
|
50
|
-
error: undefined,
|
|
51
|
-
}))
|
|
52
|
-
.actions(self => {
|
|
53
|
-
return {
|
|
54
|
-
afterCreate() {
|
|
55
|
-
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
56
|
-
if (self.pluginsUpdated) {
|
|
57
|
-
window.location.reload();
|
|
58
|
-
}
|
|
59
|
-
}));
|
|
60
|
-
},
|
|
61
|
-
setSession(sessionSnapshot) {
|
|
62
|
-
const oldSession = self.session;
|
|
63
|
-
self.session = (0, mobx_state_tree_1.cast)(sessionSnapshot);
|
|
64
|
-
if (self.session) {
|
|
65
|
-
try {
|
|
66
|
-
(0, util_1.filterSessionInPlace)(self.session, (0, mobx_state_tree_1.getType)(self.session));
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
self.session = oldSession;
|
|
70
|
-
throw error;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
setPluginsUpdated(flag) {
|
|
75
|
-
self.pluginsUpdated = flag;
|
|
76
|
-
},
|
|
77
|
-
setDefaultSession() {
|
|
78
|
-
const { defaultSession } = self.jbrowse;
|
|
79
|
-
this.setSession({
|
|
80
|
-
...defaultSession,
|
|
81
|
-
name: `${defaultSession.name} ${new Date().toLocaleString()}`,
|
|
82
|
-
});
|
|
83
|
-
},
|
|
84
|
-
renameCurrentSession(sessionName) {
|
|
85
|
-
if (self.session) {
|
|
86
|
-
this.setSession({
|
|
87
|
-
...(0, mobx_state_tree_1.getSnapshot)(self.session),
|
|
88
|
-
name: sessionName,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
setError(error) {
|
|
93
|
-
self.error = error;
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
})
|
|
97
|
-
.views(self => ({
|
|
98
|
-
menus() {
|
|
99
|
-
return (0, app_core_1.processMutableMenuActions)([
|
|
100
|
-
{
|
|
101
|
-
label: 'File',
|
|
102
|
-
menuItems: [
|
|
103
|
-
{
|
|
104
|
-
label: 'New session',
|
|
105
|
-
icon: Add_1.default,
|
|
106
|
-
onClick: (session) => {
|
|
107
|
-
session.setDefaultSession();
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Import session…',
|
|
112
|
-
icon: Publish_1.default,
|
|
113
|
-
onClick: (session) => {
|
|
114
|
-
const widget = session.addWidget('ImportSessionWidget', 'importSessionWidget');
|
|
115
|
-
session.showWidget(widget);
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: 'Export session',
|
|
120
|
-
icon: GetApp_1.default,
|
|
121
|
-
onClick: (session) => {
|
|
122
|
-
const sessionBlob = new Blob([
|
|
123
|
-
JSON.stringify({ session: (0, mobx_state_tree_1.getSnapshot)(session) }, null, 2),
|
|
124
|
-
], { type: 'text/plain;charset=utf-8' });
|
|
125
|
-
(0, file_saver_1.saveAs)(sessionBlob, 'session.json');
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
{ type: 'divider' },
|
|
129
|
-
{
|
|
130
|
-
label: 'Open track...',
|
|
131
|
-
icon: Storage_1.default,
|
|
132
|
-
onClick: (session) => {
|
|
133
|
-
if (session.views.length === 0) {
|
|
134
|
-
session.notify('Please open a view to add a track first');
|
|
135
|
-
}
|
|
136
|
-
else if (session.views.length > 0) {
|
|
137
|
-
const widget = session.addWidget('AddTrackWidget', 'addTrackWidget', { view: session.views[0].id });
|
|
138
|
-
session.showWidget(widget);
|
|
139
|
-
if (session.views.length > 1) {
|
|
140
|
-
session.notify('This will add a track to the first view. Note: if you want to open a track in a specific view open the track selector for that view and use the add track (plus icon) in the bottom right');
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
label: 'Open connection...',
|
|
147
|
-
icon: Icons_1.Cable,
|
|
148
|
-
onClick: (session) => {
|
|
149
|
-
const widget = session.addWidget('AddConnectionWidget', 'addConnectionWidget');
|
|
150
|
-
session.showWidget(widget);
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
label: 'Add',
|
|
157
|
-
menuItems: [],
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: 'Tools',
|
|
161
|
-
menuItems: [],
|
|
162
|
-
},
|
|
163
|
-
], self.mutableMenuActions);
|
|
164
|
-
},
|
|
165
|
-
}));
|
|
166
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const PluginManager_1 = __importDefault(require("@jbrowse/core/PluginManager"));
|
|
7
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
const corePlugins_1 = __importDefault(require("../corePlugins"));
|
|
9
|
-
const rootModel_1 = __importDefault(require("./rootModel"));
|
|
10
|
-
const sessionModel_1 = __importDefault(require("../sessionModel"));
|
|
11
|
-
jest.mock('../makeWorkerInstance', () => () => { });
|
|
12
|
-
function getRootModel() {
|
|
13
|
-
const pluginManager = new PluginManager_1.default(corePlugins_1.default.map(P => new P()));
|
|
14
|
-
pluginManager.createPluggableElements();
|
|
15
|
-
pluginManager.configure();
|
|
16
|
-
return (0, rootModel_1.default)({
|
|
17
|
-
pluginManager,
|
|
18
|
-
sessionModelFactory: sessionModel_1.default,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
afterEach(() => {
|
|
22
|
-
localStorage.clear();
|
|
23
|
-
sessionStorage.clear();
|
|
24
|
-
});
|
|
25
|
-
const mainThreadConfig = {
|
|
26
|
-
jbrowse: {
|
|
27
|
-
configuration: {
|
|
28
|
-
rpc: {
|
|
29
|
-
defaultDriver: 'MainThreadRpcDriver',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
test('creates with defaults', () => {
|
|
35
|
-
const root = getRootModel().create(mainThreadConfig);
|
|
36
|
-
expect(root.session).toBeUndefined();
|
|
37
|
-
root.setDefaultSession();
|
|
38
|
-
expect(root.session).toBeTruthy();
|
|
39
|
-
expect(root.jbrowse.assemblies.length).toBe(0);
|
|
40
|
-
expect((0, mobx_state_tree_1.getSnapshot)(root.jbrowse.configuration)).toMatchSnapshot();
|
|
41
|
-
});
|
|
42
|
-
test('creates with a minimal session', () => {
|
|
43
|
-
const root = getRootModel().create({
|
|
44
|
-
...mainThreadConfig,
|
|
45
|
-
session: {
|
|
46
|
-
name: 'testSession',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
expect(root.session).toBeTruthy();
|
|
50
|
-
});
|
|
51
|
-
test('activates a session snapshot', () => {
|
|
52
|
-
const session = { name: 'testSession' };
|
|
53
|
-
localStorage.setItem('localSaved-123', JSON.stringify({ session }));
|
|
54
|
-
Storage.prototype.getItem = jest.fn(() => `{"session": {"name": "testSession"}}`);
|
|
55
|
-
const root = getRootModel().create(mainThreadConfig);
|
|
56
|
-
expect(root.session).toBeUndefined();
|
|
57
|
-
root.setSession(session);
|
|
58
|
-
expect(root.session).toBeTruthy();
|
|
59
|
-
});
|
|
60
|
-
test('adds track and connection configs to an assembly', () => {
|
|
61
|
-
const root = getRootModel().create({
|
|
62
|
-
jbrowse: {
|
|
63
|
-
...mainThreadConfig.jbrowse,
|
|
64
|
-
assemblies: [
|
|
65
|
-
{
|
|
66
|
-
name: 'assembly1',
|
|
67
|
-
aliases: ['assemblyA'],
|
|
68
|
-
sequence: {
|
|
69
|
-
trackId: 'sequenceConfigId',
|
|
70
|
-
type: 'ReferenceSequenceTrack',
|
|
71
|
-
adapter: {
|
|
72
|
-
type: 'FromConfigSequenceAdapter',
|
|
73
|
-
adapterId: 'sequenceConfigAdapterId',
|
|
74
|
-
features: [
|
|
75
|
-
{
|
|
76
|
-
refName: 'ctgA',
|
|
77
|
-
uniqueId: 'firstId',
|
|
78
|
-
start: 0,
|
|
79
|
-
end: 10,
|
|
80
|
-
seq: 'cattgttgcg',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
expect(root.jbrowse.assemblies.length).toBe(1);
|
|
90
|
-
expect((0, mobx_state_tree_1.getSnapshot)(root.jbrowse.assemblies[0])).toMatchSnapshot();
|
|
91
|
-
const newTrackConf = root.jbrowse.addTrackConf({
|
|
92
|
-
type: 'FeatureTrack',
|
|
93
|
-
trackId: 'trackId0',
|
|
94
|
-
});
|
|
95
|
-
expect((0, mobx_state_tree_1.getSnapshot)(newTrackConf)).toMatchSnapshot();
|
|
96
|
-
expect(root.jbrowse.tracks.length).toBe(1);
|
|
97
|
-
const newConnectionConf = root.jbrowse.addConnectionConf({
|
|
98
|
-
type: 'JBrowse1Connection',
|
|
99
|
-
connectionId: 'connectionId0',
|
|
100
|
-
});
|
|
101
|
-
expect((0, mobx_state_tree_1.getSnapshot)(newConnectionConf)).toMatchSnapshot();
|
|
102
|
-
expect(root.jbrowse.connections.length).toBe(1);
|
|
103
|
-
});
|
|
104
|
-
test('throws if session is invalid', () => {
|
|
105
|
-
expect(() => {
|
|
106
|
-
getRootModel().create({
|
|
107
|
-
...mainThreadConfig,
|
|
108
|
-
session: {},
|
|
109
|
-
});
|
|
110
|
-
}).toThrow();
|
|
111
|
-
});
|
|
112
|
-
test('throws if session snapshot is invalid', () => {
|
|
113
|
-
const root = getRootModel().create(mainThreadConfig);
|
|
114
|
-
expect(() => {
|
|
115
|
-
root.setSession({});
|
|
116
|
-
}).toThrow();
|
|
117
|
-
});
|
|
118
|
-
test('adds menus', () => {
|
|
119
|
-
const root = getRootModel().create(mainThreadConfig);
|
|
120
|
-
expect(root.menus()).toMatchSnapshot();
|
|
121
|
-
root.appendMenu('Third Menu');
|
|
122
|
-
root.insertMenu('Second Menu', -1);
|
|
123
|
-
root.appendToMenu('Second Menu', {
|
|
124
|
-
label: 'Second Menu Item',
|
|
125
|
-
onClick: () => { },
|
|
126
|
-
});
|
|
127
|
-
root.insertInMenu('Second Menu', {
|
|
128
|
-
label: 'First Menu Item',
|
|
129
|
-
onClick: () => { },
|
|
130
|
-
}, -1);
|
|
131
|
-
root.appendToSubMenu(['Second Menu', 'First Sub Menu'], {
|
|
132
|
-
label: 'Second Sub Menu Item',
|
|
133
|
-
onClick: () => { },
|
|
134
|
-
});
|
|
135
|
-
root.insertInSubMenu(['Second Menu', 'First Sub Menu'], {
|
|
136
|
-
label: 'First Sub Menu Item',
|
|
137
|
-
onClick: () => { },
|
|
138
|
-
}, -1);
|
|
139
|
-
expect(root.menus()).toMatchSnapshot();
|
|
140
|
-
});
|
package/dist/rpcWorker.d.ts
DELETED
package/dist/rpcWorker.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
39
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
40
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
41
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return path;
|
|
45
|
-
};
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.default = doNothing;
|
|
48
|
-
require("./workerPolyfill");
|
|
49
|
-
const product_core_1 = require("@jbrowse/product-core");
|
|
50
|
-
const mobx_react_1 = require("mobx-react");
|
|
51
|
-
const corePlugins_1 = __importDefault(require("./corePlugins"));
|
|
52
|
-
(0, mobx_react_1.enableStaticRendering)(true);
|
|
53
|
-
(0, product_core_1.initializeWorker)(corePlugins_1.default, {
|
|
54
|
-
fetchESM: url => Promise.resolve(`${__rewriteRelativeImportExtension(url)}`).then(s => __importStar(require(s))),
|
|
55
|
-
});
|
|
56
|
-
function doNothing() {
|
|
57
|
-
}
|