@weng-lab/genomebrowser 1.3.1 → 1.4.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.
@@ -0,0 +1,7 @@
1
+ import { DataStoreInstance } from '../store/dataStore';
2
+ import { ApolloError } from '@apollo/client';
3
+ export default function useCustomData(trackId: string, response: {
4
+ data: any;
5
+ error: ApolloError | undefined;
6
+ loading: boolean;
7
+ }, dataStore: DataStoreInstance): void;
package/dist/lib.d.ts CHANGED
@@ -8,12 +8,14 @@ import { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, Transcrip
8
8
  import { MethylCConfig, MethylCProps, MethylData } from './components/tracks/methylC/types';
9
9
  import { createBrowserStore, InitialBrowserState, BrowserStoreInstance } from './store/browserStore';
10
10
  import { createTrackStore, Track, TrackStoreInstance } from './store/trackStore';
11
+ import { createDataStore, DataStoreInstance } from './store/dataStore';
11
12
  import { Highlight } from './components/highlight/types';
12
13
  import { DisplayMode, TrackType } from './components/tracks/types';
13
14
  import { Vibrant, Pastels } from './utils/color';
14
15
  import { Domain, Chromosome } from './utils/types';
15
16
  import { default as GQLWrapper } from './components/browser/GQLWrapper';
16
17
  import { default as Cytobands } from './components/cytoband/cytobands';
18
+ import { default as useCustomData } from './hooks/useCustomData';
17
19
  export { Browser };
18
20
  export type { BigBedConfig, SquishBigBedProps, DenseBigBedProps, Rect };
19
21
  export type { BulkBedConfig, BulkBedProps, BulkBedDataset, BulkBedRect };
@@ -24,9 +26,11 @@ export type { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, Tran
24
26
  export type { MethylCConfig, MethylCProps, MethylData };
25
27
  export { createBrowserStore, type InitialBrowserState, type BrowserStoreInstance };
26
28
  export { createTrackStore, type Track, type TrackStoreInstance };
29
+ export { createDataStore, type DataStoreInstance };
27
30
  export type { Highlight };
28
31
  export { DisplayMode, TrackType };
29
32
  export { Vibrant, Pastels };
30
33
  export type { Domain, Chromosome };
31
34
  export { GQLWrapper };
32
35
  export { Cytobands };
36
+ export { useCustomData };
@@ -9,4 +9,3 @@ export interface DataStore {
9
9
  }
10
10
  export type DataStoreInstance = ReturnType<typeof createDataStore>;
11
11
  export declare function createDataStore(): import('zustand').UseBoundStore<import('zustand').StoreApi<DataStore>>;
12
- export declare const useDataStore: import('zustand').UseBoundStore<import('zustand').StoreApi<DataStore>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weng-lab/genomebrowser",
3
3
  "private": false,
4
- "version": "1.3.1",
4
+ "version": "1.4.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "files": [