@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.
@@ -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 ReactJsonModule__default from "@microlink/react-json-view";
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(ReactJsonModule__default, {
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, ...others } = props;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.10-BE220825-beta.2",
3
+ "version": "9.3.10-BE220825-beta.3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {
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
- };