@jbrowse/core 4.2.1 → 4.3.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.
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { stringifyBED } from './saveTrackFileTypes/bed.ts';
|
|
2
|
-
import { stringifyGBK } from './saveTrackFileTypes/genbank.ts';
|
|
3
|
-
import { stringifyGFF3 } from './saveTrackFileTypes/gff3.ts';
|
|
4
1
|
import type PluginManager from '../../PluginManager.ts';
|
|
2
|
+
import type { FileTypeExporter } from './saveTrackFileTypes/types.ts';
|
|
5
3
|
import type { AnyConfigurationSchemaType } from '../../configuration/index.ts';
|
|
6
4
|
import type { MenuItem } from '../../ui/index.ts';
|
|
7
5
|
import type { IAnyStateTreeNode, Instance } from '@jbrowse/mobx-state-tree';
|
|
@@ -42,24 +40,7 @@ export declare function createBaseTrackModel(pm: PluginManager, trackType: strin
|
|
|
42
40
|
hideDisplay(displayId: string): number;
|
|
43
41
|
replaceDisplay(oldDisplayId: string, newDisplayId: string, initialSnapshot?: {}): void;
|
|
44
42
|
} & {
|
|
45
|
-
saveTrackFileFormatOptions():
|
|
46
|
-
gff3: {
|
|
47
|
-
name: string;
|
|
48
|
-
extension: string;
|
|
49
|
-
callback: typeof stringifyGFF3;
|
|
50
|
-
};
|
|
51
|
-
genbank: {
|
|
52
|
-
name: string;
|
|
53
|
-
extension: string;
|
|
54
|
-
callback: typeof stringifyGBK;
|
|
55
|
-
helpText: string;
|
|
56
|
-
};
|
|
57
|
-
bed: {
|
|
58
|
-
name: string;
|
|
59
|
-
extension: string;
|
|
60
|
-
callback: typeof stringifyBED;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
43
|
+
saveTrackFileFormatOptions(): Record<string, FileTypeExporter>;
|
|
63
44
|
} & {
|
|
64
45
|
trackMenuItems(): MenuItem[];
|
|
65
46
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
package/esm/ui/SanitizedHTML.js
CHANGED
package/esm/util/tracks.d.ts
CHANGED
|
@@ -66,10 +66,10 @@ export interface AdapterConfig {
|
|
|
66
66
|
[key: string]: unknown;
|
|
67
67
|
}
|
|
68
68
|
export type AdapterGuesser = (file: FileLocation, index?: FileLocation, adapterHint?: string) => AdapterConfig | undefined;
|
|
69
|
-
export type TrackTypeGuesser = (adapterName: string) => string | undefined;
|
|
69
|
+
export type TrackTypeGuesser = (adapterName: string, file?: FileLocation) => string | undefined;
|
|
70
70
|
export declare function getFileName(track: FileLocation): string;
|
|
71
71
|
export declare function guessAdapter(file: FileLocation, index: FileLocation | undefined, adapterHint?: string, model?: IAnyStateTreeNode): AdapterConfig;
|
|
72
|
-
export declare function guessTrackType(adapterType: string, model?: IAnyStateTreeNode): string;
|
|
72
|
+
export declare function guessTrackType(adapterType: string, model?: IAnyStateTreeNode, file?: FileLocation): string;
|
|
73
73
|
export declare function generateUnsupportedTrackConf(trackName: string, trackUrl: string, categories: string[] | undefined): {
|
|
74
74
|
type: string;
|
|
75
75
|
name: string;
|
package/esm/util/tracks.js
CHANGED
|
@@ -232,13 +232,13 @@ export function guessAdapter(file, index, adapterHint, model) {
|
|
|
232
232
|
type: UNKNOWN,
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
export function guessTrackType(adapterType, model) {
|
|
235
|
+
export function guessTrackType(adapterType, model, file) {
|
|
236
236
|
if (model) {
|
|
237
237
|
const session = getSession(model);
|
|
238
238
|
const trackTypeGuesser = getEnv(session).pluginManager.evaluateExtensionPoint('Core-guessTrackTypeForLocation', (_adapterName) => {
|
|
239
239
|
return undefined;
|
|
240
240
|
});
|
|
241
|
-
const trackType = trackTypeGuesser(adapterType);
|
|
241
|
+
const trackType = trackTypeGuesser(adapterType, file);
|
|
242
242
|
if (trackType) {
|
|
243
243
|
return trackType;
|
|
244
244
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
6
6
|
"keywords": [
|
|
@@ -478,15 +478,15 @@
|
|
|
478
478
|
"@emotion/utils": "^1.4.2",
|
|
479
479
|
"@floating-ui/react": "^0.27.19",
|
|
480
480
|
"@gmod/abortable-promise-cache": "^3.0.4",
|
|
481
|
-
"@gmod/bgzf-filehandle": "^6.0.
|
|
481
|
+
"@gmod/bgzf-filehandle": "^6.0.19",
|
|
482
482
|
"@gmod/http-range-fetcher": "^5.0.7",
|
|
483
483
|
"@jbrowse/jexl": "^3.0.2",
|
|
484
484
|
"@jbrowse/mobx-state-tree": "^5.6.0",
|
|
485
485
|
"@jbrowse/quick-lru": "^7.3.5",
|
|
486
486
|
"@leeoniya/ufuzzy": "^1.0.19",
|
|
487
|
-
"@mui/icons-material": "^7.3.
|
|
488
|
-
"@mui/material": "^7.3.
|
|
489
|
-
"@mui/system": "^7.3.
|
|
487
|
+
"@mui/icons-material": "^7.3.11",
|
|
488
|
+
"@mui/material": "^7.3.11",
|
|
489
|
+
"@mui/system": "^7.3.11",
|
|
490
490
|
"@mui/types": "^7.4.12",
|
|
491
491
|
"@mui/x-data-grid": "^8.28.2",
|
|
492
492
|
"@types/file-saver-es": "^2.0.3",
|
|
@@ -495,14 +495,14 @@
|
|
|
495
495
|
"copy-to-clipboard": "^3.3.3",
|
|
496
496
|
"deepmerge": "^4.3.1",
|
|
497
497
|
"detect-node": "^2.1.0",
|
|
498
|
-
"dompurify": "^3.4.
|
|
498
|
+
"dompurify": "^3.4.2",
|
|
499
499
|
"escape-html": "^1.0.3",
|
|
500
500
|
"fast-deep-equal": "^3.1.3",
|
|
501
501
|
"file-saver-es": "^2.0.5",
|
|
502
|
-
"generic-filehandle2": "^2.1.
|
|
502
|
+
"generic-filehandle2": "^2.1.7",
|
|
503
503
|
"idb": "^8.0.3",
|
|
504
504
|
"librpc-web-mod": "^2.1.1",
|
|
505
|
-
"mobx": "^6.15.
|
|
505
|
+
"mobx": "^6.15.3",
|
|
506
506
|
"mobx-react": "^9.2.1",
|
|
507
507
|
"react-draggable": "^4.5.0",
|
|
508
508
|
"rxjs": "^7.8.2",
|