@centreon/ui 24.4.1-MON-develop-BOOSTER.0 → 24.4.1-MON-23368-containers.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "24.4.1-MON-develop-BOOSTER.0",
3
+ "version": "24.4.1-MON-23368-containers.82",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -48,11 +48,11 @@
48
48
  "test/*"
49
49
  ],
50
50
  "devDependencies": {
51
- "@cypress/react": "^7.0.2",
52
- "@cypress/webpack-dev-server": "^3.2.3",
51
+ "@cypress/react": "^8.0.0",
52
+ "@cypress/webpack-dev-server": "^3.7.3",
53
53
  "@faker-js/faker": "^8.0.2",
54
- "@mdx-js/react": "^2.1.4",
55
- "@simonsmith/cypress-image-snapshot": "^6.1.0",
54
+ "@mdx-js/react": "^3.0.0",
55
+ "@simonsmith/cypress-image-snapshot": "^9.0.1",
56
56
  "@storybook/addon-a11y": "^7.0.9",
57
57
  "@storybook/addon-docs": "^7.0.9",
58
58
  "@storybook/addon-essentials": "^7.0.9",
@@ -73,16 +73,15 @@
73
73
  "@testing-library/jest-dom": "^5.16.5",
74
74
  "@testing-library/react": "^13.4.0",
75
75
  "@testing-library/react-hooks": "^8.0.1",
76
- "@types/cypress": "^1.1.3",
77
- "@types/jest": "^27.5.0",
76
+ "@types/jest": "^29.5.11",
78
77
  "@types/mocha": "^10.0.6",
79
- "@types/ramda": "^0.29.6",
80
- "@types/react": "^18.0.26",
81
- "@types/testing-library__jest-dom": "^5.14.6",
78
+ "@types/ramda": "^0.29.9",
79
+ "@types/react": "^18.2.48",
80
+ "@types/testing-library__jest-dom": "^6.0.0",
82
81
  "@vitejs/plugin-react": "^4.0.0",
83
82
  "@vitejs/plugin-react-swc": "^3.3.0",
84
- "axios-mock-adapter": "^1.21.4",
85
- "cypress": "^13.3.1",
83
+ "axios-mock-adapter": "^1.22.0",
84
+ "cypress": "^13.6.2",
86
85
  "identity-obj-proxy": "^3.0.0",
87
86
  "jest-transform-stub": "^2.0.0",
88
87
  "mochawesome": "^7.1.3",
@@ -93,27 +92,26 @@
93
92
  "react-dom": "^18.2.0",
94
93
  "react-test-renderer": "^18.2.0",
95
94
  "remark-gfm": "^3.0.1",
96
- "sass": "^1.62.1",
97
95
  "speed-measure-vite-plugin": "^0.1.2",
98
- "storybook": "^7.0.9",
96
+ "storybook": "^7.6.8",
99
97
  "storybook-addon-mock": "^4.0.0",
100
- "storybook-dark-mode": "^3.0.0",
98
+ "storybook-dark-mode": "^3.0.3",
101
99
  "style-dictionary": "^3.8.0",
102
- "ts-node": "^10.9.1",
100
+ "ts-node": "^10.9.2",
103
101
  "use-resize-observer": "^9.1.0",
104
102
  "vite": "^4.3.5",
105
103
  "vite-plugin-istanbul": "^5.0.0",
106
104
  "vite-plugin-svgr": "^3.2.0",
107
- "vite-plugin-turbosnap": "^1.0.2"
105
+ "vite-plugin-turbosnap": "^1.0.3"
108
106
  },
109
107
  "dependencies": {
110
- "@lexical/html": "^0.12.2",
111
- "@lexical/link": "^0.12.2",
112
- "@lexical/list": "^0.12.2",
113
- "@lexical/react": "^0.12.2",
114
- "@lexical/rich-text": "^0.12.2",
115
- "@lexical/selection": "^0.12.2",
116
- "@lexical/utils": "^0.12.2",
108
+ "@lexical/html": "^0.12.6",
109
+ "@lexical/link": "^0.12.6",
110
+ "@lexical/list": "^0.12.6",
111
+ "@lexical/react": "^0.12.6",
112
+ "@lexical/rich-text": "^0.12.6",
113
+ "@lexical/selection": "^0.12.6",
114
+ "@lexical/utils": "^0.12.6",
117
115
  "@react-spring/web": "^9.7.3",
118
116
  "@visx/curve": "^2.1.0",
119
117
  "@visx/group": "^3.3.0",
@@ -125,9 +123,9 @@
125
123
  "@visx/threshold": "^2.12.2",
126
124
  "@visx/visx": "2.16.0",
127
125
  "anylogger": "^1.0.11",
128
- "d3-array": "3.2.0",
126
+ "d3-array": "3.2.4",
129
127
  "humanize-duration": "^3.27.3",
130
- "lexical": "^0.12.2",
128
+ "lexical": "^0.12.6",
131
129
  "notistack": "^3.0.1",
132
130
  "numeral": "^2.0.6",
133
131
  "ramda": "0.29.1",
@@ -1,4 +1,4 @@
1
- import { ButtonProps, DialogContentText, Typography } from '@mui/material';
1
+ import { DialogContentText, Typography } from '@mui/material';
2
2
 
3
3
  import Dialog, { Props as DialogProps } from '..';
4
4
 
@@ -6,23 +6,15 @@ type Props = DialogProps & {
6
6
  children?: JSX.Element;
7
7
  labelMessage?: string | null;
8
8
  labelSecondMessage?: string | null;
9
- restCancelButtonProps?: ButtonProps;
10
- restConfirmButtonProps?: ButtonProps;
11
9
  };
12
10
 
13
11
  const Confirm = ({
14
12
  labelMessage,
15
13
  labelSecondMessage,
16
14
  children,
17
- restCancelButtonProps,
18
- restConfirmButtonProps,
19
15
  ...rest
20
16
  }: Props): JSX.Element => (
21
- <Dialog
22
- restCancelButtonProps={restCancelButtonProps}
23
- restConfirmButtonProps={restConfirmButtonProps}
24
- {...rest}
25
- >
17
+ <Dialog {...rest}>
26
18
  <DialogContentText>
27
19
  {labelMessage && <Typography>{labelMessage}</Typography>}
28
20
  {labelSecondMessage && <Typography>{labelSecondMessage}</Typography>}
@@ -9,8 +9,7 @@ import {
9
9
  DialogContent,
10
10
  DialogActions,
11
11
  DialogProps,
12
- CircularProgress,
13
- ButtonProps
12
+ CircularProgress
14
13
  } from '@mui/material';
15
14
 
16
15
  import { DataTestAttributes } from '../@types/data-attributes';
@@ -49,8 +48,6 @@ export type Props = {
49
48
  onClose?: () => void;
50
49
  onConfirm: (event, value?) => void;
51
50
  open: boolean;
52
- restCancelButtonProps?: ButtonProps;
53
- restConfirmButtonProps?: ButtonProps;
54
51
  submitting?: boolean;
55
52
  } & DialogProps &
56
53
  DataTestAttributes;
@@ -73,8 +70,6 @@ const Dialog = ({
73
70
  dialogContentClassName,
74
71
  dialogActionsClassName,
75
72
  dialogConfirmButtonClassName,
76
- restCancelButtonProps,
77
- restConfirmButtonProps,
78
73
  ...rest
79
74
  }: Props): JSX.Element => {
80
75
  const { classes, cx } = useStyles({ contentWidth });
@@ -106,7 +101,6 @@ const Dialog = ({
106
101
  data-testid="Cancel"
107
102
  disabled={cancelDisabled}
108
103
  onClick={onCancel}
109
- {...restCancelButtonProps}
110
104
  >
111
105
  {labelCancel}
112
106
  </Button>
@@ -119,7 +113,6 @@ const Dialog = ({
119
113
  disabled={confirmDisabled}
120
114
  endIcon={submitting && <CircularProgress size={15} />}
121
115
  onClick={onConfirm}
122
- {...restConfirmButtonProps}
123
116
  >
124
117
  {labelConfirm}
125
118
  </Button>
@@ -46,7 +46,10 @@ const CheckboxGroup = ({
46
46
  return;
47
47
  }
48
48
 
49
- setFieldValue(fieldName, value?.filter((elm) => !equals(elm, label)));
49
+ setFieldValue(
50
+ fieldName,
51
+ value?.filter((elm) => !equals(elm, label))
52
+ );
50
53
  };
51
54
 
52
55
  return useMemoComponent({
@@ -130,11 +130,10 @@ const WrapperThresholdLines = ({
130
130
 
131
131
  return (
132
132
  <g>
133
- {filteredThresholdLines.map(
134
- (element) =>
135
- element?.map(({ Component, props, key }) => (
136
- <Component {...props} id={key} key={key} />
137
- ))
133
+ {filteredThresholdLines.map((element) =>
134
+ element?.map(({ Component, props, key }) => (
135
+ <Component {...props} id={key} key={key} />
136
+ ))
138
137
  )}
139
138
  </g>
140
139
  );
@@ -43,8 +43,9 @@ const Annotation = ({
43
43
 
44
44
  const setAnnotationHovered = useSetAtom(annotationHoveredAtom);
45
45
 
46
- const content = `${truncate(event.content)} (${t(labelBy)} ${event.contact
47
- ?.name})`;
46
+ const content = `${truncate(event.content)} (${t(labelBy)} ${
47
+ event.contact?.name
48
+ })`;
48
49
 
49
50
  return (
50
51
  <g>