@jbrowse/plugin-config 1.7.0 → 1.7.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.
Files changed (28) hide show
  1. package/dist/ConfigurationEditorWidget/components/CallbackEditor.d.ts +9 -9
  2. package/dist/ConfigurationEditorWidget/components/CodeEditor.d.ts +4 -4
  3. package/dist/ConfigurationEditorWidget/components/ColorEditor.d.ts +44 -44
  4. package/dist/ConfigurationEditorWidget/components/ColorPicker.d.ts +14 -14
  5. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +4 -4
  6. package/dist/ConfigurationEditorWidget/components/JsonEditor.d.ts +9 -9
  7. package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +6 -6
  8. package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +7 -7
  9. package/dist/ConfigurationEditorWidget/index.d.ts +3 -3
  10. package/dist/ConfigurationEditorWidget/model.d.ts +8 -8
  11. package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +24 -24
  12. package/dist/FromConfigAdapter/FromConfigRegionsAdapter.d.ts +23 -23
  13. package/dist/FromConfigAdapter/FromConfigSequenceAdapter.d.ts +25 -25
  14. package/dist/FromConfigAdapter/configSchema.d.ts +3 -3
  15. package/dist/FromConfigAdapter/index.d.ts +4 -4
  16. package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +8 -8
  17. package/dist/RefNameAliasAdapter/configSchema.d.ts +2 -2
  18. package/dist/RefNameAliasAdapter/index.d.ts +2 -2
  19. package/dist/index.d.ts +12 -12
  20. package/package.json +4 -3
  21. package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.test.d.ts +0 -1
  22. package/dist/index.test.d.ts +0 -1
  23. package/dist/plugin-config.cjs.development.js +0 -2740
  24. package/dist/plugin-config.cjs.development.js.map +0 -1
  25. package/dist/plugin-config.cjs.production.min.js +0 -2
  26. package/dist/plugin-config.cjs.production.min.js.map +0 -1
  27. package/dist/plugin-config.esm.js +0 -2732
  28. package/dist/plugin-config.esm.js.map +0 -1
@@ -1,9 +1,9 @@
1
- declare function _default({ slot }: {
2
- slot: any;
3
- }): JSX.Element;
4
- declare namespace _default {
5
- export namespace propTypes {
6
- export const slot: import("prop-types").Validator<any>;
7
- }
8
- }
9
- export default _default;
1
+ declare function _default({ slot }: {
2
+ slot: any;
3
+ }): JSX.Element;
4
+ declare namespace _default {
5
+ namespace propTypes {
6
+ const slot: import("prop-types").Validator<any>;
7
+ }
8
+ }
9
+ export default _default;
@@ -1,4 +1,4 @@
1
- export default function CodeEditor({ contents, setContents }: {
2
- contents: any;
3
- setContents: any;
4
- }): JSX.Element;
1
+ export default function CodeEditor({ contents, setContents }: {
2
+ contents: any;
3
+ setContents: any;
4
+ }): JSX.Element;
@@ -1,44 +1,44 @@
1
- /// <reference types="react" />
2
- import ReactPropTypes from 'prop-types';
3
- export declare const ColorSlot: {
4
- (props: {
5
- value: string;
6
- label: string;
7
- TextFieldProps: {
8
- helperText: string;
9
- fullWidth: boolean;
10
- };
11
- onChange: (arg: string) => void;
12
- }): JSX.Element;
13
- propTypes: {
14
- onChange: ReactPropTypes.Validator<(...args: any[]) => any>;
15
- label: ReactPropTypes.Requireable<string>;
16
- TextFieldProps: ReactPropTypes.Requireable<ReactPropTypes.InferProps<{}>>;
17
- value: ReactPropTypes.Requireable<string>;
18
- };
19
- defaultProps: {
20
- label: string;
21
- value: string;
22
- TextFieldProps: {};
23
- };
24
- };
25
- declare function ColorEditorSlot(props: {
26
- slot: {
27
- name: string;
28
- value: string;
29
- description: string;
30
- set: (arg: string) => void;
31
- };
32
- }): JSX.Element;
33
- declare namespace ColorEditorSlot {
34
- var propTypes: {
35
- slot: ReactPropTypes.Validator<ReactPropTypes.InferProps<{
36
- name: ReactPropTypes.Validator<string>;
37
- description: ReactPropTypes.Requireable<string>;
38
- value: ReactPropTypes.Validator<string>;
39
- set: ReactPropTypes.Validator<(...args: any[]) => any>;
40
- }>>;
41
- };
42
- }
43
- declare const _default: typeof ColorEditorSlot;
44
- export default _default;
1
+ /// <reference types="react" />
2
+ import ReactPropTypes from 'prop-types';
3
+ export declare const ColorSlot: {
4
+ (props: {
5
+ value: string;
6
+ label: string;
7
+ TextFieldProps: {
8
+ helperText: string;
9
+ fullWidth: boolean;
10
+ };
11
+ onChange: (arg: string) => void;
12
+ }): JSX.Element;
13
+ propTypes: {
14
+ onChange: ReactPropTypes.Validator<(...args: any[]) => any>;
15
+ label: ReactPropTypes.Requireable<string>;
16
+ TextFieldProps: ReactPropTypes.Requireable<ReactPropTypes.InferProps<{}>>;
17
+ value: ReactPropTypes.Requireable<string>;
18
+ };
19
+ defaultProps: {
20
+ label: string;
21
+ value: string;
22
+ TextFieldProps: {};
23
+ };
24
+ };
25
+ declare function ColorEditorSlot(props: {
26
+ slot: {
27
+ name: string;
28
+ value: string;
29
+ description: string;
30
+ set: (arg: string) => void;
31
+ };
32
+ }): JSX.Element;
33
+ declare namespace ColorEditorSlot {
34
+ var propTypes: {
35
+ slot: ReactPropTypes.Validator<ReactPropTypes.InferProps<{
36
+ name: ReactPropTypes.Validator<string>;
37
+ description: ReactPropTypes.Requireable<string>;
38
+ value: ReactPropTypes.Validator<string>;
39
+ set: ReactPropTypes.Validator<(...args: any[]) => any>;
40
+ }>>;
41
+ };
42
+ }
43
+ declare const _default: typeof ColorEditorSlot;
44
+ export default _default;
@@ -1,14 +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;
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;
@@ -1,4 +1,4 @@
1
- export default ConfigurationEditor;
2
- declare function ConfigurationEditor({ model }: {
3
- model: any;
4
- }): JSX.Element;
1
+ export default ConfigurationEditor;
2
+ declare function ConfigurationEditor({ model }: {
3
+ model: any;
4
+ }): JSX.Element;
@@ -1,9 +1,9 @@
1
- declare function _default({ slot }: {
2
- slot: any;
3
- }): JSX.Element;
4
- declare namespace _default {
5
- export namespace propTypes {
6
- export const slot: import("prop-types").Validator<any>;
7
- }
8
- }
9
- export default _default;
1
+ declare function _default({ slot }: {
2
+ slot: any;
3
+ }): JSX.Element;
4
+ declare namespace _default {
5
+ namespace propTypes {
6
+ const slot: import("prop-types").Validator<any>;
7
+ }
8
+ }
9
+ export default _default;
@@ -1,6 +1,6 @@
1
- export const useSlotEditorStyles: (props?: any) => Record<"paper" | "paperContent" | "slotModeSwitch", string>;
2
- export default SlotEditor;
3
- declare function SlotEditor({ slot, slotSchema }: {
4
- slot: any;
5
- slotSchema: any;
6
- }): JSX.Element;
1
+ export const useSlotEditorStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"paper" | "paperContent" | "slotModeSwitch">;
2
+ export default SlotEditor;
3
+ declare function SlotEditor({ slot, slotSchema }: {
4
+ slot: any;
5
+ slotSchema: any;
6
+ }): JSX.Element;
@@ -1,7 +1,7 @@
1
- export default TypeSelector;
2
- declare function TypeSelector({ typeNameChoices, slot, slotName, onChange }: {
3
- typeNameChoices: any;
4
- slot: any;
5
- slotName: any;
6
- onChange: any;
7
- }): JSX.Element;
1
+ export default TypeSelector;
2
+ declare function TypeSelector({ typeNameChoices, slot, slotName, onChange }: {
3
+ typeNameChoices: any;
4
+ slot: any;
5
+ slotName: any;
6
+ onChange: any;
7
+ }): JSX.Element;
@@ -1,3 +1,3 @@
1
- export { default as stateModelFactory } from "./model";
2
- export const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export const HeadingComponent: import("mobx-react/dist/types/IReactComponent").IReactComponent<any>;
1
+ export { default as stateModelFactory } from "./model";
2
+ export const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
+ export const HeadingComponent: import("mobx-react/dist/types/IReactComponent").IReactComponent<any>;
@@ -1,8 +1,8 @@
1
- declare function _default(pluginManager: any): import("mobx-state-tree").IModelType<{
2
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
3
- type: import("mobx-state-tree").ISimpleType<"ConfigurationEditorWidget">;
4
- target: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<any>>;
5
- }, {
6
- setTarget(newTarget: any): void;
7
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
8
- export default _default;
1
+ declare function _default(pluginManager: any): import("mobx-state-tree").IModelType<{
2
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
3
+ type: import("mobx-state-tree").ISimpleType<"ConfigurationEditorWidget">;
4
+ target: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<any>>;
5
+ }, {
6
+ setTarget(newTarget: any): void;
7
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
8
+ export default _default;
@@ -1,24 +1,24 @@
1
- import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import SimpleFeature, { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
3
- import { NoAssemblyRegion } from '@jbrowse/core/util/types';
4
- import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
5
- import PluginManager from '@jbrowse/core/PluginManager';
6
- import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
7
- /**
8
- * Adapter that just returns the features defined in its `features` configuration
9
- * key, like:
10
- * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
11
- */
12
- export default class FromConfigAdapter extends BaseFeatureDataAdapter {
13
- protected features: Map<string, Feature[]>;
14
- constructor(conf: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
15
- static makeFeatures(fdata: SimpleFeatureSerialized[]): Map<string, Feature[]>;
16
- static makeFeature(data: SimpleFeatureSerialized): SimpleFeature;
17
- getRefNames(): Promise<string[]>;
18
- getRefNameAliases(): Promise<{
19
- refName: string;
20
- aliases: any;
21
- }[]>;
22
- getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
23
- freeResources(): void;
24
- }
1
+ import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ import SimpleFeature, { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
3
+ import { NoAssemblyRegion } from '@jbrowse/core/util/types';
4
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
5
+ import PluginManager from '@jbrowse/core/PluginManager';
6
+ import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
7
+ /**
8
+ * Adapter that just returns the features defined in its `features` configuration
9
+ * key, like:
10
+ * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
11
+ */
12
+ export default class FromConfigAdapter extends BaseFeatureDataAdapter {
13
+ protected features: Map<string, Feature[]>;
14
+ constructor(conf: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
15
+ static makeFeatures(fdata: SimpleFeatureSerialized[]): Map<string, Feature[]>;
16
+ static makeFeature(data: SimpleFeatureSerialized): SimpleFeature;
17
+ getRefNames(): Promise<string[]>;
18
+ getRefNameAliases(): Promise<{
19
+ refName: string;
20
+ aliases: any;
21
+ }[]>;
22
+ getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
23
+ freeResources(): void;
24
+ }
@@ -1,23 +1,23 @@
1
- import { BaseAdapter, RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import { ConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
3
- import { configSchema as FromConfigAdapterConfigSchema } from './configSchema';
4
- import PluginManager from '@jbrowse/core/PluginManager';
5
- import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
6
- /**
7
- * Adapter that just returns the features defined in its `features` configuration
8
- * key, like:
9
- * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
10
- */
11
- export default class FromConfigRegionsAdapter extends BaseAdapter implements RegionsAdapter {
12
- private features;
13
- constructor(config: ConfigurationModel<typeof FromConfigAdapterConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
14
- /**
15
- * Get refName, start, and end for all features after collapsing any overlaps
16
- */
17
- getRegions(): Promise<{
18
- refName: string;
19
- start: number;
20
- end: number;
21
- }[]>;
22
- freeResources(): void;
23
- }
1
+ import { BaseAdapter, RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ import { ConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
3
+ import { configSchema as FromConfigAdapterConfigSchema } from './configSchema';
4
+ import PluginManager from '@jbrowse/core/PluginManager';
5
+ import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
6
+ /**
7
+ * Adapter that just returns the features defined in its `features` configuration
8
+ * key, like:
9
+ * `"features": [ { "refName": "ctgA", "start":1, "end":20 }, ... ]`
10
+ */
11
+ export default class FromConfigRegionsAdapter extends BaseAdapter implements RegionsAdapter {
12
+ private features;
13
+ constructor(config: ConfigurationModel<typeof FromConfigAdapterConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
14
+ /**
15
+ * Get refName, start, and end for all features after collapsing any overlaps
16
+ */
17
+ getRegions(): Promise<{
18
+ refName: string;
19
+ start: number;
20
+ end: number;
21
+ }[]>;
22
+ freeResources(): void;
23
+ }
@@ -1,25 +1,25 @@
1
- import { Feature } from '@jbrowse/core/util/simpleFeature';
2
- import { NoAssemblyRegion } from '@jbrowse/core/util/types';
3
- import FromConfigAdapter from './FromConfigAdapter';
4
- export default class FromConfigSequenceAdapter extends FromConfigAdapter {
5
- /**
6
- * Fetch features for a certain region
7
- * @param region - Region
8
- * @returns Observable of Feature objects in the region
9
- */
10
- getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
11
- /**
12
- * Get refName, start, and end for all features after collapsing any overlaps
13
- */
14
- getRegions(): Promise<{
15
- refName: string;
16
- start: number;
17
- end: number;
18
- }[]>;
19
- /**
20
- * called to provide a hint that data tied to a certain region
21
- * will not be needed for the forseeable future and can be purged
22
- * from caches, etc
23
- */
24
- freeResources(): void;
25
- }
1
+ import { Feature } from '@jbrowse/core/util/simpleFeature';
2
+ import { NoAssemblyRegion } from '@jbrowse/core/util/types';
3
+ import FromConfigAdapter from './FromConfigAdapter';
4
+ export default class FromConfigSequenceAdapter extends FromConfigAdapter {
5
+ /**
6
+ * Fetch features for a certain region
7
+ * @param region - Region
8
+ * @returns Observable of Feature objects in the region
9
+ */
10
+ getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
11
+ /**
12
+ * Get refName, start, and end for all features after collapsing any overlaps
13
+ */
14
+ getRegions(): Promise<{
15
+ refName: string;
16
+ start: number;
17
+ end: number;
18
+ }[]>;
19
+ /**
20
+ * called to provide a hint that data tied to a certain region
21
+ * will not be needed for the forseeable future and can be purged
22
+ * from caches, etc
23
+ */
24
+ freeResources(): void;
25
+ }
@@ -1,3 +1,3 @@
1
- export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
- export declare const regionsConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare const sequenceConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export declare const regionsConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
+ export declare const sequenceConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
@@ -1,4 +1,4 @@
1
- export { default as AdapterClass } from './FromConfigAdapter';
2
- export { default as RegionsAdapterClass } from './FromConfigRegionsAdapter';
3
- export { default as SequenceAdapterClass } from './FromConfigSequenceAdapter';
4
- export { configSchema, regionsConfigSchema, sequenceConfigSchema, } from './configSchema';
1
+ export { default as AdapterClass } from './FromConfigAdapter';
2
+ export { default as RegionsAdapterClass } from './FromConfigRegionsAdapter';
3
+ export { default as SequenceAdapterClass } from './FromConfigSequenceAdapter';
4
+ export { configSchema, regionsConfigSchema, sequenceConfigSchema, } from './configSchema';
@@ -1,8 +1,8 @@
1
- import { BaseRefNameAliasAdapter, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- export default class RefNameAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
3
- getRefNameAliases(): Promise<{
4
- refName: string;
5
- aliases: string[];
6
- }[]>;
7
- freeResources(): Promise<void>;
8
- }
1
+ import { BaseRefNameAliasAdapter, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
+ export default class RefNameAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
3
+ getRefNameAliases(): Promise<{
4
+ refName: string;
5
+ aliases: string[];
6
+ }[]>;
7
+ freeResources(): Promise<void>;
8
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
- export default _default;
1
+ declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- export { default as AdapterClass } from './RefNameAliasAdapter';
2
- export { default as configSchema } from './configSchema';
1
+ export { default as AdapterClass } from './RefNameAliasAdapter';
2
+ export { default as configSchema } from './configSchema';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- import Plugin from '@jbrowse/core/Plugin';
3
- import PluginManager from '@jbrowse/core/PluginManager';
4
- declare const ConfigurationEditorComponent: import("react").LazyExoticComponent<({ model }: {
5
- model: any;
6
- }) => JSX.Element>;
7
- export default class extends Plugin {
8
- name: string;
9
- install(pluginManager: PluginManager): void;
10
- }
11
- export { default as JsonEditor } from './ConfigurationEditorWidget/components/JsonEditor';
12
- export { ConfigurationEditorComponent as ConfigurationEditor };
1
+ /// <reference types="react" />
2
+ import Plugin from '@jbrowse/core/Plugin';
3
+ import PluginManager from '@jbrowse/core/PluginManager';
4
+ declare const ConfigurationEditorComponent: import("react").LazyExoticComponent<({ model }: {
5
+ model: any;
6
+ }) => JSX.Element>;
7
+ export default class extends Plugin {
8
+ name: string;
9
+ install(pluginManager: PluginManager): void;
10
+ }
11
+ export { default as JsonEditor } from './ConfigurationEditorWidget/components/JsonEditor';
12
+ export { ConfigurationEditorComponent as ConfigurationEditor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-config",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "JBrowse 2 config utilities",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -29,7 +29,8 @@
29
29
  "prepack": "yarn build; yarn useDist",
30
30
  "postpack": "yarn useSrc",
31
31
  "useDist": "node ../../scripts/useDist.js",
32
- "useSrc": "node ../../scripts/useSrc.js"
32
+ "useSrc": "node ../../scripts/useSrc.js",
33
+ "postbuild": "tsc --build tsconfig.build.json"
33
34
  },
34
35
  "dependencies": {
35
36
  "@material-ui/icons": "^4.9.1",
@@ -52,5 +53,5 @@
52
53
  "publishConfig": {
53
54
  "access": "public"
54
55
  },
55
- "gitHead": "cc13844074d11881d211342a6a7eea113561b70b"
56
+ "gitHead": "6da232090c90f22ac96fd464c33082c89b8da14b"
56
57
  }
@@ -1 +0,0 @@
1
- export {};