@insticc/react-datagrid-2 1.1.20 → 1.1.21

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/build/index.js CHANGED
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "DataGrid", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _index["default"];
10
+ }
11
+ });
3
12
  var _index = _interopRequireDefault(require("./wrapper/index.js"));
4
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
5
- module.exports = {
6
- DataGrid: _index["default"]
7
- };
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -256,7 +256,8 @@ var DataGrid = function DataGrid(_ref) {
256
256
  var cellClass = column.cellClass,
257
257
  CustomCell = column.Cell,
258
258
  type = column.type;
259
- var typeValue = type && _DefaultCellTypes.DEFAULT_CELL_TYPES[type] ? _DefaultCellTypes.DEFAULT_CELL_TYPES[type](props) : null;
259
+ var typeFn = type ? _DefaultCellTypes.DEFAULT_CELL_TYPES[type] : null;
260
+ var typeValue = typeof typeFn === "function" ? typeFn(props) : null;
260
261
  if (typeValue) content = typeValue;
261
262
  if (CustomCell) content = /*#__PURE__*/_react["default"].createElement(CustomCell, _extends({}, props, {
262
263
  typeValue: typeValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insticc/react-datagrid-2",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "files": [