@camunda/camunda-composite-components 0.2.10-rc1 → 0.2.10

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.
@@ -5,7 +5,7 @@ export const getOrg = async (stage, accessToken, orgId) => {
5
5
  headers.Authorization = `Bearer ${accessToken}`;
6
6
  headers["Content-Type"] = "application/json";
7
7
  try {
8
- const response = await fetch(`https://accounts.${stage}/api/organizations/my`, {
8
+ const response = await fetch(`https://accounts.${stage}/external/organizations/my`, {
9
9
  method: "GET",
10
10
  headers,
11
11
  });
@@ -22,7 +22,7 @@ export const getClusters = async (stage, accessToken, orgId) => {
22
22
  headers.Authorization = `Bearer ${accessToken}`;
23
23
  headers["Content-Type"] = "application/json";
24
24
  try {
25
- const response = await fetch(`https://console.${stage}/api/orgs/${orgId}/clusters`, {
25
+ const response = await fetch(`https://console.${stage}/external/organizations/${orgId}/clusters`, {
26
26
  method: "GET",
27
27
  headers,
28
28
  });
@@ -11,7 +11,8 @@ export const C3ClusterTag = (props) => {
11
11
  };
12
12
  function generateFromInput(props) {
13
13
  const foundCluster = props.allClusters?.find((cluster) => cluster.uuid === props.clusterUuid);
14
- if (foundCluster?.labels?.camunda && foundCluster.labels.camunda.length > 0) {
14
+ if (foundCluster?.labels?.camunda &&
15
+ foundCluster?.labels?.camunda?.length > 0) {
15
16
  const label = foundCluster.labels.camunda[0];
16
17
  return getColorForStage(label) &&
17
18
  props.conditionalRendering(label) ? (React.createElement(Tag, { type: getColorForStage(label) }, label)) : (React.createElement(React.Fragment, null));
@@ -49,9 +49,7 @@ export type Tab = {
49
49
  };
50
50
  export type Organization = {
51
51
  uuid: string;
52
- organizationToSalesPlan?: {
53
- salesPlan?: {
54
- salesPlanType: string;
55
- };
52
+ salesPlan?: {
53
+ type: string;
56
54
  };
57
55
  };
@@ -42,8 +42,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
42
42
  clusterIds: clusters.map((cluster) => cluster.uuid),
43
43
  email,
44
44
  currentOrgId: organization?.uuid ?? "",
45
- salesPlanType: organization?.organizationToSalesPlan?.salesPlan?.salesPlanType ??
46
- "",
45
+ salesPlanType: organization?.salesPlan?.type ?? "",
47
46
  flags,
48
47
  accessToken: token,
49
48
  });
@@ -60,7 +59,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
60
59
  header = "Share your feedback";
61
60
  content = (React.createElement(Feedback, { audience: audience, theme: theme, mixpanelTrack: mixpanelTrack, setHeader: (head) => {
62
61
  header = head;
63
- }, salesPlanType: organization?.organizationToSalesPlan?.salesPlan?.salesPlanType ?? "" }));
62
+ }, salesPlanType: organization?.salesPlan?.type ?? "" }));
64
63
  }
65
64
  else if (activeTab === "recommendations" &&
66
65
  Object.keys(tabTiles).length === 0 &&
@@ -107,8 +106,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
107
106
  else {
108
107
  return undefined;
109
108
  }
110
- })(), origin: origin, type: tab?.tiletype || "grid", tiles: tabTiles[activeTab], mixpanelTrack: mixpanelTrack, salesPlanType: organization?.organizationToSalesPlan?.salesPlan?.salesPlanType ??
111
- "" }));
109
+ })(), origin: origin, type: tab?.tiletype || "grid", tiles: tabTiles[activeTab], mixpanelTrack: mixpanelTrack, salesPlanType: organization?.salesPlan?.type ?? "" }));
112
110
  }
113
111
  }
114
112
  const tabBar = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.2.10-rc1",
3
+ "version": "0.2.10",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
6
  "build": "yarn clean && tsc",
@@ -26,23 +26,23 @@
26
26
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
27
27
  },
28
28
  "devDependencies": {
29
- "@babel/core": "7.22.19",
30
- "@babel/preset-env": "7.22.15",
29
+ "@babel/core": "7.22.20",
30
+ "@babel/preset-env": "7.22.20",
31
31
  "@babel/preset-react": "7.22.15",
32
32
  "@babel/preset-typescript": "7.22.15",
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.2",
37
- "@storybook/addon-actions": "7.4.2",
38
- "@storybook/addon-docs": "7.4.2",
39
- "@storybook/addon-essentials": "7.4.2",
40
- "@storybook/addon-interactions": "7.4.2",
41
- "@storybook/addon-links": "7.4.2",
42
- "@storybook/blocks": "7.4.2",
36
+ "@storybook/addon-a11y": "7.4.3",
37
+ "@storybook/addon-actions": "7.4.3",
38
+ "@storybook/addon-docs": "7.4.3",
39
+ "@storybook/addon-essentials": "7.4.3",
40
+ "@storybook/addon-interactions": "7.4.3",
41
+ "@storybook/addon-links": "7.4.3",
42
+ "@storybook/blocks": "7.4.3",
43
43
  "@storybook/preset-scss": "1.0.3",
44
- "@storybook/react": "7.4.2",
45
- "@storybook/react-webpack5": "7.4.2",
44
+ "@storybook/react": "7.4.3",
45
+ "@storybook/react-webpack5": "7.4.3",
46
46
  "@storybook/test-runner": "0.13.0",
47
47
  "@storybook/testing-library": "0.2.1",
48
48
  "@types/carbon-components-react": "7.55.3",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-prettier": "4.2.1",
66
66
  "eslint-plugin-react": "7.33.2",
67
67
  "eslint-plugin-react-hooks": "4.6.0",
68
- "eslint-plugin-storybook": "0.6.13",
68
+ "eslint-plugin-storybook": "0.6.14",
69
69
  "event-source-polyfill": "1.0.31",
70
70
  "husky": "8.0.3",
71
71
  "mixpanel-browser": "2.47.0",
@@ -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.2",
79
+ "storybook": "7.4.3",
80
80
  "style-loader": "3.3.3",
81
81
  "styled-components": "6.0.7",
82
82
  "typescript": "5.2.2",