@gfazioli/mantine-json-tree 1.1.4 → 2.0.0
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 +5 -5
- package/dist/cjs/JsonTree.cjs +10 -1
- package/dist/cjs/JsonTree.cjs.map +1 -1
- package/dist/cjs/lib/utils.cjs +99 -1
- package/dist/cjs/lib/utils.cjs.map +1 -1
- package/dist/esm/JsonTree.mjs +10 -1
- package/dist/esm/JsonTree.mjs.map +1 -1
- package/dist/esm/lib/utils.mjs +99 -1
- package/dist/esm/lib/utils.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.layer.css +1 -1
- package/dist/types/JsonTree.d.ts +1 -1
- package/dist/types/lib/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/JsonTree.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type JsonTreeCssVariables = {
|
|
|
6
6
|
root: '--json-tree-font-family' | '--json-tree-font-size';
|
|
7
7
|
header: '--json-tree-header-background-color' | '--json-tree-header-sticky-offset';
|
|
8
8
|
key: '--json-tree-color-key';
|
|
9
|
-
value: '--json-tree-color-string' | '--json-tree-color-number' | '--json-tree-color-boolean' | '--json-tree-color-null' | '--json-tree-color-function';
|
|
9
|
+
value: '--json-tree-color-string' | '--json-tree-color-number' | '--json-tree-color-boolean' | '--json-tree-color-null' | '--json-tree-color-function' | '--json-tree-color-react-element' | '--json-tree-color-date' | '--json-tree-color-nan' | '--json-tree-color-infinity' | '--json-tree-color-bigint' | '--json-tree-color-symbol' | '--json-tree-color-regexp' | '--json-tree-color-map' | '--json-tree-color-set';
|
|
10
10
|
bracket: '--json-tree-color-bracket';
|
|
11
11
|
indentGuide: '--json-tree-indent-guide-color-0' | '--json-tree-indent-guide-color-1' | '--json-tree-indent-guide-color-2' | '--json-tree-indent-guide-color-3' | '--json-tree-indent-guide-color-4';
|
|
12
12
|
expandCollapse: never;
|
|
@@ -13,7 +13,7 @@ export interface JSONTreeNodeData extends TreeNodeData {
|
|
|
13
13
|
/**
|
|
14
14
|
* Type of a JSON value for rendering purposes.
|
|
15
15
|
*/
|
|
16
|
-
export type ValueType = 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null' | 'undefined' | 'function';
|
|
16
|
+
export type ValueType = 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null' | 'undefined' | 'function' | 'react-element' | 'date' | 'nan' | 'infinity' | 'bigint' | 'symbol' | 'regexp' | 'map' | 'set';
|
|
17
17
|
/**
|
|
18
18
|
* Get the type of a value for display purposes.
|
|
19
19
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfazioli/mantine-json-tree",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A Mantine extension component that renders interactive JSON trees with syntax highlighting, collapsible nodes, copy-to-clipboard, and configurable expansion depth.",
|
|
5
5
|
"homepage": "https://gfazioli.github.io/mantine-json-tree/",
|
|
6
6
|
"packageManager": "yarn@4.0.1",
|