Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-json-view

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-view - npm Package Compare versions

Comparing version 1.18.3 to 1.19.0

8

index.d.ts

@@ -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;

5

package.json
{
"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": {

3

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc