@camunda/camunda-composite-components 0.1.4 → 0.1.5-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.
@@ -45,7 +45,7 @@ export const C3NavigationAppBar = ({ appBar, forwardRef, navbar, }) => {
45
45
  if (subElement.onClick) {
46
46
  subElement.onClick();
47
47
  }
48
- if (subElement.routeProps.onClick) {
48
+ if (subElement.routeProps?.onClick) {
49
49
  subElement.routeProps.onClick();
50
50
  }
51
51
  if (appBar.closeOnClick !== false) {
@@ -61,7 +61,7 @@ export const C3NavigationAppBar = ({ appBar, forwardRef, navbar, }) => {
61
61
  if (element.onClick) {
62
62
  element.onClick();
63
63
  }
64
- if (element.routeProps.onClick) {
64
+ if (element.routeProps?.onClick) {
65
65
  element.routeProps.onClick();
66
66
  }
67
67
  if (appBar.closeOnClick !== false) {
@@ -58,6 +58,7 @@ export function createAppBarProps(options = {}) {
58
58
  ],
59
59
  },
60
60
  ],
61
+ elementClicked: (element) => console.log(`event coming from the appBarProps: ${element} has been clicked`),
61
62
  };
62
63
  }
63
64
  export function createNavBarBarProps(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-rc.1",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
6
  "build": "yarn clean && tsc",
@@ -25,28 +25,28 @@
25
25
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
26
26
  },
27
27
  "devDependencies": {
28
- "@babel/core": "7.22.10",
28
+ "@babel/core": "7.22.11",
29
29
  "@babel/preset-env": "7.22.10",
30
30
  "@babel/preset-react": "7.22.5",
31
- "@babel/preset-typescript": "7.22.5",
32
- "@carbon/react": "1.36.0",
31
+ "@babel/preset-typescript": "7.22.11",
32
+ "@carbon/react": "1.37.0",
33
33
  "@mdx-js/react": "2.3.0",
34
34
  "@playwright/test": "1.37.1",
35
- "@storybook/addon-a11y": "7.3.2",
36
- "@storybook/addon-actions": "7.3.2",
37
- "@storybook/addon-docs": "7.3.2",
38
- "@storybook/addon-essentials": "7.3.2",
39
- "@storybook/addon-interactions": "7.3.2",
40
- "@storybook/addon-links": "7.3.2",
41
- "@storybook/blocks": "7.3.2",
35
+ "@storybook/addon-a11y": "7.4.0",
36
+ "@storybook/addon-actions": "7.4.0",
37
+ "@storybook/addon-docs": "7.4.0",
38
+ "@storybook/addon-essentials": "7.4.0",
39
+ "@storybook/addon-interactions": "7.4.0",
40
+ "@storybook/addon-links": "7.4.0",
41
+ "@storybook/blocks": "7.4.0",
42
42
  "@storybook/preset-scss": "1.0.3",
43
- "@storybook/react": "7.3.2",
44
- "@storybook/react-webpack5": "7.3.2",
43
+ "@storybook/react": "7.4.0",
44
+ "@storybook/react-webpack5": "7.4.0",
45
45
  "@storybook/test-runner": "0.13.0",
46
46
  "@storybook/testing-library": "0.2.0",
47
- "@types/carbon-components-react": "7.55.2",
47
+ "@types/carbon-components-react": "7.55.3",
48
48
  "@types/event-source-polyfill": "1.0.1",
49
- "@types/node": "18.17.12",
49
+ "@types/node": "18.17.14",
50
50
  "@types/react": "18.2.21",
51
51
  "@types/react-dom": "18.2.7",
52
52
  "@types/styled-components": "5.1.26",
@@ -73,7 +73,7 @@
73
73
  "sass": "1.66.1",
74
74
  "sass-loader": "13.3.2",
75
75
  "serve": "14.2.1",
76
- "storybook": "7.3.2",
76
+ "storybook": "7.4.0",
77
77
  "style-loader": "3.3.3",
78
78
  "styled-components": "6.0.7",
79
79
  "typescript": "5.2.2",