File tree Expand file tree Collapse file tree 4 files changed +101
-135
lines changed Expand file tree Collapse file tree 4 files changed +101
-135
lines changed Original file line number Diff line number Diff line change 34
34
"@kittycad/lib" : " ^2.0.34" ,
35
35
"@lezer/highlight" : " ^1.2.1" ,
36
36
"@lezer/lr" : " ^1.4.1" ,
37
+ "@microlink/react-json-view" : " ^1.27.0" ,
37
38
"@million/lint" : " ^1.0.14" ,
38
39
"@react-hook/resize-observer" : " ^2.0.1" ,
39
40
"@replit/codemirror-interact" : " ^6.3.1" ,
61
62
"react-dom" : " ^18.2.0" ,
62
63
"react-hot-toast" : " ^2.5.2" ,
63
64
"react-hotkeys-hook" : " ^4.6.1" ,
64
- "react-json-view" : " ^1.21.3" ,
65
65
"react-modal" : " ^3.16.3" ,
66
66
"react-modal-promise" : " ^1.0.2" ,
67
67
"react-router-dom" : " ^6.28.0" ,
Original file line number Diff line number Diff line change 1
- import ReactJson from 'react-json-view'
1
+ import ReactJsonView from '@microlink/ react-json-view'
2
2
3
3
import { useResolvedTheme } from '@src/hooks/useResolvedTheme'
4
4
import { useKclContext } from '@src/lang/KclProvider'
5
5
6
- const ReactJsonTypeHack = ReactJson as any
7
-
8
6
export const LogsPane = ( ) => {
9
7
const theme = useResolvedTheme ( )
10
8
const { logs } = useKclContext ( )
11
9
return (
12
10
< div className = "overflow-hidden" >
13
11
< div className = "absolute inset-0 p-2 flex flex-col overflow-auto" >
14
- < ReactJsonTypeHack
12
+ < ReactJsonView
15
13
src = { logs }
16
14
collapsed = { 1 }
17
15
collapseStringsAfterLength = { 60 }
Original file line number Diff line number Diff line change 1
1
import { useMemo } from 'react'
2
2
import toast from 'react-hot-toast'
3
- import ReactJson from 'react-json-view'
3
+ import ReactJsonView from '@microlink/ react-json-view'
4
4
5
5
import type { ExtrudeSurface } from '@rust/kcl-lib/bindings/ExtrudeSurface'
6
6
import type { Path } from '@rust/kcl-lib/bindings/Path'
@@ -55,7 +55,7 @@ export const MemoryPane = () => {
55
55
< div className = "h-full relative" >
56
56
< div className = "absolute inset-0 p-2 flex flex-col items-start" >
57
57
< div className = "overflow-auto h-full w-full pb-12" >
58
- < ReactJson
58
+ < ReactJsonView
59
59
src = { ProcessedMemory }
60
60
collapsed = { 1 }
61
61
collapseStringsAfterLength = { 60 }
You can’t perform that action at this time.
0 commit comments