@handsontable/react-wrapper 0.0.0-next-8ab62c9-20260513 → 0.0.0-next-8e54292-20260513
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 +0 -3
- package/commonjs/react-handsontable.js +27 -24
- package/dist/react-handsontable.js +28 -25
- package/dist/react-handsontable.js.map +1 -1
- package/dist/react-handsontable.min.js +2 -2
- package/dist/react-handsontable.min.js.map +1 -1
- package/es/react-handsontable.mjs +27 -24
- package/hotTableInner.d.ts +1 -1
- package/package.json +3 -4
- package/types.d.ts +9 -4
package/README.md
CHANGED
|
@@ -56,9 +56,6 @@
|
|
|
56
56
|
✅ [Hiding columns](https://handsontable.com/docs/react-data-grid/column-hiding/) <br>
|
|
57
57
|
✅ [Right-click context menu](https://handsontable.com/docs/react-data-grid/context-menu/) <br>
|
|
58
58
|
✅ [Row pagination](https://handsontable.com/docs/react-data-grid/rows-pagination/) <br>
|
|
59
|
-
✅ [Server-side data](https://handsontable.com/docs/react-data-grid/server-side-data/) <br>
|
|
60
|
-
✅ [Notifications](https://handsontable.com/docs/react-data-grid/notification/) <br>
|
|
61
|
-
✅ [Export to Excel](https://handsontable.com/docs/react-data-grid/export-to-excel/) <br>
|
|
62
59
|
|
|
63
60
|
<div id="installation">
|
|
64
61
|
|
|
@@ -682,11 +682,12 @@ function makeEditorClass(hooksRef, instanceRef) {
|
|
|
682
682
|
args[_key] = arguments[_key];
|
|
683
683
|
}
|
|
684
684
|
if (!AbstractMethods.includes(propName)) {
|
|
685
|
-
|
|
685
|
+
var _ref;
|
|
686
|
+
result = (_ref = baseMethod).call.apply(_ref, [this].concat(args)); // call super
|
|
686
687
|
}
|
|
687
688
|
if (MethodsMap[propName] && (_hooksRef$current = hooksRef.current) !== null && _hooksRef$current !== void 0 && _hooksRef$current[MethodsMap[propName]]) {
|
|
688
|
-
var
|
|
689
|
-
result = (
|
|
689
|
+
var _ref2;
|
|
690
|
+
result = (_ref2 = hooksRef.current[MethodsMap[propName]]).call.apply(_ref2, [this].concat(args));
|
|
690
691
|
}
|
|
691
692
|
return result;
|
|
692
693
|
}.bind(_this);
|
|
@@ -727,10 +728,10 @@ var EditorContext = /*#__PURE__*/React.createContext(undefined);
|
|
|
727
728
|
* @param {Ref} hooksRef Reference for component-based editor overridden hooks object.
|
|
728
729
|
* @param {RefObject} hotCustomEditorInstanceRef Reference to Handsontable-native editor instance.
|
|
729
730
|
*/
|
|
730
|
-
var EditorContextProvider = function EditorContextProvider(
|
|
731
|
-
var hooksRef =
|
|
732
|
-
hotCustomEditorInstanceRef =
|
|
733
|
-
children =
|
|
731
|
+
var EditorContextProvider = function EditorContextProvider(_ref3) {
|
|
732
|
+
var hooksRef = _ref3.hooksRef,
|
|
733
|
+
hotCustomEditorInstanceRef = _ref3.hotCustomEditorInstanceRef,
|
|
734
|
+
children = _ref3.children;
|
|
734
735
|
return /*#__PURE__*/React__default["default"].createElement(EditorContext.Provider, {
|
|
735
736
|
value: {
|
|
736
737
|
hooksRef: hooksRef,
|
|
@@ -799,9 +800,9 @@ function applyEditorPosition(el, editor, hot, td) {
|
|
|
799
800
|
* @returns {UseHotEditorImpl} Editor API methods
|
|
800
801
|
*/
|
|
801
802
|
function useHotEditor(overriddenHooks, deps) {
|
|
802
|
-
var
|
|
803
|
-
hooksRef =
|
|
804
|
-
hotCustomEditorInstanceRef =
|
|
803
|
+
var _ref4 = React.useContext(EditorContext),
|
|
804
|
+
hooksRef = _ref4.hooksRef,
|
|
805
|
+
hotCustomEditorInstanceRef = _ref4.hotCustomEditorInstanceRef;
|
|
805
806
|
var _useState = React.useState(0),
|
|
806
807
|
_useState2 = _slicedToArray(_useState, 2),
|
|
807
808
|
rerenderTrigger = _useState2[0],
|
|
@@ -845,11 +846,13 @@ function useHotEditor(overriddenHooks, deps) {
|
|
|
845
846
|
},
|
|
846
847
|
get row() {
|
|
847
848
|
var _hotCustomEditorInsta6;
|
|
848
|
-
|
|
849
|
+
var row = (_hotCustomEditorInsta6 = hotCustomEditorInstanceRef.current) === null || _hotCustomEditorInsta6 === void 0 ? void 0 : _hotCustomEditorInsta6.row;
|
|
850
|
+
return row !== null && row !== void 0 ? row : undefined;
|
|
849
851
|
},
|
|
850
852
|
get col() {
|
|
851
853
|
var _hotCustomEditorInsta7;
|
|
852
|
-
|
|
854
|
+
var col = (_hotCustomEditorInsta7 = hotCustomEditorInstanceRef.current) === null || _hotCustomEditorInsta7 === void 0 ? void 0 : _hotCustomEditorInsta7.col;
|
|
855
|
+
return col !== null && col !== void 0 ? col : undefined;
|
|
853
856
|
}
|
|
854
857
|
};
|
|
855
858
|
}, [rerenderTrigger, hotCustomEditorInstanceRef, deferredValue]);
|
|
@@ -859,23 +862,23 @@ function useHotEditor(overriddenHooks, deps) {
|
|
|
859
862
|
|
|
860
863
|
// EditorComponent props - children typed to work with JSX syntax
|
|
861
864
|
|
|
862
|
-
function EditorComponent(
|
|
863
|
-
var _onPrepare =
|
|
864
|
-
_onClose =
|
|
865
|
-
_onOpen =
|
|
866
|
-
_onFocus =
|
|
867
|
-
children =
|
|
868
|
-
|
|
869
|
-
shortcutsGroup =
|
|
870
|
-
shortcuts =
|
|
865
|
+
function EditorComponent(_ref5) {
|
|
866
|
+
var _onPrepare = _ref5.onPrepare,
|
|
867
|
+
_onClose = _ref5.onClose,
|
|
868
|
+
_onOpen = _ref5.onOpen,
|
|
869
|
+
_onFocus = _ref5.onFocus,
|
|
870
|
+
children = _ref5.children,
|
|
871
|
+
_ref5$shortcutsGroup = _ref5.shortcutsGroup,
|
|
872
|
+
shortcutsGroup = _ref5$shortcutsGroup === void 0 ? "custom-editor" : _ref5$shortcutsGroup,
|
|
873
|
+
shortcuts = _ref5.shortcuts;
|
|
871
874
|
var mainElementRef = React.useRef(null);
|
|
872
875
|
var currentValue = React.useRef(undefined);
|
|
873
876
|
var _useState5 = React.useState(),
|
|
874
877
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
875
878
|
themeClassName = _useState6[0],
|
|
876
879
|
setThemeClassName = _useState6[1];
|
|
877
|
-
var
|
|
878
|
-
hotCustomEditorInstanceRef =
|
|
880
|
+
var _ref6 = React.useContext(EditorContext),
|
|
881
|
+
hotCustomEditorInstanceRef = _ref6.hotCustomEditorInstanceRef;
|
|
879
882
|
var registerShortcuts = React.useCallback(function () {
|
|
880
883
|
var _hotCustomEditorInsta8, _hotCustomEditorInsta9, _hotCustomEditorInsta0;
|
|
881
884
|
if (!((_hotCustomEditorInsta8 = hotCustomEditorInstanceRef.current) !== null && _hotCustomEditorInsta8 !== void 0 && _hotCustomEditorInsta8.hot)) return;
|
|
@@ -1079,7 +1082,7 @@ var HotColumn = function HotColumn(props) {
|
|
|
1079
1082
|
}, editorPortal);
|
|
1080
1083
|
};
|
|
1081
1084
|
|
|
1082
|
-
var version="0.0.0-next-
|
|
1085
|
+
var version="0.0.0-next-8e54292-20260513";
|
|
1083
1086
|
|
|
1084
1087
|
/**
|
|
1085
1088
|
* Component used to manage the renderer component portals.
|
|
@@ -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: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-8e54292-20260513 (built at Wed May 13 2026 10:14:31 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')) :
|
|
@@ -707,11 +707,12 @@ function makeEditorClass(hooksRef, instanceRef) {
|
|
|
707
707
|
args[_key] = arguments[_key];
|
|
708
708
|
}
|
|
709
709
|
if (!AbstractMethods.includes(propName)) {
|
|
710
|
-
|
|
710
|
+
var _ref;
|
|
711
|
+
result = (_ref = baseMethod).call.apply(_ref, [this].concat(args)); // call super
|
|
711
712
|
}
|
|
712
713
|
if (MethodsMap[propName] && (_hooksRef$current = hooksRef.current) !== null && _hooksRef$current !== void 0 && _hooksRef$current[MethodsMap[propName]]) {
|
|
713
|
-
var
|
|
714
|
-
result = (
|
|
714
|
+
var _ref2;
|
|
715
|
+
result = (_ref2 = hooksRef.current[MethodsMap[propName]]).call.apply(_ref2, [this].concat(args));
|
|
715
716
|
}
|
|
716
717
|
return result;
|
|
717
718
|
}.bind(_this);
|
|
@@ -752,10 +753,10 @@ var EditorContext = /*#__PURE__*/React.createContext(undefined);
|
|
|
752
753
|
* @param {Ref} hooksRef Reference for component-based editor overridden hooks object.
|
|
753
754
|
* @param {RefObject} hotCustomEditorInstanceRef Reference to Handsontable-native editor instance.
|
|
754
755
|
*/
|
|
755
|
-
var EditorContextProvider = function EditorContextProvider(
|
|
756
|
-
var hooksRef =
|
|
757
|
-
hotCustomEditorInstanceRef =
|
|
758
|
-
children =
|
|
756
|
+
var EditorContextProvider = function EditorContextProvider(_ref3) {
|
|
757
|
+
var hooksRef = _ref3.hooksRef,
|
|
758
|
+
hotCustomEditorInstanceRef = _ref3.hotCustomEditorInstanceRef,
|
|
759
|
+
children = _ref3.children;
|
|
759
760
|
return /*#__PURE__*/React__default["default"].createElement(EditorContext.Provider, {
|
|
760
761
|
value: {
|
|
761
762
|
hooksRef: hooksRef,
|
|
@@ -824,9 +825,9 @@ function applyEditorPosition(el, editor, hot, td) {
|
|
|
824
825
|
* @returns {UseHotEditorImpl} Editor API methods
|
|
825
826
|
*/
|
|
826
827
|
function useHotEditor(overriddenHooks, deps) {
|
|
827
|
-
var
|
|
828
|
-
hooksRef =
|
|
829
|
-
hotCustomEditorInstanceRef =
|
|
828
|
+
var _ref4 = React.useContext(EditorContext),
|
|
829
|
+
hooksRef = _ref4.hooksRef,
|
|
830
|
+
hotCustomEditorInstanceRef = _ref4.hotCustomEditorInstanceRef;
|
|
830
831
|
var _useState = React.useState(0),
|
|
831
832
|
_useState2 = _slicedToArray(_useState, 2),
|
|
832
833
|
rerenderTrigger = _useState2[0],
|
|
@@ -870,11 +871,13 @@ function useHotEditor(overriddenHooks, deps) {
|
|
|
870
871
|
},
|
|
871
872
|
get row() {
|
|
872
873
|
var _hotCustomEditorInsta6;
|
|
873
|
-
|
|
874
|
+
var row = (_hotCustomEditorInsta6 = hotCustomEditorInstanceRef.current) === null || _hotCustomEditorInsta6 === void 0 ? void 0 : _hotCustomEditorInsta6.row;
|
|
875
|
+
return row !== null && row !== void 0 ? row : undefined;
|
|
874
876
|
},
|
|
875
877
|
get col() {
|
|
876
878
|
var _hotCustomEditorInsta7;
|
|
877
|
-
|
|
879
|
+
var col = (_hotCustomEditorInsta7 = hotCustomEditorInstanceRef.current) === null || _hotCustomEditorInsta7 === void 0 ? void 0 : _hotCustomEditorInsta7.col;
|
|
880
|
+
return col !== null && col !== void 0 ? col : undefined;
|
|
878
881
|
}
|
|
879
882
|
};
|
|
880
883
|
}, [rerenderTrigger, hotCustomEditorInstanceRef, deferredValue]);
|
|
@@ -884,23 +887,23 @@ function useHotEditor(overriddenHooks, deps) {
|
|
|
884
887
|
|
|
885
888
|
// EditorComponent props - children typed to work with JSX syntax
|
|
886
889
|
|
|
887
|
-
function EditorComponent(
|
|
888
|
-
var _onPrepare =
|
|
889
|
-
_onClose =
|
|
890
|
-
_onOpen =
|
|
891
|
-
_onFocus =
|
|
892
|
-
children =
|
|
893
|
-
|
|
894
|
-
shortcutsGroup =
|
|
895
|
-
shortcuts =
|
|
890
|
+
function EditorComponent(_ref5) {
|
|
891
|
+
var _onPrepare = _ref5.onPrepare,
|
|
892
|
+
_onClose = _ref5.onClose,
|
|
893
|
+
_onOpen = _ref5.onOpen,
|
|
894
|
+
_onFocus = _ref5.onFocus,
|
|
895
|
+
children = _ref5.children,
|
|
896
|
+
_ref5$shortcutsGroup = _ref5.shortcutsGroup,
|
|
897
|
+
shortcutsGroup = _ref5$shortcutsGroup === void 0 ? "custom-editor" : _ref5$shortcutsGroup,
|
|
898
|
+
shortcuts = _ref5.shortcuts;
|
|
896
899
|
var mainElementRef = React.useRef(null);
|
|
897
900
|
var currentValue = React.useRef(undefined);
|
|
898
901
|
var _useState5 = React.useState(),
|
|
899
902
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
900
903
|
themeClassName = _useState6[0],
|
|
901
904
|
setThemeClassName = _useState6[1];
|
|
902
|
-
var
|
|
903
|
-
hotCustomEditorInstanceRef =
|
|
905
|
+
var _ref6 = React.useContext(EditorContext),
|
|
906
|
+
hotCustomEditorInstanceRef = _ref6.hotCustomEditorInstanceRef;
|
|
904
907
|
var registerShortcuts = React.useCallback(function () {
|
|
905
908
|
var _hotCustomEditorInsta8, _hotCustomEditorInsta9, _hotCustomEditorInsta0;
|
|
906
909
|
if (!((_hotCustomEditorInsta8 = hotCustomEditorInstanceRef.current) !== null && _hotCustomEditorInsta8 !== void 0 && _hotCustomEditorInsta8.hot)) return;
|
|
@@ -1104,7 +1107,7 @@ var HotColumn = function HotColumn(props) {
|
|
|
1104
1107
|
}, editorPortal);
|
|
1105
1108
|
};
|
|
1106
1109
|
|
|
1107
|
-
var version="0.0.0-next-
|
|
1110
|
+
var version="0.0.0-next-8e54292-20260513";
|
|
1108
1111
|
|
|
1109
1112
|
/**
|
|
1110
1113
|
* Component used to manage the renderer component portals.
|