@camunda/camunda-composite-components 0.8.1-rc.0 → 0.8.1

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 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.8.0",
7
+ "version": "0.8.1-rc.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -36,22 +36,22 @@
36
36
  "@babel/preset-typescript": "7.24.7",
37
37
  "@carbon/react": "1.55.0",
38
38
  "@mdx-js/react": "3.0.1",
39
- "@playwright/test": "1.42.1",
39
+ "@playwright/test": "1.45.2",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
- "@storybook/addon-a11y": "8.1.6",
43
- "@storybook/addon-actions": "8.1.6",
44
- "@storybook/addon-docs": "8.1.6",
45
- "@storybook/addon-essentials": "8.1.6",
46
- "@storybook/addon-interactions": "8.1.6",
47
- "@storybook/addon-links": "8.1.6",
48
- "@storybook/addon-mdx-gfm": "8.1.6",
42
+ "@storybook/addon-a11y": "8.1.10",
43
+ "@storybook/addon-actions": "8.1.10",
44
+ "@storybook/addon-docs": "8.1.10",
45
+ "@storybook/addon-essentials": "8.1.10",
46
+ "@storybook/addon-interactions": "8.1.10",
47
+ "@storybook/addon-links": "8.1.10",
48
+ "@storybook/addon-mdx-gfm": "8.1.10",
49
49
  "@storybook/addon-webpack5-compiler-babel": "3.0.3",
50
- "@storybook/blocks": "8.1.6",
50
+ "@storybook/blocks": "8.1.10",
51
51
  "@storybook/preset-scss": "1.0.3",
52
- "@storybook/react": "8.1.6",
53
- "@storybook/react-webpack5": "8.1.6",
54
- "@storybook/test": "8.1.6",
52
+ "@storybook/react": "8.1.10",
53
+ "@storybook/react-webpack5": "8.1.10",
54
+ "@storybook/test": "8.1.10",
55
55
  "@storybook/test-runner": "0.18.2",
56
56
  "@types/carbon-components-react": "7.55.10",
57
57
  "@types/event-source-polyfill": "1.0.5",
@@ -60,8 +60,8 @@
60
60
  "@types/react": "18.2.74",
61
61
  "@types/react-dom": "18.2.24",
62
62
  "@types/styled-components": "5.1.34",
63
- "@typescript-eslint/eslint-plugin": "7.7.1",
64
- "@typescript-eslint/parser": "7.7.1",
63
+ "@typescript-eslint/eslint-plugin": "7.16.0",
64
+ "@typescript-eslint/parser": "7.16.0",
65
65
  "axe-playwright": "2.0.1",
66
66
  "babel-loader": "9.1.3",
67
67
  "conventional-changelog-conventionalcommits": "7.0.2",
@@ -72,21 +72,21 @@
72
72
  "eslint-import-resolver-typescript": "3.6.1",
73
73
  "eslint-plugin-import": "2.29.1",
74
74
  "eslint-plugin-prettier": "5.1.3",
75
- "eslint-plugin-react": "7.34.1",
76
- "eslint-plugin-react-hooks": "4.6.0",
75
+ "eslint-plugin-react": "7.34.3",
76
+ "eslint-plugin-react-hooks": "4.6.2",
77
77
  "eslint-plugin-storybook": "0.8.0",
78
78
  "event-source-polyfill": "1.0.31",
79
79
  "husky": "9.0.11",
80
80
  "mixpanel-browser": "2.49.0",
81
- "prettier": "3.2.5",
81
+ "prettier": "3.3.2",
82
82
  "react": "18.2.0",
83
83
  "react-dom": "18.2.0",
84
- "rimraf": "5.0.5",
84
+ "rimraf": "6.0.1",
85
85
  "sass": "1.74.1",
86
86
  "sass-loader": "14.1.1",
87
87
  "semantic-release": "23.0.7",
88
88
  "serve": "14.2.1",
89
- "storybook": "8.1.6",
89
+ "storybook": "8.1.10",
90
90
  "style-loader": "4.0.0",
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",
@@ -113,5 +113,5 @@
113
113
  ],
114
114
  "author": "Camunda",
115
115
  "license": "Apache-2.0",
116
- "packageManager": "yarn@4.1.1"
116
+ "packageManager": "yarn@4.3.1"
117
117
  }
@@ -71,24 +71,34 @@ export class NotificationService {
71
71
  ...options,
72
72
  endpoint: NOTIFICATIONS,
73
73
  });
74
- const source = new EventSourcePolyfill(`${baseUrl}/notifications/events`, {
75
- headers: {
76
- authorization: `Bearer ${options.userToken}`,
77
- },
78
- heartbeatTimeout: 1000 * 60 * 60,
79
- });
80
- source.onmessage = function (event) {
81
- try {
82
- const notification = JSON.parse(event.data);
83
- if (!notification.keepAlive) {
84
- handler(notification);
74
+ try {
75
+ const source = new EventSourcePolyfill(`${baseUrl}/notifications/events`, {
76
+ headers: {
77
+ authorization: `Bearer ${options.userToken}`,
78
+ },
79
+ heartbeatTimeout: 1000 * 60 * 60,
80
+ });
81
+ source.onmessage = function (event) {
82
+ try {
83
+ const notification = JSON.parse(event.data);
84
+ if (!notification.keepAlive) {
85
+ handler(notification);
86
+ }
87
+ }
88
+ catch (error) {
89
+ if (options.enableLogs)
90
+ console.error(`Failed to handle SSE event`, { error });
85
91
  }
86
- }
87
- catch (error) {
88
- if (options.enableLogs)
89
- console.error(`Failed to handle SSE event`, { error });
90
- }
91
- };
92
+ };
93
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
94
+ source.onerror = function (_event) {
95
+ // ignore
96
+ };
97
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
98
+ }
99
+ catch (_error) {
100
+ // ignore
101
+ }
92
102
  }
93
103
  // updates <allNotifications> with <newNotification>
94
104
  // if <newNotification> is read or new, it will be added to <allNotifications>
@@ -23,7 +23,9 @@ export const C3ProfileProvider = ({ children }) => {
23
23
  const [orgs, setOrgs] = useState(null);
24
24
  const [activeOrg, setActiveOrg] = useState(null);
25
25
  const [clusters, setClusters] = useState(null);
26
- const isConfigValid = config.userToken && config.activeOrganizationId && decodedAudience;
26
+ const isConfigValid = !!(config.userToken &&
27
+ config.activeOrganizationId &&
28
+ decodedAudience);
27
29
  const loadClusters = () => {
28
30
  if (!isConfigValid)
29
31
  return;
@@ -61,9 +63,6 @@ export const C3ProfileProvider = ({ children }) => {
61
63
  JSON.stringify(decodedToken),
62
64
  decodedAudience,
63
65
  ]);
64
- useEffect(() => {
65
- loadClusters();
66
- }, [activeOrg]);
67
66
  useEffect(() => {
68
67
  const updateSystemTheme = ({ matches }) => {
69
68
  if (themeRef.current === "system")
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.8.1-rc.0",
7
+ "version": "0.8.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -36,22 +36,22 @@
36
36
  "@babel/preset-typescript": "7.24.7",
37
37
  "@carbon/react": "1.55.0",
38
38
  "@mdx-js/react": "3.0.1",
39
- "@playwright/test": "1.42.1",
39
+ "@playwright/test": "1.45.2",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
- "@storybook/addon-a11y": "8.1.6",
43
- "@storybook/addon-actions": "8.1.6",
44
- "@storybook/addon-docs": "8.1.6",
45
- "@storybook/addon-essentials": "8.1.6",
46
- "@storybook/addon-interactions": "8.1.6",
47
- "@storybook/addon-links": "8.1.6",
48
- "@storybook/addon-mdx-gfm": "8.1.6",
42
+ "@storybook/addon-a11y": "8.1.10",
43
+ "@storybook/addon-actions": "8.1.10",
44
+ "@storybook/addon-docs": "8.1.10",
45
+ "@storybook/addon-essentials": "8.1.10",
46
+ "@storybook/addon-interactions": "8.1.10",
47
+ "@storybook/addon-links": "8.1.10",
48
+ "@storybook/addon-mdx-gfm": "8.1.10",
49
49
  "@storybook/addon-webpack5-compiler-babel": "3.0.3",
50
- "@storybook/blocks": "8.1.6",
50
+ "@storybook/blocks": "8.1.10",
51
51
  "@storybook/preset-scss": "1.0.3",
52
- "@storybook/react": "8.1.6",
53
- "@storybook/react-webpack5": "8.1.6",
54
- "@storybook/test": "8.1.6",
52
+ "@storybook/react": "8.1.10",
53
+ "@storybook/react-webpack5": "8.1.10",
54
+ "@storybook/test": "8.1.10",
55
55
  "@storybook/test-runner": "0.18.2",
56
56
  "@types/carbon-components-react": "7.55.10",
57
57
  "@types/event-source-polyfill": "1.0.5",
@@ -60,8 +60,8 @@
60
60
  "@types/react": "18.2.74",
61
61
  "@types/react-dom": "18.2.24",
62
62
  "@types/styled-components": "5.1.34",
63
- "@typescript-eslint/eslint-plugin": "7.7.1",
64
- "@typescript-eslint/parser": "7.7.1",
63
+ "@typescript-eslint/eslint-plugin": "7.16.0",
64
+ "@typescript-eslint/parser": "7.16.0",
65
65
  "axe-playwright": "2.0.1",
66
66
  "babel-loader": "9.1.3",
67
67
  "conventional-changelog-conventionalcommits": "7.0.2",
@@ -72,21 +72,21 @@
72
72
  "eslint-import-resolver-typescript": "3.6.1",
73
73
  "eslint-plugin-import": "2.29.1",
74
74
  "eslint-plugin-prettier": "5.1.3",
75
- "eslint-plugin-react": "7.34.1",
76
- "eslint-plugin-react-hooks": "4.6.0",
75
+ "eslint-plugin-react": "7.34.3",
76
+ "eslint-plugin-react-hooks": "4.6.2",
77
77
  "eslint-plugin-storybook": "0.8.0",
78
78
  "event-source-polyfill": "1.0.31",
79
79
  "husky": "9.0.11",
80
80
  "mixpanel-browser": "2.49.0",
81
- "prettier": "3.2.5",
81
+ "prettier": "3.3.2",
82
82
  "react": "18.2.0",
83
83
  "react-dom": "18.2.0",
84
- "rimraf": "5.0.5",
84
+ "rimraf": "6.0.1",
85
85
  "sass": "1.74.1",
86
86
  "sass-loader": "14.1.1",
87
87
  "semantic-release": "23.0.7",
88
88
  "serve": "14.2.1",
89
- "storybook": "8.1.6",
89
+ "storybook": "8.1.10",
90
90
  "style-loader": "4.0.0",
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",
@@ -113,5 +113,5 @@
113
113
  ],
114
114
  "author": "Camunda",
115
115
  "license": "Apache-2.0",
116
- "packageManager": "yarn@4.1.1"
116
+ "packageManager": "yarn@4.3.1"
117
117
  }