@dartech/arsenal-ui 1.3.31 → 1.3.32
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/index.js
CHANGED
@@ -1208,7 +1208,8 @@ const deepParseJson = value => {
|
|
1208
1208
|
|
1209
1209
|
const JsonView = ({
|
1210
1210
|
value,
|
1211
|
-
height: _height = '200px'
|
1211
|
+
height: _height = '200px',
|
1212
|
+
fontSize: _fontSize = 16
|
1212
1213
|
}) => {
|
1213
1214
|
const stringValue = useMemo(() => {
|
1214
1215
|
if (typeof value === 'string') {
|
@@ -1233,7 +1234,7 @@ const JsonView = ({
|
|
1233
1234
|
},
|
1234
1235
|
extensions: [langs.json()],
|
1235
1236
|
style: {
|
1236
|
-
fontSize:
|
1237
|
+
fontSize: _fontSize
|
1237
1238
|
}
|
1238
1239
|
});
|
1239
1240
|
};
|
@@ -1241,7 +1242,8 @@ const JsonView = ({
|
|
1241
1242
|
const JsonModalView = ({
|
1242
1243
|
open,
|
1243
1244
|
onClose,
|
1244
|
-
value
|
1245
|
+
value,
|
1246
|
+
jsonViewProps
|
1245
1247
|
}) => {
|
1246
1248
|
return jsxs(Dialog, Object.assign({
|
1247
1249
|
disableEscapeKeyDown: true,
|
@@ -1255,9 +1257,9 @@ const JsonModalView = ({
|
|
1255
1257
|
}
|
1256
1258
|
}, {
|
1257
1259
|
children: [jsx(DialogContent, {
|
1258
|
-
children: jsx(JsonView, {
|
1260
|
+
children: jsx(JsonView, Object.assign({
|
1259
1261
|
value: value
|
1260
|
-
})
|
1262
|
+
}, jsonViewProps))
|
1261
1263
|
}), jsxs(DialogActions, {
|
1262
1264
|
children: [jsx(CopyButton, {
|
1263
1265
|
copyText: value
|
package/package.json
CHANGED