@jbrowse/plugin-spreadsheet-view 2.11.1 → 2.12.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.
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
8
|
const CellData = (0, mobx_react_1.observer)(function ({ cell, spreadsheetModel, columnNumber, }) {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return cell.text;
|
|
9
|
+
const column = spreadsheetModel.columns[columnNumber];
|
|
10
|
+
return column &&
|
|
11
|
+
'dataType' in column &&
|
|
12
|
+
column.dataType.DataCellReactComponent ? (react_1.default.createElement(column.dataType.DataCellReactComponent, { cell: cell, dataType: column.dataType, columnNumber: columnNumber, spreadsheet: spreadsheetModel })) : (cell.text);
|
|
14
13
|
});
|
|
15
14
|
exports.default = CellData;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
3
|
const CellData = observer(function ({ cell, spreadsheetModel, columnNumber, }) {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return cell.text;
|
|
4
|
+
const column = spreadsheetModel.columns[columnNumber];
|
|
5
|
+
return column &&
|
|
6
|
+
'dataType' in column &&
|
|
7
|
+
column.dataType.DataCellReactComponent ? (React.createElement(column.dataType.DataCellReactComponent, { cell: cell, dataType: column.dataType, columnNumber: columnNumber, spreadsheet: spreadsheetModel })) : (cell.text);
|
|
9
8
|
});
|
|
10
9
|
export default CellData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-spreadsheet-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "JBrowse 2 spreadsheet view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bgzf-filehandle": "^1.4.3",
|
|
40
40
|
"@gmod/vcf": "^5.0.9",
|
|
41
|
-
"@jbrowse/plugin-variants": "^2.
|
|
41
|
+
"@jbrowse/plugin-variants": "^2.12.0",
|
|
42
42
|
"@mui/icons-material": "^5.0.1",
|
|
43
43
|
"csvtojson": "^2.0.10"
|
|
44
44
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "935f2602d29abc737bb1f493a922b6218d023ae2"
|
|
64
64
|
}
|