serene-core-client 0.1.7 → 0.1.9
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.
|
@@ -3,7 +3,8 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Box, IconButton } from '@mui/material';
|
|
4
4
|
import AddIcon from '@mui/icons-material/Add';
|
|
5
5
|
import { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
6
|
-
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import oneLight from 'react-syntax-highlighter/dist/esm/styles/prism/one-light.js';
|
|
7
8
|
export function JsonDisplay({ str, format = false, minified = false }) {
|
|
8
9
|
const [isMinified, setIsMinified] = useState(minified);
|
|
9
10
|
return (_jsxs(Box, { sx: { position: 'relative' }, children: [_jsx(Box, { component: 'pre', sx: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serene-core-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react": "^19.2.4",
|
|
32
32
|
"react-dom": "^19.2.4",
|
|
33
33
|
"react-markdown": "10.1.0",
|
|
34
|
-
"react-syntax-highlighter": "^
|
|
34
|
+
"react-syntax-highlighter": "^16.1.1",
|
|
35
35
|
"typescript": "^5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|