@sjcrh/proteinpaint-types 2.88.2 → 2.89.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +13 -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.0",
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
@@ -1229,14 +1229,26 @@ type MassNav = {
1229
1229
  btm?: string
1230
1230
  /** if true, does not show the tab */
1231
1231
  hide?: boolean
1232
- /** html code, specifically for the about tab
1232
+ /** static html contents to show specifically in "about" tab subheader
1233
1233
  * maybe used for other tabs as well.
1234
1234
  */
1235
1235
  html?: string
1236
+ /** "active" items, shown as clickable buttons in about tab. click an item to launch a plot */
1237
+ activeItems?: {
1238
+ items: ActiveItem[]
1239
+ // can add holderStyle to customize
1240
+ }
1236
1241
  }
1237
1242
  }
1238
1243
  }
1239
1244
 
1245
+ type ActiveItem = {
1246
+ /** string or html to show inside the button for the item, potentially allow to include <image> as logo */
1247
+ title: string
1248
+ /** plot object describing the plot to be launched */
1249
+ plot: object
1250
+ }
1251
+
1240
1252
  type Title = {
1241
1253
  text: string
1242
1254
  link?: string