@jbrowse/plugin-config 2.4.2 → 2.6.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/dist/ConfigurationEditorWidget/components/BooleanEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/CallbackEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/ColorEditor.d.ts +3 -3
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +4 -6
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js.map +1 -1
- package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/JsonEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/NumberEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/NumberMapEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/StringArrayEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/index.d.ts +3 -3
- package/dist/FromConfigAdapter/configSchema.d.ts +9 -1
- package/dist/FromConfigRegionsAdapter/configSchema.d.ts +9 -1
- package/dist/FromConfigSequenceAdapter/configSchema.d.ts +9 -1
- package/dist/RefNameAliasAdapter/configSchema.d.ts +21 -1
- package/dist/index.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/BooleanEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/CallbackEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/ColorEditor.d.ts +3 -3
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +4 -6
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js.map +1 -1
- package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/JsonEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/NumberEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/NumberMapEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/StringArrayEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/index.d.ts +3 -3
- package/esm/FromConfigAdapter/configSchema.d.ts +9 -1
- package/esm/FromConfigRegionsAdapter/configSchema.d.ts +9 -1
- package/esm/FromConfigSequenceAdapter/configSchema.d.ts +9 -1
- package/esm/RefNameAliasAdapter/configSchema.d.ts +21 -1
- package/esm/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/ConfigurationEditorWidget/components/ConfigurationEditor.tsx +13 -18
- package/src/ConfigurationEditorWidget/components/SlotEditor.tsx +1 -1
- package/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.tsx.snap +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -6,5 +6,5 @@ declare const _default: ({ slot, }: {
|
|
|
6
6
|
set: (arg: boolean) => void;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function CallbackEditor({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
set: (arg: string) => void;
|
|
@@ -7,6 +7,6 @@ declare function CallbackEditor({ slot, }: {
|
|
|
7
7
|
value: string;
|
|
8
8
|
contextVariable: string;
|
|
9
9
|
};
|
|
10
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
11
|
declare const _default: typeof CallbackEditor;
|
|
12
12
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const ColorSlot: (props: {
|
|
3
3
|
value: string;
|
|
4
4
|
label?: string | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const ColorSlot: (props: {
|
|
|
7
7
|
fullWidth: boolean;
|
|
8
8
|
} | undefined;
|
|
9
9
|
onChange: (arg: string) => void;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
declare function ColorEditorSlot(props: {
|
|
12
12
|
slot: {
|
|
13
13
|
name: string;
|
|
@@ -15,6 +15,6 @@ declare function ColorEditorSlot(props: {
|
|
|
15
15
|
description: string;
|
|
16
16
|
set: (arg: string) => void;
|
|
17
17
|
};
|
|
18
|
-
}): JSX.Element;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
19
|
declare const _default: typeof ColorEditorSlot;
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
3
|
import { AbstractSessionModel } from '@jbrowse/core/util';
|
|
4
4
|
declare const ConfigurationEditor: ({ model, }: {
|
|
@@ -6,5 +6,5 @@ declare const ConfigurationEditor: ({ model, }: {
|
|
|
6
6
|
target: AnyConfigurationModel;
|
|
7
7
|
};
|
|
8
8
|
session?: AbstractSessionModel | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default ConfigurationEditor;
|
|
@@ -84,12 +84,10 @@ const ConfigurationEditor = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
84
84
|
const { target } = model;
|
|
85
85
|
const key = target && (0, configuration_1.readConfObject)(target, 'trackId');
|
|
86
86
|
const name = target && (0, configuration_1.readConfObject)(target, 'name');
|
|
87
|
-
return (react_1.default.createElement(
|
|
88
|
-
react_1.default.createElement(material_1.
|
|
89
|
-
react_1.default.createElement(material_1.
|
|
90
|
-
|
|
91
|
-
react_1.default.createElement(material_1.AccordionDetails, { className: classes.expansionPanelDetails, "data-testid": "configEditor" }, !target ? 'no target set' : react_1.default.createElement(Schema, { schema: target }))),
|
|
92
|
-
react_1.default.createElement("div", { style: { height: 300 } })));
|
|
87
|
+
return (react_1.default.createElement(material_1.Accordion, { key: key, defaultExpanded: true, className: classes.accordion },
|
|
88
|
+
react_1.default.createElement(material_1.AccordionSummary, { expandIcon: react_1.default.createElement(ExpandMore_1.default, { className: classes.expandIcon }) },
|
|
89
|
+
react_1.default.createElement(material_1.Typography, null, name !== null && name !== void 0 ? name : 'Configuration')),
|
|
90
|
+
react_1.default.createElement(material_1.AccordionDetails, { className: classes.expansionPanelDetails, "data-testid": "configEditor" }, !target ? 'no target set' : react_1.default.createElement(Schema, { schema: target }))));
|
|
93
91
|
});
|
|
94
92
|
exports.default = ConfigurationEditor;
|
|
95
93
|
//# sourceMappingURL=ConfigurationEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationEditor.js","sourceRoot":"","sources":["../../../src/ConfigurationEditorWidget/components/ConfigurationEditor.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,+DAMoC;AACpC,4CAMsB;AACtB,uCAA0C;AAC1C,2CAAqC;AACrC,qDAAsD;AACtD,yCAAoC;AAEpC,QAAQ;AACR,gFAA2D;AAE3D,SAAS;AACT,8DAAqC;AACrC,kEAAyC;AAGzC,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC,KAAK,CAAC,EAAE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AAO,IAAI,CAAA;AACb,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,IAAA,qBAAQ,EAAC,UAAU,EAChC,MAAM,EACN,IAAI,GAAG,EAAE,GAIV;IACC,MAAM,UAAU,GAAG,IAAA,4BAAU,EAAC,MAAM,CAAC,CAAC,UAAU,CAAA;IAChD,OAAO,CACL,8DACG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,CAC1D,8BAAC,MAAM,IACL,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACd,CACH,CAAC,CACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,IAAA,qBAAQ,EAAC,UAAU,EAC7C,KAAK,GAIN;IACC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,yEAAyE;IACzE,wEAAwE;IACxE,cAAc;IACd,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACxB,MAAM,GAAG,GAAG,MAAM,IAAI,IAAA,8BAAc,EAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACvD,MAAM,IAAI,GAAG,MAAM,IAAI,IAAA,8BAAc,EAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrD,OAAO,CACL
|
|
1
|
+
{"version":3,"file":"ConfigurationEditor.js","sourceRoot":"","sources":["../../../src/ConfigurationEditorWidget/components/ConfigurationEditor.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,+DAMoC;AACpC,4CAMsB;AACtB,uCAA0C;AAC1C,2CAAqC;AACrC,qDAAsD;AACtD,yCAAoC;AAEpC,QAAQ;AACR,gFAA2D;AAE3D,SAAS;AACT,8DAAqC;AACrC,kEAAyC;AAGzC,MAAM,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AAI,eAAe,CAAc,CACjC;QACnB,8BAAC,2BAAgB,IACf,SAAS,EAAE,OAAO,CAAC,qBAAqB,iBAC5B,cAAc,IAEzB,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,8BAAC,MAAM,IAAC,MAAM,EAAE,MAAM,GAAI,CACtC,CACT,CACb,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,kBAAe,mBAAmB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
export default function ConfigurationTextField(props: {
|
|
4
4
|
helperText?: string;
|
|
5
|
-
} & TextFieldProps): JSX.Element;
|
|
5
|
+
} & TextFieldProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function JsonEditor({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -6,6 +6,6 @@ declare function JsonEditor({ slot, }: {
|
|
|
6
6
|
value: unknown;
|
|
7
7
|
set: (arg: unknown) => void;
|
|
8
8
|
};
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
declare const _default: typeof JsonEditor;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name?: string | undefined;
|
|
@@ -7,5 +7,5 @@ declare const _default: ({ slot, }: {
|
|
|
7
7
|
set: (val: number) => void;
|
|
8
8
|
reset?: (() => void) | undefined;
|
|
9
9
|
};
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -7,5 +7,5 @@ declare const _default: ({ slot, }: {
|
|
|
7
7
|
add: (key: string, val: number) => void;
|
|
8
8
|
description: string;
|
|
9
9
|
};
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IAnyType } from 'mobx-state-tree';
|
|
3
3
|
export declare const useSlotEditorStyles: (params: void, styleOverrides?: {
|
|
4
4
|
props: any;
|
|
@@ -12,5 +12,5 @@ export declare const useSlotEditorStyles: (params: void, styleOverrides?: {
|
|
|
12
12
|
declare const SlotEditor: ({ slot, slotSchema }: {
|
|
13
13
|
slot: any;
|
|
14
14
|
slotSchema: IAnyType;
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
16
|
export default SlotEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const StringArrayEditor: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -8,5 +8,5 @@ declare const StringArrayEditor: ({ slot, }: {
|
|
|
8
8
|
add: Function;
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export default StringArrayEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -10,5 +10,5 @@ declare const _default: ({ slot, }: {
|
|
|
10
10
|
removeAtKeyIndex: (key: string, idx: number) => void;
|
|
11
11
|
addToKey: (key: string, val: string) => void;
|
|
12
12
|
};
|
|
13
|
-
}) => JSX.Element;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
14
|
export default _default;
|
|
@@ -5,5 +5,5 @@ declare const TypeSelector: ({ typeNameChoices, slot, slotName, onChange, }: {
|
|
|
5
5
|
slot: AnyConfigurationModel;
|
|
6
6
|
slotName: string;
|
|
7
7
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export default TypeSelector;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export { default as stateModelFactory } from './model';
|
|
3
|
-
export declare const configSchema: import("@jbrowse/core/configuration").
|
|
3
|
+
export declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
4
4
|
export declare const HeadingComponent: ({ model }: {
|
|
5
5
|
model?: {
|
|
6
6
|
target: {
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
} | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const configSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default configSchema;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const regionsConfigSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const regionsConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default regionsConfigSchema;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const sequenceConfigSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const sequenceConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default sequenceConfigSchema;
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
declare const RefNameAliasAdapter: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
location: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
* by default, the "ref names that match the fasta" are assumed to be in the
|
|
15
|
+
* first column (0), change this variable if needed
|
|
16
|
+
*/
|
|
17
|
+
refNameColumn: {
|
|
18
|
+
type: string;
|
|
19
|
+
defaultValue: number;
|
|
20
|
+
};
|
|
21
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
22
|
export default RefNameAliasAdapter;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const LazyConfigurationEditorComponent: import("react").LazyExoticCompon
|
|
|
10
10
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
11
11
|
};
|
|
12
12
|
session?: import("@jbrowse/core/util").AbstractSessionModel | undefined;
|
|
13
|
-
}) => JSX.Element>;
|
|
13
|
+
}) => import("react").JSX.Element>;
|
|
14
14
|
export default class extends Plugin {
|
|
15
15
|
name: string;
|
|
16
16
|
install(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -6,5 +6,5 @@ declare const _default: ({ slot, }: {
|
|
|
6
6
|
set: (arg: boolean) => void;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function CallbackEditor({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
set: (arg: string) => void;
|
|
@@ -7,6 +7,6 @@ declare function CallbackEditor({ slot, }: {
|
|
|
7
7
|
value: string;
|
|
8
8
|
contextVariable: string;
|
|
9
9
|
};
|
|
10
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
11
|
declare const _default: typeof CallbackEditor;
|
|
12
12
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const ColorSlot: (props: {
|
|
3
3
|
value: string;
|
|
4
4
|
label?: string | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const ColorSlot: (props: {
|
|
|
7
7
|
fullWidth: boolean;
|
|
8
8
|
} | undefined;
|
|
9
9
|
onChange: (arg: string) => void;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
declare function ColorEditorSlot(props: {
|
|
12
12
|
slot: {
|
|
13
13
|
name: string;
|
|
@@ -15,6 +15,6 @@ declare function ColorEditorSlot(props: {
|
|
|
15
15
|
description: string;
|
|
16
16
|
set: (arg: string) => void;
|
|
17
17
|
};
|
|
18
|
-
}): JSX.Element;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
19
|
declare const _default: typeof ColorEditorSlot;
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
3
|
import { AbstractSessionModel } from '@jbrowse/core/util';
|
|
4
4
|
declare const ConfigurationEditor: ({ model, }: {
|
|
@@ -6,5 +6,5 @@ declare const ConfigurationEditor: ({ model, }: {
|
|
|
6
6
|
target: AnyConfigurationModel;
|
|
7
7
|
};
|
|
8
8
|
session?: AbstractSessionModel | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default ConfigurationEditor;
|
|
@@ -79,12 +79,10 @@ const ConfigurationEditor = observer(function ({ model, }) {
|
|
|
79
79
|
const { target } = model;
|
|
80
80
|
const key = target && readConfObject(target, 'trackId');
|
|
81
81
|
const name = target && readConfObject(target, 'name');
|
|
82
|
-
return (React.createElement(
|
|
83
|
-
React.createElement(
|
|
84
|
-
React.createElement(
|
|
85
|
-
|
|
86
|
-
React.createElement(AccordionDetails, { className: classes.expansionPanelDetails, "data-testid": "configEditor" }, !target ? 'no target set' : React.createElement(Schema, { schema: target }))),
|
|
87
|
-
React.createElement("div", { style: { height: 300 } })));
|
|
82
|
+
return (React.createElement(Accordion, { key: key, defaultExpanded: true, className: classes.accordion },
|
|
83
|
+
React.createElement(AccordionSummary, { expandIcon: React.createElement(ExpandMoreIcon, { className: classes.expandIcon }) },
|
|
84
|
+
React.createElement(Typography, null, name !== null && name !== void 0 ? name : 'Configuration')),
|
|
85
|
+
React.createElement(AccordionDetails, { className: classes.expansionPanelDetails, "data-testid": "configEditor" }, !target ? 'no target set' : React.createElement(Schema, { schema: target }))));
|
|
88
86
|
});
|
|
89
87
|
export default ConfigurationEditor;
|
|
90
88
|
//# sourceMappingURL=ConfigurationEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationEditor.js","sourceRoot":"","sources":["../../../src/ConfigurationEditorWidget/components/ConfigurationEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,cAAc,EACd,oCAAoC,EACpC,yBAAyB,EACzB,uBAAuB,GAExB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAY,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,QAAQ;AACR,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAE3D,SAAS;AACT,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAGzC,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE;;IAAC,OAAA,CAAC;QACvC,UAAU,EAAE;YACV,KAAK,EAAE,CAAA,MAAA,KAAK,CAAC,OAAO,CAAC,QAAQ,0CAAE,YAAY,KAAI,MAAM;SACtD;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,C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CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,CAC1D,oBAAC,MAAM,IACL,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACd,CACH,CAAC,CACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,QAAQ,CAAC,UAAU,EAC7C,KAAK,GAIN;IACC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,yEAAyE;IACzE,wEAAwE;IACxE,cAAc;IACd,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACxB,MAAM,GAAG,GAAG,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACvD,MAAM,IAAI,GAAG,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrD,OAAO,CACL
|
|
1
|
+
{"version":3,"file":"ConfigurationEditor.js","sourceRoot":"","sources":["../../../src/ConfigurationEditorWidget/components/ConfigurationEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,cAAc,EACd,oCAAoC,EACpC,yBAAyB,EACzB,uBAAuB,GAExB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAY,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,QAAQ;AACR,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAE3D,SAAS;AACT,OAAO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,CAAc,CACjC;QACnB,oBAAC,gBAAgB,IACf,SAAS,EAAE,OAAO,CAAC,qBAAqB,iBAC5B,cAAc,IAEzB,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,oBAAC,MAAM,IAAC,MAAM,EAAE,MAAM,GAAI,CACtC,CACT,CACb,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
export default function ConfigurationTextField(props: {
|
|
4
4
|
helperText?: string;
|
|
5
|
-
} & TextFieldProps): JSX.Element;
|
|
5
|
+
} & TextFieldProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function JsonEditor({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -6,6 +6,6 @@ declare function JsonEditor({ slot, }: {
|
|
|
6
6
|
value: unknown;
|
|
7
7
|
set: (arg: unknown) => void;
|
|
8
8
|
};
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
declare const _default: typeof JsonEditor;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name?: string | undefined;
|
|
@@ -7,5 +7,5 @@ declare const _default: ({ slot, }: {
|
|
|
7
7
|
set: (val: number) => void;
|
|
8
8
|
reset?: (() => void) | undefined;
|
|
9
9
|
};
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -7,5 +7,5 @@ declare const _default: ({ slot, }: {
|
|
|
7
7
|
add: (key: string, val: number) => void;
|
|
8
8
|
description: string;
|
|
9
9
|
};
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IAnyType } from 'mobx-state-tree';
|
|
3
3
|
export declare const useSlotEditorStyles: (params: void, styleOverrides?: {
|
|
4
4
|
props: any;
|
|
@@ -12,5 +12,5 @@ export declare const useSlotEditorStyles: (params: void, styleOverrides?: {
|
|
|
12
12
|
declare const SlotEditor: ({ slot, slotSchema }: {
|
|
13
13
|
slot: any;
|
|
14
14
|
slotSchema: IAnyType;
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
16
|
export default SlotEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const StringArrayEditor: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -8,5 +8,5 @@ declare const StringArrayEditor: ({ slot, }: {
|
|
|
8
8
|
add: Function;
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export default StringArrayEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: ({ slot, }: {
|
|
3
3
|
slot: {
|
|
4
4
|
name: string;
|
|
@@ -10,5 +10,5 @@ declare const _default: ({ slot, }: {
|
|
|
10
10
|
removeAtKeyIndex: (key: string, idx: number) => void;
|
|
11
11
|
addToKey: (key: string, val: string) => void;
|
|
12
12
|
};
|
|
13
|
-
}) => JSX.Element;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
14
|
export default _default;
|
|
@@ -5,5 +5,5 @@ declare const TypeSelector: ({ typeNameChoices, slot, slotName, onChange, }: {
|
|
|
5
5
|
slot: AnyConfigurationModel;
|
|
6
6
|
slotName: string;
|
|
7
7
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export default TypeSelector;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export { default as stateModelFactory } from './model';
|
|
3
|
-
export declare const configSchema: import("@jbrowse/core/configuration").
|
|
3
|
+
export declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
4
4
|
export declare const HeadingComponent: ({ model }: {
|
|
5
5
|
model?: {
|
|
6
6
|
target: {
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
} | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const configSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default configSchema;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const regionsConfigSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const regionsConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default regionsConfigSchema;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const sequenceConfigSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const sequenceConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
features: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: never[];
|
|
8
|
+
};
|
|
9
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
10
|
export default sequenceConfigSchema;
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
declare const RefNameAliasAdapter: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
location: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
* by default, the "ref names that match the fasta" are assumed to be in the
|
|
15
|
+
* first column (0), change this variable if needed
|
|
16
|
+
*/
|
|
17
|
+
refNameColumn: {
|
|
18
|
+
type: string;
|
|
19
|
+
defaultValue: number;
|
|
20
|
+
};
|
|
21
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
22
|
export default RefNameAliasAdapter;
|
package/esm/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const LazyConfigurationEditorComponent: import("react").LazyExoticCompon
|
|
|
10
10
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
|
|
11
11
|
};
|
|
12
12
|
session?: import("@jbrowse/core/util").AbstractSessionModel | undefined;
|
|
13
|
-
}) => JSX.Element>;
|
|
13
|
+
}) => import("react").JSX.Element>;
|
|
14
14
|
export default class extends Plugin {
|
|
15
15
|
name: string;
|
|
16
16
|
install(pluginManager: PluginManager): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "JBrowse 2 config utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"distModule": "esm/index.js",
|
|
58
58
|
"srcModule": "src/index.ts",
|
|
59
59
|
"module": "esm/index.js",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1cbe7ba097fb2d2763c776e5e429e4670cdd583c"
|
|
61
61
|
}
|
|
@@ -148,24 +148,19 @@ const ConfigurationEditor = observer(function ({
|
|
|
148
148
|
const key = target && readConfObject(target, 'trackId')
|
|
149
149
|
const name = target && readConfObject(target, 'name')
|
|
150
150
|
return (
|
|
151
|
-
|
|
152
|
-
<
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</Accordion>
|
|
165
|
-
|
|
166
|
-
{/* blank space at the bottom of screen allows scroll */}
|
|
167
|
-
<div style={{ height: 300 }} />
|
|
168
|
-
</>
|
|
151
|
+
<Accordion key={key} defaultExpanded className={classes.accordion}>
|
|
152
|
+
<AccordionSummary
|
|
153
|
+
expandIcon={<ExpandMoreIcon className={classes.expandIcon} />}
|
|
154
|
+
>
|
|
155
|
+
<Typography>{name ?? 'Configuration'}</Typography>
|
|
156
|
+
</AccordionSummary>
|
|
157
|
+
<AccordionDetails
|
|
158
|
+
className={classes.expansionPanelDetails}
|
|
159
|
+
data-testid="configEditor"
|
|
160
|
+
>
|
|
161
|
+
{!target ? 'no target set' : <Schema schema={target} />}
|
|
162
|
+
</AccordionDetails>
|
|
163
|
+
</Accordion>
|
|
169
164
|
)
|
|
170
165
|
})
|
|
171
166
|
|
package/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.tsx.snap
CHANGED
|
@@ -1127,7 +1127,7 @@ exports[`ConfigurationEditor widget renders with defaults of the PileupTrack sch
|
|
|
1127
1127
|
</div>
|
|
1128
1128
|
</div>
|
|
1129
1129
|
<p>
|
|
1130
|
-
|
|
1130
|
+
text to display when the cursor hovers over a feature
|
|
1131
1131
|
</p>
|
|
1132
1132
|
<button
|
|
1133
1133
|
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorPrimary MuiIconButton-sizeMedium css-1kuq5xv-MuiButtonBase-root-MuiIconButton-root"
|
|
@@ -1262,6 +1262,7 @@ exports[`ConfigurationEditor widget renders with defaults of the PileupTrack sch
|
|
|
1262
1262
|
</div>
|
|
1263
1263
|
<input
|
|
1264
1264
|
aria-hidden="true"
|
|
1265
|
+
aria-invalid="false"
|
|
1265
1266
|
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
|
|
1266
1267
|
tabindex="-1"
|
|
1267
1268
|
value="PileupRenderer"
|
|
@@ -1427,6 +1428,7 @@ exports[`ConfigurationEditor widget renders with defaults of the PileupTrack sch
|
|
|
1427
1428
|
</div>
|
|
1428
1429
|
<input
|
|
1429
1430
|
aria-hidden="true"
|
|
1431
|
+
aria-invalid="false"
|
|
1430
1432
|
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
|
|
1431
1433
|
tabindex="-1"
|
|
1432
1434
|
value="fr"
|
|
@@ -1503,6 +1505,7 @@ exports[`ConfigurationEditor widget renders with defaults of the PileupTrack sch
|
|
|
1503
1505
|
</div>
|
|
1504
1506
|
<input
|
|
1505
1507
|
aria-hidden="true"
|
|
1508
|
+
aria-invalid="false"
|
|
1506
1509
|
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
|
|
1507
1510
|
tabindex="-1"
|
|
1508
1511
|
value="normal"
|