@camunda/camunda-composite-components 0.6.0 → 0.6.1-rc.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.5.1-rc.4",
7
+ "version": "0.6.1-rc.0",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -30,8 +30,8 @@
30
30
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "7.23.9",
34
- "@babel/preset-env": "7.23.9",
33
+ "@babel/core": "7.24.0",
34
+ "@babel/preset-env": "7.24.0",
35
35
  "@babel/preset-react": "7.23.3",
36
36
  "@babel/preset-typescript": "7.23.3",
37
37
  "@carbon/react": "1.48.1",
@@ -49,7 +49,7 @@
49
49
  "@storybook/preset-scss": "1.0.3",
50
50
  "@storybook/react": "7.6.17",
51
51
  "@storybook/react-webpack5": "7.6.17",
52
- "@storybook/test-runner": "0.16.0",
52
+ "@storybook/test-runner": "0.17.0",
53
53
  "@storybook/testing-library": "0.2.2",
54
54
  "@types/carbon-components-react": "7.55.10",
55
55
  "@types/event-source-polyfill": "1.0.5",
@@ -7,7 +7,7 @@ import { useC3Profile } from "../../c3-user-configuration/c3-profile-provider/c3
7
7
  import { useC3UserConfiguration } from "../../c3-user-configuration/c3-user-configuration-provider";
8
8
  import { APPS } from "../../../utils/camunda";
9
9
  import { NavWrapper, SideNav } from "./components";
10
- export const C3NavigationAppBar = ({ app: appProps, appBar, forwardRef, navbar, }) => {
10
+ export const C3NavigationAppBar = ({ app: appProps, appBar, forwardRef, navbar, options: { noCloudInUrl } = { noCloudInUrl: false }, }) => {
11
11
  const { currentApp, decodedAudience, analyticsTrack, currentClusterUuid } = useC3UserConfiguration();
12
12
  const { clusters, activeOrg, isEnabled } = useC3Profile();
13
13
  const [appBarOpen, setAppBarOpen] = useState(appBar.isOpen);
@@ -35,12 +35,14 @@ export const C3NavigationAppBar = ({ app: appProps, appBar, forwardRef, navbar,
35
35
  element.routeProps = appProps.routeProps;
36
36
  }
37
37
  else if (app === "console") {
38
- element.href = `https://console.${decodedAudience}/org/${activeOrg?.uuid}`;
38
+ element.href = `https://console.${noCloudInUrl ? decodedAudience.replace("cloud.", "") : decodedAudience}/org/${activeOrg?.uuid}`;
39
39
  }
40
40
  else if (app === "modeler") {
41
41
  const hasPermission = activeOrg?.permissions?.org?.webide?.read;
42
42
  if (hasPermission) {
43
- element.href = `https://modeler.${decodedAudience}/login?returnUrl=/org/${activeOrg?.uuid}`;
43
+ element.href = `https://modeler.${noCloudInUrl
44
+ ? decodedAudience.replace("cloud.", "")
45
+ : decodedAudience}/login?returnUrl=/org/${activeOrg?.uuid}`;
44
46
  }
45
47
  }
46
48
  else {
@@ -68,7 +70,9 @@ export const C3NavigationAppBar = ({ app: appProps, appBar, forwardRef, navbar,
68
70
  element.routeProps = appBar.appTeaserRouteProps?.[app];
69
71
  }
70
72
  else {
71
- element.href = `https://${currentApp}.${decodedAudience}/org/${activeOrg?.uuid}/appTeaser/${app}`;
73
+ element.href = `https://${currentApp}.${noCloudInUrl
74
+ ? decodedAudience.replace("cloud.", "")
75
+ : decodedAudience}/org/${activeOrg?.uuid}/appTeaser/${app}`;
72
76
  }
73
77
  }
74
78
  }
@@ -71,6 +71,7 @@ export interface C3NavigationProps {
71
71
  clusterUuid?: string;
72
72
  options?: {
73
73
  conditionalTagRendering?: (stage: CamundaClusterStage) => boolean;
74
+ noCloudInUrl?: boolean;
74
75
  };
75
76
  }
76
77
  export type LinkProps = {
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.6.0",
7
+ "version": "0.6.1-rc.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -30,8 +30,8 @@
30
30
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "7.23.9",
34
- "@babel/preset-env": "7.23.9",
33
+ "@babel/core": "7.24.0",
34
+ "@babel/preset-env": "7.24.0",
35
35
  "@babel/preset-react": "7.23.3",
36
36
  "@babel/preset-typescript": "7.23.3",
37
37
  "@carbon/react": "1.48.1",
@@ -49,7 +49,7 @@
49
49
  "@storybook/preset-scss": "1.0.3",
50
50
  "@storybook/react": "7.6.17",
51
51
  "@storybook/react-webpack5": "7.6.17",
52
- "@storybook/test-runner": "0.16.0",
52
+ "@storybook/test-runner": "0.17.0",
53
53
  "@storybook/testing-library": "0.2.2",
54
54
  "@types/carbon-components-react": "7.55.10",
55
55
  "@types/event-source-polyfill": "1.0.5",