@sjcrh/proteinpaint-types 2.88.2 → 2.89.1-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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +15 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.88.2",
3
+ "version": "2.89.1-1",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -786,6 +786,8 @@ export type SelectCohortEntry = {
786
786
  //The profile has clearOnChange. The terms used in the plots are not always the same for the profile.
787
787
  //Therefore when switching cohorts, it is necessary to delete the plots opened and the global filter
788
788
  clearOnChange?: { [index: string]: boolean }
789
+ //Allows to customize the color of the selected column on the cohort features table. Used by the PrOFILE
790
+ activeCohortColor?: string
789
791
  }
790
792
 
791
793
  type MissingAccess = {
@@ -1229,14 +1231,26 @@ type MassNav = {
1229
1231
  btm?: string
1230
1232
  /** if true, does not show the tab */
1231
1233
  hide?: boolean
1232
- /** html code, specifically for the about tab
1234
+ /** static html contents to show specifically in "about" tab subheader
1233
1235
  * maybe used for other tabs as well.
1234
1236
  */
1235
1237
  html?: string
1238
+ /** "active" items, shown as clickable buttons in about tab. click an item to launch a plot */
1239
+ activeItems?: {
1240
+ items: ActiveItem[]
1241
+ // can add holderStyle to customize
1242
+ }
1236
1243
  }
1237
1244
  }
1238
1245
  }
1239
1246
 
1247
+ type ActiveItem = {
1248
+ /** string or html to show inside the button for the item, potentially allow to include <image> as logo */
1249
+ title: string
1250
+ /** plot object describing the plot to be launched */
1251
+ plot: object
1252
+ }
1253
+
1240
1254
  type Title = {
1241
1255
  text: string
1242
1256
  link?: string