@handsontable/react 11.1.0 → 12.1.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.
package/LICENSE.txt CHANGED
@@ -18,7 +18,7 @@ license agreement.
18
18
  In any case, you must not make any such use of this software as to develop software which may be
19
19
  considered competitive with this software.
20
20
 
21
- UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
21
+ UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
22
22
  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO
23
23
  LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
24
24
  INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
package/README.md CHANGED
@@ -11,7 +11,6 @@ It provides data binding, data validation, filtering, sorting, and CRUD operatio
11
11
  [![npm](https://img.shields.io/npm/dm/@handsontable/react.svg)](https://npmjs.com/package/@handsontable/react)
12
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=wrappers/react/package.json)](https://snyk.io/test/github/handsontable/handsontable?targetFile=wrappers/react/package.json)
15
14
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=handsontable_handsontable&metric=alert_status)](https://sonarcloud.io/dashboard?id=handsontable_handsontable)
16
15
 
17
16
  ---
@@ -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;
@@ -107,18 +107,17 @@ function _inherits(subClass, superClass) {
107
107
  }
108
108
 
109
109
  function _getPrototypeOf(o) {
110
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
110
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
111
111
  return o.__proto__ || Object.getPrototypeOf(o);
112
112
  };
113
113
  return _getPrototypeOf(o);
114
114
  }
115
115
 
116
116
  function _setPrototypeOf(o, p) {
117
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
117
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
118
118
  o.__proto__ = p;
119
119
  return o;
120
120
  };
121
-
122
121
  return _setPrototypeOf(o, p);
123
122
  }
124
123
 
@@ -388,7 +387,7 @@ function addUnsafePrefixes(instance) {
388
387
  var reactSemverArray = React__default["default"].version.split('.').map(function (v) {
389
388
  return parseInt(v);
390
389
  });
391
- var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;
390
+ var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3 || reactSemverArray[0] >= 17;
392
391
 
393
392
  if (shouldPrefix) {
394
393
  instance.UNSAFE_componentWillUpdate = instance.componentWillUpdate;
@@ -680,7 +679,7 @@ var PortalManager = /*#__PURE__*/function (_React$Component) {
680
679
  return PortalManager;
681
680
  }(React__default["default"].Component);
682
681
 
683
- var version="11.1.0";
682
+ var version="12.1.0";
684
683
 
685
684
  function createCommonjsModule(fn, module) {
686
685
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -2915,15 +2914,26 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2915
2914
  return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2916
2915
  }
2917
2916
  }, {
2918
- key: "getEditedCellsZIndex",
2919
- value: function getEditedCellsZIndex() {
2917
+ key: "getEditedCellRect",
2918
+ value: function getEditedCellRect() {
2920
2919
  var _Handsontable$editors23;
2921
2920
 
2922
2921
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2923
2922
  args[_key23] = arguments[_key23];
2924
2923
  }
2925
2924
 
2926
- return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2925
+ return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2926
+ }
2927
+ }, {
2928
+ key: "getEditedCellsZIndex",
2929
+ value: function getEditedCellsZIndex() {
2930
+ var _Handsontable$editors24;
2931
+
2932
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2933
+ args[_key24] = arguments[_key24];
2934
+ }
2935
+
2936
+ return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2927
2937
  }
2928
2938
  }]);
2929
2939
 
@@ -19,13 +19,13 @@
19
19
  * In any case, you must not make any such use of this software as to develop software which may be
20
20
  * considered competitive with this software.
21
21
  *
22
- * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN &quot;AS IS&quot;
22
+ * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
23
23
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO
24
24
  * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
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.1.0 (built at Thu Jan 13 2022 12:32:00 GMT+0100 (Central European Standard Time))
28
+ * Version: 12.1.0 (built at Tue Jun 28 2022 12:09:21 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')) :
@@ -134,18 +134,17 @@ function _inherits(subClass, superClass) {
134
134
  }
135
135
 
136
136
  function _getPrototypeOf(o) {
137
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
137
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
138
138
  return o.__proto__ || Object.getPrototypeOf(o);
139
139
  };
140
140
  return _getPrototypeOf(o);
141
141
  }
142
142
 
143
143
  function _setPrototypeOf(o, p) {
144
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
144
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
145
145
  o.__proto__ = p;
146
146
  return o;
147
147
  };
148
-
149
148
  return _setPrototypeOf(o, p);
150
149
  }
151
150
 
@@ -415,7 +414,7 @@ function addUnsafePrefixes(instance) {
415
414
  var reactSemverArray = React__default["default"].version.split('.').map(function (v) {
416
415
  return parseInt(v);
417
416
  });
418
- var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;
417
+ var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3 || reactSemverArray[0] >= 17;
419
418
 
420
419
  if (shouldPrefix) {
421
420
  instance.UNSAFE_componentWillUpdate = instance.componentWillUpdate;
@@ -707,7 +706,7 @@ var PortalManager = /*#__PURE__*/function (_React$Component) {
707
706
  return PortalManager;
708
707
  }(React__default["default"].Component);
709
708
 
710
- var version="11.1.0";
709
+ var version="12.1.0";
711
710
 
712
711
  function createCommonjsModule(fn, module) {
713
712
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -2021,15 +2020,26 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2021
2020
  return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2022
2021
  }
2023
2022
  }, {
2024
- key: "getEditedCellsZIndex",
2025
- value: function getEditedCellsZIndex() {
2023
+ key: "getEditedCellRect",
2024
+ value: function getEditedCellRect() {
2026
2025
  var _Handsontable$editors23;
2027
2026
 
2028
2027
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2029
2028
  args[_key23] = arguments[_key23];
2030
2029
  }
2031
2030
 
2032
- return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2031
+ return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2032
+ }
2033
+ }, {
2034
+ key: "getEditedCellsZIndex",
2035
+ value: function getEditedCellsZIndex() {
2036
+ var _Handsontable$editors24;
2037
+
2038
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2039
+ args[_key24] = arguments[_key24];
2040
+ }
2041
+
2042
+ return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2033
2043
  }
2034
2044
  }]);
2035
2045