@dartech/arsenal-ui 1.3.30 → 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: 16
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
@@ -2684,10 +2686,12 @@ const TableAction = ({
2684
2686
  onClick,
2685
2687
  location
2686
2688
  }) => {
2689
+ var _a;
2687
2690
  if (location) {
2688
2691
  return jsx(IconButton, Object.assign({
2689
2692
  component: Link,
2690
- to: location,
2693
+ to: location.pathname,
2694
+ state: (_a = location.state) !== null && _a !== void 0 ? _a : null,
2691
2695
  size: "small"
2692
2696
  }, {
2693
2697
  children: jsx(Tooltip, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.30",
3
+ "version": "1.3.32",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -2,6 +2,7 @@
2
2
  type Props = {
3
3
  value: unknown;
4
4
  height?: string;
5
+ fontSize?: number;
5
6
  };
6
- export declare const JsonView: ({ value, height }: Props) => JSX.Element;
7
+ export declare const JsonView: ({ value, height, fontSize }: Props) => JSX.Element;
7
8
  export {};
@@ -3,6 +3,10 @@ type Props = {
3
3
  open: boolean;
4
4
  value: string;
5
5
  onClose: () => void;
6
+ jsonViewProps?: {
7
+ height?: string;
8
+ fontSize?: number;
9
+ };
6
10
  };
7
11
  export declare const JsonModalView: React.FC<Props>;
8
12
  export default JsonModalView;