@teselagen/ove 0.3.58 → 0.3.60

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.58",
3
+ "version": "0.3.60",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@teselagen/sequence-utils": "0.3.13",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.48",
18
+ "@teselagen/ui": "0.3.51",
19
19
  "@teselagen/file-utils": "0.3.11",
20
20
  "@teselagen/bounce-loader": "0.3.11",
21
21
  "@teselagen/bio-parsers": "0.4.7",
@@ -28,7 +28,6 @@
28
28
  "@teselagen/react-list": "0.8.18",
29
29
  "@teselagen/react-table": "6.10.16",
30
30
  "@use-gesture/react": "^10.2.23",
31
- "axios": "^0.21.1",
32
31
  "bluebird": "3.7.2",
33
32
  "bson-objectid": "2.0.4",
34
33
  "buffer": "5.7.1",
@@ -143,7 +143,9 @@ const reducer = createReducer(
143
143
  const newPanels = removeItem(group, indexToClose);
144
144
  let mostRecentIndex = 0;
145
145
  newPanels.forEach(p => {
146
- if (p.lastActive > newPanels[mostRecentIndex].lastActive) {
146
+ if (
147
+ (p.lastActive || 0) > (newPanels[mostRecentIndex].lastActive || 0)
148
+ ) {
147
149
  mostRecentIndex = newPanels.indexOf(p);
148
150
  }
149
151
  });
@@ -191,8 +193,8 @@ const reducer = createReducer(
191
193
  panelId === panel.id
192
194
  ? true
193
195
  : isPanelInGroup
194
- ? false
195
- : panel.active
196
+ ? false
197
+ : panel.active
196
198
  };
197
199
  });
198
200
  });
@@ -209,14 +211,14 @@ const reducer = createReducer(
209
211
  panelId === panel.id
210
212
  ? true
211
213
  : isPanelInGroup
212
- ? false
213
- : panel.active,
214
+ ? false
215
+ : panel.active,
214
216
  fullScreen:
215
217
  panelId === panel.id
216
218
  ? !panel.fullScreen
217
219
  : isPanelInGroup
218
- ? false
219
- : panel.fullScreen
220
+ ? false
221
+ : panel.fullScreen
220
222
  };
221
223
  });
222
224
  });
@@ -271,7 +273,7 @@ export default (state, action) => {
271
273
  nextState.forEach(pg => {
272
274
  pg.forEach(p => {
273
275
  if (p.active) {
274
- p.lastActive = Date.now().toString();
276
+ p.lastActive = Date.now();
275
277
  }
276
278
  });
277
279
  });
package/style.css CHANGED
@@ -9246,9 +9246,9 @@ button:not(:disabled):active {
9246
9246
  }
9247
9247
 
9248
9248
  /* add margin bottom to last row so it does not get covered by scrollbar */
9249
- .ReactTable .rt-tr-group:last-child {
9249
+ /* .ReactTable .rt-tr-group:last-child {
9250
9250
  margin-bottom: 20px;
9251
- }
9251
+ } */
9252
9252
 
9253
9253
  .bp3-icon-standard.bp3-disabled {
9254
9254
  cursor: not-allowed;