json-edit-react 1.2.2 → 1.2.4
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 +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ The only *required* value is `data`.
|
|
|
83
83
|
| `data` | `object\|array` | | The data to be displayed / edited |
|
|
84
84
|
| `rootName` | `string` | `"data"` | A name to display in the editor as the root of the data object. |
|
|
85
85
|
| `onUpdate` | `UpdateFunction` | | A function to run whenever a value is **updated** (edit, delete *or* add) in the editor. See [Update functions](#update-functions). |
|
|
86
|
-
| `
|
|
86
|
+
| `onEdit` | `UpdateFunction` | | A function to run whenever a value is **edited**. |
|
|
87
87
|
| `onDelete` | `UpdateFunction` | | A function to run whenever a value is **deleted**. |
|
|
88
88
|
| `onAdd` | `UpdateFunction` | | A function to run whenever a new property is **added**. |
|
|
89
89
|
| `enableClipboard` | `boolean\|CopyFunction` | `true` | Whether or not to enable the "Copy to clipboard" button in the UI. If a function is provided, `true` is assumed and this function will be run whenever an item is copied. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-edit-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "React component for editing or viewing JSON/object data",
|
|
5
5
|
"main": "build/index.cjs.js",
|
|
6
6
|
"module": "build/index.esm.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@types/react": "^18.2.48",
|
|
38
38
|
"rimraf": "^5.0.5",
|
|
39
39
|
"rollup": "^4.9.6",
|
|
40
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
40
41
|
"rollup-plugin-dts": "^6.1.0",
|
|
41
42
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
42
43
|
"rollup-plugin-sizes": "^1.0.6",
|