react-table-edit 0.7.5 → 0.7.6

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/dist/index.js CHANGED
@@ -3109,6 +3109,9 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3109
3109
  const clipboard = (e.clipboardData || window.Clipboard).getData("text");
3110
3110
  const rowsClipboard = clipboard.trimEnd().split("\n");
3111
3111
  setIndexFocus(void 0);
3112
+ if (rowsClipboard.length > 200) {
3113
+ messageBoxError(t, "You can only paste up to 200 rows.");
3114
+ }
3112
3115
  if (rowsClipboard.length > 0) {
3113
3116
  const columnsDataChange = [];
3114
3117
  for (let index = 0; index < rowsClipboard[0].trimEnd().split(" ").length; index++) {
package/dist/index.mjs CHANGED
@@ -3075,6 +3075,9 @@ var TableEdit = forwardRef3((props, ref) => {
3075
3075
  const clipboard = (e.clipboardData || window.Clipboard).getData("text");
3076
3076
  const rowsClipboard = clipboard.trimEnd().split("\n");
3077
3077
  setIndexFocus(void 0);
3078
+ if (rowsClipboard.length > 200) {
3079
+ messageBoxError(t, "You can only paste up to 200 rows.");
3080
+ }
3078
3081
  if (rowsClipboard.length > 0) {
3079
3082
  const columnsDataChange = [];
3080
3083
  for (let index = 0; index < rowsClipboard[0].trimEnd().split(" ").length; index++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.7.5",
4
+ "version": "0.7.6",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",