@camunda/camunda-composite-components 0.2.17-rc.7 → 0.2.17-rc.8
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.
|
@@ -22,7 +22,6 @@ export const getTiles = async ({ accessToken, tileConfig, salesPlanType, cluster
|
|
|
22
22
|
responseType: "json",
|
|
23
23
|
camundaAuth: { token: accessToken },
|
|
24
24
|
});
|
|
25
|
-
console.log("currentOrgId", currentOrgId);
|
|
26
25
|
cards = cards.map((card) => {
|
|
27
26
|
card.link = card.link?.replaceAll("{cloudAudience}", cloudAudience);
|
|
28
27
|
card.link = card.link?.replaceAll("{currentOrgId}", currentOrgId);
|
|
@@ -32,9 +32,8 @@ export const HelpCenter = ({ configuration, persona, email, audience, flags = []
|
|
|
32
32
|
const [isLoadingTiles, setIsLoadingTiles] = useState(false);
|
|
33
33
|
let header = "";
|
|
34
34
|
let content = React.createElement(React.Fragment, null);
|
|
35
|
-
console.log("help center", { organization, clusters });
|
|
36
35
|
React.useEffect(() => {
|
|
37
|
-
|
|
36
|
+
;
|
|
38
37
|
(async () => {
|
|
39
38
|
const tiles = {};
|
|
40
39
|
setIsLoadingTiles(true);
|
|
@@ -3,7 +3,6 @@ export const recommendations = (persona, flags, tileConfig, salesPlanType, hasCl
|
|
|
3
3
|
if (!tileConfig) {
|
|
4
4
|
return [];
|
|
5
5
|
}
|
|
6
|
-
console.log("persona", persona, hasClusters, salesPlanType);
|
|
7
6
|
return tileConfig
|
|
8
7
|
.filter((tile) => {
|
|
9
8
|
if (!tile.prerequestites || typeof tile.prerequestites === "boolean") {
|
|
@@ -33,7 +33,6 @@ export const C3ProfileProvider = ({ children }) => {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
getOrgs(decodedAudience, config.userToken).then((res) => {
|
|
36
|
-
console.log("loaded orgs", res, config.activeOrganizationId, res?.find((org) => org.uuid === config.activeOrganizationId), config.userToken);
|
|
37
36
|
setOrgs(res);
|
|
38
37
|
setActiveOrg(res?.find((org) => org.uuid === config.activeOrganizationId) || null);
|
|
39
38
|
});
|
|
@@ -71,7 +70,8 @@ export const C3ProfileProvider = ({ children }) => {
|
|
|
71
70
|
};
|
|
72
71
|
if (!isEnabled)
|
|
73
72
|
return children;
|
|
74
|
-
|
|
73
|
+
const content = config.handleTheme ? (React.createElement(CarbonThemeProvider, null, children)) : (children);
|
|
74
|
+
return (React.createElement(C3ProfileContext.Provider, { value: {
|
|
75
75
|
isEnabled,
|
|
76
76
|
theme: themeRef.current,
|
|
77
77
|
resolvedTheme,
|
|
@@ -80,7 +80,6 @@ export const C3ProfileProvider = ({ children }) => {
|
|
|
80
80
|
clusters,
|
|
81
81
|
reloadClusters: loadClusters,
|
|
82
82
|
onThemeChange,
|
|
83
|
-
} },
|
|
84
|
-
React.createElement(CarbonThemeProvider, null, children))) : (children);
|
|
83
|
+
} }, content));
|
|
85
84
|
};
|
|
86
85
|
export const useC3Profile = () => useContext(C3ProfileContext);
|