@uiw/react-json-view 2.0.0-alpha.4 → 2.0.0-alpha.41
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 +280 -39
- package/basic.d.ts +4 -0
- package/cjs/Container.d.ts +2 -0
- package/cjs/Container.js +15 -6
- package/cjs/arrow/TriangleArrow.js +1 -1
- package/cjs/comps/Copied.d.ts +3 -4
- package/cjs/comps/Copied.js +61 -18
- package/cjs/comps/KeyValues.d.ts +2 -4
- package/cjs/comps/KeyValues.js +73 -28
- package/cjs/comps/NestedClose.d.ts +2 -2
- package/cjs/comps/NestedClose.js +42 -12
- package/cjs/comps/NestedOpen.d.ts +2 -3
- package/cjs/comps/NestedOpen.js +42 -20
- package/cjs/comps/Value.d.ts +2 -2
- package/cjs/comps/Value.js +5 -7
- package/cjs/comps/useIdCompat.d.ts +1 -0
- package/cjs/comps/useIdCompat.js +14 -0
- package/cjs/editor/KeyName.d.ts +2 -0
- package/cjs/editor/KeyName.js +82 -0
- package/cjs/editor/index.d.ts +18 -0
- package/cjs/editor/index.js +44 -0
- package/cjs/editor/store.d.ts +27 -0
- package/cjs/editor/store.js +23 -0
- package/cjs/index.d.ts +26 -4
- package/cjs/index.js +17 -7
- package/cjs/section/Copied.d.ts +4 -1
- package/cjs/section/Copied.js +1 -2
- package/cjs/section/CountInfo.d.ts +1 -2
- package/cjs/section/CountInfo.js +3 -5
- package/cjs/section/CountInfoExtra.d.ts +1 -2
- package/cjs/section/CountInfoExtra.js +2 -4
- package/cjs/section/Ellipsis.d.ts +0 -1
- package/cjs/section/Ellipsis.js +4 -5
- package/cjs/section/KeyName.d.ts +7 -6
- package/cjs/section/KeyName.js +8 -6
- package/cjs/section/Row.d.ts +13 -0
- package/cjs/section/Row.js +51 -0
- package/cjs/store/Expands.js +2 -4
- package/cjs/store/Section.d.ts +12 -6
- package/cjs/store/Section.js +6 -4
- package/cjs/store/ShowTools.js +2 -4
- package/cjs/store/Symbols.d.ts +10 -3
- package/cjs/store/Symbols.js +2 -4
- package/cjs/store/Types.d.ts +30 -25
- package/cjs/store/Types.js +8 -8
- package/cjs/store.d.ts +12 -6
- package/cjs/store.js +5 -10
- package/cjs/symbol/Arrow.d.ts +1 -1
- package/cjs/symbol/Arrow.js +1 -2
- package/cjs/symbol/BraceLeft.d.ts +1 -1
- package/cjs/symbol/BraceLeft.js +1 -2
- package/cjs/symbol/BraceRight.d.ts +1 -1
- package/cjs/symbol/BraceRight.js +1 -2
- package/cjs/symbol/BracketsLeft.d.ts +1 -1
- package/cjs/symbol/BracketsLeft.js +1 -2
- package/cjs/symbol/BracketsRight.d.ts +1 -1
- package/cjs/symbol/BracketsRight.js +1 -2
- package/cjs/symbol/Colon.d.ts +1 -1
- package/cjs/symbol/Colon.js +1 -2
- package/cjs/symbol/Quote.d.ts +1 -1
- package/cjs/symbol/Quote.js +1 -2
- package/cjs/symbol/ValueQuote.d.ts +1 -1
- package/cjs/symbol/ValueQuote.js +1 -2
- package/cjs/symbol/index.d.ts +12 -17
- package/cjs/symbol/index.js +82 -30
- package/cjs/theme/basic.d.ts +2 -2
- package/cjs/theme/basic.js +4 -3
- package/cjs/theme/dark.d.ts +2 -2
- package/cjs/theme/dark.js +2 -3
- package/cjs/theme/github.dark.d.ts +2 -2
- package/cjs/theme/github.dark.js +2 -3
- package/cjs/theme/github.light.d.ts +2 -2
- package/cjs/theme/github.light.js +2 -3
- package/cjs/theme/gruvbox.d.ts +2 -2
- package/cjs/theme/gruvbox.js +2 -3
- package/cjs/theme/light.d.ts +2 -2
- package/cjs/theme/light.js +2 -3
- package/cjs/theme/monokai.d.ts +2 -2
- package/cjs/theme/monokai.js +2 -3
- package/cjs/theme/nord.d.ts +2 -2
- package/cjs/theme/nord.js +2 -3
- package/cjs/theme/vscode.d.ts +2 -2
- package/cjs/theme/vscode.js +2 -3
- package/cjs/types/Bigint.d.ts +1 -1
- package/cjs/types/Bigint.js +1 -2
- package/cjs/types/Date.d.ts +1 -1
- package/cjs/types/Date.js +1 -2
- package/cjs/types/False.d.ts +1 -1
- package/cjs/types/False.js +1 -2
- package/cjs/types/Float.d.ts +1 -1
- package/cjs/types/Float.js +1 -2
- package/cjs/types/Int.d.ts +1 -1
- package/cjs/types/Int.js +1 -2
- package/cjs/types/Map.d.ts +1 -1
- package/cjs/types/Map.js +1 -2
- package/cjs/types/Nan.d.ts +1 -1
- package/cjs/types/Nan.js +1 -2
- package/cjs/types/Null.d.ts +1 -1
- package/cjs/types/Null.js +1 -2
- package/cjs/types/Set.d.ts +1 -1
- package/cjs/types/Set.js +1 -2
- package/cjs/types/String.d.ts +1 -1
- package/cjs/types/String.js +1 -2
- package/cjs/types/True.d.ts +1 -1
- package/cjs/types/True.js +1 -2
- package/cjs/types/Undefined.d.ts +1 -1
- package/cjs/types/Undefined.js +1 -2
- package/cjs/types/Url.d.ts +1 -1
- package/cjs/types/Url.js +1 -2
- package/cjs/types/index.d.ts +5 -2
- package/cjs/types/index.js +174 -166
- package/cjs/utils/useHighlight.d.ts +0 -1
- package/cjs/utils/useRender.d.ts +1 -1
- package/dark.d.ts +2 -1
- package/editor.d.ts +22 -20
- package/esm/Container.d.ts +2 -0
- package/esm/Container.js +21 -11
- package/esm/arrow/TriangleArrow.js +1 -1
- package/esm/comps/Copied.d.ts +3 -4
- package/esm/comps/Copied.js +61 -19
- package/esm/comps/KeyValues.d.ts +2 -4
- package/esm/comps/KeyValues.js +71 -27
- package/esm/comps/NestedClose.d.ts +2 -2
- package/esm/comps/NestedClose.js +40 -11
- package/esm/comps/NestedOpen.d.ts +2 -3
- package/esm/comps/NestedOpen.js +47 -26
- package/esm/comps/Value.d.ts +2 -2
- package/esm/comps/Value.js +3 -3
- package/esm/comps/useIdCompat.d.ts +1 -0
- package/esm/comps/useIdCompat.js +8 -0
- package/esm/editor/KeyName.d.ts +2 -0
- package/esm/editor/KeyName.js +77 -0
- package/esm/editor/index.d.ts +18 -0
- package/esm/editor/index.js +33 -0
- package/esm/editor/store.d.ts +27 -0
- package/esm/editor/store.js +13 -0
- package/esm/index.d.ts +26 -4
- package/esm/index.js +50 -41
- package/esm/section/Copied.d.ts +4 -1
- package/esm/section/Copied.js +2 -2
- package/esm/section/CountInfo.d.ts +1 -2
- package/esm/section/CountInfo.js +4 -4
- package/esm/section/CountInfoExtra.d.ts +1 -2
- package/esm/section/CountInfoExtra.js +2 -2
- package/esm/section/Ellipsis.d.ts +0 -1
- package/esm/section/Ellipsis.js +3 -3
- package/esm/section/KeyName.d.ts +7 -6
- package/esm/section/KeyName.js +8 -4
- package/esm/section/Row.d.ts +13 -0
- package/esm/section/Row.js +47 -0
- package/esm/store/Section.d.ts +12 -6
- package/esm/store/Section.js +4 -0
- package/esm/store/Symbols.d.ts +10 -3
- package/esm/store/Symbols.js +1 -1
- package/esm/store/Types.d.ts +30 -25
- package/esm/store/Types.js +6 -4
- package/esm/store.d.ts +12 -6
- package/esm/store.js +5 -5
- package/esm/symbol/Arrow.d.ts +1 -1
- package/esm/symbol/Arrow.js +2 -2
- package/esm/symbol/BraceLeft.d.ts +1 -1
- package/esm/symbol/BraceLeft.js +2 -2
- package/esm/symbol/BraceRight.d.ts +1 -1
- package/esm/symbol/BraceRight.js +2 -2
- package/esm/symbol/BracketsLeft.d.ts +1 -1
- package/esm/symbol/BracketsLeft.js +2 -2
- package/esm/symbol/BracketsRight.d.ts +1 -1
- package/esm/symbol/BracketsRight.js +2 -2
- package/esm/symbol/Colon.d.ts +1 -1
- package/esm/symbol/Colon.js +2 -2
- package/esm/symbol/Quote.d.ts +1 -1
- package/esm/symbol/Quote.js +2 -2
- package/esm/symbol/ValueQuote.d.ts +1 -1
- package/esm/symbol/ValueQuote.js +2 -2
- package/esm/symbol/index.d.ts +12 -17
- package/esm/symbol/index.js +85 -25
- package/esm/theme/basic.d.ts +2 -2
- package/esm/theme/basic.js +2 -0
- package/esm/theme/dark.d.ts +2 -2
- package/esm/theme/github.dark.d.ts +2 -2
- package/esm/theme/github.light.d.ts +2 -2
- package/esm/theme/gruvbox.d.ts +2 -2
- package/esm/theme/light.d.ts +2 -2
- package/esm/theme/monokai.d.ts +2 -2
- package/esm/theme/nord.d.ts +2 -2
- package/esm/theme/vscode.d.ts +2 -2
- package/esm/types/Bigint.d.ts +1 -1
- package/esm/types/Bigint.js +2 -2
- package/esm/types/Date.d.ts +1 -1
- package/esm/types/Date.js +2 -2
- package/esm/types/False.d.ts +1 -1
- package/esm/types/False.js +2 -2
- package/esm/types/Float.d.ts +1 -1
- package/esm/types/Float.js +2 -2
- package/esm/types/Int.d.ts +1 -1
- package/esm/types/Int.js +2 -2
- package/esm/types/Map.d.ts +1 -1
- package/esm/types/Map.js +2 -2
- package/esm/types/Nan.d.ts +1 -1
- package/esm/types/Nan.js +2 -2
- package/esm/types/Null.d.ts +1 -1
- package/esm/types/Null.js +2 -2
- package/esm/types/Set.d.ts +1 -1
- package/esm/types/Set.js +2 -2
- package/esm/types/String.d.ts +1 -1
- package/esm/types/String.js +2 -2
- package/esm/types/True.d.ts +1 -1
- package/esm/types/True.js +2 -2
- package/esm/types/Undefined.d.ts +1 -1
- package/esm/types/Undefined.js +2 -2
- package/esm/types/Url.d.ts +1 -1
- package/esm/types/Url.js +2 -2
- package/esm/types/index.d.ts +5 -2
- package/esm/types/index.js +148 -131
- package/esm/utils/useHighlight.d.ts +0 -1
- package/esm/utils/useRender.d.ts +1 -1
- package/esm/utils/useRender.js +3 -3
- package/githubDark.d.ts +4 -0
- package/githubLight.d.ts +4 -0
- package/gruvbox.d.ts +4 -0
- package/light.d.ts +2 -1
- package/monokai.d.ts +4 -0
- package/nord.d.ts +4 -0
- package/package.json +12 -6
- package/triangle-arrow.d.ts +2 -2
- package/triangle-solid-arrow.d.ts +2 -2
- package/vscode.d.ts +4 -0
package/esm/symbol/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
-
var _excluded = ["isNumber"],
|
|
4
|
+
var _excluded = ["isNumber", "value", "parentValue", "keyName", "keys"],
|
|
5
5
|
_excluded2 = ["as", "render"],
|
|
6
6
|
_excluded3 = ["as", "render"],
|
|
7
7
|
_excluded4 = ["as", "render"],
|
|
@@ -10,15 +10,19 @@ var _excluded = ["isNumber"],
|
|
|
10
10
|
_excluded7 = ["as", "render"],
|
|
11
11
|
_excluded8 = ["as", "render"],
|
|
12
12
|
_excluded9 = ["as", "render"];
|
|
13
|
-
import { useSymbolsStore } from
|
|
14
|
-
import { useExpandsStore } from
|
|
13
|
+
import { useSymbolsStore } from "../store/Symbols.js";
|
|
14
|
+
import { useExpandsStore } from "../store/Expands.js";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
export var Quote = props => {
|
|
17
17
|
var {
|
|
18
18
|
Quote: Comp = {}
|
|
19
19
|
} = useSymbolsStore();
|
|
20
20
|
var {
|
|
21
|
-
isNumber
|
|
21
|
+
isNumber,
|
|
22
|
+
value,
|
|
23
|
+
parentValue,
|
|
24
|
+
keyName,
|
|
25
|
+
keys
|
|
22
26
|
} = props,
|
|
23
27
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
24
28
|
if (isNumber) return null;
|
|
@@ -29,7 +33,20 @@ export var Quote = props => {
|
|
|
29
33
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded2);
|
|
30
34
|
var Elm = as || 'span';
|
|
31
35
|
var elmProps = _extends({}, other, reset);
|
|
32
|
-
|
|
36
|
+
// Trim the leading and trailing spaces in children,
|
|
37
|
+
// and set it to undefined if it's an empty string or contains only spaces.
|
|
38
|
+
// https://github.com/uiwjs/react-json-view/issues/86
|
|
39
|
+
if (typeof elmProps.children === 'string') {
|
|
40
|
+
var trimmed = elmProps.children.trim();
|
|
41
|
+
elmProps.children = trimmed || undefined;
|
|
42
|
+
}
|
|
43
|
+
var result = {
|
|
44
|
+
value,
|
|
45
|
+
parentValue,
|
|
46
|
+
keyName,
|
|
47
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
48
|
+
};
|
|
49
|
+
var child = render && typeof render === 'function' && render(elmProps, result);
|
|
33
50
|
if (child) return child;
|
|
34
51
|
return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));
|
|
35
52
|
};
|
|
@@ -46,12 +63,18 @@ export var ValueQuote = props => {
|
|
|
46
63
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded3);
|
|
47
64
|
var Elm = as || 'span';
|
|
48
65
|
var elmProps = _extends({}, other, reset);
|
|
49
|
-
var child = render && typeof render === 'function' && render(elmProps);
|
|
66
|
+
var child = render && typeof render === 'function' && render(elmProps, {});
|
|
50
67
|
if (child) return child;
|
|
51
68
|
return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));
|
|
52
69
|
};
|
|
53
70
|
ValueQuote.displayName = 'JVR.ValueQuote';
|
|
54
|
-
export var Colon =
|
|
71
|
+
export var Colon = props => {
|
|
72
|
+
var {
|
|
73
|
+
value,
|
|
74
|
+
parentValue,
|
|
75
|
+
keyName,
|
|
76
|
+
keys
|
|
77
|
+
} = props;
|
|
55
78
|
var {
|
|
56
79
|
Colon: Comp = {}
|
|
57
80
|
} = useSymbolsStore();
|
|
@@ -61,7 +84,12 @@ export var Colon = () => {
|
|
|
61
84
|
} = Comp,
|
|
62
85
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded4);
|
|
63
86
|
var Elm = as || 'span';
|
|
64
|
-
var child = render && typeof render === 'function' && render(reset
|
|
87
|
+
var child = render && typeof render === 'function' && render(reset, {
|
|
88
|
+
value,
|
|
89
|
+
parentValue,
|
|
90
|
+
keyName,
|
|
91
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
92
|
+
});
|
|
65
93
|
if (child) return child;
|
|
66
94
|
return /*#__PURE__*/_jsx(Elm, _extends({}, reset));
|
|
67
95
|
};
|
|
@@ -72,7 +100,12 @@ export var Arrow = props => {
|
|
|
72
100
|
} = useSymbolsStore();
|
|
73
101
|
var expands = useExpandsStore();
|
|
74
102
|
var {
|
|
75
|
-
expandKey
|
|
103
|
+
expandKey,
|
|
104
|
+
style: resetStyle,
|
|
105
|
+
value,
|
|
106
|
+
parentValue,
|
|
107
|
+
keyName,
|
|
108
|
+
keys
|
|
76
109
|
} = props;
|
|
77
110
|
var isExpanded = !!expands[expandKey];
|
|
78
111
|
var {
|
|
@@ -83,24 +116,41 @@ export var Arrow = props => {
|
|
|
83
116
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded5);
|
|
84
117
|
var Elm = as || 'span';
|
|
85
118
|
var isRender = render && typeof render === 'function';
|
|
86
|
-
var
|
|
119
|
+
var elmProps = _extends({}, reset, {
|
|
87
120
|
'data-expanded': isExpanded,
|
|
88
|
-
style: _extends({}, style,
|
|
89
|
-
})
|
|
121
|
+
style: _extends({}, style, resetStyle)
|
|
122
|
+
});
|
|
123
|
+
var result = {
|
|
124
|
+
value,
|
|
125
|
+
parentValue,
|
|
126
|
+
keyName,
|
|
127
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
128
|
+
};
|
|
129
|
+
var child = isRender && render(elmProps, result);
|
|
90
130
|
if (child) return child;
|
|
91
131
|
return /*#__PURE__*/_jsx(Elm, _extends({}, reset, {
|
|
92
|
-
style: _extends({}, style,
|
|
132
|
+
style: _extends({}, style, resetStyle)
|
|
93
133
|
}));
|
|
94
134
|
};
|
|
95
135
|
Arrow.displayName = 'JVR.Arrow';
|
|
96
|
-
export var BracketsOpen =
|
|
136
|
+
export var BracketsOpen = props => {
|
|
97
137
|
var {
|
|
98
|
-
isBrackets
|
|
99
|
-
|
|
138
|
+
isBrackets,
|
|
139
|
+
value,
|
|
140
|
+
parentValue,
|
|
141
|
+
keyName,
|
|
142
|
+
keys
|
|
143
|
+
} = props;
|
|
100
144
|
var {
|
|
101
145
|
BracketsLeft = {},
|
|
102
146
|
BraceLeft = {}
|
|
103
147
|
} = useSymbolsStore();
|
|
148
|
+
var result = {
|
|
149
|
+
value,
|
|
150
|
+
parentValue,
|
|
151
|
+
keyName,
|
|
152
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
153
|
+
};
|
|
104
154
|
if (isBrackets) {
|
|
105
155
|
var {
|
|
106
156
|
as,
|
|
@@ -108,7 +158,7 @@ export var BracketsOpen = _ref => {
|
|
|
108
158
|
} = BracketsLeft,
|
|
109
159
|
reset = _objectWithoutPropertiesLoose(BracketsLeft, _excluded6);
|
|
110
160
|
var BracketsLeftComp = as || 'span';
|
|
111
|
-
var _child = _render && typeof _render === 'function' && _render(reset);
|
|
161
|
+
var _child = _render && typeof _render === 'function' && _render(reset, result);
|
|
112
162
|
if (_child) return _child;
|
|
113
163
|
return /*#__PURE__*/_jsx(BracketsLeftComp, _extends({}, reset));
|
|
114
164
|
}
|
|
@@ -116,18 +166,28 @@ export var BracketsOpen = _ref => {
|
|
|
116
166
|
as: elm,
|
|
117
167
|
render
|
|
118
168
|
} = BraceLeft,
|
|
119
|
-
|
|
169
|
+
resetProps = _objectWithoutPropertiesLoose(BraceLeft, _excluded7);
|
|
120
170
|
var BraceLeftComp = elm || 'span';
|
|
121
|
-
var child = render && typeof render === 'function' && render(
|
|
171
|
+
var child = render && typeof render === 'function' && render(resetProps, result);
|
|
122
172
|
if (child) return child;
|
|
123
|
-
return /*#__PURE__*/_jsx(BraceLeftComp, _extends({},
|
|
173
|
+
return /*#__PURE__*/_jsx(BraceLeftComp, _extends({}, resetProps));
|
|
124
174
|
};
|
|
125
175
|
BracketsOpen.displayName = 'JVR.BracketsOpen';
|
|
126
|
-
export var BracketsClose =
|
|
176
|
+
export var BracketsClose = props => {
|
|
127
177
|
var {
|
|
128
178
|
isBrackets,
|
|
129
|
-
isVisiable
|
|
130
|
-
|
|
179
|
+
isVisiable,
|
|
180
|
+
value,
|
|
181
|
+
parentValue,
|
|
182
|
+
keyName,
|
|
183
|
+
keys
|
|
184
|
+
} = props;
|
|
185
|
+
var result = {
|
|
186
|
+
value,
|
|
187
|
+
parentValue,
|
|
188
|
+
keyName,
|
|
189
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
190
|
+
};
|
|
131
191
|
if (!isVisiable) return null;
|
|
132
192
|
var {
|
|
133
193
|
BracketsRight = {},
|
|
@@ -140,7 +200,7 @@ export var BracketsClose = _ref2 => {
|
|
|
140
200
|
} = BracketsRight,
|
|
141
201
|
_reset = _objectWithoutPropertiesLoose(BracketsRight, _excluded8);
|
|
142
202
|
var BracketsRightComp = as || 'span';
|
|
143
|
-
var _child2 = _render2 && typeof _render2 === 'function' && _render2(_reset);
|
|
203
|
+
var _child2 = _render2 && typeof _render2 === 'function' && _render2(_reset, result);
|
|
144
204
|
if (_child2) return _child2;
|
|
145
205
|
return /*#__PURE__*/_jsx(BracketsRightComp, _extends({}, _reset));
|
|
146
206
|
}
|
|
@@ -150,7 +210,7 @@ export var BracketsClose = _ref2 => {
|
|
|
150
210
|
} = BraceRight,
|
|
151
211
|
reset = _objectWithoutPropertiesLoose(BraceRight, _excluded9);
|
|
152
212
|
var BraceRightComp = elm || 'span';
|
|
153
|
-
var child = render && typeof render === 'function' && render(reset);
|
|
213
|
+
var child = render && typeof render === 'function' && render(reset, result);
|
|
154
214
|
if (child) return child;
|
|
155
215
|
return /*#__PURE__*/_jsx(BraceRightComp, _extends({}, reset));
|
|
156
216
|
};
|
package/esm/theme/basic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const basicTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const basicTheme: CSS.Properties<string | number>;
|
package/esm/theme/basic.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export var basicTheme = {
|
|
2
2
|
'--w-rjv-font-family': 'monospace',
|
|
3
3
|
'--w-rjv-color': '#b5bd68',
|
|
4
|
+
'--w-rjv-key-number': '#002b36',
|
|
4
5
|
'--w-rjv-key-string': '#b5bd68',
|
|
5
6
|
'--w-rjv-background-color': '#2E3235',
|
|
6
7
|
'--w-rjv-line-color': '#292d30',
|
|
@@ -13,6 +14,7 @@ export var basicTheme = {
|
|
|
13
14
|
'--w-rjv-curlybraces-color': '#cc99cc',
|
|
14
15
|
'--w-rjv-colon-color': '#bababa',
|
|
15
16
|
'--w-rjv-brackets-color': '#808080',
|
|
17
|
+
'--w-rjv-ellipsis-color': '#cb4b16',
|
|
16
18
|
'--w-rjv-quotes-color': 'var(--w-rjv-key-string)',
|
|
17
19
|
'--w-rjv-quotes-string-color': 'var(--w-rjv-type-string-color)',
|
|
18
20
|
'--w-rjv-type-string-color': '#b5bd68',
|
package/esm/theme/dark.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const darkTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const darkTheme: CSS.Properties<string | number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const githubDarkTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const githubDarkTheme: CSS.Properties<string | number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const githubLightTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const githubLightTheme: CSS.Properties<string | number>;
|
package/esm/theme/gruvbox.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const gruvboxTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const gruvboxTheme: CSS.Properties<string | number>;
|
package/esm/theme/light.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const lightTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const lightTheme: CSS.Properties<string | number>;
|
package/esm/theme/monokai.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const monokaiTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const monokaiTheme: CSS.Properties<string | number>;
|
package/esm/theme/nord.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const nordTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const nordTheme: CSS.Properties<string | number>;
|
package/esm/theme/vscode.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const vscodeTheme:
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
export declare const vscodeTheme: CSS.Properties<string | number>;
|
package/esm/types/Bigint.d.ts
CHANGED
package/esm/types/Bigint.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Bigint = props => {
|
|
4
4
|
var {
|
|
5
5
|
Bigint: Comp = {}
|
package/esm/types/Date.d.ts
CHANGED
package/esm/types/Date.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Date = props => {
|
|
4
4
|
var {
|
|
5
5
|
Date: Comp = {}
|
package/esm/types/False.d.ts
CHANGED
package/esm/types/False.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var False = props => {
|
|
4
4
|
var {
|
|
5
5
|
False: Comp = {}
|
package/esm/types/Float.d.ts
CHANGED
package/esm/types/Float.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Float = props => {
|
|
4
4
|
var {
|
|
5
5
|
Float: Comp = {}
|
package/esm/types/Int.d.ts
CHANGED
package/esm/types/Int.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Int = props => {
|
|
4
4
|
var {
|
|
5
5
|
Int: Comp = {}
|
package/esm/types/Map.d.ts
CHANGED
package/esm/types/Map.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Map = props => {
|
|
4
4
|
var {
|
|
5
5
|
Map: Comp = {}
|
package/esm/types/Nan.d.ts
CHANGED
package/esm/types/Nan.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Nan = props => {
|
|
4
4
|
var {
|
|
5
5
|
Nan: Comp = {}
|
package/esm/types/Null.d.ts
CHANGED
package/esm/types/Null.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Null = props => {
|
|
4
4
|
var {
|
|
5
5
|
Null: Comp = {}
|
package/esm/types/Set.d.ts
CHANGED
package/esm/types/Set.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Set = props => {
|
|
4
4
|
var {
|
|
5
5
|
Set: Comp = {}
|
package/esm/types/String.d.ts
CHANGED
package/esm/types/String.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var StringText = props => {
|
|
4
4
|
var {
|
|
5
5
|
Str: Comp = {}
|
package/esm/types/True.d.ts
CHANGED
package/esm/types/True.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var True = props => {
|
|
4
4
|
var {
|
|
5
5
|
True: Comp = {}
|
package/esm/types/Undefined.d.ts
CHANGED
package/esm/types/Undefined.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Undefined = props => {
|
|
4
4
|
var {
|
|
5
5
|
Undefined: Comp = {}
|
package/esm/types/Url.d.ts
CHANGED
package/esm/types/Url.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTypesStore } from
|
|
2
|
-
import { useTypesRender } from
|
|
1
|
+
import { useTypesStore } from "../store/Types.js";
|
|
2
|
+
import { useTypesRender } from "../utils/useRender.js";
|
|
3
3
|
export var Url = props => {
|
|
4
4
|
var {
|
|
5
5
|
Url: Comp = {}
|
package/esm/types/index.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
1
|
+
import { type FC, type PropsWithChildren } from 'react';
|
|
2
|
+
export declare const bigIntToString: (bi?: BigInt | string) => string;
|
|
2
3
|
export declare const SetComp: FC<PropsWithChildren<{
|
|
3
4
|
value: unknown;
|
|
5
|
+
keyName: string | number;
|
|
4
6
|
}>>;
|
|
5
7
|
export declare const MapComp: FC<PropsWithChildren<{
|
|
6
8
|
value: unknown;
|
|
9
|
+
keyName: string | number;
|
|
7
10
|
}>>;
|
|
8
11
|
type TypeProps = PropsWithChildren<{
|
|
9
|
-
expandKey: string;
|
|
10
12
|
keyName: string | number;
|
|
13
|
+
keys?: (string | number)[];
|
|
11
14
|
}>;
|
|
12
15
|
export declare const TypeString: FC<TypeProps>;
|
|
13
16
|
export declare const TypeTrue: FC<TypeProps>;
|