@camunda/camunda-composite-components 0.7.0 → 0.7.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.6.4",
7
+ "version": "0.7.0",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -39,20 +39,20 @@
39
39
  "@playwright/test": "1.42.1",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
- "@storybook/addon-a11y": "8.0.10",
43
- "@storybook/addon-actions": "8.0.10",
44
- "@storybook/addon-docs": "8.0.10",
45
- "@storybook/addon-essentials": "8.0.10",
46
- "@storybook/addon-interactions": "8.0.10",
47
- "@storybook/addon-links": "8.0.10",
48
- "@storybook/addon-mdx-gfm": "8.0.10",
42
+ "@storybook/addon-a11y": "8.1.1",
43
+ "@storybook/addon-actions": "8.1.1",
44
+ "@storybook/addon-docs": "8.1.1",
45
+ "@storybook/addon-essentials": "8.1.1",
46
+ "@storybook/addon-interactions": "8.1.1",
47
+ "@storybook/addon-links": "8.1.1",
48
+ "@storybook/addon-mdx-gfm": "8.1.1",
49
49
  "@storybook/addon-webpack5-compiler-babel": "3.0.3",
50
- "@storybook/blocks": "8.0.10",
50
+ "@storybook/blocks": "8.1.1",
51
51
  "@storybook/preset-scss": "1.0.3",
52
- "@storybook/react": "8.0.10",
53
- "@storybook/react-webpack5": "8.0.10",
54
- "@storybook/test": "8.0.10",
55
- "@storybook/test-runner": "0.18.0",
52
+ "@storybook/react": "8.1.1",
53
+ "@storybook/react-webpack5": "8.1.1",
54
+ "@storybook/test": "8.1.1",
55
+ "@storybook/test-runner": "0.18.1",
56
56
  "@types/carbon-components-react": "7.55.10",
57
57
  "@types/event-source-polyfill": "1.0.5",
58
58
  "@types/mixpanel-browser": "2.49.0",
@@ -86,7 +86,7 @@
86
86
  "sass-loader": "14.1.1",
87
87
  "semantic-release": "23.0.7",
88
88
  "serve": "14.2.1",
89
- "storybook": "8.0.10",
89
+ "storybook": "8.1.1",
90
90
  "style-loader": "4.0.0",
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",
@@ -60,8 +60,8 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, onRequestClose, m
60
60
  const fetchConfig = async () => {
61
61
  if (!userToken || !decodedAudience)
62
62
  return;
63
- const { result: onboardConfig } = await getConfig(userToken, decodedAudience, activeOrganizationId);
64
- setHelpCenterConfig(onboardConfig || defaultHelpCenterConfig);
63
+ const { result: config } = await getConfig(userToken, decodedAudience, activeOrganizationId);
64
+ setHelpCenterConfig(config || defaultHelpCenterConfig);
65
65
  };
66
66
  const isFirstLoad = useRef(true);
67
67
  const fetchData = async () => {
@@ -108,7 +108,7 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, onRequestClose, m
108
108
  }, [activeOrganizationId]);
109
109
  React.useEffect(() => {
110
110
  const tabs = helpCenterConfig.tabs;
111
- const firstTab = tabs[0].id;
111
+ const firstTab = tabs[0]?.id;
112
112
  if (isOpen) {
113
113
  if (autoStartSurvey && !persona?.wasShown) {
114
114
  setShowHintOnClose(true);
@@ -1,7 +1,7 @@
1
1
  import { Tab } from "./c3-help-center.types";
2
2
  export type HelpCenterConfig = {
3
3
  tabs: Tab[];
4
- links: {
4
+ links?: {
5
5
  label: string;
6
6
  link: string;
7
7
  id: string;
@@ -194,7 +194,7 @@ export const HelpCenter = ({ configuration, persona, email, audience, flags = []
194
194
  }, "aria-label": text }, text)));
195
195
  })))),
196
196
  React.createElement("li", { style: { position: "absolute", bottom: "20px" } },
197
- React.createElement("ul", null, configuration.links.map((link) => (React.createElement(SideNavMenuItem, { key: link.label.split(" ").join("-").toLowerCase(), href: link.link,
197
+ React.createElement("ul", null, configuration.links?.map((link) => (React.createElement(SideNavMenuItem, { key: link.label.split(" ").join("-").toLowerCase(), href: link.link,
198
198
  // eslint-disable-next-line
199
199
  // @ts-ignore
200
200
  target: "_blank" },
@@ -15,6 +15,6 @@ export const TileWrapper = styled.div `
15
15
  export const TabContent = ({ onboarding, type, origin, tiles, mixpanelTrack }) => {
16
16
  return (React.createElement("div", null,
17
17
  React.createElement(Stack, null,
18
- onboarding && onboarding?.complete !== true && (React.createElement(ActionableNotification, { kind: "info", inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: "100%", marginBottom: "1rem" }, actionButtonLabel: "Resume Survey", onActionButtonClick: onboarding.resumeSurvey, title: "Complete the new user survey to see more recommendations", subtitle: "" })),
18
+ onboarding && onboarding?.complete !== true && (React.createElement(ActionableNotification, { kind: "info", inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: "100%", marginBottom: "1rem" }, actionButtonLabel: "Resume survey", onActionButtonClick: onboarding.resumeSurvey, title: "Complete the new user survey to see more recommendations", subtitle: "" })),
19
19
  React.createElement(TileWrapper, null, tiles.map((tile) => (React.createElement(HelpCenterTile, { origin: origin, tabType: type, tile: tile, mixpanelTrack: mixpanelTrack, key: tile.card_id })))))));
20
20
  };
@@ -10,7 +10,7 @@ export const OnboardingStep = ({ theme, config, generic, setGeneric, }) => {
10
10
  if (!config?.elements) {
11
11
  return React.createElement(React.Fragment, null);
12
12
  }
13
- return config.elements.map((element, index) => {
13
+ return config?.elements.map((element, index) => {
14
14
  switch (element.type) {
15
15
  case OnboardingQuestionType.TileSingleSelect:
16
16
  return (React.createElement(RadioGroupElementSingle, { theme: theme, tooltip: element.tooltip, elements: element.elements, selectedElement: generic(element.mapto), setSelectedElement: (e) => {
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.7.0",
7
+ "version": "0.7.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -39,20 +39,20 @@
39
39
  "@playwright/test": "1.42.1",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
- "@storybook/addon-a11y": "8.0.10",
43
- "@storybook/addon-actions": "8.0.10",
44
- "@storybook/addon-docs": "8.0.10",
45
- "@storybook/addon-essentials": "8.0.10",
46
- "@storybook/addon-interactions": "8.0.10",
47
- "@storybook/addon-links": "8.0.10",
48
- "@storybook/addon-mdx-gfm": "8.0.10",
42
+ "@storybook/addon-a11y": "8.1.1",
43
+ "@storybook/addon-actions": "8.1.1",
44
+ "@storybook/addon-docs": "8.1.1",
45
+ "@storybook/addon-essentials": "8.1.1",
46
+ "@storybook/addon-interactions": "8.1.1",
47
+ "@storybook/addon-links": "8.1.1",
48
+ "@storybook/addon-mdx-gfm": "8.1.1",
49
49
  "@storybook/addon-webpack5-compiler-babel": "3.0.3",
50
- "@storybook/blocks": "8.0.10",
50
+ "@storybook/blocks": "8.1.1",
51
51
  "@storybook/preset-scss": "1.0.3",
52
- "@storybook/react": "8.0.10",
53
- "@storybook/react-webpack5": "8.0.10",
54
- "@storybook/test": "8.0.10",
55
- "@storybook/test-runner": "0.18.0",
52
+ "@storybook/react": "8.1.1",
53
+ "@storybook/react-webpack5": "8.1.1",
54
+ "@storybook/test": "8.1.1",
55
+ "@storybook/test-runner": "0.18.1",
56
56
  "@types/carbon-components-react": "7.55.10",
57
57
  "@types/event-source-polyfill": "1.0.5",
58
58
  "@types/mixpanel-browser": "2.49.0",
@@ -86,7 +86,7 @@
86
86
  "sass-loader": "14.1.1",
87
87
  "semantic-release": "23.0.7",
88
88
  "serve": "14.2.1",
89
- "storybook": "8.0.10",
89
+ "storybook": "8.1.1",
90
90
  "style-loader": "4.0.0",
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",