@camunda/camunda-composite-components 0.2.14 → 0.2.16-rc.0
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.
|
@@ -115,5 +115,5 @@ export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, info
|
|
|
115
115
|
type: "user",
|
|
116
116
|
} })))));
|
|
117
117
|
} }),
|
|
118
|
-
helpCenter && React.createElement(C3HelpCenter, { ...helpCenter
|
|
118
|
+
helpCenter && React.createElement(C3HelpCenter, { ...helpCenter })));
|
|
119
119
|
};
|
|
@@ -21,19 +21,17 @@ export const C3ProfileProvider = ({ children }) => {
|
|
|
21
21
|
const [activeOrg, setActiveOrg] = useState(null);
|
|
22
22
|
const [clusters, setClusters] = useState(null);
|
|
23
23
|
useEffect(() => {
|
|
24
|
-
if (!decodedToken) {
|
|
24
|
+
if (!decodedToken || !decodedAudience || !config.activeOrganizationId) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
}, [config?.userToken, config?.activeOrganizationId, decodedToken]);
|
|
27
|
+
getOrgs(decodedAudience, config.userToken).then((res) => {
|
|
28
|
+
setOrgs(res);
|
|
29
|
+
setActiveOrg(res?.find((org) => org.uuid === config.activeOrganizationId) || null);
|
|
30
|
+
});
|
|
31
|
+
getClusters(decodedAudience, config.userToken, config.activeOrganizationId).then((res) => {
|
|
32
|
+
setClusters(res);
|
|
33
|
+
});
|
|
34
|
+
}, [config?.activeOrganizationId, decodedToken, decodedAudience]);
|
|
37
35
|
useEffect(() => {
|
|
38
36
|
const updateSystemTheme = ({ matches }) => {
|
|
39
37
|
if (themeRef.current === "system")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/camunda-composite-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16-rc.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rimraf lib/",
|
|
6
6
|
"build": "yarn clean && tsc",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@carbon/react": "1.37.0",
|
|
34
34
|
"@mdx-js/react": "2.3.0",
|
|
35
35
|
"@playwright/test": "1.37.1",
|
|
36
|
-
"@storybook/addon-a11y": "7.4.
|
|
37
|
-
"@storybook/addon-actions": "7.4.
|
|
38
|
-
"@storybook/addon-docs": "7.4.
|
|
39
|
-
"@storybook/addon-essentials": "7.4.
|
|
40
|
-
"@storybook/addon-interactions": "7.4.
|
|
41
|
-
"@storybook/addon-links": "7.4.
|
|
42
|
-
"@storybook/blocks": "7.4.
|
|
36
|
+
"@storybook/addon-a11y": "7.4.6",
|
|
37
|
+
"@storybook/addon-actions": "7.4.6",
|
|
38
|
+
"@storybook/addon-docs": "7.4.6",
|
|
39
|
+
"@storybook/addon-essentials": "7.4.6",
|
|
40
|
+
"@storybook/addon-interactions": "7.4.6",
|
|
41
|
+
"@storybook/addon-links": "7.4.6",
|
|
42
|
+
"@storybook/blocks": "7.4.6",
|
|
43
43
|
"@storybook/preset-scss": "1.0.3",
|
|
44
|
-
"@storybook/react": "7.4.
|
|
45
|
-
"@storybook/react-webpack5": "7.4.
|
|
44
|
+
"@storybook/react": "7.4.6",
|
|
45
|
+
"@storybook/react-webpack5": "7.4.6",
|
|
46
46
|
"@storybook/test-runner": "0.13.0",
|
|
47
47
|
"@storybook/testing-library": "0.2.2",
|
|
48
48
|
"@types/carbon-components-react": "7.55.3",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"sass": "1.66.1",
|
|
77
77
|
"sass-loader": "13.3.2",
|
|
78
78
|
"serve": "14.2.1",
|
|
79
|
-
"storybook": "7.4.
|
|
79
|
+
"storybook": "7.4.6",
|
|
80
80
|
"style-loader": "3.3.3",
|
|
81
81
|
"styled-components": "6.0.7",
|
|
82
82
|
"typescript": "5.2.2",
|