@m4l/components 9.3.10-BE220825-beta.2 → 9.3.10-BE220825-beta.3
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/components/ObjectLogs/slots/ObjectLogsSlots.js +2 -2
- package/components/extended/React-Json-Viewer/ReactJsonViewer.js +2 -15
- package/package.json +1 -1
- package/components/ObjectLogs/ObjectsLogs.test.d.ts +0 -0
- package/components/ObjectLogs/subcomponents/DetailDialog/DetailDialog.test.d.ts +0 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js +0 -23
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/index.js +0 -1
- package/components/extended/React-Json-Viewer/test/ReactJsonViewer.test.d.ts +0 -1
|
@@ -4,7 +4,7 @@ import { o as objectLogsStyles } from "../ObjectLogs.styles.js";
|
|
|
4
4
|
import { S as Stack } from "../../mui_extended/Stack/Stack.js";
|
|
5
5
|
import { W as WindowBase } from "../../WindowBase/WindowBase.js";
|
|
6
6
|
import { D as DetailDialog } from "../subcomponents/DetailDialog/index.js";
|
|
7
|
-
import
|
|
7
|
+
import ReactJson from "@microlink/react-json-view";
|
|
8
8
|
import { O as ObjectLogsSlots } from "./ObjectLogsEnum.js";
|
|
9
9
|
import { T as Tooltip } from "../../mui_extended/Tooltip/Tooltip.js";
|
|
10
10
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
@@ -49,7 +49,7 @@ const IconClickeableStyled = styled(Icon, {
|
|
|
49
49
|
name: OBJECT_LOGS_KEY_COMPONENT,
|
|
50
50
|
slot: ObjectLogsSlots.iconClickeableStyled
|
|
51
51
|
})(objectLogsStyles?.iconClickeableStyled);
|
|
52
|
-
styled(
|
|
52
|
+
styled(ReactJson, {
|
|
53
53
|
name: OBJECT_LOGS_KEY_COMPONENT,
|
|
54
54
|
slot: ObjectLogsSlots.reactJsonSlot
|
|
55
55
|
})(objectLogsStyles?.reactJsonSlot);
|
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import * as ReactJsonModule from "@microlink/react-json-view";
|
|
4
3
|
import { R as ReactJsonViewerRootStyled } from "./slots/ReactJsonViewerSlots.js";
|
|
5
4
|
import { R as REACT_JSON_VIEWER_CLASSES } from "./constants.js";
|
|
6
|
-
import { useTheme } from "@mui/material";
|
|
7
|
-
import { g as getReactJsonViewerTheme } from "./helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js";
|
|
8
5
|
const ReactJsonViewer = (props) => {
|
|
9
|
-
const { className, dataTestId
|
|
10
|
-
const muiTheme = useTheme();
|
|
11
|
-
const theme = getReactJsonViewerTheme(muiTheme);
|
|
12
|
-
const ReactJson = ReactJsonModule.default || ReactJsonModule;
|
|
6
|
+
const { className, dataTestId } = props;
|
|
13
7
|
return /* @__PURE__ */ jsx(
|
|
14
8
|
ReactJsonViewerRootStyled,
|
|
15
9
|
{
|
|
16
10
|
className: clsx(REACT_JSON_VIEWER_CLASSES.root, className),
|
|
17
11
|
dataTestId,
|
|
18
12
|
role: "application",
|
|
19
|
-
"aria-label": "JSON data viewer"
|
|
20
|
-
children: /* @__PURE__ */ jsx(
|
|
21
|
-
ReactJson,
|
|
22
|
-
{
|
|
23
|
-
theme,
|
|
24
|
-
...others
|
|
25
|
-
}
|
|
26
|
-
)
|
|
13
|
+
"aria-label": "JSON data viewer"
|
|
27
14
|
}
|
|
28
15
|
);
|
|
29
16
|
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const getReactJsonViewerTheme = (muiTheme) => {
|
|
2
|
-
return {
|
|
3
|
-
base00: muiTheme?.vars?.palette?.background?.default,
|
|
4
|
-
base01: muiTheme?.vars?.palette?.background?.base,
|
|
5
|
-
base02: muiTheme?.vars?.palette?.background?.neutral,
|
|
6
|
-
base03: muiTheme?.vars?.palette?.text?.disabled,
|
|
7
|
-
base04: muiTheme?.vars?.palette?.text?.secondary,
|
|
8
|
-
base05: muiTheme?.vars?.palette?.text?.primary,
|
|
9
|
-
base06: muiTheme?.vars?.palette?.text?.primary,
|
|
10
|
-
base07: muiTheme?.vars?.palette?.text?.primary,
|
|
11
|
-
base08: muiTheme?.vars?.palette?.chips?.error?.outlined?.colorTone,
|
|
12
|
-
base09: muiTheme?.vars?.palette?.chips?.orange?.outlined?.color,
|
|
13
|
-
base0A: muiTheme?.vars?.palette?.chips?.warning?.outlined?.colorTone,
|
|
14
|
-
base0B: muiTheme?.vars?.palette?.chips?.forest?.outlined?.color,
|
|
15
|
-
base0C: muiTheme?.vars?.palette?.chips?.aqua?.outlined?.colorTone,
|
|
16
|
-
base0D: muiTheme?.vars?.palette?.chips?.info?.outlined?.colorTone,
|
|
17
|
-
base0E: muiTheme?.vars?.palette?.chips?.pink?.outlined?.colorTone,
|
|
18
|
-
base0F: muiTheme?.vars?.palette?.chips?.persianGreen?.outlined?.colorTone
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
getReactJsonViewerTheme as g
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|