@centreon/ui 24.4.47 → 24.4.49

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.47",
3
+ "version": "24.4.49",
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",
@@ -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>