@handsontable/react 14.3.0 → 14.4.0-next-0a79a1f-20240521

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.
@@ -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: 14.3.0 (built at Tue Apr 16 2024 10:25:34 GMT+0200 (Central European Summer Time))
28
+ * Version: 14.4.0-next-0a79a1f-20240521 (built at Tue May 21 2024 10:49:08 GMT+0000 (Coordinated Universal 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'), require('handsontable/renderers/registry'), require('handsontable/editors/registry')) :
@@ -75,25 +75,16 @@ function _toPrimitive(t, r) {
75
75
  if ("object" != typeof t || !t) return t;
76
76
  var e = t[Symbol.toPrimitive];
77
77
  if (void 0 !== e) {
78
- var i = e.call(t, r || "default");
78
+ var i = e.call(t, r );
79
79
  if ("object" != typeof i) return i;
80
80
  throw new TypeError("@@toPrimitive must return a primitive value.");
81
81
  }
82
- return ("string" === r ? String : Number)(t);
82
+ return (String )(t);
83
83
  }
84
84
  function _toPropertyKey(t) {
85
85
  var i = _toPrimitive(t, "string");
86
86
  return "symbol" == typeof i ? i : i + "";
87
87
  }
88
- function _typeof(o) {
89
- "@babel/helpers - typeof";
90
-
91
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
92
- return typeof o;
93
- } : function (o) {
94
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
95
- }, _typeof(o);
96
- }
97
88
  function _classCallCheck(instance, Constructor) {
98
89
  if (!(instance instanceof Constructor)) {
99
90
  throw new TypeError("Cannot call a class as a function");
@@ -162,12 +153,11 @@ function _setPrototypeOf(o, p) {
162
153
  function _objectWithoutPropertiesLoose(source, excluded) {
163
154
  if (source == null) return {};
164
155
  var target = {};
165
- var sourceKeys = Object.keys(source);
166
- var key, i;
167
- for (i = 0; i < sourceKeys.length; i++) {
168
- key = sourceKeys[i];
169
- if (excluded.indexOf(key) >= 0) continue;
170
- target[key] = source[key];
156
+ for (var key in source) {
157
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
158
+ if (excluded.indexOf(key) >= 0) continue;
159
+ target[key] = source[key];
160
+ }
171
161
  }
172
162
  return target;
173
163
  }
@@ -398,20 +388,37 @@ var SettingsMapper = /*#__PURE__*/function () {
398
388
  * Parse component settings into Handosntable-compatible settings.
399
389
  *
400
390
  * @param {Object} properties Object containing properties from the HotTable object.
391
+ * @param {Object} additionalSettings Additional settings.
392
+ * @param {boolean} additionalSettings.isInit Flag determining whether the settings are being set during initialization.
393
+ * @param {string[]} additionalSettings.initOnlySettingKeys Array of keys that can be set only during initialization.
401
394
  * @returns {Object} Handsontable-compatible settings object.
402
395
  */
403
396
  function getSettings(properties) {
397
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
398
+ _ref$prevProps = _ref.prevProps,
399
+ prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps,
400
+ _ref$isInit = _ref.isInit,
401
+ isInit = _ref$isInit === void 0 ? false : _ref$isInit,
402
+ _ref$initOnlySettingK = _ref.initOnlySettingKeys,
403
+ initOnlySettingKeys = _ref$initOnlySettingK === void 0 ? [] : _ref$initOnlySettingK;
404
+ var shouldSkipProp = function shouldSkipProp(key) {
405
+ // Omit settings that can be set only during initialization and are intentionally modified.
406
+ if (!isInit && initOnlySettingKeys.includes(key)) {
407
+ return prevProps[key] === properties[key];
408
+ }
409
+ return false;
410
+ };
404
411
  var newSettings = {};
405
412
  if (properties.settings) {
406
413
  var settings = properties.settings;
407
414
  for (var key in settings) {
408
- if (settings.hasOwnProperty(key)) {
415
+ if (settings.hasOwnProperty(key) && !shouldSkipProp(key)) {
409
416
  newSettings[key] = settings[key];
410
417
  }
411
418
  }
412
419
  }
413
420
  for (var _key in properties) {
414
- if (_key !== 'settings' && _key !== 'children' && properties.hasOwnProperty(_key)) {
421
+ if (_key !== 'settings' && _key !== 'children' && !shouldSkipProp(_key) && properties.hasOwnProperty(_key)) {
415
422
  newSettings[_key] = properties[_key];
416
423
  }
417
424
  }
@@ -539,276 +546,29 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
539
546
  }]);
540
547
  }(React__default["default"].Component);
541
548
 
542
- var version="14.3.0";
549
+ var version="14.4.0-next-0a79a1f-20240521";
543
550
 
544
- function createCommonjsModule(fn, module) {
545
- return module = { exports: {} }, fn(module, module.exports), module.exports;
551
+ function getDefaultExportFromCjs (x) {
552
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
546
553
  }
547
554
 
548
- /** @license React v16.13.1
549
- * react-is.production.min.js
550
- *
551
- * Copyright (c) Facebook, Inc. and its affiliates.
555
+ var propTypes = {exports: {}};
556
+
557
+ /**
558
+ * Copyright (c) 2013-present, Facebook, Inc.
552
559
  *
553
560
  * This source code is licensed under the MIT license found in the
554
561
  * LICENSE file in the root directory of this source tree.
555
562
  */
556
-
557
- var b = "function" === typeof Symbol && Symbol["for"],
558
- c = b ? Symbol["for"]("react.element") : 60103,
559
- d = b ? Symbol["for"]("react.portal") : 60106,
560
- e = b ? Symbol["for"]("react.fragment") : 60107,
561
- f = b ? Symbol["for"]("react.strict_mode") : 60108,
562
- g = b ? Symbol["for"]("react.profiler") : 60114,
563
- h = b ? Symbol["for"]("react.provider") : 60109,
564
- k = b ? Symbol["for"]("react.context") : 60110,
565
- l = b ? Symbol["for"]("react.async_mode") : 60111,
566
- m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
567
- n = b ? Symbol["for"]("react.forward_ref") : 60112,
568
- p = b ? Symbol["for"]("react.suspense") : 60113,
569
- q = b ? Symbol["for"]("react.suspense_list") : 60120,
570
- r = b ? Symbol["for"]("react.memo") : 60115,
571
- t = b ? Symbol["for"]("react.lazy") : 60116,
572
- v = b ? Symbol["for"]("react.block") : 60121,
573
- w = b ? Symbol["for"]("react.fundamental") : 60117,
574
- x = b ? Symbol["for"]("react.responder") : 60118,
575
- y = b ? Symbol["for"]("react.scope") : 60119;
576
- function z(a) {
577
- if ("object" === _typeof(a) && null !== a) {
578
- var u = a.$$typeof;
579
- switch (u) {
580
- case c:
581
- switch (a = a.type, a) {
582
- case l:
583
- case m:
584
- case e:
585
- case g:
586
- case f:
587
- case p:
588
- return a;
589
- default:
590
- switch (a = a && a.$$typeof, a) {
591
- case k:
592
- case n:
593
- case t:
594
- case r:
595
- case h:
596
- return a;
597
- default:
598
- return u;
599
- }
600
- }
601
- case d:
602
- return u;
603
- }
604
- }
605
- }
606
- function A(a) {
607
- return z(a) === m;
608
- }
609
- var AsyncMode = l;
610
- var ConcurrentMode = m;
611
- var ContextConsumer = k;
612
- var ContextProvider = h;
613
- var Element = c;
614
- var ForwardRef = n;
615
- var Fragment = e;
616
- var Lazy = t;
617
- var Memo = r;
618
- var Portal = d;
619
- var Profiler = g;
620
- var StrictMode = f;
621
- var Suspense = p;
622
- var isAsyncMode = function isAsyncMode(a) {
623
- return A(a) || z(a) === l;
624
- };
625
- var isConcurrentMode = A;
626
- var isContextConsumer = function isContextConsumer(a) {
627
- return z(a) === k;
628
- };
629
- var isContextProvider = function isContextProvider(a) {
630
- return z(a) === h;
631
- };
632
- var isElement = function isElement(a) {
633
- return "object" === _typeof(a) && null !== a && a.$$typeof === c;
634
- };
635
- var isForwardRef = function isForwardRef(a) {
636
- return z(a) === n;
637
- };
638
- var isFragment = function isFragment(a) {
639
- return z(a) === e;
640
- };
641
- var isLazy = function isLazy(a) {
642
- return z(a) === t;
643
- };
644
- var isMemo = function isMemo(a) {
645
- return z(a) === r;
646
- };
647
- var isPortal = function isPortal(a) {
648
- return z(a) === d;
649
- };
650
- var isProfiler = function isProfiler(a) {
651
- return z(a) === g;
652
- };
653
- var isStrictMode = function isStrictMode(a) {
654
- return z(a) === f;
655
- };
656
- var isSuspense = function isSuspense(a) {
657
- return z(a) === p;
658
- };
659
- var isValidElementType = function isValidElementType(a) {
660
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
661
- };
662
- var typeOf = z;
663
- var reactIs_production_min = {
664
- AsyncMode: AsyncMode,
665
- ConcurrentMode: ConcurrentMode,
666
- ContextConsumer: ContextConsumer,
667
- ContextProvider: ContextProvider,
668
- Element: Element,
669
- ForwardRef: ForwardRef,
670
- Fragment: Fragment,
671
- Lazy: Lazy,
672
- Memo: Memo,
673
- Portal: Portal,
674
- Profiler: Profiler,
675
- StrictMode: StrictMode,
676
- Suspense: Suspense,
677
- isAsyncMode: isAsyncMode,
678
- isConcurrentMode: isConcurrentMode,
679
- isContextConsumer: isContextConsumer,
680
- isContextProvider: isContextProvider,
681
- isElement: isElement,
682
- isForwardRef: isForwardRef,
683
- isFragment: isFragment,
684
- isLazy: isLazy,
685
- isMemo: isMemo,
686
- isPortal: isPortal,
687
- isProfiler: isProfiler,
688
- isStrictMode: isStrictMode,
689
- isSuspense: isSuspense,
690
- isValidElementType: isValidElementType,
691
- typeOf: typeOf
692
- };
693
-
694
- var reactIs_development = createCommonjsModule(function (module, exports) {
695
- });
696
- reactIs_development.AsyncMode;
697
- reactIs_development.ConcurrentMode;
698
- reactIs_development.ContextConsumer;
699
- reactIs_development.ContextProvider;
700
- reactIs_development.Element;
701
- reactIs_development.ForwardRef;
702
- reactIs_development.Fragment;
703
- reactIs_development.Lazy;
704
- reactIs_development.Memo;
705
- reactIs_development.Portal;
706
- reactIs_development.Profiler;
707
- reactIs_development.StrictMode;
708
- reactIs_development.Suspense;
709
- reactIs_development.isAsyncMode;
710
- reactIs_development.isConcurrentMode;
711
- reactIs_development.isContextConsumer;
712
- reactIs_development.isContextProvider;
713
- reactIs_development.isElement;
714
- reactIs_development.isForwardRef;
715
- reactIs_development.isFragment;
716
- reactIs_development.isLazy;
717
- reactIs_development.isMemo;
718
- reactIs_development.isPortal;
719
- reactIs_development.isProfiler;
720
- reactIs_development.isStrictMode;
721
- reactIs_development.isSuspense;
722
- reactIs_development.isValidElementType;
723
- reactIs_development.typeOf;
724
-
725
- createCommonjsModule(function (module) {
726
-
727
- {
728
- module.exports = reactIs_production_min;
729
- }
730
- });
731
-
732
- /*
733
- object-assign
734
- (c) Sindre Sorhus
735
- @license MIT
736
- */
737
-
738
-
739
- /* eslint-disable no-unused-vars */
740
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
741
- var hasOwnProperty = Object.prototype.hasOwnProperty;
742
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
743
- function toObject(val) {
744
- if (val === null || val === undefined) {
745
- throw new TypeError('Object.assign cannot be called with null or undefined');
746
- }
747
- return Object(val);
748
- }
749
- function shouldUseNative() {
750
- try {
751
- if (!Object.assign) {
752
- return false;
753
- }
754
-
755
- // Detect buggy property enumeration order in older V8 versions.
756
-
757
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
758
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
759
- test1[5] = 'de';
760
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
761
- return false;
762
- }
763
-
764
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
765
- var test2 = {};
766
- for (var i = 0; i < 10; i++) {
767
- test2['_' + String.fromCharCode(i)] = i;
768
- }
769
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
770
- return test2[n];
771
- });
772
- if (order2.join('') !== '0123456789') {
773
- return false;
774
- }
775
-
776
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
777
- var test3 = {};
778
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
779
- test3[letter] = letter;
780
- });
781
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
782
- return false;
783
- }
784
- return true;
785
- } catch (err) {
786
- // We don't expect any of the above to throw, but better to be safe.
787
- return false;
788
- }
563
+ var ReactPropTypesSecret_1;
564
+ var hasRequiredReactPropTypesSecret;
565
+ function requireReactPropTypesSecret() {
566
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
567
+ hasRequiredReactPropTypesSecret = 1;
568
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
569
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
570
+ return ReactPropTypesSecret_1;
789
571
  }
790
- shouldUseNative() ? Object.assign : function (target, source) {
791
- var from;
792
- var to = toObject(target);
793
- var symbols;
794
- for (var s = 1; s < arguments.length; s++) {
795
- from = Object(arguments[s]);
796
- for (var key in from) {
797
- if (hasOwnProperty.call(from, key)) {
798
- to[key] = from[key];
799
- }
800
- }
801
- if (getOwnPropertySymbols) {
802
- symbols = getOwnPropertySymbols(from);
803
- for (var i = 0; i < symbols.length; i++) {
804
- if (propIsEnumerable.call(from, symbols[i])) {
805
- to[symbols[i]] = from[symbols[i]];
806
- }
807
- }
808
- }
809
- }
810
- return to;
811
- };
812
572
 
813
573
  /**
814
574
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -816,73 +576,73 @@ shouldUseNative() ? Object.assign : function (target, source) {
816
576
  * This source code is licensed under the MIT license found in the
817
577
  * LICENSE file in the root directory of this source tree.
818
578
  */
819
-
820
-
821
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
822
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
823
-
824
- Function.call.bind(Object.prototype.hasOwnProperty);
825
-
826
- function emptyFunction() {}
827
- function emptyFunctionWithReset() {}
828
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
829
- var factoryWithThrowingShims = function factoryWithThrowingShims() {
830
- function shim(props, propName, componentName, location, propFullName, secret) {
831
- if (secret === ReactPropTypesSecret_1) {
832
- // It is still safe when called from React.
833
- return;
834
- }
835
- var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
836
- err.name = 'Invariant Violation';
837
- throw err;
838
- }
839
- shim.isRequired = shim;
840
- function getShim() {
841
- return shim;
842
- }
843
- // Important!
844
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
845
- var ReactPropTypes = {
846
- array: shim,
847
- bigint: shim,
848
- bool: shim,
849
- func: shim,
850
- number: shim,
851
- object: shim,
852
- string: shim,
853
- symbol: shim,
854
- any: shim,
855
- arrayOf: getShim,
856
- element: shim,
857
- elementType: shim,
858
- instanceOf: getShim,
859
- node: shim,
860
- objectOf: getShim,
861
- oneOf: getShim,
862
- oneOfType: getShim,
863
- shape: getShim,
864
- exact: getShim,
865
- checkPropTypes: emptyFunctionWithReset,
866
- resetWarningCache: emptyFunction
579
+ var factoryWithThrowingShims;
580
+ var hasRequiredFactoryWithThrowingShims;
581
+ function requireFactoryWithThrowingShims() {
582
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
583
+ hasRequiredFactoryWithThrowingShims = 1;
584
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
585
+ function emptyFunction() {}
586
+ function emptyFunctionWithReset() {}
587
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
588
+ factoryWithThrowingShims = function factoryWithThrowingShims() {
589
+ function shim(props, propName, componentName, location, propFullName, secret) {
590
+ if (secret === ReactPropTypesSecret) {
591
+ // It is still safe when called from React.
592
+ return;
593
+ }
594
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
595
+ err.name = 'Invariant Violation';
596
+ throw err;
597
+ }
598
+ shim.isRequired = shim;
599
+ function getShim() {
600
+ return shim;
601
+ }
602
+ // Important!
603
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
604
+ var ReactPropTypes = {
605
+ array: shim,
606
+ bigint: shim,
607
+ bool: shim,
608
+ func: shim,
609
+ number: shim,
610
+ object: shim,
611
+ string: shim,
612
+ symbol: shim,
613
+ any: shim,
614
+ arrayOf: getShim,
615
+ element: shim,
616
+ elementType: shim,
617
+ instanceOf: getShim,
618
+ node: shim,
619
+ objectOf: getShim,
620
+ oneOf: getShim,
621
+ oneOfType: getShim,
622
+ shape: getShim,
623
+ exact: getShim,
624
+ checkPropTypes: emptyFunctionWithReset,
625
+ resetWarningCache: emptyFunction
626
+ };
627
+ ReactPropTypes.PropTypes = ReactPropTypes;
628
+ return ReactPropTypes;
867
629
  };
868
- ReactPropTypes.PropTypes = ReactPropTypes;
869
- return ReactPropTypes;
870
- };
871
-
872
- var propTypes = createCommonjsModule(function (module) {
873
- /**
874
- * Copyright (c) 2013-present, Facebook, Inc.
875
- *
876
- * This source code is licensed under the MIT license found in the
877
- * LICENSE file in the root directory of this source tree.
878
- */
630
+ return factoryWithThrowingShims;
631
+ }
879
632
 
880
- {
881
- // By explicitly using `prop-types` you are opting into new production behavior.
882
- // http://fb.me/prop-types-in-prod
883
- module.exports = factoryWithThrowingShims();
884
- }
885
- });
633
+ /**
634
+ * Copyright (c) 2013-present, Facebook, Inc.
635
+ *
636
+ * This source code is licensed under the MIT license found in the
637
+ * LICENSE file in the root directory of this source tree.
638
+ */
639
+ {
640
+ // By explicitly using `prop-types` you are opting into new production behavior.
641
+ // http://fb.me/prop-types-in-prod
642
+ propTypes.exports = requireFactoryWithThrowingShims()();
643
+ }
644
+ var propTypesExports = propTypes.exports;
645
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
886
646
 
887
647
  /**
888
648
  * A Handsontable-ReactJS wrapper.
@@ -999,11 +759,18 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
999
759
  return null;
1000
760
  }
1001
761
  }
762
+ /**
763
+ * Returns `true` if the `hotInstance` exists, but was destroyed.
764
+ *
765
+ * @private
766
+ * @returns {boolean}
767
+ */,
768
+ set:
1002
769
  /**
1003
770
  * Setter for the property storing the Handsontable instance.
1004
771
  * @param {Handsontable} hotInstance The Handsontable instance.
1005
- */,
1006
- set: function set(hotInstance) {
772
+ */
773
+ function set(hotInstance) {
1007
774
  this.__hotInstance = hotInstance;
1008
775
  }
1009
776
  /**
@@ -1011,6 +778,11 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1011
778
  *
1012
779
  * @returns {Map}
1013
780
  */
781
+ }, {
782
+ key: "_isHotInstanceDestroyed",
783
+ value: function _isHotInstanceDestroyed() {
784
+ return this.__hotInstance && this.__hotInstance.isDestroyed;
785
+ }
1014
786
  }, {
1015
787
  key: "getPortalContainerCache",
1016
788
  value: function getPortalContainerCache() {
@@ -1211,12 +983,24 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1211
983
  /**
1212
984
  * Create a new settings object containing the column settings and global editors and renderers.
1213
985
  *
986
+ * @param {boolean} [init=false] `true` if called on Handsontable initialization.
987
+ * @param {HotTableProps} [prevProps] The previous properties object.
1214
988
  * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.
1215
989
  */
1216
990
  }, {
1217
991
  key: "createNewGlobalSettings",
1218
992
  value: function createNewGlobalSettings() {
1219
- var newSettings = SettingsMapper.getSettings(this.props);
993
+ var _this$hotInstance;
994
+ var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
995
+ var prevProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
996
+ var initOnlySettingKeys = !this._isHotInstanceDestroyed() ?
997
+ // Needed for React's double-rendering.
998
+ ((_this$hotInstance = this.hotInstance) === null || _this$hotInstance === void 0 || (_this$hotInstance = _this$hotInstance.getSettings()) === null || _this$hotInstance === void 0 ? void 0 : _this$hotInstance._initOnlySettings) || [] : [];
999
+ var newSettings = SettingsMapper.getSettings(this.props, {
1000
+ prevProps: prevProps,
1001
+ isInit: init,
1002
+ initOnlySettingKeys: initOnlySettingKeys
1003
+ });
1220
1004
  var globalRendererNode = this.getGlobalRendererElement();
1221
1005
  var globalEditorNode = this.getGlobalEditorElement();
1222
1006
  newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;
@@ -1322,7 +1106,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1322
1106
  key: "componentDidMount",
1323
1107
  value: function componentDidMount() {
1324
1108
  var _this3 = this;
1325
- var newGlobalSettings = this.createNewGlobalSettings();
1109
+ var newGlobalSettings = this.createNewGlobalSettings(true);
1326
1110
  this.hotInstance = new Handsontable__default["default"].Core(this.hotElementRef, newGlobalSettings);
1327
1111
  this.hotInstance.addHook('beforeViewRender', function () {
1328
1112
  return _this3.handsontableBeforeViewRender();
@@ -1339,9 +1123,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1339
1123
  */
1340
1124
  }, {
1341
1125
  key: "componentDidUpdate",
1342
- value: function componentDidUpdate() {
1126
+ value: function componentDidUpdate(prevProps) {
1343
1127
  this.clearCache();
1344
- var newGlobalSettings = this.createNewGlobalSettings();
1128
+ var newGlobalSettings = this.createNewGlobalSettings(false, prevProps);
1345
1129
  this.updateHot(newGlobalSettings);
1346
1130
  this.displayAutoSizeWarning(newGlobalSettings);
1347
1131
  }
@@ -1402,9 +1186,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
1402
1186
  * Prop types to be checked at runtime.
1403
1187
  */
1404
1188
  HotTableClass.propTypes = {
1405
- style: propTypes.object,
1406
- id: propTypes.string,
1407
- className: propTypes.string
1189
+ style: PropTypes.object,
1190
+ id: PropTypes.string,
1191
+ className: PropTypes.string
1408
1192
  };
1409
1193
 
1410
1194
  var _excluded = ["children"];