@jbrowse/plugin-config 1.4.4 → 1.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.
- package/dist/ConfigurationEditorWidget/components/CodeEditor.d.ts +4 -0
- package/dist/ConfigurationEditorWidget/components/ColorEditor.d.ts +0 -11
- package/dist/ConfigurationEditorWidget/components/ColorPicker.d.ts +14 -0
- package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +3 -1
- package/dist/FromConfigAdapter/FromConfigRegionsAdapter.d.ts +3 -1
- package/dist/FromConfigAdapter/FromConfigSequenceAdapter.d.ts +1 -1
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +3 -1
- package/dist/plugin-config.cjs.development.js +180 -147
- package/dist/plugin-config.cjs.development.js.map +1 -1
- package/dist/plugin-config.cjs.production.min.js +1 -1
- package/dist/plugin-config.cjs.production.min.js.map +1 -1
- package/dist/plugin-config.esm.js +190 -157
- package/dist/plugin-config.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/ConfigurationEditorWidget/components/CodeEditor.js +59 -0
- package/src/ConfigurationEditorWidget/components/ColorEditor.tsx +12 -54
- package/src/ConfigurationEditorWidget/components/ColorPicker.tsx +52 -0
- package/src/ConfigurationEditorWidget/components/ConfigurationEditor.test.js +3 -4
- package/src/ConfigurationEditorWidget/components/JsonEditor.js +12 -51
- package/src/ConfigurationEditorWidget/components/SlotEditor.js +7 -3
- package/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.js.snap +40 -23
- package/src/FromConfigAdapter/FromConfigAdapter.ts +8 -2
- package/src/FromConfigAdapter/FromConfigRegionsAdapter.ts +7 -2
- package/src/FromConfigAdapter/FromConfigSequenceAdapter.test.ts +2 -5
- package/src/FromConfigAdapter/FromConfigSequenceAdapter.ts +1 -4
- package/src/RefNameAliasAdapter/RefNameAliasAdapter.test.ts +4 -1
- package/src/RefNameAliasAdapter/RefNameAliasAdapter.ts +14 -4
- package/src/RefNameAliasAdapter/configSchema.ts +4 -1
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import ReactPropTypes from 'prop-types';
|
|
3
|
-
import { Color, ColorResult } from 'react-color';
|
|
4
|
-
export declare function ColorPicker(props: {
|
|
5
|
-
color: Color;
|
|
6
|
-
onChange: (color: ColorResult) => void;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
export declare namespace ColorPicker {
|
|
9
|
-
var propTypes: {
|
|
10
|
-
color: ReactPropTypes.Validator<string>;
|
|
11
|
-
onChange: ReactPropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
3
|
export declare const ColorSlot: {
|
|
15
4
|
(props: {
|
|
16
5
|
value: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import ReactPropTypes from 'prop-types';
|
|
3
|
+
import { Color, ColorResult } from 'react-color';
|
|
4
|
+
export declare function ColorPicker(props: {
|
|
5
|
+
color: Color;
|
|
6
|
+
onChange: (color: ColorResult) => void;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export declare namespace ColorPicker {
|
|
9
|
+
var propTypes: {
|
|
10
|
+
color: ReactPropTypes.Validator<string>;
|
|
11
|
+
onChange: ReactPropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default ColorPicker;
|
|
@@ -2,6 +2,8 @@ import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
|
2
2
|
import SimpleFeature, { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
|
|
3
3
|
import { NoAssemblyRegion } from '@jbrowse/core/util/types';
|
|
4
4
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
5
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
6
|
+
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
5
7
|
/**
|
|
6
8
|
* Adapter that just returns the features defined in its `features` configuration
|
|
7
9
|
* key, like:
|
|
@@ -9,7 +11,7 @@ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configuration
|
|
|
9
11
|
*/
|
|
10
12
|
export default class FromConfigAdapter extends BaseFeatureDataAdapter {
|
|
11
13
|
protected features: Map<string, Feature[]>;
|
|
12
|
-
constructor(conf: AnyConfigurationModel);
|
|
14
|
+
constructor(conf: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
13
15
|
static makeFeatures(fdata: SimpleFeatureSerialized[]): Map<string, Feature[]>;
|
|
14
16
|
static makeFeature(data: SimpleFeatureSerialized): SimpleFeature;
|
|
15
17
|
getRefNames(): Promise<string[]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseAdapter, RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { ConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
3
3
|
import { configSchema as FromConfigAdapterConfigSchema } from './configSchema';
|
|
4
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
5
|
+
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
4
6
|
/**
|
|
5
7
|
* Adapter that just returns the features defined in its `features` configuration
|
|
6
8
|
* key, like:
|
|
@@ -8,7 +10,7 @@ import { configSchema as FromConfigAdapterConfigSchema } from './configSchema';
|
|
|
8
10
|
*/
|
|
9
11
|
export default class FromConfigRegionsAdapter extends BaseAdapter implements RegionsAdapter {
|
|
10
12
|
private features;
|
|
11
|
-
constructor(config: ConfigurationModel<typeof FromConfigAdapterConfigSchema
|
|
13
|
+
constructor(config: ConfigurationModel<typeof FromConfigAdapterConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
12
14
|
/**
|
|
13
15
|
* Get refName, start, and end for all features after collapsing any overlaps
|
|
14
16
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
2
2
|
import { NoAssemblyRegion } from '@jbrowse/core/util/types';
|
|
3
3
|
import FromConfigAdapter from './FromConfigAdapter';
|
|
4
|
-
export default class
|
|
4
|
+
export default class FromConfigSequenceAdapter extends FromConfigAdapter {
|
|
5
5
|
/**
|
|
6
6
|
* Fetch features for a certain region
|
|
7
7
|
* @param region - Region
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BaseRefNameAliasAdapter, Alias, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { ConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
3
3
|
import MyConfigAdapterSchema from './configSchema';
|
|
4
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
5
|
+
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
4
6
|
export default class RefNameAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
|
|
5
7
|
private location;
|
|
6
8
|
private promise;
|
|
7
|
-
constructor(config: ConfigurationModel<typeof MyConfigAdapterSchema
|
|
9
|
+
constructor(config: ConfigurationModel<typeof MyConfigAdapterSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
8
10
|
private downloadResults;
|
|
9
11
|
getRefNameAliases(): Promise<Alias[]>;
|
|
10
12
|
freeResources(): Promise<void>;
|