@jbrowse/plugin-variants 2.10.2 → 2.11.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.
@@ -45,8 +45,15 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
45
45
  message: string | undefined;
46
46
  maxHeightReached: boolean;
47
47
  ReactComponent: ({ model, }: {
48
- model: any;
49
- }) => any;
48
+ model: {
49
+ error?: unknown;
50
+ reload: () => void;
51
+ message: import("react").ReactNode;
52
+ filled?: boolean | undefined;
53
+ status?: string | undefined;
54
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
55
+ };
56
+ }) => import("react").JSX.Element | undefined;
50
57
  renderProps: any;
51
58
  } & {
52
59
  doReload(): void;
@@ -38,8 +38,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
38
38
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
39
39
  maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
40
40
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
41
- type: "BaseFeatureWidget";
42
41
  id: string;
42
+ type: "BaseFeatureWidget";
43
43
  track: import("mobx-state-tree").ReferenceIdentifier | undefined;
44
44
  view: import("mobx-state-tree").ReferenceIdentifier | undefined;
45
45
  trackId: string | undefined;
@@ -3,5 +3,5 @@ import VCF from '@gmod/vcf';
3
3
  * Get a sequence ontology (SO) term that describes the variant type
4
4
  */
5
5
  export declare function getSOTermAndDescription(ref: string, alt: string[], parser: VCF): string[];
6
- export declare function getSOAndDescFromAltDefs(ref: string, alt: string, parser: VCF): string[];
6
+ export declare function getSOAndDescFromAltDefs(alt: string, parser: VCF): string[];
7
7
  export declare function getSOAndDescByExamination(ref: string, alt: string): string[];
@@ -25,7 +25,7 @@ function getSOTermAndDescription(ref, alt, parser) {
25
25
  const soTerms = new Set();
26
26
  let descriptions = new Set();
27
27
  alt.forEach(a => {
28
- let [soTerm, description] = getSOAndDescFromAltDefs(ref, a, parser);
28
+ let [soTerm, description] = getSOAndDescFromAltDefs(a, parser);
29
29
  if (!soTerm) {
30
30
  ;
31
31
  [soTerm, description] = getSOAndDescByExamination(ref, a);
@@ -58,7 +58,7 @@ function getSOTermAndDescription(ref, alt, parser) {
58
58
  return [];
59
59
  }
60
60
  exports.getSOTermAndDescription = getSOTermAndDescription;
61
- function getSOAndDescFromAltDefs(ref, alt, parser) {
61
+ function getSOAndDescFromAltDefs(alt, parser) {
62
62
  if (typeof alt === 'string' && !alt.startsWith('<')) {
63
63
  return [];
64
64
  }
@@ -74,7 +74,7 @@ function getSOAndDescFromAltDefs(ref, alt, parser) {
74
74
  // try to look for a definition for a parent term if we can
75
75
  const modAlt = alt.split(':');
76
76
  if (modAlt.length > 1) {
77
- return getSOAndDescFromAltDefs(ref, `<${modAlt.slice(0, -1).join(':')}>`, parser);
77
+ return getSOAndDescFromAltDefs(`<${modAlt.slice(0, -1).join(':')}>`, parser);
78
78
  }
79
79
  // no parent
80
80
  return [];
@@ -45,8 +45,15 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
45
45
  message: string | undefined;
46
46
  maxHeightReached: boolean;
47
47
  ReactComponent: ({ model, }: {
48
- model: any;
49
- }) => any;
48
+ model: {
49
+ error?: unknown;
50
+ reload: () => void;
51
+ message: import("react").ReactNode;
52
+ filled?: boolean | undefined;
53
+ status?: string | undefined;
54
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
55
+ };
56
+ }) => import("react").JSX.Element | undefined;
50
57
  renderProps: any;
51
58
  } & {
52
59
  doReload(): void;
@@ -38,8 +38,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
38
38
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
39
39
  maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
40
40
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
41
- type: "BaseFeatureWidget";
42
41
  id: string;
42
+ type: "BaseFeatureWidget";
43
43
  track: import("mobx-state-tree").ReferenceIdentifier | undefined;
44
44
  view: import("mobx-state-tree").ReferenceIdentifier | undefined;
45
45
  trackId: string | undefined;
@@ -3,5 +3,5 @@ import VCF from '@gmod/vcf';
3
3
  * Get a sequence ontology (SO) term that describes the variant type
4
4
  */
5
5
  export declare function getSOTermAndDescription(ref: string, alt: string[], parser: VCF): string[];
6
- export declare function getSOAndDescFromAltDefs(ref: string, alt: string, parser: VCF): string[];
6
+ export declare function getSOAndDescFromAltDefs(alt: string, parser: VCF): string[];
7
7
  export declare function getSOAndDescByExamination(ref: string, alt: string): string[];
@@ -22,7 +22,7 @@ export function getSOTermAndDescription(ref, alt, parser) {
22
22
  const soTerms = new Set();
23
23
  let descriptions = new Set();
24
24
  alt.forEach(a => {
25
- let [soTerm, description] = getSOAndDescFromAltDefs(ref, a, parser);
25
+ let [soTerm, description] = getSOAndDescFromAltDefs(a, parser);
26
26
  if (!soTerm) {
27
27
  ;
28
28
  [soTerm, description] = getSOAndDescByExamination(ref, a);
@@ -54,7 +54,7 @@ export function getSOTermAndDescription(ref, alt, parser) {
54
54
  }
55
55
  return [];
56
56
  }
57
- export function getSOAndDescFromAltDefs(ref, alt, parser) {
57
+ export function getSOAndDescFromAltDefs(alt, parser) {
58
58
  if (typeof alt === 'string' && !alt.startsWith('<')) {
59
59
  return [];
60
60
  }
@@ -70,7 +70,7 @@ export function getSOAndDescFromAltDefs(ref, alt, parser) {
70
70
  // try to look for a definition for a parent term if we can
71
71
  const modAlt = alt.split(':');
72
72
  if (modAlt.length > 1) {
73
- return getSOAndDescFromAltDefs(ref, `<${modAlt.slice(0, -1).join(':')}>`, parser);
73
+ return getSOAndDescFromAltDefs(`<${modAlt.slice(0, -1).join(':')}>`, parser);
74
74
  }
75
75
  // no parent
76
76
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-variants",
3
- "version": "2.10.2",
3
+ "version": "2.11.0",
4
4
  "description": "JBrowse 2 variant adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -41,7 +41,7 @@
41
41
  "@gmod/tabix": "^1.5.6",
42
42
  "@gmod/vcf": "^5.0.9",
43
43
  "@mui/icons-material": "^5.0.2",
44
- "@mui/x-data-grid": "^6.0.1",
44
+ "@mui/x-data-grid": "^7.0.0",
45
45
  "generic-filehandle": "^3.0.0"
46
46
  },
47
47
  "peerDependencies": {
@@ -63,5 +63,5 @@
63
63
  "distModule": "esm/index.js",
64
64
  "srcModule": "src/index.ts",
65
65
  "module": "esm/index.js",
66
- "gitHead": "7ca3b7db337ebd88853e2d96cdab940ed550c4fb"
66
+ "gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
67
67
  }