@weng-lab/genomebrowser-ui 0.1.2 → 0.1.3

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
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(grep:*)"
5
+ ]
6
+ }
7
+ }
@@ -9,6 +9,7 @@ export declare const rows: {
9
9
  displayname: string;
10
10
  experimentAccession: string;
11
11
  fileAccession: string;
12
+ url: string;
12
13
  }[];
13
14
  export declare const rowById: Map<string, RowInfo>;
14
15
  /**
@@ -41,6 +41,7 @@ export type RowInfo = {
41
41
  assay: string;
42
42
  experimentAccession: string;
43
43
  fileAccession: string;
44
+ url: string;
44
45
  };
45
46
  /**
46
47
  * Custom Tree Props for RichTreeView Panel
@@ -60,7 +61,7 @@ export type ExtendedTreeItemProps = {
60
61
  export type TreeViewWrapperProps = {
61
62
  store: SelectionStoreInstance;
62
63
  items: TreeViewBaseItem<ExtendedTreeItemProps>[];
63
- selectedIds: Set<string>;
64
+ selectedTracks: Map<string, RowInfo>;
64
65
  activeTracks: Set<string>;
65
66
  isSearchResult: boolean;
66
67
  };
@@ -74,14 +75,15 @@ export interface CustomTreeItemProps extends Omit<UseTreeItemParameters, "rootRe
74
75
  onRemove?: (item: TreeViewBaseItem<ExtendedTreeItemProps>) => void;
75
76
  }
76
77
  /**
77
- * Types for useSelectionStore to keep track of selected DataGrid row ids/tracks
78
+ * Types for useSelectionStore to keep track of selected DataGrid rows/tracks
78
79
  */
79
80
  export type SelectionState = {
80
81
  maxTracks: number;
81
- selectedIds: Set<string>;
82
+ selectedTracks: Map<string, RowInfo>;
82
83
  };
83
84
  export type SelectionAction = {
84
- setSelected: (ids: Set<string>) => void;
85
+ selectedIds: () => Set<string>;
86
+ setSelected: (tracks: Map<string, RowInfo>) => void;
85
87
  removeIds: (removedIds: Set<string>) => void;
86
88
  clear: () => void;
87
89
  };
@@ -106,7 +108,7 @@ interface BaseTableProps extends Omit<DataGridPremiumProps, "columns"> {
106
108
  }
107
109
  type DataGridWrapperProps = {
108
110
  rows: RowInfo[];
109
- selectedIds: Set<string>;
111
+ selectedTracks: Map<string, RowInfo>;
110
112
  handleSelection: (newSelection: GridRowSelectionModel) => void;
111
113
  sortedAssay: boolean;
112
114
  };