@handsontable/react 11.0.1 → 12.0.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/README.md CHANGED
@@ -9,13 +9,13 @@ It provides data binding, data validation, filtering, sorting, and CRUD operatio
9
9
 
10
10
  [![npm](https://img.shields.io/npm/dt/@handsontable/react.svg)](https://npmjs.com/package/@handsontable/react)
11
11
  [![npm](https://img.shields.io/npm/dm/@handsontable/react.svg)](https://npmjs.com/package/@handsontable/react)
12
- [![Build status](https://app.codeship.com/projects/1ec34290-ed0a-0131-911c-1a47c8fbcce0/status?branch=master)](https://app.codeship.com/projects/26649)
12
+ [![CI status](https://github.com/handsontable/handsontable/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/handsontable/handsontable/actions/workflows/test.yml?query=branch%3Amaster)
13
13
  [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhandsontable%2Fhandsontable.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhandsontable%2Fhandsontable?ref=badge_shield)
14
- [![Known Vulnerabilities](https://snyk.io/test/github/handsontable/handsontable/badge.svg?targetFile=package.json)](https://snyk.io/test/github/handsontable/handsontable?targetFile=package.json)
14
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=handsontable_handsontable&metric=alert_status)](https://sonarcloud.io/dashboard?id=handsontable_handsontable)
15
15
 
16
16
  ---
17
17
 
18
- <a href="https://handsontable.com/examples"><img src="https://raw.githubusercontent.com/handsontable/handsontable/develop/resources/handsontable-github-preview.png" alt="Handsontable data grid for React" width="805"/></a>
18
+ <a href="https://handsontable.com/demo"><img src="https://raw.githubusercontent.com/handsontable/handsontable/develop/resources/handsontable-github-preview.png" alt="Handsontable data grid for React" width="805"/></a>
19
19
 
20
20
  </div>
21
21
 
@@ -39,10 +39,10 @@ The most popular features of Handsontable for React:
39
39
 
40
40
  ## Documentation
41
41
 
42
- - [Developer guides](https://handsontable.com/docs/frameworks-wrapper-for-react-installation.html)
43
- - [API Reference](https://handsontable.com/docs/Core.html)
44
- - [Change log](https://handsontable.com/docs/tutorial-release-notes.html)
45
- - [Demo](https://handsontable.com/examples)
42
+ - [Developer guides](https://handsontable.com/docs/react-installation/)
43
+ - [API Reference](https://handsontable.com/docs/api/core/)
44
+ - [Changelog](https://handsontable.com/docs/release-notes/)
45
+ - [Demo](https://handsontable.com/demo)
46
46
 
47
47
  <div id="installation"></div>
48
48
 
@@ -66,7 +66,7 @@ The component will be available as `Handsontable.react.HotTable`.
66
66
 
67
67
  ### Usage
68
68
 
69
- Use this data grid as you would any other component in your application. [Options](https://handsontable.com/docs/Options.html) can be set as `HotTable` props.
69
+ Use this data grid as you would any other component in your application. [Options](https://handsontable.com/docs/api/options/) can be set as `HotTable` props.
70
70
 
71
71
  **Styles**
72
72
  ```css
@@ -96,7 +96,7 @@ class HotApp extends React.Component {
96
96
  }
97
97
  ```
98
98
 
99
- ### [View live demo](//handsontable.com/docs/frameworks-wrapper-for-react-simple-examples.html)
99
+ ### [View live demo](https://handsontable.com/docs/react-simple-example/)
100
100
 
101
101
  ## Support
102
102
 
@@ -115,7 +115,7 @@ Handsontable is a commercial software with two licenses available:
115
115
 
116
116
  If you use Handsontable for React in a project that supports your commercial activity, then you must purchase the license key at [handsontable.com](https://handsontable.com/pricing).
117
117
 
118
- If you use the free for non-commercial license of Handsontable, then pass the phrase `'non-commercial-and-evaluation'`, as described in [this documentation](https://handsontable.com/docs/tutorial-license-key.html).
118
+ If you use the free for non-commercial license of Handsontable, then pass the phrase `'non-commercial-and-evaluation'`, as described in [this documentation](https://handsontable.com/docs/license-key/).
119
119
 
120
120
  <br>
121
121
  <br>
@@ -38,6 +38,7 @@ declare class BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Compon
38
38
  removeHooksByKey(...args: any[]): any;
39
39
  clearHooks(...args: any[]): any;
40
40
  getEditedCell(...args: any[]): any;
41
+ getEditedCellRect(...args: any[]): any;
41
42
  getEditedCellsZIndex(...args: any[]): any;
42
43
  }
43
44
  export default BaseEditorComponent;
@@ -17,14 +17,9 @@ function ownKeys(object, enumerableOnly) {
17
17
 
18
18
  if (Object.getOwnPropertySymbols) {
19
19
  var symbols = Object.getOwnPropertySymbols(object);
20
-
21
- if (enumerableOnly) {
22
- symbols = symbols.filter(function (sym) {
23
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
24
- });
25
- }
26
-
27
- keys.push.apply(keys, symbols);
20
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
21
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
22
+ })), keys.push.apply(keys, symbols);
28
23
  }
29
24
 
30
25
  return keys;
@@ -32,19 +27,12 @@ function ownKeys(object, enumerableOnly) {
32
27
 
33
28
  function _objectSpread2(target) {
34
29
  for (var i = 1; i < arguments.length; i++) {
35
- var source = arguments[i] != null ? arguments[i] : {};
36
-
37
- if (i % 2) {
38
- ownKeys(Object(source), true).forEach(function (key) {
39
- _defineProperty(target, key, source[key]);
40
- });
41
- } else if (Object.getOwnPropertyDescriptors) {
42
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
43
- } else {
44
- ownKeys(Object(source)).forEach(function (key) {
45
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
46
- });
47
- }
30
+ var source = null != arguments[i] ? arguments[i] : {};
31
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
32
+ _defineProperty(target, key, source[key]);
33
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
34
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
35
+ });
48
36
  }
49
37
 
50
38
  return target;
@@ -53,17 +41,11 @@ function _objectSpread2(target) {
53
41
  function _typeof(obj) {
54
42
  "@babel/helpers - typeof";
55
43
 
56
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
57
- _typeof = function (obj) {
58
- return typeof obj;
59
- };
60
- } else {
61
- _typeof = function (obj) {
62
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
63
- };
64
- }
65
-
66
- return _typeof(obj);
44
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
45
+ return typeof obj;
46
+ } : function (obj) {
47
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
48
+ }, _typeof(obj);
67
49
  }
68
50
 
69
51
  function _classCallCheck(instance, Constructor) {
@@ -85,6 +67,9 @@ function _defineProperties(target, props) {
85
67
  function _createClass(Constructor, protoProps, staticProps) {
86
68
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
87
69
  if (staticProps) _defineProperties(Constructor, staticProps);
70
+ Object.defineProperty(Constructor, "prototype", {
71
+ writable: false
72
+ });
88
73
  return Constructor;
89
74
  }
90
75
 
@@ -115,6 +100,9 @@ function _inherits(subClass, superClass) {
115
100
  configurable: true
116
101
  }
117
102
  });
103
+ Object.defineProperty(subClass, "prototype", {
104
+ writable: false
105
+ });
118
106
  if (superClass) _setPrototypeOf(subClass, superClass);
119
107
  }
120
108
 
@@ -692,7 +680,7 @@ var PortalManager = /*#__PURE__*/function (_React$Component) {
692
680
  return PortalManager;
693
681
  }(React__default["default"].Component);
694
682
 
695
- var version="11.0.1";
683
+ var version="12.0.1";
696
684
 
697
685
  function createCommonjsModule(fn, module) {
698
686
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -1190,12 +1178,14 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
1190
1178
  var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1191
1179
  var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
1192
1180
 
1181
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1182
+
1193
1183
  var printWarning$1 = function printWarning() {};
1194
1184
 
1195
1185
  if (process.env.NODE_ENV !== 'production') {
1196
1186
  var ReactPropTypesSecret = ReactPropTypesSecret_1;
1197
1187
  var loggedTypeFailures = {};
1198
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1188
+ var has = has$1;
1199
1189
 
1200
1190
  printWarning$1 = function printWarning(text) {
1201
1191
  var message = 'Warning: ' + text;
@@ -1209,7 +1199,9 @@ if (process.env.NODE_ENV !== 'production') {
1209
1199
  // This error was thrown as a convenience so that you can use this stack
1210
1200
  // to find the callsite that caused this warning to fire.
1211
1201
  throw new Error(message);
1212
- } catch (x) {}
1202
+ } catch (x) {
1203
+ /**/
1204
+ }
1213
1205
  };
1214
1206
  }
1215
1207
  /**
@@ -1228,7 +1220,7 @@ if (process.env.NODE_ENV !== 'production') {
1228
1220
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1229
1221
  if (process.env.NODE_ENV !== 'production') {
1230
1222
  for (var typeSpecName in typeSpecs) {
1231
- if (has$1(typeSpecs, typeSpecName)) {
1223
+ if (has(typeSpecs, typeSpecName)) {
1232
1224
  var error; // Prop type validation may throw. In case they do, we don't want to
1233
1225
  // fail the render phase where it didn't fail before. So we log it.
1234
1226
  // After these have been cleaned up, we'll let them throw.
@@ -1237,7 +1229,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1237
1229
  // This is intentionally an invariant that gets caught. It's the same
1238
1230
  // behavior as without this statement except with a better message.
1239
1231
  if (typeof typeSpecs[typeSpecName] !== 'function') {
1240
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.');
1232
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
1241
1233
  err.name = 'Invariant Violation';
1242
1234
  throw err;
1243
1235
  }
@@ -1277,8 +1269,6 @@ checkPropTypes.resetWarningCache = function () {
1277
1269
 
1278
1270
  var checkPropTypes_1 = checkPropTypes;
1279
1271
 
1280
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
1281
-
1282
1272
  var printWarning = function printWarning() {};
1283
1273
 
1284
1274
  if (process.env.NODE_ENV !== 'production') {
@@ -1382,6 +1372,7 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1382
1372
 
1383
1373
  var ReactPropTypes = {
1384
1374
  array: createPrimitiveTypeChecker('array'),
1375
+ bigint: createPrimitiveTypeChecker('bigint'),
1385
1376
  bool: createPrimitiveTypeChecker('boolean'),
1386
1377
  func: createPrimitiveTypeChecker('function'),
1387
1378
  number: createPrimitiveTypeChecker('number'),
@@ -1429,8 +1420,9 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1429
1420
  */
1430
1421
 
1431
1422
 
1432
- function PropTypeError(message) {
1423
+ function PropTypeError(message, data) {
1433
1424
  this.message = message;
1425
+ this.data = data && _typeof(data) === 'object' ? data : {};
1434
1426
  this.stack = '';
1435
1427
  } // Make `instanceof Error` still work for returned errors.
1436
1428
 
@@ -1496,7 +1488,9 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1496
1488
  // check, but we can offer a more precise error message here rather than
1497
1489
  // 'of type `object`'.
1498
1490
  var preciseType = getPreciseType(propValue);
1499
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
1491
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
1492
+ expectedType: expectedType
1493
+ });
1500
1494
  }
1501
1495
 
1502
1496
  return null;
@@ -1631,7 +1625,7 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1631
1625
  }
1632
1626
 
1633
1627
  for (var key in propValue) {
1634
- if (has(propValue, key)) {
1628
+ if (has$1(propValue, key)) {
1635
1629
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1636
1630
 
1637
1631
  if (error instanceof Error) {
@@ -1662,15 +1656,23 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1662
1656
  }
1663
1657
 
1664
1658
  function validate(props, propName, componentName, location, propFullName) {
1659
+ var expectedTypes = [];
1660
+
1665
1661
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1666
1662
  var checker = arrayOfTypeCheckers[i];
1663
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
1667
1664
 
1668
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1665
+ if (checkerResult == null) {
1669
1666
  return null;
1670
1667
  }
1668
+
1669
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1670
+ expectedTypes.push(checkerResult.data.expectedType);
1671
+ }
1671
1672
  }
1672
1673
 
1673
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1674
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
1675
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1674
1676
  }
1675
1677
 
1676
1678
  return createChainableTypeChecker(validate);
@@ -1688,6 +1690,10 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1688
1690
  return createChainableTypeChecker(validate);
1689
1691
  }
1690
1692
 
1693
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1694
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
1695
+ }
1696
+
1691
1697
  function createShapeTypeChecker(shapeTypes) {
1692
1698
  function validate(props, propName, componentName, location, propFullName) {
1693
1699
  var propValue = props[propName];
@@ -1700,8 +1706,8 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1700
1706
  for (var key in shapeTypes) {
1701
1707
  var checker = shapeTypes[key];
1702
1708
 
1703
- if (!checker) {
1704
- continue;
1709
+ if (typeof checker !== 'function') {
1710
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1705
1711
  }
1706
1712
 
1707
1713
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
@@ -1724,8 +1730,7 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1724
1730
 
1725
1731
  if (propType !== 'object') {
1726
1732
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1727
- } // We need to check all keys in case some are required but missing from
1728
- // props.
1733
+ } // We need to check all keys in case some are required but missing from props.
1729
1734
 
1730
1735
 
1731
1736
  var allKeys = objectAssign({}, props[propName], shapeTypes);
@@ -1733,6 +1738,10 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1733
1738
  for (var key in allKeys) {
1734
1739
  var checker = shapeTypes[key];
1735
1740
 
1741
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1742
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1743
+ }
1744
+
1736
1745
  if (!checker) {
1737
1746
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
1738
1747
  }
@@ -1931,6 +1940,7 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
1931
1940
 
1932
1941
  var ReactPropTypes = {
1933
1942
  array: shim,
1943
+ bigint: shim,
1934
1944
  bool: shim,
1935
1945
  func: shim,
1936
1946
  number: shim,
@@ -1974,6 +1984,7 @@ var propTypes = createCommonjsModule(function (module) {
1974
1984
  module.exports = factoryWithThrowingShims();
1975
1985
  }
1976
1986
  });
1987
+ var PropTypes = propTypes;
1977
1988
 
1978
1989
  /**
1979
1990
  * A Handsontable-ReactJS wrapper.
@@ -2612,9 +2623,9 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2612
2623
 
2613
2624
 
2614
2625
  HotTable.propTypes = {
2615
- style: propTypes.object,
2616
- id: propTypes.string,
2617
- className: propTypes.string
2626
+ style: PropTypes.object,
2627
+ id: PropTypes.string,
2628
+ className: PropTypes.string
2618
2629
  };
2619
2630
 
2620
2631
  var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
@@ -2904,15 +2915,26 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2904
2915
  return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2905
2916
  }
2906
2917
  }, {
2907
- key: "getEditedCellsZIndex",
2908
- value: function getEditedCellsZIndex() {
2918
+ key: "getEditedCellRect",
2919
+ value: function getEditedCellRect() {
2909
2920
  var _Handsontable$editors23;
2910
2921
 
2911
2922
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2912
2923
  args[_key23] = arguments[_key23];
2913
2924
  }
2914
2925
 
2915
- return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2926
+ return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2927
+ }
2928
+ }, {
2929
+ key: "getEditedCellsZIndex",
2930
+ value: function getEditedCellsZIndex() {
2931
+ var _Handsontable$editors24;
2932
+
2933
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2934
+ args[_key24] = arguments[_key24];
2935
+ }
2936
+
2937
+ return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2916
2938
  }
2917
2939
  }]);
2918
2940
 
@@ -25,7 +25,7 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 11.0.1 (built at Wed Nov 17 2021 15:12:52 GMT+0100 (Central European Standard Time))
28
+ * Version: 12.0.1 (built at Fri May 13 2022 13:52:16 GMT+0200 (Central European Summer Time))
29
29
  */
30
30
  (function (global, factory) {
31
31
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('handsontable/base')) :
@@ -44,14 +44,9 @@ function ownKeys(object, enumerableOnly) {
44
44
 
45
45
  if (Object.getOwnPropertySymbols) {
46
46
  var symbols = Object.getOwnPropertySymbols(object);
47
-
48
- if (enumerableOnly) {
49
- symbols = symbols.filter(function (sym) {
50
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
51
- });
52
- }
53
-
54
- keys.push.apply(keys, symbols);
47
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
48
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
49
+ })), keys.push.apply(keys, symbols);
55
50
  }
56
51
 
57
52
  return keys;
@@ -59,19 +54,12 @@ function ownKeys(object, enumerableOnly) {
59
54
 
60
55
  function _objectSpread2(target) {
61
56
  for (var i = 1; i < arguments.length; i++) {
62
- var source = arguments[i] != null ? arguments[i] : {};
63
-
64
- if (i % 2) {
65
- ownKeys(Object(source), true).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- });
68
- } else if (Object.getOwnPropertyDescriptors) {
69
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
70
- } else {
71
- ownKeys(Object(source)).forEach(function (key) {
72
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73
- });
74
- }
57
+ var source = null != arguments[i] ? arguments[i] : {};
58
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
59
+ _defineProperty(target, key, source[key]);
60
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
61
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
62
+ });
75
63
  }
76
64
 
77
65
  return target;
@@ -80,17 +68,11 @@ function _objectSpread2(target) {
80
68
  function _typeof(obj) {
81
69
  "@babel/helpers - typeof";
82
70
 
83
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
84
- _typeof = function (obj) {
85
- return typeof obj;
86
- };
87
- } else {
88
- _typeof = function (obj) {
89
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
90
- };
91
- }
92
-
93
- return _typeof(obj);
71
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
72
+ return typeof obj;
73
+ } : function (obj) {
74
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
75
+ }, _typeof(obj);
94
76
  }
95
77
 
96
78
  function _classCallCheck(instance, Constructor) {
@@ -112,6 +94,9 @@ function _defineProperties(target, props) {
112
94
  function _createClass(Constructor, protoProps, staticProps) {
113
95
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
114
96
  if (staticProps) _defineProperties(Constructor, staticProps);
97
+ Object.defineProperty(Constructor, "prototype", {
98
+ writable: false
99
+ });
115
100
  return Constructor;
116
101
  }
117
102
 
@@ -142,6 +127,9 @@ function _inherits(subClass, superClass) {
142
127
  configurable: true
143
128
  }
144
129
  });
130
+ Object.defineProperty(subClass, "prototype", {
131
+ writable: false
132
+ });
145
133
  if (superClass) _setPrototypeOf(subClass, superClass);
146
134
  }
147
135
 
@@ -719,7 +707,7 @@ var PortalManager = /*#__PURE__*/function (_React$Component) {
719
707
  return PortalManager;
720
708
  }(React__default["default"].Component);
721
709
 
722
- var version="11.0.1";
710
+ var version="12.0.1";
723
711
 
724
712
  function createCommonjsModule(fn, module) {
725
713
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -1064,6 +1052,7 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
1064
1052
 
1065
1053
  var ReactPropTypes = {
1066
1054
  array: shim,
1055
+ bigint: shim,
1067
1056
  bool: shim,
1068
1057
  func: shim,
1069
1058
  number: shim,
@@ -1101,6 +1090,7 @@ var propTypes = createCommonjsModule(function (module) {
1101
1090
  module.exports = factoryWithThrowingShims();
1102
1091
  }
1103
1092
  });
1093
+ var PropTypes = propTypes;
1104
1094
 
1105
1095
  /**
1106
1096
  * A Handsontable-ReactJS wrapper.
@@ -1739,9 +1729,9 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
1739
1729
 
1740
1730
 
1741
1731
  HotTable.propTypes = {
1742
- style: propTypes.object,
1743
- id: propTypes.string,
1744
- className: propTypes.string
1732
+ style: PropTypes.object,
1733
+ id: PropTypes.string,
1734
+ className: PropTypes.string
1745
1735
  };
1746
1736
 
1747
1737
  var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
@@ -2031,15 +2021,26 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2031
2021
  return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2032
2022
  }
2033
2023
  }, {
2034
- key: "getEditedCellsZIndex",
2035
- value: function getEditedCellsZIndex() {
2024
+ key: "getEditedCellRect",
2025
+ value: function getEditedCellRect() {
2036
2026
  var _Handsontable$editors23;
2037
2027
 
2038
2028
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2039
2029
  args[_key23] = arguments[_key23];
2040
2030
  }
2041
2031
 
2042
- return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2032
+ return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2033
+ }
2034
+ }, {
2035
+ key: "getEditedCellsZIndex",
2036
+ value: function getEditedCellsZIndex() {
2037
+ var _Handsontable$editors24;
2038
+
2039
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2040
+ args[_key24] = arguments[_key24];
2041
+ }
2042
+
2043
+ return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2043
2044
  }
2044
2045
  }]);
2045
2046