@camunda/camunda-composite-components 0.2.5 → 0.2.7-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.
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ import { C3ClusterTagProps } from "./c3-cluster-tag.types";
3
+ export declare const C3ClusterTag: FC<C3ClusterTagProps>;
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { Tag } from "@carbon/react";
3
+ import { useC3Profile } from "../c3-user-configuration/c3-profile-provider/c3-profile-provider";
4
+ export const C3ClusterTag = (props) => {
5
+ const { clusters } = useC3Profile();
6
+ return "stage" in props ? (React.createElement(Tag, { type: getColorForStage(props.stage) }, props.stage)) : "clusterUuid" in props ? (generateFromInput({
7
+ clusterUuid: props.clusterUuid,
8
+ allClusters: clusters,
9
+ conditionalRendering: props.conditionalRendering || ((_) => true),
10
+ })) : (React.createElement(React.Fragment, null));
11
+ };
12
+ function generateFromInput(props) {
13
+ const foundCluster = props.allClusters?.find((cluster) => cluster.uuid === props.clusterUuid);
14
+ if (foundCluster?.labels?.camunda && foundCluster.labels.camunda.length > 0) {
15
+ const label = foundCluster.labels.camunda[0];
16
+ return getColorForStage(label) &&
17
+ props.conditionalRendering(label) ? (React.createElement(Tag, { type: getColorForStage(label) }, label)) : (React.createElement(React.Fragment, null));
18
+ }
19
+ return React.createElement(React.Fragment, null);
20
+ }
21
+ function getColorForStage(stage) {
22
+ switch (stage) {
23
+ case "dev":
24
+ return "green";
25
+ case "test":
26
+ return "blue";
27
+ case "stage":
28
+ return "purple";
29
+ case "prod":
30
+ return "red";
31
+ default:
32
+ return undefined;
33
+ }
34
+ }
@@ -0,0 +1,15 @@
1
+ export declare const StageClusterLabels: {
2
+ readonly dev: "dev";
3
+ readonly test: "test";
4
+ readonly stage: "stage";
5
+ readonly prod: "prod";
6
+ };
7
+ export type CamundaClusterStage = keyof typeof StageClusterLabels;
8
+ export type CamundaClusterStageLabel = (typeof StageClusterLabels)[CamundaClusterStage];
9
+ export type C3ClusterTagProps = ({
10
+ clusterUuid: string;
11
+ } | {
12
+ stage: CamundaClusterStage;
13
+ }) & {
14
+ conditionalRendering?: (stage: CamundaClusterStage) => boolean;
15
+ };
@@ -0,0 +1,6 @@
1
+ export const StageClusterLabels = {
2
+ dev: "dev",
3
+ test: "test",
4
+ stage: "stage",
5
+ prod: "prod",
6
+ };
@@ -4,12 +4,11 @@ import { HelpCenter } from "./help-center";
4
4
  import { defaultHelpCenterConfig } from "./defaultHelpCenterConfig";
5
5
  import { C3OnboardingSurvey } from "../c3-onboarding-survey/c3-onboarding-survey";
6
6
  import { getClusters, getConfig, getOrg, updatePersona, } from "../../api/help-center";
7
- import { decodeJWT } from "../c3-user-configuration/authToken";
8
7
  import { useC3UserConfiguration } from "../c3-user-configuration/c3-user-configuration-provider";
9
8
  import { defaultTheme, useC3Profile, } from "../c3-user-configuration/c3-profile-provider/c3-profile-provider";
10
9
  import { resolveTheme, } from "../c3-user-configuration/c3-profile-provider/carbon-theme-provider";
11
10
  export const C3HelpCenter = ({ autoStartSurvey, origin, flags, isOpen, onRequestClose, mixpanelTrack, onRequestOpen, theme, onPersonaChange, activeTab, }) => {
12
- const { userToken, activeOrganizationId, handleTheme } = useC3UserConfiguration() || {};
11
+ const { userToken, decodedToken, activeOrganizationId, handleTheme } = useC3UserConfiguration() || {};
13
12
  const { theme: themeConfig, isEnabled } = useC3Profile();
14
13
  const themeHandlingEnabled = isEnabled && !!handleTheme && !!themeConfig;
15
14
  const themeRef = useRef();
@@ -45,7 +44,6 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, isOpen, onRequest
45
44
  setResolvedTheme(resolveTheme(newTheme || "light"));
46
45
  }, [theme, themeConfig, isOpen]);
47
46
  const fetchData = async () => {
48
- const decodedToken = decodeJWT(userToken);
49
47
  if (!decodedToken)
50
48
  return;
51
49
  const { userId, meta, audience, persona } = decodedToken;
@@ -78,13 +76,14 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, isOpen, onRequest
78
76
  React.useEffect(() => {
79
77
  const tokenChanged = token !== userToken && !!userToken;
80
78
  const orgChanged = organizationId !== activeOrganizationId && !!activeOrganizationId;
79
+ const decodedTokenChanged = !tokenChanged && !orgChanged;
81
80
  if (tokenChanged)
82
81
  setToken(userToken);
83
82
  if (orgChanged)
84
83
  setOrganizationId(activeOrganizationId);
85
- if (tokenChanged || orgChanged)
84
+ if (tokenChanged || decodedTokenChanged || orgChanged)
86
85
  fetchData();
87
- }, [userToken, activeOrganizationId]);
86
+ }, [userToken, decodedToken, activeOrganizationId]);
88
87
  React.useEffect(() => {
89
88
  const tabs = helpCenterConfig.tabs;
90
89
  const firstTab = tabs[0].id;
@@ -36,6 +36,9 @@ export interface TileConfig {
36
36
  }
37
37
  export type Cluster = {
38
38
  uuid: string;
39
+ labels?: {
40
+ camunda: string[];
41
+ };
39
42
  };
40
43
  export type Tab = {
41
44
  id: string;
@@ -156,7 +156,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
156
156
  width: "100%",
157
157
  backgroundColor: tabBackgroundColor,
158
158
  color: tabButtonColor,
159
- }, key: name }, text));
159
+ }, key: name, "aria-label": text }, text));
160
160
  }))),
161
161
  React.createElement("div", { style: { position: "absolute", bottom: "20px" } }, configuration.links.map((link) => (React.createElement(SideNavMenuItem, { key: link.label.split(" ").join("-").toLowerCase() },
162
162
  React.createElement(Link, { href: link.link, target: "_blank" }, link.label))))))),
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { C3NavigationProps } from "./c3-navigation.types";
3
- export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, helpCenter, actionButtons, userSideBar, notificationSideBar, }: C3NavigationProps) => React.JSX.Element;
3
+ export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, helpCenter, actionButtons, userSideBar, notificationSideBar, clusterUuid, tweaks, }: C3NavigationProps) => React.JSX.Element;
@@ -12,6 +12,7 @@ import { CamundaLogo } from "../../icons/c3-icons";
12
12
  import { InfoButton } from "./c3-info-button";
13
13
  import { C3SidebarStateProvider } from "./c3-navigation-sidebar/c3-sidebar-state-provider";
14
14
  import { C3HelpCenter } from "../c3-help-center/c3-help-center";
15
+ import { C3ClusterTag } from "../c3-cluster-tag/c3-cluster-tag";
15
16
  /**
16
17
  * UI SHELL
17
18
  * Docs: https://react.carbondesignsystem.com/?path=/story/components-ui-shell--fixed-side-nav
@@ -29,7 +30,14 @@ const StyledToggletipContent = styled(ToggletipContent) `
29
30
  color: var(--cds-link-hover-text-color);
30
31
  }
31
32
  `;
32
- export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, helpCenter, actionButtons, userSideBar, notificationSideBar, }) => {
33
+ const ClusterTagWrapper = styled.div `
34
+ .cds--tag {
35
+ height: 1.5rem;
36
+ margin-top: 0.75rem;
37
+ padding: 0 1rem;
38
+ }
39
+ `;
40
+ export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, helpCenter, actionButtons, userSideBar, notificationSideBar, clusterUuid, tweaks, }) => {
33
41
  const isLargeScreen = useMediaQuery(`(min-width: ${BREAKPOINT_LG_WIDTH}`);
34
42
  const appBarElementsLength = appBar.elements?.length ?? 0;
35
43
  const displayAppBar = appBarElementsLength > 0 || (!isLargeScreen && navbar.elements.length > 0);
@@ -79,6 +87,8 @@ export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, info
79
87
  padding: "0 1rem",
80
88
  }, type: tag.color }, tag.label));
81
89
  }),
90
+ clusterUuid && (React.createElement(ClusterTagWrapper, null,
91
+ React.createElement(C3ClusterTag, { clusterUuid: clusterUuid, conditionalRendering: tweaks?.conditionalTagRendering }))),
82
92
  navbar.orgName && (React.createElement("div", { className: "bodyText", style: {
83
93
  fontSize: "14px",
84
94
  lineHeight: "3rem",
@@ -4,6 +4,7 @@ import { Endpoints, Stage } from "../../api/endpoints.const";
4
4
  import { C3NavigationAppBarProps, C3NavigationInfoSideBarProps, C3NavigationNotificationsSideBarProps, C3NavigationOrgSideBarProps, C3NavigationUserSideBarProps } from "./c3-navigation-sidebar/c3-navigation-sidebar.types";
5
5
  import { C3ActionButtonsProps } from "./c3-navigation-actions/c3-action-buttons.types";
6
6
  import { C3HelpCenterProps } from "../c3-help-center/c3-help-center";
7
+ import { CamundaClusterStage } from "../c3-cluster-tag/c3-cluster-tag.types";
7
8
  export interface C3NavigationAppProps {
8
9
  prefix?: string;
9
10
  name: string;
@@ -64,6 +65,10 @@ export interface C3NavigationProps {
64
65
  notificationSideBar?: WithoutType<C3NavigationNotificationsSideBarProps>;
65
66
  navbar: C3NavigationNavBarProps;
66
67
  forwardRef?: React.ForwardRefExoticComponent<any>;
68
+ clusterUuid?: string;
69
+ tweaks?: {
70
+ conditionalTagRendering?: (stage: CamundaClusterStage) => boolean;
71
+ };
67
72
  }
68
73
  export type LinkProps = {
69
74
  element?: React.ElementType;
@@ -10,17 +10,17 @@ export declare const NotificationTitle: import("styled-components").IStyledCompo
10
10
  accessKey?: string | undefined;
11
11
  autoFocus?: boolean | undefined;
12
12
  className?: string | undefined;
13
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
13
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
14
14
  contextMenu?: string | undefined;
15
15
  dir?: string | undefined;
16
- draggable?: (boolean | "true" | "false") | undefined;
16
+ draggable?: (boolean | "false" | "true") | undefined;
17
17
  hidden?: boolean | undefined;
18
18
  id?: string | undefined;
19
19
  lang?: string | undefined;
20
20
  nonce?: string | undefined;
21
21
  placeholder?: string | undefined;
22
22
  slot?: string | undefined;
23
- spellCheck?: (boolean | "true" | "false") | undefined;
23
+ spellCheck?: (boolean | "false" | "true") | undefined;
24
24
  style?: React.CSSProperties | undefined;
25
25
  tabIndex?: number | undefined;
26
26
  title?: string | undefined;
@@ -50,55 +50,55 @@ export declare const NotificationTitle: import("styled-components").IStyledCompo
50
50
  results?: number | undefined;
51
51
  security?: string | undefined;
52
52
  unselectable?: "on" | "off" | undefined;
53
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
53
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
54
54
  is?: string | undefined;
55
55
  'aria-activedescendant'?: string | undefined;
56
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
57
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
56
+ 'aria-atomic'?: (boolean | "false" | "true") | undefined;
57
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
58
58
  'aria-braillelabel'?: string | undefined;
59
59
  'aria-brailleroledescription'?: string | undefined;
60
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
61
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
60
+ 'aria-busy'?: (boolean | "false" | "true") | undefined;
61
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
62
62
  'aria-colcount'?: number | undefined;
63
63
  'aria-colindex'?: number | undefined;
64
64
  'aria-colindextext'?: string | undefined;
65
65
  'aria-colspan'?: number | undefined;
66
66
  'aria-controls'?: string | undefined;
67
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
67
+ 'aria-current'?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
68
68
  'aria-describedby'?: string | undefined;
69
69
  'aria-description'?: string | undefined;
70
70
  'aria-details'?: string | undefined;
71
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
72
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
71
+ 'aria-disabled'?: (boolean | "false" | "true") | undefined;
72
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
73
73
  'aria-errormessage'?: string | undefined;
74
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
74
+ 'aria-expanded'?: (boolean | "false" | "true") | undefined;
75
75
  'aria-flowto'?: string | undefined;
76
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
77
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
78
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
79
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
76
+ 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
77
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
78
+ 'aria-hidden'?: (boolean | "false" | "true") | undefined;
79
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
80
80
  'aria-keyshortcuts'?: string | undefined;
81
81
  'aria-label'?: string | undefined;
82
82
  'aria-labelledby'?: string | undefined;
83
83
  'aria-level'?: number | undefined;
84
84
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
85
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
86
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
87
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
85
+ 'aria-modal'?: (boolean | "false" | "true") | undefined;
86
+ 'aria-multiline'?: (boolean | "false" | "true") | undefined;
87
+ 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
88
88
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
89
89
  'aria-owns'?: string | undefined;
90
90
  'aria-placeholder'?: string | undefined;
91
91
  'aria-posinset'?: number | undefined;
92
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
93
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
94
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
95
- 'aria-required'?: (boolean | "true" | "false") | undefined;
92
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
93
+ 'aria-readonly'?: (boolean | "false" | "true") | undefined;
94
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
95
+ 'aria-required'?: (boolean | "false" | "true") | undefined;
96
96
  'aria-roledescription'?: string | undefined;
97
97
  'aria-rowcount'?: number | undefined;
98
98
  'aria-rowindex'?: number | undefined;
99
99
  'aria-rowindextext'?: string | undefined;
100
100
  'aria-rowspan'?: number | undefined;
101
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
101
+ 'aria-selected'?: (boolean | "false" | "true") | undefined;
102
102
  'aria-setsize'?: number | undefined;
103
103
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
104
104
  'aria-valuemax'?: number | undefined;
@@ -282,17 +282,17 @@ export declare const NotificationDescription: import("styled-components").IStyle
282
282
  accessKey?: string | undefined;
283
283
  autoFocus?: boolean | undefined;
284
284
  className?: string | undefined;
285
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
285
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
286
286
  contextMenu?: string | undefined;
287
287
  dir?: string | undefined;
288
- draggable?: (boolean | "true" | "false") | undefined;
288
+ draggable?: (boolean | "false" | "true") | undefined;
289
289
  hidden?: boolean | undefined;
290
290
  id?: string | undefined;
291
291
  lang?: string | undefined;
292
292
  nonce?: string | undefined;
293
293
  placeholder?: string | undefined;
294
294
  slot?: string | undefined;
295
- spellCheck?: (boolean | "true" | "false") | undefined;
295
+ spellCheck?: (boolean | "false" | "true") | undefined;
296
296
  style?: React.CSSProperties | undefined;
297
297
  tabIndex?: number | undefined;
298
298
  title?: string | undefined;
@@ -322,55 +322,55 @@ export declare const NotificationDescription: import("styled-components").IStyle
322
322
  results?: number | undefined;
323
323
  security?: string | undefined;
324
324
  unselectable?: "on" | "off" | undefined;
325
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
325
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
326
326
  is?: string | undefined;
327
327
  'aria-activedescendant'?: string | undefined;
328
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
329
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
328
+ 'aria-atomic'?: (boolean | "false" | "true") | undefined;
329
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
330
330
  'aria-braillelabel'?: string | undefined;
331
331
  'aria-brailleroledescription'?: string | undefined;
332
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
333
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
332
+ 'aria-busy'?: (boolean | "false" | "true") | undefined;
333
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
334
334
  'aria-colcount'?: number | undefined;
335
335
  'aria-colindex'?: number | undefined;
336
336
  'aria-colindextext'?: string | undefined;
337
337
  'aria-colspan'?: number | undefined;
338
338
  'aria-controls'?: string | undefined;
339
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
339
+ 'aria-current'?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
340
340
  'aria-describedby'?: string | undefined;
341
341
  'aria-description'?: string | undefined;
342
342
  'aria-details'?: string | undefined;
343
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
344
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
343
+ 'aria-disabled'?: (boolean | "false" | "true") | undefined;
344
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
345
345
  'aria-errormessage'?: string | undefined;
346
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
346
+ 'aria-expanded'?: (boolean | "false" | "true") | undefined;
347
347
  'aria-flowto'?: string | undefined;
348
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
349
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
350
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
351
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
348
+ 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
349
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
350
+ 'aria-hidden'?: (boolean | "false" | "true") | undefined;
351
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
352
352
  'aria-keyshortcuts'?: string | undefined;
353
353
  'aria-label'?: string | undefined;
354
354
  'aria-labelledby'?: string | undefined;
355
355
  'aria-level'?: number | undefined;
356
356
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
357
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
358
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
359
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
357
+ 'aria-modal'?: (boolean | "false" | "true") | undefined;
358
+ 'aria-multiline'?: (boolean | "false" | "true") | undefined;
359
+ 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
360
360
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
361
361
  'aria-owns'?: string | undefined;
362
362
  'aria-placeholder'?: string | undefined;
363
363
  'aria-posinset'?: number | undefined;
364
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
365
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
366
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
367
- 'aria-required'?: (boolean | "true" | "false") | undefined;
364
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
365
+ 'aria-readonly'?: (boolean | "false" | "true") | undefined;
366
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
367
+ 'aria-required'?: (boolean | "false" | "true") | undefined;
368
368
  'aria-roledescription'?: string | undefined;
369
369
  'aria-rowcount'?: number | undefined;
370
370
  'aria-rowindex'?: number | undefined;
371
371
  'aria-rowindextext'?: string | undefined;
372
372
  'aria-rowspan'?: number | undefined;
373
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
373
+ 'aria-selected'?: (boolean | "false" | "true") | undefined;
374
374
  'aria-setsize'?: number | undefined;
375
375
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
376
376
  'aria-valuemax'?: number | undefined;
@@ -554,17 +554,17 @@ export declare const LinkContainer: import("styled-components").IStyledComponent
554
554
  accessKey?: string | undefined;
555
555
  autoFocus?: boolean | undefined;
556
556
  className?: string | undefined;
557
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
557
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
558
558
  contextMenu?: string | undefined;
559
559
  dir?: string | undefined;
560
- draggable?: (boolean | "true" | "false") | undefined;
560
+ draggable?: (boolean | "false" | "true") | undefined;
561
561
  hidden?: boolean | undefined;
562
562
  id?: string | undefined;
563
563
  lang?: string | undefined;
564
564
  nonce?: string | undefined;
565
565
  placeholder?: string | undefined;
566
566
  slot?: string | undefined;
567
- spellCheck?: (boolean | "true" | "false") | undefined;
567
+ spellCheck?: (boolean | "false" | "true") | undefined;
568
568
  style?: React.CSSProperties | undefined;
569
569
  tabIndex?: number | undefined;
570
570
  title?: string | undefined;
@@ -594,55 +594,55 @@ export declare const LinkContainer: import("styled-components").IStyledComponent
594
594
  results?: number | undefined;
595
595
  security?: string | undefined;
596
596
  unselectable?: "on" | "off" | undefined;
597
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
597
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
598
598
  is?: string | undefined;
599
599
  'aria-activedescendant'?: string | undefined;
600
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
601
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
600
+ 'aria-atomic'?: (boolean | "false" | "true") | undefined;
601
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
602
602
  'aria-braillelabel'?: string | undefined;
603
603
  'aria-brailleroledescription'?: string | undefined;
604
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
605
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
604
+ 'aria-busy'?: (boolean | "false" | "true") | undefined;
605
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
606
606
  'aria-colcount'?: number | undefined;
607
607
  'aria-colindex'?: number | undefined;
608
608
  'aria-colindextext'?: string | undefined;
609
609
  'aria-colspan'?: number | undefined;
610
610
  'aria-controls'?: string | undefined;
611
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
611
+ 'aria-current'?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
612
612
  'aria-describedby'?: string | undefined;
613
613
  'aria-description'?: string | undefined;
614
614
  'aria-details'?: string | undefined;
615
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
616
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
615
+ 'aria-disabled'?: (boolean | "false" | "true") | undefined;
616
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
617
617
  'aria-errormessage'?: string | undefined;
618
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
618
+ 'aria-expanded'?: (boolean | "false" | "true") | undefined;
619
619
  'aria-flowto'?: string | undefined;
620
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
621
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
622
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
623
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
620
+ 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
621
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
622
+ 'aria-hidden'?: (boolean | "false" | "true") | undefined;
623
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
624
624
  'aria-keyshortcuts'?: string | undefined;
625
625
  'aria-label'?: string | undefined;
626
626
  'aria-labelledby'?: string | undefined;
627
627
  'aria-level'?: number | undefined;
628
628
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
629
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
630
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
631
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
629
+ 'aria-modal'?: (boolean | "false" | "true") | undefined;
630
+ 'aria-multiline'?: (boolean | "false" | "true") | undefined;
631
+ 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
632
632
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
633
633
  'aria-owns'?: string | undefined;
634
634
  'aria-placeholder'?: string | undefined;
635
635
  'aria-posinset'?: number | undefined;
636
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
637
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
638
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
639
- 'aria-required'?: (boolean | "true" | "false") | undefined;
636
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
637
+ 'aria-readonly'?: (boolean | "false" | "true") | undefined;
638
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
639
+ 'aria-required'?: (boolean | "false" | "true") | undefined;
640
640
  'aria-roledescription'?: string | undefined;
641
641
  'aria-rowcount'?: number | undefined;
642
642
  'aria-rowindex'?: number | undefined;
643
643
  'aria-rowindextext'?: string | undefined;
644
644
  'aria-rowspan'?: number | undefined;
645
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
645
+ 'aria-selected'?: (boolean | "false" | "true") | undefined;
646
646
  'aria-setsize'?: number | undefined;
647
647
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
648
648
  'aria-valuemax'?: number | undefined;
@@ -2,10 +2,9 @@ import React, { useState } from "react";
2
2
  import { OnboardingSurvey } from "./onboardingSurvey";
3
3
  import { defaultOnboardingConfig } from "./defaultOnboardingConfig";
4
4
  import { getOnboardingConfig, submitSurvey, updatePersona, } from "../../api/help-center";
5
- import { decodeJWT } from "../c3-user-configuration/authToken";
6
5
  import { useC3UserConfiguration } from "../c3-user-configuration/c3-user-configuration-provider";
7
6
  export const C3OnboardingSurvey = (props) => {
8
- const { userToken, activeOrganizationId } = useC3UserConfiguration() || {};
7
+ const { userToken, decodedToken, activeOrganizationId } = useC3UserConfiguration() || {};
9
8
  const [persona, setPersona] = useState(props.persona);
10
9
  const [userId, setUserId] = useState("");
11
10
  const [token, setToken] = useState("");
@@ -19,7 +18,6 @@ export const C3OnboardingSurvey = (props) => {
19
18
  return;
20
19
  setToken(userToken);
21
20
  (async () => {
22
- const decodedToken = decodeJWT(userToken);
23
21
  if (!decodedToken)
24
22
  return;
25
23
  const { userId, meta, audience, persona } = decodedToken;
@@ -19,11 +19,12 @@ export type Meta = {
19
19
  email: string;
20
20
  };
21
21
  export declare const getMeta: (token: Token) => Meta | undefined;
22
- export declare const decodeJWT: (userToken: string) => {
23
- audience?: string | string[] | undefined;
24
- persona?: Persona | undefined;
22
+ export type DecodedToken = {
23
+ audience?: string | string[];
24
+ persona?: Persona;
25
25
  decodedToken: Token;
26
- userId?: string | undefined;
27
- meta?: Meta | undefined;
28
- } | null;
26
+ userId?: string;
27
+ meta?: Meta;
28
+ };
29
+ export declare const decodeJWT: (userToken: string) => null | DecodedToken;
29
30
  export {};
@@ -1,10 +1,12 @@
1
1
  import React, { FC, PropsWithChildren } from "react";
2
2
  import { ResolvedTheme } from "./carbon-theme-provider";
3
+ import { Cluster } from "../../c3-help-center/c3-help-center.types";
3
4
  export type Theme = "light" | "dark" | "system";
4
5
  export declare const defaultTheme: "light";
5
6
  export type C3ProfileContextValue = {
6
7
  isEnabled: boolean;
7
8
  theme: Theme;
9
+ clusters: Cluster[] | null;
8
10
  resolvedTheme: ResolvedTheme;
9
11
  onThemeChange: (newTheme: Theme) => void;
10
12
  };
@@ -2,18 +2,32 @@ import React, { createContext, useContext, useEffect, useRef, useState, } from "
2
2
  import { C3UserConfigurationContext } from "../c3-user-configuration-provider";
3
3
  import { getUserTheme, updateTheme } from "../../../api/profile";
4
4
  import { CarbonThemeProvider, resolveTheme, } from "./carbon-theme-provider";
5
+ import { getClusters } from "../../../api/help-center";
5
6
  export const defaultTheme = "light";
6
7
  export const C3ProfileContext = createContext({
7
8
  isEnabled: false,
8
9
  theme: defaultTheme,
10
+ clusters: null,
9
11
  resolvedTheme: defaultTheme,
10
12
  onThemeChange: () => undefined,
11
13
  });
12
14
  export const C3ProfileProvider = ({ children }) => {
13
- const config = useContext(C3UserConfigurationContext);
15
+ const { decodedToken, ...config } = useContext(C3UserConfigurationContext);
14
16
  const isEnabled = !!config;
15
17
  const themeRef = useRef(getUserTheme(config.userToken) || defaultTheme);
16
18
  const [resolvedTheme, setResolvedTheme] = useState(defaultTheme);
19
+ const [clusters, setClusters] = useState(null);
20
+ useEffect(() => {
21
+ if (!decodedToken)
22
+ return;
23
+ const { audience } = decodedToken;
24
+ const decodedAudience = typeof audience === "string" ? audience : audience?.[0];
25
+ if (decodedAudience) {
26
+ getClusters(decodedAudience, config.userToken, config.activeOrganizationId).then((res) => {
27
+ setClusters(res);
28
+ });
29
+ }
30
+ }, [config?.userToken, config?.activeOrganizationId]);
17
31
  useEffect(() => {
18
32
  const updateSystemTheme = ({ matches }) => {
19
33
  if (themeRef.current === "system")
@@ -50,6 +64,7 @@ export const C3ProfileProvider = ({ children }) => {
50
64
  isEnabled,
51
65
  theme: themeRef.current,
52
66
  resolvedTheme,
67
+ clusters,
53
68
  onThemeChange,
54
69
  } },
55
70
  React.createElement(CarbonThemeProvider, null, children))) : (children);
@@ -1,5 +1,6 @@
1
1
  import React, { FC, ReactNode } from "react";
2
2
  import { Endpoints, Stage } from "../../api/endpoints.const";
3
+ import { DecodedToken } from "./authToken";
3
4
  type C3UserConfigurationBase = {
4
5
  activeOrganizationId: string;
5
6
  userToken: string;
@@ -14,9 +15,12 @@ type C3UserConfigurationWithStage = C3UserConfigurationBase & {
14
15
  handleTheme?: boolean;
15
16
  };
16
17
  export type C3UserConfiguration = C3UserConfigurationWithEndpoints | C3UserConfigurationWithStage;
17
- export declare const C3UserConfigurationContext: React.Context<C3UserConfiguration>;
18
+ export type C3UserConfigurationContextValue = C3UserConfiguration & {
19
+ decodedToken: DecodedToken | null;
20
+ };
21
+ export declare const C3UserConfigurationContext: React.Context<C3UserConfigurationContextValue>;
18
22
  declare const C3UserConfigurationProvider: FC<C3UserConfiguration & {
19
23
  children?: ReactNode;
20
24
  }>;
21
- export declare const useC3UserConfiguration: () => C3UserConfiguration;
25
+ export declare const useC3UserConfiguration: () => C3UserConfigurationContextValue;
22
26
  export default C3UserConfigurationProvider;
@@ -1,12 +1,21 @@
1
- import React, { useContext } from "react";
1
+ import React, { useContext, useEffect, useState } from "react";
2
2
  import { C3ProfileProvider } from "./c3-profile-provider/c3-profile-provider";
3
+ import { decodeJWT } from "./authToken";
3
4
  export const C3UserConfigurationContext = React.createContext({
4
5
  stage: "dev",
5
6
  activeOrganizationId: "",
6
7
  userToken: "",
8
+ decodedToken: null,
7
9
  getNewUserToken: () => Promise.resolve(""),
8
10
  });
9
- const C3UserConfigurationProvider = ({ children, ...config }) => (React.createElement(C3UserConfigurationContext.Provider, { value: config },
10
- React.createElement(C3ProfileProvider, null, children)));
11
+ const C3UserConfigurationProvider = ({ children, ...config }) => {
12
+ const [decodedToken, setDecodedToken] = useState(null);
13
+ useEffect(() => {
14
+ if (config.userToken)
15
+ setDecodedToken(decodeJWT(config.userToken));
16
+ }, [config.userToken]);
17
+ return (React.createElement(C3UserConfigurationContext.Provider, { value: { ...config, decodedToken } },
18
+ React.createElement(C3ProfileProvider, null, children)));
19
+ };
11
20
  export const useC3UserConfiguration = () => useContext(C3UserConfigurationContext);
12
21
  export default C3UserConfigurationProvider;
@@ -11,17 +11,17 @@ export declare const Body02: import("styled-components").IStyledComponent<"web",
11
11
  accessKey?: string | undefined;
12
12
  autoFocus?: boolean | undefined;
13
13
  className?: string | undefined;
14
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
14
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
15
15
  contextMenu?: string | undefined;
16
16
  dir?: string | undefined;
17
- draggable?: (boolean | "true" | "false") | undefined;
17
+ draggable?: (boolean | "false" | "true") | undefined;
18
18
  hidden?: boolean | undefined;
19
19
  id?: string | undefined;
20
20
  lang?: string | undefined;
21
21
  nonce?: string | undefined;
22
22
  placeholder?: string | undefined;
23
23
  slot?: string | undefined;
24
- spellCheck?: (boolean | "true" | "false") | undefined;
24
+ spellCheck?: (boolean | "false" | "true") | undefined;
25
25
  style?: import("react").CSSProperties | undefined;
26
26
  tabIndex?: number | undefined;
27
27
  title?: string | undefined;
@@ -51,55 +51,55 @@ export declare const Body02: import("styled-components").IStyledComponent<"web",
51
51
  results?: number | undefined;
52
52
  security?: string | undefined;
53
53
  unselectable?: "on" | "off" | undefined;
54
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
54
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
55
55
  is?: string | undefined;
56
56
  'aria-activedescendant'?: string | undefined;
57
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
58
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
57
+ 'aria-atomic'?: (boolean | "false" | "true") | undefined;
58
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
59
59
  'aria-braillelabel'?: string | undefined;
60
60
  'aria-brailleroledescription'?: string | undefined;
61
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
62
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
61
+ 'aria-busy'?: (boolean | "false" | "true") | undefined;
62
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
63
63
  'aria-colcount'?: number | undefined;
64
64
  'aria-colindex'?: number | undefined;
65
65
  'aria-colindextext'?: string | undefined;
66
66
  'aria-colspan'?: number | undefined;
67
67
  'aria-controls'?: string | undefined;
68
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
68
+ 'aria-current'?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
69
69
  'aria-describedby'?: string | undefined;
70
70
  'aria-description'?: string | undefined;
71
71
  'aria-details'?: string | undefined;
72
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
73
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
72
+ 'aria-disabled'?: (boolean | "false" | "true") | undefined;
73
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  'aria-errormessage'?: string | undefined;
75
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
75
+ 'aria-expanded'?: (boolean | "false" | "true") | undefined;
76
76
  'aria-flowto'?: string | undefined;
77
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
78
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
79
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
80
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
77
+ 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
78
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
79
+ 'aria-hidden'?: (boolean | "false" | "true") | undefined;
80
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
81
81
  'aria-keyshortcuts'?: string | undefined;
82
82
  'aria-label'?: string | undefined;
83
83
  'aria-labelledby'?: string | undefined;
84
84
  'aria-level'?: number | undefined;
85
85
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
86
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
87
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
88
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
86
+ 'aria-modal'?: (boolean | "false" | "true") | undefined;
87
+ 'aria-multiline'?: (boolean | "false" | "true") | undefined;
88
+ 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
89
89
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
90
90
  'aria-owns'?: string | undefined;
91
91
  'aria-placeholder'?: string | undefined;
92
92
  'aria-posinset'?: number | undefined;
93
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
94
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
95
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
- 'aria-required'?: (boolean | "true" | "false") | undefined;
93
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
94
+ 'aria-readonly'?: (boolean | "false" | "true") | undefined;
95
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
+ 'aria-required'?: (boolean | "false" | "true") | undefined;
97
97
  'aria-roledescription'?: string | undefined;
98
98
  'aria-rowcount'?: number | undefined;
99
99
  'aria-rowindex'?: number | undefined;
100
100
  'aria-rowindextext'?: string | undefined;
101
101
  'aria-rowspan'?: number | undefined;
102
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
102
+ 'aria-selected'?: (boolean | "false" | "true") | undefined;
103
103
  'aria-setsize'?: number | undefined;
104
104
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
105
105
  'aria-valuemax'?: number | undefined;
@@ -284,17 +284,17 @@ export declare const Body01: import("styled-components").IStyledComponent<"web",
284
284
  accessKey?: string | undefined;
285
285
  autoFocus?: boolean | undefined;
286
286
  className?: string | undefined;
287
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
287
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
288
288
  contextMenu?: string | undefined;
289
289
  dir?: string | undefined;
290
- draggable?: (boolean | "true" | "false") | undefined;
290
+ draggable?: (boolean | "false" | "true") | undefined;
291
291
  hidden?: boolean | undefined;
292
292
  id?: string | undefined;
293
293
  lang?: string | undefined;
294
294
  nonce?: string | undefined;
295
295
  placeholder?: string | undefined;
296
296
  slot?: string | undefined;
297
- spellCheck?: (boolean | "true" | "false") | undefined;
297
+ spellCheck?: (boolean | "false" | "true") | undefined;
298
298
  style?: import("react").CSSProperties | undefined;
299
299
  tabIndex?: number | undefined;
300
300
  title?: string | undefined;
@@ -324,55 +324,55 @@ export declare const Body01: import("styled-components").IStyledComponent<"web",
324
324
  results?: number | undefined;
325
325
  security?: string | undefined;
326
326
  unselectable?: "on" | "off" | undefined;
327
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
327
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
328
328
  is?: string | undefined;
329
329
  'aria-activedescendant'?: string | undefined;
330
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
331
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
330
+ 'aria-atomic'?: (boolean | "false" | "true") | undefined;
331
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
332
332
  'aria-braillelabel'?: string | undefined;
333
333
  'aria-brailleroledescription'?: string | undefined;
334
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
335
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
334
+ 'aria-busy'?: (boolean | "false" | "true") | undefined;
335
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
336
336
  'aria-colcount'?: number | undefined;
337
337
  'aria-colindex'?: number | undefined;
338
338
  'aria-colindextext'?: string | undefined;
339
339
  'aria-colspan'?: number | undefined;
340
340
  'aria-controls'?: string | undefined;
341
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
341
+ 'aria-current'?: boolean | "time" | "step" | "page" | "false" | "true" | "location" | "date" | undefined;
342
342
  'aria-describedby'?: string | undefined;
343
343
  'aria-description'?: string | undefined;
344
344
  'aria-details'?: string | undefined;
345
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
346
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
345
+ 'aria-disabled'?: (boolean | "false" | "true") | undefined;
346
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
347
347
  'aria-errormessage'?: string | undefined;
348
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
348
+ 'aria-expanded'?: (boolean | "false" | "true") | undefined;
349
349
  'aria-flowto'?: string | undefined;
350
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
351
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
352
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
353
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
350
+ 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
351
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
352
+ 'aria-hidden'?: (boolean | "false" | "true") | undefined;
353
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
354
354
  'aria-keyshortcuts'?: string | undefined;
355
355
  'aria-label'?: string | undefined;
356
356
  'aria-labelledby'?: string | undefined;
357
357
  'aria-level'?: number | undefined;
358
358
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
359
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
360
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
361
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
359
+ 'aria-modal'?: (boolean | "false" | "true") | undefined;
360
+ 'aria-multiline'?: (boolean | "false" | "true") | undefined;
361
+ 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
362
362
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
363
363
  'aria-owns'?: string | undefined;
364
364
  'aria-placeholder'?: string | undefined;
365
365
  'aria-posinset'?: number | undefined;
366
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
367
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
368
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
369
- 'aria-required'?: (boolean | "true" | "false") | undefined;
366
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
367
+ 'aria-readonly'?: (boolean | "false" | "true") | undefined;
368
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
369
+ 'aria-required'?: (boolean | "false" | "true") | undefined;
370
370
  'aria-roledescription'?: string | undefined;
371
371
  'aria-rowcount'?: number | undefined;
372
372
  'aria-rowindex'?: number | undefined;
373
373
  'aria-rowindextext'?: string | undefined;
374
374
  'aria-rowspan'?: number | undefined;
375
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
375
+ 'aria-selected'?: (boolean | "false" | "true") | undefined;
376
376
  'aria-setsize'?: number | undefined;
377
377
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
378
378
  'aria-valuemax'?: number | undefined;
@@ -1,10 +1,11 @@
1
+ export { C3ClusterTag } from "./components/c3-cluster-tag/c3-cluster-tag";
2
+ export { C3ClusterTagProps, CamundaClusterStage, CamundaClusterStageLabel, StageClusterLabels, } from "./components/c3-cluster-tag/c3-cluster-tag.types";
1
3
  export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state";
2
4
  export { C3EmptyStateProps } from "./components/c3-empty-state/c3-empty-state.types";
3
5
  export { default as C3Navigation } from "./components/c3-navigation";
4
- export { C3NavigationAppProps, C3NavigationElementProps, C3NavigationNavBarProps, C3NavigationProps, } from "./components/c3-navigation/c3-navigation.types";
5
6
  export { C3NavigationSideBarBaseProps } from "./components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types";
7
+ export { C3NavigationAppProps, C3NavigationElementProps, C3NavigationNavBarProps, C3NavigationProps, } from "./components/c3-navigation/c3-navigation.types";
8
+ export { useC3Profile } from "./components/c3-user-configuration/c3-profile-provider/c3-profile-provider";
9
+ export { C3UserConfiguration, default as C3UserConfigurationProvider, } from "./components/c3-user-configuration/c3-user-configuration-provider";
6
10
  export { C3AppMenuIcon } from "./icons/c3-icons";
7
11
  export { C3IconProps } from "./icons/c3-icons.types";
8
- export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider";
9
- export { C3UserConfiguration } from "./components/c3-user-configuration/c3-user-configuration-provider";
10
- export { useC3Profile } from "./components/c3-user-configuration/c3-profile-provider/c3-profile-provider";
package/lib/esm/index.js CHANGED
@@ -1,5 +1,7 @@
1
+ export { C3ClusterTag } from "./components/c3-cluster-tag/c3-cluster-tag";
2
+ export { StageClusterLabels, } from "./components/c3-cluster-tag/c3-cluster-tag.types";
1
3
  export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state";
2
4
  export { default as C3Navigation } from "./components/c3-navigation";
3
- export { C3AppMenuIcon } from "./icons/c3-icons";
4
- export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider";
5
5
  export { useC3Profile } from "./components/c3-user-configuration/c3-profile-provider/c3-profile-provider";
6
+ export { default as C3UserConfigurationProvider, } from "./components/c3-user-configuration/c3-user-configuration-provider";
7
+ export { C3AppMenuIcon } from "./icons/c3-icons";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.2.5",
3
+ "version": "0.2.7-rc.1",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
6
  "build": "yarn clean && tsc",