@abi-software/map-side-bar 1.2.0 → 1.2.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.
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.1.14",
3
+ "version": "1.2.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -11,6 +11,7 @@
11
11
  "id": "Sample 1",
12
12
  "path": "",
13
13
  "view": "View 1",
14
+ "color": "#FFFF00",
14
15
  "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
15
16
  },
16
17
  {
@@ -21,8 +22,9 @@
21
22
  "id": "Sample 2",
22
23
  "path": "",
23
24
  "view": "View 2",
25
+ "color": "#FFA500",
24
26
  "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
25
27
  }
26
28
  ],
27
- "version": "0.1.0",
29
+ "version": "0.1.0"
28
30
  }
@@ -276,7 +276,7 @@ export default {
276
276
  organs: (element.organs && element.organs.length > 0)
277
277
  ? [...new Set(element.organs.map(v => v.name))]
278
278
  : undefined,
279
- species: element.organisms
279
+ species: element.organisms
280
280
  ? element.organisms[0].species
281
281
  ? [...new Set(element.organisms.map((v) =>v.species ? v.species.name : null))]
282
282
  : undefined
@@ -284,9 +284,7 @@ export default {
284
284
  id: id,
285
285
  scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
286
286
  contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
287
- simulation: element.additionalLinks
288
- ? element.additionalLinks[0].description == 'Repository'
289
- : false,
287
+ simulation: element['abi-simulation-file'],
290
288
  });
291
289
  id++;
292
290