@uiw/react-json-view
Advanced tools
Comparing version 2.0.0-alpha.8 to 2.0.0-alpha.9
@@ -83,2 +83,3 @@ "use strict"; | ||
var keyName = props.keyName, | ||
parentValue = props.parentValue, | ||
value = props.value; | ||
@@ -103,2 +104,3 @@ var _useStore2 = (0, _store.useStore)(), | ||
value: value, | ||
parentValue: parentValue, | ||
children: keyName | ||
@@ -151,3 +153,4 @@ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_symbol.Quote, { | ||
keyName: keyName, | ||
value: value | ||
value: value, | ||
parentValue: parentValue | ||
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Value.Value, { | ||
@@ -154,0 +157,0 @@ keyName: keyName, |
@@ -11,4 +11,5 @@ import { type FC, type PropsWithChildren } from 'react'; | ||
value?: unknown; | ||
parentValue?: unknown; | ||
}; | ||
export declare const KeyNameComp: FC<PropsWithChildren<KeyNameCompProps>>; | ||
export {}; |
@@ -25,2 +25,3 @@ "use strict"; | ||
value = props.value, | ||
parentValue = props.parentValue, | ||
keyName = props.keyName; | ||
@@ -43,2 +44,3 @@ var isNumber = typeof children === 'number'; | ||
value: value, | ||
parentValue: parentValue, | ||
keyName: keyName | ||
@@ -45,0 +47,0 @@ }); |
@@ -7,2 +7,3 @@ import React, { FC, PropsWithChildren, ComponentPropsWithoutRef } from 'react'; | ||
value: unknown; | ||
parentValue?: unknown; | ||
keyName: string | number; | ||
@@ -9,0 +10,0 @@ }) => React.ReactNode; |
@@ -5,7 +5,7 @@ /// <reference types="react" /> | ||
import { JsonViewProps } from '@uiw/react-json-view'; | ||
import type { CountInfoExtraProps } from '@uiw/react-json-view/cjs/editor/countInfoExtra'; | ||
// import type { CountInfoExtraProps } from '@uiw/react-json-view/cjs/editor/countInfoExtra'; | ||
type Option = { | ||
value: string; | ||
prevValue: string; | ||
keyName: string | number; | ||
value: string; | ||
prevValue: string; | ||
keyName: string | number; | ||
}; | ||
@@ -16,23 +16,25 @@ | ||
onEdit?: (option: { | ||
value: unknown; | ||
oldValue: unknown; | ||
keyName?: string | number; | ||
parentName?: string | number; | ||
type?: 'value' | 'key'; | ||
value: unknown; | ||
oldValue: unknown; | ||
keyName?: string | number; | ||
parentName?: string | number; | ||
type?: 'value' | 'key'; | ||
}) => void; | ||
/** | ||
* When a callback function is passed in, add functionality is enabled. The callback is invoked before additions are completed. | ||
* @returns {boolean} Returning false from onAdd will prevent the change from being made. | ||
*/ | ||
onAdd?: CountInfoExtraProps<T>['onAdd']; | ||
/** | ||
* When a callback function is passed in, delete functionality is enabled. The callback is invoked before deletions are completed. | ||
* @returns Returning false from onDelete will prevent the change from being made. | ||
*/ | ||
onDelete?: CountInfoExtraProps<T>['onDelete']; | ||
// /** | ||
// * When a callback function is passed in, add functionality is enabled. The callback is invoked before additions are completed. | ||
// * @returns {boolean} Returning false from onAdd will prevent the change from being made. | ||
// */ | ||
// onAdd?: CountInfoExtraProps<T>['onAdd']; | ||
// /** | ||
// * When a callback function is passed in, delete functionality is enabled. The callback is invoked before deletions are completed. | ||
// * @returns Returning false from onDelete will prevent the change from being made. | ||
// */ | ||
// onDelete?: CountInfoExtraProps<T>['onDelete']; | ||
/** Whether enable edit feature. @default true */ | ||
editable?: boolean; | ||
} | ||
const JsonViewEditor: import("react").ForwardRefExoticComponent<Omit<JsonViewEditorProps<object>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; | ||
const JsonViewEditor: import('react').ForwardRefExoticComponent< | ||
Omit<JsonViewEditorProps<object>, 'ref'> & import('react').RefAttributes<HTMLDivElement> | ||
>; | ||
export default JsonViewEditor; | ||
} |
@@ -67,2 +67,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
keyName, | ||
parentValue, | ||
value | ||
@@ -89,2 +90,3 @@ } = props; | ||
value: value, | ||
parentValue: parentValue, | ||
children: keyName | ||
@@ -138,3 +140,4 @@ }), /*#__PURE__*/_jsx(Quote, { | ||
keyName: keyName, | ||
value: value | ||
value: value, | ||
parentValue: parentValue | ||
}), /*#__PURE__*/_jsx(Value, { | ||
@@ -141,0 +144,0 @@ keyName: keyName, |
@@ -11,4 +11,5 @@ import { type FC, type PropsWithChildren } from 'react'; | ||
value?: unknown; | ||
parentValue?: unknown; | ||
}; | ||
export declare const KeyNameComp: FC<PropsWithChildren<KeyNameCompProps>>; | ||
export {}; |
@@ -19,2 +19,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
value, | ||
parentValue, | ||
keyName | ||
@@ -40,2 +41,3 @@ } = props; | ||
value, | ||
parentValue, | ||
keyName | ||
@@ -42,0 +44,0 @@ }); |
@@ -7,2 +7,3 @@ import React, { FC, PropsWithChildren, ComponentPropsWithoutRef } from 'react'; | ||
value: unknown; | ||
parentValue?: unknown; | ||
keyName: string | number; | ||
@@ -9,0 +10,0 @@ }) => React.ReactNode; |
{ | ||
"name": "@uiw/react-json-view", | ||
"version": "2.0.0-alpha.8", | ||
"version": "2.0.0-alpha.9", | ||
"description": "JSON viewer for react.", | ||
@@ -117,6 +117,4 @@ "main": "cjs/index.js", | ||
], | ||
"dependencies": { | ||
"@babel/runtime": "^7.22.6" | ||
}, | ||
"devDependencies": { | ||
"@babel/runtime": "^7.22.6", | ||
"@testing-library/react": "^14.0.0", | ||
@@ -123,0 +121,0 @@ "@types/react-test-renderer": "^18.0.0", |
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
306290
3
235
7222
6
- Removed@babel/runtime@^7.22.6