react-json-view
Advanced tools
Comparing version 1.18.3 to 1.19.0
@@ -132,2 +132,8 @@ import * as React from 'react'; | ||
sortKeys?: boolean; | ||
/** | ||
* Set to a value to be used as defaultValue when adding new key to json | ||
* | ||
* Default: null | ||
*/ | ||
defaultValue?: TypeDefaultValue | TypeDefaultValue[] | null; | ||
} | ||
@@ -217,2 +223,4 @@ | ||
export type TypeDefaultValue = string | number | boolean | object; | ||
export interface ThemeObject { | ||
@@ -219,0 +227,0 @@ base00: string; |
{ | ||
"name": "react-json-view", | ||
"description": | ||
"Interactive react component for displaying javascript arrays and JSON objects.", | ||
"version": "1.18.3", | ||
"description": "Interactive react component for displaying javascript arrays and JSON objects.", | ||
"version": "1.19.0", | ||
"main": "dist/main.js", | ||
@@ -7,0 +6,0 @@ "dependencies": { |
@@ -6,3 +6,3 @@ ![alt text](https://github.com/mac-s-g/react-json-view/blob/master/doc/rjv-icon-alt.png?raw=true) | ||
# react-json-view | ||
RJV is a react component for displaying and editing javascript **arrays** and **JSON objects**. | ||
RJV is a React component for displaying and editing javascript **arrays** and **JSON objects**. | ||
@@ -59,2 +59,3 @@ This component provides a responsive interface for displaying arrays or JSON in a web browser. NPM offers a distribution of the source that's transpiled to ES5; so you can include this component with *any web-based javascript application*. | ||
`onAdd`|`(add)=>{}`|`false`|When a callback function is passed in, `add` functionality is enabled. The callback is invoked before additions are completed. Returning `false` from `onAdd` will prevent the change from being made. [see: onAdd docs](#onedit-onadd-and-ondelete-interaction) | ||
`defaultValue`|`string \|number \|boolean \|array \|object`|`null`|Sets the default value to be used when adding an item to json | ||
`onDelete`|`(delete)=>{}`|`false`|When a callback function is passed in, `delete` functionality is enabled. The callback is invoked before deletions are completed. Returning `false` from `onDelete` will prevent the change from being made. [see: onDelete docs](#onedit-onadd-and-ondelete-interaction) | ||
@@ -61,0 +62,0 @@ `onSelect`|`(select)=>{}`|`false`|When a function is passed in, clicking a value triggers the `onSelect` method to be called. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175219
313
147