@uiw/react-json-view 2.0.0-alpha.4 → 2.0.0-alpha.40
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 +279 -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 +75 -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 +78 -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 +11 -5
- 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,13 @@ export var Quote = props => {
|
|
|
29
33
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded2);
|
|
30
34
|
var Elm = as || 'span';
|
|
31
35
|
var elmProps = _extends({}, other, reset);
|
|
32
|
-
var
|
|
36
|
+
var result = {
|
|
37
|
+
value,
|
|
38
|
+
parentValue,
|
|
39
|
+
keyName,
|
|
40
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
41
|
+
};
|
|
42
|
+
var child = render && typeof render === 'function' && render(elmProps, result);
|
|
33
43
|
if (child) return child;
|
|
34
44
|
return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));
|
|
35
45
|
};
|
|
@@ -46,12 +56,18 @@ export var ValueQuote = props => {
|
|
|
46
56
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded3);
|
|
47
57
|
var Elm = as || 'span';
|
|
48
58
|
var elmProps = _extends({}, other, reset);
|
|
49
|
-
var child = render && typeof render === 'function' && render(elmProps);
|
|
59
|
+
var child = render && typeof render === 'function' && render(elmProps, {});
|
|
50
60
|
if (child) return child;
|
|
51
61
|
return /*#__PURE__*/_jsx(Elm, _extends({}, elmProps));
|
|
52
62
|
};
|
|
53
63
|
ValueQuote.displayName = 'JVR.ValueQuote';
|
|
54
|
-
export var Colon =
|
|
64
|
+
export var Colon = props => {
|
|
65
|
+
var {
|
|
66
|
+
value,
|
|
67
|
+
parentValue,
|
|
68
|
+
keyName,
|
|
69
|
+
keys
|
|
70
|
+
} = props;
|
|
55
71
|
var {
|
|
56
72
|
Colon: Comp = {}
|
|
57
73
|
} = useSymbolsStore();
|
|
@@ -61,7 +77,12 @@ export var Colon = () => {
|
|
|
61
77
|
} = Comp,
|
|
62
78
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded4);
|
|
63
79
|
var Elm = as || 'span';
|
|
64
|
-
var child = render && typeof render === 'function' && render(reset
|
|
80
|
+
var child = render && typeof render === 'function' && render(reset, {
|
|
81
|
+
value,
|
|
82
|
+
parentValue,
|
|
83
|
+
keyName,
|
|
84
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
85
|
+
});
|
|
65
86
|
if (child) return child;
|
|
66
87
|
return /*#__PURE__*/_jsx(Elm, _extends({}, reset));
|
|
67
88
|
};
|
|
@@ -72,7 +93,12 @@ export var Arrow = props => {
|
|
|
72
93
|
} = useSymbolsStore();
|
|
73
94
|
var expands = useExpandsStore();
|
|
74
95
|
var {
|
|
75
|
-
expandKey
|
|
96
|
+
expandKey,
|
|
97
|
+
style: resetStyle,
|
|
98
|
+
value,
|
|
99
|
+
parentValue,
|
|
100
|
+
keyName,
|
|
101
|
+
keys
|
|
76
102
|
} = props;
|
|
77
103
|
var isExpanded = !!expands[expandKey];
|
|
78
104
|
var {
|
|
@@ -83,24 +109,41 @@ export var Arrow = props => {
|
|
|
83
109
|
reset = _objectWithoutPropertiesLoose(Comp, _excluded5);
|
|
84
110
|
var Elm = as || 'span';
|
|
85
111
|
var isRender = render && typeof render === 'function';
|
|
86
|
-
var
|
|
112
|
+
var elmProps = _extends({}, reset, {
|
|
87
113
|
'data-expanded': isExpanded,
|
|
88
|
-
style: _extends({}, style,
|
|
89
|
-
})
|
|
114
|
+
style: _extends({}, style, resetStyle)
|
|
115
|
+
});
|
|
116
|
+
var result = {
|
|
117
|
+
value,
|
|
118
|
+
parentValue,
|
|
119
|
+
keyName,
|
|
120
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
121
|
+
};
|
|
122
|
+
var child = isRender && render(elmProps, result);
|
|
90
123
|
if (child) return child;
|
|
91
124
|
return /*#__PURE__*/_jsx(Elm, _extends({}, reset, {
|
|
92
|
-
style: _extends({}, style,
|
|
125
|
+
style: _extends({}, style, resetStyle)
|
|
93
126
|
}));
|
|
94
127
|
};
|
|
95
128
|
Arrow.displayName = 'JVR.Arrow';
|
|
96
|
-
export var BracketsOpen =
|
|
129
|
+
export var BracketsOpen = props => {
|
|
97
130
|
var {
|
|
98
|
-
isBrackets
|
|
99
|
-
|
|
131
|
+
isBrackets,
|
|
132
|
+
value,
|
|
133
|
+
parentValue,
|
|
134
|
+
keyName,
|
|
135
|
+
keys
|
|
136
|
+
} = props;
|
|
100
137
|
var {
|
|
101
138
|
BracketsLeft = {},
|
|
102
139
|
BraceLeft = {}
|
|
103
140
|
} = useSymbolsStore();
|
|
141
|
+
var result = {
|
|
142
|
+
value,
|
|
143
|
+
parentValue,
|
|
144
|
+
keyName,
|
|
145
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
146
|
+
};
|
|
104
147
|
if (isBrackets) {
|
|
105
148
|
var {
|
|
106
149
|
as,
|
|
@@ -108,7 +151,7 @@ export var BracketsOpen = _ref => {
|
|
|
108
151
|
} = BracketsLeft,
|
|
109
152
|
reset = _objectWithoutPropertiesLoose(BracketsLeft, _excluded6);
|
|
110
153
|
var BracketsLeftComp = as || 'span';
|
|
111
|
-
var _child = _render && typeof _render === 'function' && _render(reset);
|
|
154
|
+
var _child = _render && typeof _render === 'function' && _render(reset, result);
|
|
112
155
|
if (_child) return _child;
|
|
113
156
|
return /*#__PURE__*/_jsx(BracketsLeftComp, _extends({}, reset));
|
|
114
157
|
}
|
|
@@ -116,18 +159,28 @@ export var BracketsOpen = _ref => {
|
|
|
116
159
|
as: elm,
|
|
117
160
|
render
|
|
118
161
|
} = BraceLeft,
|
|
119
|
-
|
|
162
|
+
resetProps = _objectWithoutPropertiesLoose(BraceLeft, _excluded7);
|
|
120
163
|
var BraceLeftComp = elm || 'span';
|
|
121
|
-
var child = render && typeof render === 'function' && render(
|
|
164
|
+
var child = render && typeof render === 'function' && render(resetProps, result);
|
|
122
165
|
if (child) return child;
|
|
123
|
-
return /*#__PURE__*/_jsx(BraceLeftComp, _extends({},
|
|
166
|
+
return /*#__PURE__*/_jsx(BraceLeftComp, _extends({}, resetProps));
|
|
124
167
|
};
|
|
125
168
|
BracketsOpen.displayName = 'JVR.BracketsOpen';
|
|
126
|
-
export var BracketsClose =
|
|
169
|
+
export var BracketsClose = props => {
|
|
127
170
|
var {
|
|
128
171
|
isBrackets,
|
|
129
|
-
isVisiable
|
|
130
|
-
|
|
172
|
+
isVisiable,
|
|
173
|
+
value,
|
|
174
|
+
parentValue,
|
|
175
|
+
keyName,
|
|
176
|
+
keys
|
|
177
|
+
} = props;
|
|
178
|
+
var result = {
|
|
179
|
+
value,
|
|
180
|
+
parentValue,
|
|
181
|
+
keyName,
|
|
182
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
183
|
+
};
|
|
131
184
|
if (!isVisiable) return null;
|
|
132
185
|
var {
|
|
133
186
|
BracketsRight = {},
|
|
@@ -140,7 +193,7 @@ export var BracketsClose = _ref2 => {
|
|
|
140
193
|
} = BracketsRight,
|
|
141
194
|
_reset = _objectWithoutPropertiesLoose(BracketsRight, _excluded8);
|
|
142
195
|
var BracketsRightComp = as || 'span';
|
|
143
|
-
var _child2 = _render2 && typeof _render2 === 'function' && _render2(_reset);
|
|
196
|
+
var _child2 = _render2 && typeof _render2 === 'function' && _render2(_reset, result);
|
|
144
197
|
if (_child2) return _child2;
|
|
145
198
|
return /*#__PURE__*/_jsx(BracketsRightComp, _extends({}, _reset));
|
|
146
199
|
}
|
|
@@ -150,7 +203,7 @@ export var BracketsClose = _ref2 => {
|
|
|
150
203
|
} = BraceRight,
|
|
151
204
|
reset = _objectWithoutPropertiesLoose(BraceRight, _excluded9);
|
|
152
205
|
var BraceRightComp = elm || 'span';
|
|
153
|
-
var child = render && typeof render === 'function' && render(reset);
|
|
206
|
+
var child = render && typeof render === 'function' && render(reset, result);
|
|
154
207
|
if (child) return child;
|
|
155
208
|
return /*#__PURE__*/_jsx(BraceRightComp, _extends({}, reset));
|
|
156
209
|
};
|
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>;
|