@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.
- package/commonjs/react-handsontable.js +927 -885
- package/dist/react-handsontable.js +140 -356
- 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 +927 -885
- package/hotTableClass.d.ts +11 -2
- package/package.json +13 -13
- package/settingsMapper.d.ts +8 -1
package/hotTableClass.d.ts
CHANGED
|
@@ -112,6 +112,13 @@ declare class HotTableClass extends React.Component<HotTableProps, {}> {
|
|
|
112
112
|
* Getter for the property storing the Handsontable instance.
|
|
113
113
|
*/
|
|
114
114
|
get hotInstance(): Handsontable | null;
|
|
115
|
+
/**
|
|
116
|
+
* Returns `true` if the `hotInstance` exists, but was destroyed.
|
|
117
|
+
*
|
|
118
|
+
* @private
|
|
119
|
+
* @returns {boolean}
|
|
120
|
+
*/
|
|
121
|
+
_isHotInstanceDestroyed(): boolean;
|
|
115
122
|
/**
|
|
116
123
|
* Setter for the property storing the Handsontable instance.
|
|
117
124
|
* @param {Handsontable} hotInstance The Handsontable instance.
|
|
@@ -194,9 +201,11 @@ declare class HotTableClass extends React.Component<HotTableProps, {}> {
|
|
|
194
201
|
/**
|
|
195
202
|
* Create a new settings object containing the column settings and global editors and renderers.
|
|
196
203
|
*
|
|
204
|
+
* @param {boolean} [init=false] `true` if called on Handsontable initialization.
|
|
205
|
+
* @param {HotTableProps} [prevProps] The previous properties object.
|
|
197
206
|
* @returns {Handsontable.GridSettings} New global set of settings for Handsontable.
|
|
198
207
|
*/
|
|
199
|
-
createNewGlobalSettings(): Handsontable.GridSettings;
|
|
208
|
+
createNewGlobalSettings(init?: boolean, prevProps?: HotTableProps): Handsontable.GridSettings;
|
|
200
209
|
/**
|
|
201
210
|
* Detect if `autoRowSize` or `autoColumnSize` is defined, and if so, throw an incompatibility warning.
|
|
202
211
|
*
|
|
@@ -237,7 +246,7 @@ declare class HotTableClass extends React.Component<HotTableProps, {}> {
|
|
|
237
246
|
/**
|
|
238
247
|
* Logic performed after the component update.
|
|
239
248
|
*/
|
|
240
|
-
componentDidUpdate(): void;
|
|
249
|
+
componentDidUpdate(prevProps: any): void;
|
|
241
250
|
/**
|
|
242
251
|
* Destroy the Handsontable instance when the parent component unmounts.
|
|
243
252
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handsontable/react",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0-next-0a79a1f-20240521",
|
|
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",
|
|
@@ -61,13 +61,19 @@
|
|
|
61
61
|
"@babel/preset-react": "^7.9.4",
|
|
62
62
|
"@babel/preset-typescript": "^7.9.0",
|
|
63
63
|
"@babel/runtime": "^7.9.2",
|
|
64
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
65
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
66
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
67
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
68
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
69
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
64
70
|
"@testing-library/react": "^14.1.2",
|
|
65
71
|
"@types/react": "^18.2.0",
|
|
66
72
|
"@types/react-dom": "^18.2.0",
|
|
67
73
|
"@types/react-redux": "^7.1.7",
|
|
68
74
|
"babel-core": "^7.0.0-bridge.0",
|
|
69
75
|
"cross-env": "^7.0.3",
|
|
70
|
-
"handsontable": "
|
|
76
|
+
"handsontable": "14.4.0-next-0a79a1f-20240521",
|
|
71
77
|
"jest": "^29.7.0",
|
|
72
78
|
"prop-types": "^15.7.2",
|
|
73
79
|
"react": "^18.2.0",
|
|
@@ -75,20 +81,14 @@
|
|
|
75
81
|
"react-redux": "^7.1.1",
|
|
76
82
|
"redux": "^4.0.4",
|
|
77
83
|
"rimraf": "^3.0.2",
|
|
78
|
-
"rollup": "^
|
|
84
|
+
"rollup": "^4.14.3",
|
|
79
85
|
"rollup-plugin-alias": "^1.5.2",
|
|
80
|
-
"rollup-plugin-
|
|
81
|
-
"rollup-plugin-commonjs": "^10.0.1",
|
|
82
|
-
"rollup-plugin-json": "^4.0.0",
|
|
83
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
84
|
-
"rollup-plugin-replace": "^2.2.0",
|
|
85
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
86
|
-
"rollup-plugin-typescript2": "^0.22.1",
|
|
86
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
87
87
|
"typescript": "3.8.2",
|
|
88
88
|
"uglify-js": "^3.4.9"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"handsontable": "
|
|
91
|
+
"handsontable": "14.4.0-next-0a79a1f-20240521"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"publish-package": "npm publish",
|
|
101
101
|
"test": "jest",
|
|
102
102
|
"test.watch": "jest --watch",
|
|
103
|
-
"watch:commonjs": "cross-env NODE_ENV=cjs rollup -c --watch",
|
|
104
|
-
"watch:es": "cross-env NODE_ENV=es rollup -c --watch"
|
|
103
|
+
"watch:commonjs": "cross-env NODE_ENV=cjs rollup -c --watch --bundleConfigAsCjs",
|
|
104
|
+
"watch:es": "cross-env NODE_ENV=es rollup -c --watch --bundleConfigAsCjs"
|
|
105
105
|
},
|
|
106
106
|
"jest": {
|
|
107
107
|
"testURL": "http://localhost/",
|
package/settingsMapper.d.ts
CHANGED
|
@@ -5,7 +5,14 @@ export declare class SettingsMapper {
|
|
|
5
5
|
* Parse component settings into Handosntable-compatible settings.
|
|
6
6
|
*
|
|
7
7
|
* @param {Object} properties Object containing properties from the HotTable object.
|
|
8
|
+
* @param {Object} additionalSettings Additional settings.
|
|
9
|
+
* @param {boolean} additionalSettings.isInit Flag determining whether the settings are being set during initialization.
|
|
10
|
+
* @param {string[]} additionalSettings.initOnlySettingKeys Array of keys that can be set only during initialization.
|
|
8
11
|
* @returns {Object} Handsontable-compatible settings object.
|
|
9
12
|
*/
|
|
10
|
-
static getSettings(properties: HotTableProps
|
|
13
|
+
static getSettings(properties: HotTableProps, { prevProps, isInit, initOnlySettingKeys }?: {
|
|
14
|
+
prevProps?: HotTableProps;
|
|
15
|
+
isInit?: boolean;
|
|
16
|
+
initOnlySettingKeys?: Array<keyof Handsontable.GridSettings>;
|
|
17
|
+
}): Handsontable.GridSettings;
|
|
11
18
|
}
|