@uiw/react-json-view 1.8.4 → 1.8.5

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.
@@ -2,3 +2,6 @@ import React from 'react';
2
2
  export interface TriangleArrowProps extends React.SVGProps<SVGSVGElement> {
3
3
  }
4
4
  export declare function TriangleArrow(props: TriangleArrowProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace TriangleArrow {
6
+ var displayName: string;
7
+ }
@@ -27,4 +27,5 @@ function TriangleArrow(props) {
27
27
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
28
28
  })
29
29
  }));
30
- }
30
+ }
31
+ TriangleArrow.displayName = 'JVR.TriangleArrow';
@@ -2,3 +2,6 @@ import React from 'react';
2
2
  export interface TriangleSolidArrowProps extends React.SVGProps<SVGSVGElement> {
3
3
  }
4
4
  export declare function TriangleSolidArrow(props: TriangleSolidArrowProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace TriangleSolidArrow {
6
+ var displayName: string;
7
+ }
@@ -27,4 +27,5 @@ function TriangleSolidArrow(props) {
27
27
  d: "M0 5l6 6 6-6z"
28
28
  })
29
29
  }));
30
- }
30
+ }
31
+ TriangleSolidArrow.displayName = 'JVR.TriangleSolidArrow';
@@ -33,4 +33,5 @@ var Ellipsis = function Ellipsis(_ref) {
33
33
  children: "..."
34
34
  }));
35
35
  };
36
- exports.Ellipsis = Ellipsis;
36
+ exports.Ellipsis = Ellipsis;
37
+ Ellipsis.displayName = 'JVR.Ellipsis';
@@ -7,3 +7,6 @@ export interface MetaProps extends LabelProps {
7
7
  render?: (props: Pick<MetaProps, 'start' | 'level' | 'isArray' | 'className' | 'children'>) => JSX.Element;
8
8
  }
9
9
  export declare function Meta(props: MetaProps): JSX.Element;
10
+ export declare namespace Meta {
11
+ var displayName: string;
12
+ }
package/cjs/comps/meta.js CHANGED
@@ -42,4 +42,5 @@ function Meta(props) {
42
42
  }, reset), {}, {
43
43
  children: start ? mark.charAt(0) : mark.charAt(1)
44
44
  }));
45
- }
45
+ }
46
+ Meta.displayName = 'JVR.Meta';
package/cjs/copied.d.ts CHANGED
@@ -6,3 +6,6 @@ export interface CopiedProps<T = object> extends React.SVGProps<SVGSVGElement> {
6
6
  render?: (props: Omit<CopiedProps<T>, 'render'>) => JSX.Element;
7
7
  }
8
8
  export declare function Copied<T>(props: CopiedProps<T>): JSX.Element | null;
9
+ export declare namespace Copied {
10
+ var displayName: string;
11
+ }
package/cjs/copied.js CHANGED
@@ -74,4 +74,5 @@ function Copied(props) {
74
74
  d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
75
75
  })
76
76
  }));
77
- }
77
+ }
78
+ Copied.displayName = 'JVR.Copied';
@@ -23,3 +23,6 @@ export interface CountInfoExtraProps<T> extends Partial<CountInfoProps> {
23
23
  }) => boolean;
24
24
  }
25
25
  export declare function CountInfoExtra<T extends object>(props: CountInfoExtraProps<T>): import("react/jsx-runtime").JSX.Element | null;
26
+ export declare namespace CountInfoExtra {
27
+ var displayName: string;
28
+ }
@@ -102,4 +102,5 @@ function CountInfoExtra(props) {
102
102
  onClick: deleteHandle
103
103
  })]
104
104
  });
105
- }
105
+ }
106
+ CountInfoExtra.displayName = 'JVR.CountInfoExtra';
@@ -54,6 +54,7 @@ var JsonViewEditor = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
54
54
  ref: ref
55
55
  }));
56
56
  });
57
+ JsonViewEditor.displayName = 'JVR.JsonViewEditor';
57
58
  var _default = JsonViewEditor;
58
59
  exports["default"] = _default;
59
60
  module.exports = exports.default;
@@ -55,7 +55,7 @@ var ObjectKey = function ObjectKey(props) {
55
55
  if ($edit.current) {
56
56
  var _$edit$current;
57
57
  $edit.current.contentEditable = 'true';
58
- (_$edit$current = $edit.current) === null || _$edit$current === void 0 ? void 0 : _$edit$current.focus();
58
+ (_$edit$current = $edit.current) === null || _$edit$current === void 0 || _$edit$current.focus();
59
59
  }
60
60
  };
61
61
  var blur = /*#__PURE__*/function () {
@@ -90,7 +90,7 @@ var ObjectKey = function ObjectKey(props) {
90
90
  }
91
91
  case 6:
92
92
  $edit.current.contentEditable = 'false';
93
- (_$edit$current2 = $edit.current) === null || _$edit$current2 === void 0 ? void 0 : _$edit$current2.focus();
93
+ (_$edit$current2 = $edit.current) === null || _$edit$current2 === void 0 || _$edit$current2.focus();
94
94
  case 8:
95
95
  setEditable(false);
96
96
  case 9:
@@ -107,7 +107,7 @@ var ObjectKey = function ObjectKey(props) {
107
107
  if ($edit.current) {
108
108
  var _$edit$current3;
109
109
  $edit.current.contentEditable = 'true';
110
- (_$edit$current3 = $edit.current) === null || _$edit$current3 === void 0 ? void 0 : _$edit$current3.focus();
110
+ (_$edit$current3 = $edit.current) === null || _$edit$current3 === void 0 || _$edit$current3.focus();
111
111
  }
112
112
  };
113
113
  var keyDown = function keyDown(evn) {
@@ -167,4 +167,5 @@ var ObjectKey = function ObjectKey(props) {
167
167
  ref: $edit
168
168
  }));
169
169
  };
170
- exports.ObjectKey = ObjectKey;
170
+ exports.ObjectKey = ObjectKey;
171
+ ObjectKey.displayName = 'JVR.ObjectKey';
@@ -17,3 +17,6 @@ export interface ReValueProps<T extends object> extends React.HTMLAttributes<HTM
17
17
  onDelete?: JsonViewEditorProps<T>['onDelete'];
18
18
  }
19
19
  export declare function ReValue<T extends object>(props: ReValueProps<T>): import("react/jsx-runtime").JSX.Element;
20
+ export declare namespace ReValue {
21
+ var displayName: string;
22
+ }
@@ -67,7 +67,7 @@ function ReValue(props) {
67
67
  var _$edit$current;
68
68
  setEditable(true);
69
69
  $edit.current.setAttribute('contentEditable', 'true');
70
- (_$edit$current = $edit.current) === null || _$edit$current === void 0 ? void 0 : _$edit$current.focus();
70
+ (_$edit$current = $edit.current) === null || _$edit$current === void 0 || _$edit$current.focus();
71
71
  }
72
72
  };
73
73
  var keyDown = function keyDown(evn) {
@@ -239,4 +239,5 @@ function ReValue(props) {
239
239
  onClick: deleteHandle
240
240
  })]
241
241
  });
242
- }
242
+ }
243
+ ReValue.displayName = 'JVR.ReValue';
package/cjs/index.js CHANGED
@@ -58,5 +58,6 @@ var JsonView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
58
58
  style: defaultStyle
59
59
  }));
60
60
  });
61
+ JsonView.displayName = 'JVR.JsonView';
61
62
  var _default = JsonView;
62
63
  exports["default"] = _default;
package/cjs/node.js CHANGED
@@ -40,6 +40,7 @@ var CountInfo = function CountInfo(_ref) {
40
40
  });
41
41
  };
42
42
  exports.CountInfo = CountInfo;
43
+ CountInfo.displayName = 'JVR.CountInfo';
43
44
  var RootNode = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
44
45
  var _expands$keyid;
45
46
  var _props$value = props.value,
@@ -321,4 +322,5 @@ var RootNode = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
321
322
  })]
322
323
  }));
323
324
  });
324
- exports.RootNode = RootNode;
325
+ exports.RootNode = RootNode;
326
+ RootNode.displayName = 'JVR.RootNode';
package/cjs/semicolon.js CHANGED
@@ -111,4 +111,5 @@ var Semicolon = function Semicolon(_ref2) {
111
111
  children: content
112
112
  }));
113
113
  };
114
- exports.Semicolon = Semicolon;
114
+ exports.Semicolon = Semicolon;
115
+ Semicolon.displayName = 'JSR.Semicolon';
package/cjs/value.d.ts CHANGED
@@ -67,6 +67,9 @@ export declare function getValueString<T>(value: T): {
67
67
  content: string;
68
68
  };
69
69
  export declare function ValueView<T extends object>(props: ValueViewProps<T>): import("react/jsx-runtime").JSX.Element;
70
+ export declare namespace ValueView {
71
+ var displayName: string;
72
+ }
70
73
  export interface LabelProps extends React.HTMLAttributes<HTMLSpanElement> {
71
74
  color?: string;
72
75
  fontSize?: number;
package/cjs/value.js CHANGED
@@ -23,6 +23,7 @@ var Line = function Line(props) {
23
23
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", (0, _objectSpread2["default"])({}, props));
24
24
  };
25
25
  exports.Line = Line;
26
+ Line.displayName = 'JVR.Line';
26
27
  var isFloat = function isFloat(n) {
27
28
  return Number(n) === n && n % 1 !== 0 || isNaN(n);
28
29
  };
@@ -85,6 +86,7 @@ var Colon = function Colon(_ref) {
85
86
  }));
86
87
  };
87
88
  exports.Colon = Colon;
89
+ Colon.displayName = 'JVR.Colon';
88
90
  function getValueString(value) {
89
91
  var type = (0, _typeof2["default"])(value);
90
92
  var content = '';
@@ -247,6 +249,7 @@ function ValueView(props) {
247
249
  }))
248
250
  }));
249
251
  }
252
+ ValueView.displayName = 'JVR.ValueView';
250
253
  var Label = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
251
254
  var children = _ref2.children,
252
255
  color = _ref2.color,
@@ -268,6 +271,7 @@ var Label = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
268
271
  }));
269
272
  });
270
273
  exports.Label = Label;
274
+ Label.displayName = 'JVR.Label';
271
275
  var Type = function Type(props) {
272
276
  var _typeMap$type2, _typeMap$type3;
273
277
  var type = props.type;
@@ -285,4 +289,5 @@ var Type = function Type(props) {
285
289
  });
286
290
  }
287
291
  };
288
- exports.Type = Type;
292
+ exports.Type = Type;
293
+ Type.displayName = 'JVR.Type';
@@ -2,3 +2,6 @@ import React from 'react';
2
2
  export interface TriangleArrowProps extends React.SVGProps<SVGSVGElement> {
3
3
  }
4
4
  export declare function TriangleArrow(props: TriangleArrowProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace TriangleArrow {
6
+ var displayName: string;
7
+ }
@@ -22,4 +22,5 @@ export function TriangleArrow(props) {
22
22
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
23
23
  })
24
24
  }));
25
- }
25
+ }
26
+ TriangleArrow.displayName = 'JVR.TriangleArrow';
@@ -2,3 +2,6 @@ import React from 'react';
2
2
  export interface TriangleSolidArrowProps extends React.SVGProps<SVGSVGElement> {
3
3
  }
4
4
  export declare function TriangleSolidArrow(props: TriangleSolidArrowProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace TriangleSolidArrow {
6
+ var displayName: string;
7
+ }
@@ -22,4 +22,5 @@ export function TriangleSolidArrow(props) {
22
22
  d: "M0 5l6 6 6-6z"
23
23
  })
24
24
  }));
25
- }
25
+ }
26
+ TriangleSolidArrow.displayName = 'JVR.TriangleSolidArrow';
@@ -27,4 +27,5 @@ export var Ellipsis = _ref => {
27
27
  }, props, {
28
28
  children: "..."
29
29
  }));
30
- };
30
+ };
31
+ Ellipsis.displayName = 'JVR.Ellipsis';
@@ -7,3 +7,6 @@ export interface MetaProps extends LabelProps {
7
7
  render?: (props: Pick<MetaProps, 'start' | 'level' | 'isArray' | 'className' | 'children'>) => JSX.Element;
8
8
  }
9
9
  export declare function Meta(props: MetaProps): JSX.Element;
10
+ export declare namespace Meta {
11
+ var displayName: string;
12
+ }
package/esm/comps/meta.js CHANGED
@@ -35,4 +35,5 @@ export function Meta(props) {
35
35
  }, reset, {
36
36
  children: start ? mark.charAt(0) : mark.charAt(1)
37
37
  }));
38
- }
38
+ }
39
+ Meta.displayName = 'JVR.Meta';
package/esm/copied.d.ts CHANGED
@@ -6,3 +6,6 @@ export interface CopiedProps<T = object> extends React.SVGProps<SVGSVGElement> {
6
6
  render?: (props: Omit<CopiedProps<T>, 'render'>) => JSX.Element;
7
7
  }
8
8
  export declare function Copied<T>(props: CopiedProps<T>): JSX.Element | null;
9
+ export declare namespace Copied {
10
+ var displayName: string;
11
+ }
package/esm/copied.js CHANGED
@@ -63,4 +63,5 @@ export function Copied(props) {
63
63
  d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
64
64
  })
65
65
  }));
66
- }
66
+ }
67
+ Copied.displayName = 'JVR.Copied';
@@ -23,3 +23,6 @@ export interface CountInfoExtraProps<T> extends Partial<CountInfoProps> {
23
23
  }) => boolean;
24
24
  }
25
25
  export declare function CountInfoExtra<T extends object>(props: CountInfoExtraProps<T>): import("react/jsx-runtime").JSX.Element | null;
26
+ export declare namespace CountInfoExtra {
27
+ var displayName: string;
28
+ }
@@ -69,4 +69,5 @@ export function CountInfoExtra(props) {
69
69
  onClick: deleteHandle
70
70
  })]
71
71
  });
72
- }
72
+ }
73
+ CountInfoExtra.displayName = 'JVR.CountInfoExtra';
@@ -43,4 +43,5 @@ var JsonViewEditor = /*#__PURE__*/forwardRef((props, ref) => {
43
43
  ref: ref
44
44
  }));
45
45
  });
46
+ JsonViewEditor.displayName = 'JVR.JsonViewEditor';
46
47
  export default JsonViewEditor;
@@ -39,7 +39,7 @@ export var ObjectKey = props => {
39
39
  if ($edit.current) {
40
40
  var _$edit$current;
41
41
  $edit.current.contentEditable = 'true';
42
- (_$edit$current = $edit.current) == null ? void 0 : _$edit$current.focus();
42
+ (_$edit$current = $edit.current) == null || _$edit$current.focus();
43
43
  }
44
44
  };
45
45
  var blur = /*#__PURE__*/function () {
@@ -62,7 +62,7 @@ export var ObjectKey = props => {
62
62
  }
63
63
  }
64
64
  $edit.current.contentEditable = 'false';
65
- (_$edit$current2 = $edit.current) == null ? void 0 : _$edit$current2.focus();
65
+ (_$edit$current2 = $edit.current) == null || _$edit$current2.focus();
66
66
  }
67
67
  setEditable(false);
68
68
  });
@@ -74,7 +74,7 @@ export var ObjectKey = props => {
74
74
  if ($edit.current) {
75
75
  var _$edit$current3;
76
76
  $edit.current.contentEditable = 'true';
77
- (_$edit$current3 = $edit.current) == null ? void 0 : _$edit$current3.focus();
77
+ (_$edit$current3 = $edit.current) == null || _$edit$current3.focus();
78
78
  }
79
79
  };
80
80
  var keyDown = evn => {
@@ -133,4 +133,5 @@ export var ObjectKey = props => {
133
133
  }, spanProps, {
134
134
  ref: $edit
135
135
  }));
136
- };
136
+ };
137
+ ObjectKey.displayName = 'JVR.ObjectKey';
@@ -17,3 +17,6 @@ export interface ReValueProps<T extends object> extends React.HTMLAttributes<HTM
17
17
  onDelete?: JsonViewEditorProps<T>['onDelete'];
18
18
  }
19
19
  export declare function ReValue<T extends object>(props: ReValueProps<T>): import("react/jsx-runtime").JSX.Element;
20
+ export declare namespace ReValue {
21
+ var displayName: string;
22
+ }
@@ -51,7 +51,7 @@ export function ReValue(props) {
51
51
  var _$edit$current;
52
52
  setEditable(true);
53
53
  $edit.current.setAttribute('contentEditable', 'true');
54
- (_$edit$current = $edit.current) == null ? void 0 : _$edit$current.focus();
54
+ (_$edit$current = $edit.current) == null || _$edit$current.focus();
55
55
  }
56
56
  };
57
57
  var keyDown = evn => {
@@ -191,4 +191,5 @@ export function ReValue(props) {
191
191
  onClick: deleteHandle
192
192
  })]
193
193
  });
194
- }
194
+ }
195
+ ReValue.displayName = 'JVR.ReValue';
package/esm/index.js CHANGED
@@ -31,4 +31,5 @@ var JsonView = /*#__PURE__*/forwardRef((props, ref) => {
31
31
  style: defaultStyle
32
32
  }));
33
33
  });
34
+ JsonView.displayName = 'JVR.JsonView';
34
35
  export default JsonView;
package/esm/node.js CHANGED
@@ -32,6 +32,7 @@ export var CountInfo = _ref => {
32
32
  children: [children, " items"]
33
33
  });
34
34
  };
35
+ CountInfo.displayName = 'JVR.CountInfo';
35
36
  export var RootNode = /*#__PURE__*/forwardRef((props, ref) => {
36
37
  var _expands$keyid;
37
38
  var {
@@ -280,4 +281,5 @@ export var RootNode = /*#__PURE__*/forwardRef((props, ref) => {
280
281
  })
281
282
  })]
282
283
  }));
283
- });
284
+ });
285
+ RootNode.displayName = 'JVR.RootNode';
package/esm/semicolon.js CHANGED
@@ -102,4 +102,5 @@ export var Semicolon = _ref2 => {
102
102
  ref: highlightContainer,
103
103
  children: content
104
104
  }));
105
- };
105
+ };
106
+ Semicolon.displayName = 'JSR.Semicolon';
package/esm/value.d.ts CHANGED
@@ -67,6 +67,9 @@ export declare function getValueString<T>(value: T): {
67
67
  content: string;
68
68
  };
69
69
  export declare function ValueView<T extends object>(props: ValueViewProps<T>): import("react/jsx-runtime").JSX.Element;
70
+ export declare namespace ValueView {
71
+ var displayName: string;
72
+ }
70
73
  export interface LabelProps extends React.HTMLAttributes<HTMLSpanElement> {
71
74
  color?: string;
72
75
  fontSize?: number;
package/esm/value.js CHANGED
@@ -9,6 +9,7 @@ import { Copied } from './copied';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
11
  export var Line = props => /*#__PURE__*/_jsx("div", _extends({}, props));
12
+ Line.displayName = 'JVR.Line';
12
13
  export var isFloat = n => Number(n) === n && n % 1 !== 0 || isNaN(n);
13
14
  export var typeMap = {
14
15
  string: {
@@ -67,6 +68,7 @@ export var Colon = _ref => {
67
68
  children: children
68
69
  }));
69
70
  };
71
+ Colon.displayName = 'JVR.Colon';
70
72
  export function getValueString(value) {
71
73
  var type = typeof value;
72
74
  var content = '';
@@ -220,6 +222,7 @@ export function ValueView(props) {
220
222
  }))
221
223
  }));
222
224
  }
225
+ ValueView.displayName = 'JVR.ValueView';
223
226
  export var Label = /*#__PURE__*/forwardRef((_ref2, ref) => {
224
227
  var {
225
228
  children,
@@ -242,6 +245,7 @@ export var Label = /*#__PURE__*/forwardRef((_ref2, ref) => {
242
245
  children: children
243
246
  }));
244
247
  });
248
+ Label.displayName = 'JVR.Label';
245
249
  export var Type = props => {
246
250
  var _typeMap$type2, _typeMap$type3;
247
251
  var {
@@ -260,4 +264,5 @@ export var Type = props => {
260
264
  children: label
261
265
  });
262
266
  }
263
- };
267
+ };
268
+ Type.displayName = 'JVR.Type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/react-json-view",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "JSON viewer for react.",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",