@handsontable/react 14.2.0 → 14.3.0-next-13fe676-20240409

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.
@@ -48,7 +48,7 @@ function _toPrimitive(t, r) {
48
48
  }
49
49
  function _toPropertyKey(t) {
50
50
  var i = _toPrimitive(t, "string");
51
- return "symbol" == typeof i ? i : String(i);
51
+ return "symbol" == typeof i ? i : i + "";
52
52
  }
53
53
  function _typeof(o) {
54
54
  "@babel/helpers - typeof";
@@ -356,7 +356,7 @@ var SettingsMapper = /*#__PURE__*/function () {
356
356
  function SettingsMapper() {
357
357
  _classCallCheck(this, SettingsMapper);
358
358
  }
359
- _createClass(SettingsMapper, null, [{
359
+ return _createClass(SettingsMapper, null, [{
360
360
  key: "getSettings",
361
361
  value:
362
362
  /**
@@ -383,16 +383,15 @@ var SettingsMapper = /*#__PURE__*/function () {
383
383
  return newSettings;
384
384
  }
385
385
  }]);
386
- return SettingsMapper;
387
386
  }();
388
387
 
389
388
  var HotColumn = /*#__PURE__*/function (_React$Component) {
390
- _inherits(HotColumn, _React$Component);
391
389
  function HotColumn() {
392
390
  _classCallCheck(this, HotColumn);
393
391
  return _callSuper(this, HotColumn, arguments);
394
392
  }
395
- _createClass(HotColumn, [{
393
+ _inherits(HotColumn, _React$Component);
394
+ return _createClass(HotColumn, [{
396
395
  key: "getSettingsProps",
397
396
  value:
398
397
  /**
@@ -481,14 +480,12 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
481
480
  return React.createElement(React.Fragment, null, editorPortal);
482
481
  }
483
482
  }]);
484
- return HotColumn;
485
483
  }(React.Component);
486
484
 
487
485
  /**
488
486
  * Component class used to manage the renderer component portals.
489
487
  */
490
488
  var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
491
- _inherits(RenderersPortalManager, _React$Component);
492
489
  function RenderersPortalManager() {
493
490
  var _this;
494
491
  _classCallCheck(this, RenderersPortalManager);
@@ -498,16 +495,16 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
498
495
  };
499
496
  return _this;
500
497
  }
501
- _createClass(RenderersPortalManager, [{
498
+ _inherits(RenderersPortalManager, _React$Component);
499
+ return _createClass(RenderersPortalManager, [{
502
500
  key: "render",
503
501
  value: function render() {
504
502
  return React.createElement(React.Fragment, null, this.state.portals);
505
503
  }
506
504
  }]);
507
- return RenderersPortalManager;
508
505
  }(React.Component);
509
506
 
510
- var version="14.2.0";
507
+ var version="14.3.0-next-13fe676-20240409";
511
508
 
512
509
  function createCommonjsModule(fn, module) {
513
510
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -521,6 +518,7 @@ function createCommonjsModule(fn, module) {
521
518
  * This source code is licensed under the MIT license found in the
522
519
  * LICENSE file in the root directory of this source tree.
523
520
  */
521
+
524
522
  var b = "function" === typeof Symbol && Symbol["for"],
525
523
  c = b ? Symbol["for"]("react.element") : 60103,
526
524
  d = b ? Symbol["for"]("react.portal") : 60106,
@@ -861,6 +859,7 @@ object-assign
861
859
  @license MIT
862
860
  */
863
861
 
862
+
864
863
  /* eslint-disable no-unused-vars */
865
864
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
866
865
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -942,6 +941,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
942
941
  * LICENSE file in the root directory of this source tree.
943
942
  */
944
943
 
944
+
945
945
  var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
946
946
  var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
947
947
 
@@ -1626,7 +1626,6 @@ var propTypes = createCommonjsModule(function (module) {
1626
1626
  module.exports = factoryWithThrowingShims();
1627
1627
  }
1628
1628
  });
1629
- var PropTypes = propTypes;
1630
1629
 
1631
1630
  /**
1632
1631
  * A Handsontable-ReactJS wrapper.
@@ -1651,7 +1650,6 @@ var PropTypes = propTypes;
1651
1650
  * @class HotTableCB
1652
1651
  */
1653
1652
  var HotTableClass = /*#__PURE__*/function (_React$Component) {
1654
- _inherits(HotTableClass, _React$Component);
1655
1653
  function HotTableClass() {
1656
1654
  var _this;
1657
1655
  _classCallCheck(this, HotTableClass);
@@ -1728,7 +1726,8 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1728
1726
  *
1729
1727
  * @returns The version number of the package.
1730
1728
  */
1731
- _createClass(HotTableClass, [{
1729
+ _inherits(HotTableClass, _React$Component);
1730
+ return _createClass(HotTableClass, [{
1732
1731
  key: "hotInstance",
1733
1732
  get:
1734
1733
  /**
@@ -1890,16 +1889,16 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1890
1889
  key: "makeEditorClass",
1891
1890
  value: function makeEditorClass(editorComponent) {
1892
1891
  var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
1893
- _inherits(CustomEditor, _Handsontable$editors);
1894
1892
  function CustomEditor(hotInstance) {
1895
1893
  var _this2;
1896
1894
  _classCallCheck(this, CustomEditor);
1897
1895
  _this2 = _callSuper(this, CustomEditor, [hotInstance]);
1898
- editorComponent.hotCustomEditorInstance = _assertThisInitialized(_this2);
1896
+ editorComponent.hotCustomEditorInstance = _this2;
1899
1897
  _this2.editorComponent = editorComponent;
1900
1898
  return _this2;
1901
1899
  }
1902
- _createClass(CustomEditor, [{
1900
+ _inherits(CustomEditor, _Handsontable$editors);
1901
+ return _createClass(CustomEditor, [{
1903
1902
  key: "focus",
1904
1903
  value: function focus() {}
1905
1904
  }, {
@@ -1915,7 +1914,6 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1915
1914
  key: "close",
1916
1915
  value: function close() {}
1917
1916
  }]);
1918
- return CustomEditor;
1919
1917
  }(Handsontable.editors.BaseEditor);
1920
1918
  // Fill with the rest of the BaseEditor methods
1921
1919
  Object.getOwnPropertyNames(Handsontable.editors.BaseEditor.prototype).forEach(function (propName) {
@@ -2142,15 +2140,14 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
2142
2140
  return version;
2143
2141
  }
2144
2142
  }]);
2145
- return HotTableClass;
2146
2143
  }(React.Component);
2147
2144
  /**
2148
2145
  * Prop types to be checked at runtime.
2149
2146
  */
2150
2147
  HotTableClass.propTypes = {
2151
- style: PropTypes.object,
2152
- id: PropTypes.string,
2153
- className: PropTypes.string
2148
+ style: propTypes.object,
2149
+ id: propTypes.string,
2150
+ className: propTypes.string
2154
2151
  };
2155
2152
 
2156
2153
  var _excluded = ["children"];
@@ -2170,7 +2167,6 @@ var HotTable = React.forwardRef(function (_ref, ref) {
2170
2167
  HotTable.version = HotTableClass.version;
2171
2168
 
2172
2169
  var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2173
- _inherits(BaseEditorComponent, _React$Component);
2174
2170
  function BaseEditorComponent() {
2175
2171
  var _this;
2176
2172
  _classCallCheck(this, BaseEditorComponent);
@@ -2189,7 +2185,8 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2189
2185
  _this.hot = null;
2190
2186
  return _this;
2191
2187
  }
2192
- _createClass(BaseEditorComponent, [{
2188
+ _inherits(BaseEditorComponent, _React$Component);
2189
+ return _createClass(BaseEditorComponent, [{
2193
2190
  key: "componentDidMount",
2194
2191
  value: function componentDidMount() {
2195
2192
  if (this.props.emitEditorInstance) {
@@ -2433,7 +2430,6 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2433
2430
  return (_Handsontable$editors24 = Handsontable.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2434
2431
  }
2435
2432
  }]);
2436
- return BaseEditorComponent;
2437
2433
  }(React.Component);
2438
2434
 
2439
2435
  export { BaseEditorComponent, HotColumn, HotTable, HotTableClass, HotTable as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsontable/react",
3
- "version": "14.2.0",
3
+ "version": "14.3.0-next-13fe676-20240409",
4
4
  "description": "Best Data Grid for React with Spreadsheet Look and Feel.",
5
5
  "author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
6
6
  "homepage": "https://handsontable.com",
@@ -66,10 +66,9 @@
66
66
  "@types/react-dom": "^18.2.0",
67
67
  "@types/react-redux": "^7.1.7",
68
68
  "babel-core": "^7.0.0-bridge.0",
69
- "cpy-cli": "^3.1.1",
70
69
  "cross-env": "^7.0.3",
71
- "handsontable": "^14.0.0",
72
- "jest": "^25.1.0",
70
+ "handsontable": "14.3.0-next-13fe676-20240409",
71
+ "jest": "^29.7.0",
73
72
  "prop-types": "^15.7.2",
74
73
  "react": "^18.2.0",
75
74
  "react-dom": "^18.2.0",
@@ -89,14 +88,14 @@
89
88
  "uglify-js": "^3.4.9"
90
89
  },
91
90
  "peerDependencies": {
92
- "handsontable": ">=14.0.0"
91
+ "handsontable": "14.3.0-next-13fe676-20240409"
93
92
  },
94
93
  "scripts": {
95
94
  "build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",
96
- "build:commonjs": "cross-env NODE_ENV=cjs rollup -c",
97
- "build:umd": "cross-env NODE_ENV=umd rollup -c",
98
- "build:es": "cross-env NODE_ENV=es rollup -c",
99
- "build:min": "cross-env NODE_ENV=min rollup -c",
95
+ "build:commonjs": "cross-env NODE_ENV=cjs rollup -c --bundleConfigAsCjs",
96
+ "build:umd": "cross-env NODE_ENV=umd rollup -c --bundleConfigAsCjs",
97
+ "build:es": "cross-env NODE_ENV=es rollup -c --bundleConfigAsCjs",
98
+ "build:min": "cross-env NODE_ENV=min rollup -c --bundleConfigAsCjs",
100
99
  "clean": "rimraf ./es/ && rimraf ./commonjs/ && rimraf ./dist/ && rimraf ./*.d.ts",
101
100
  "publish-package": "npm publish",
102
101
  "test": "jest",