@camunda/camunda-composite-components 0.0.38-rc1 → 0.0.38-rc3

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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { C3NavigationProps } from "./c3-navigation.types";
3
- export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, userSideBar, notificationSideBar, }: C3NavigationProps) => JSX.Element;
3
+ export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, userSideBar, notificationSideBar, }: C3NavigationProps) => JSX.Element;
@@ -8,7 +8,6 @@ import { useMediaQuery } from "./helpers";
8
8
  import { C3NavigationAppBar } from "./c3-navigation-appbar";
9
9
  import styled from "styled-components";
10
10
  import { CamundaLogo } from "../../icons/c3-icons";
11
- import { InfoButton } from "./c3-info-button";
12
11
  /**
13
12
  * UI SHELL
14
13
  * Docs: https://react.carbondesignsystem.com/?path=/story/components-ui-shell--fixed-side-nav
@@ -28,7 +27,7 @@ const StyledToggletipContent = styled(ToggletipContent) `
28
27
  color: var(--cds-link-hover-text-color);
29
28
  }
30
29
  `;
31
- export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, userSideBar, notificationSideBar, }) => {
30
+ export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, userSideBar, notificationSideBar, }) => {
32
31
  const isLargeScreen = useMediaQuery(`(min-width: ${BREAKPOINT_LG_WIDTH}`);
33
32
  const appBarElementsLength = appBar.elements?.length ?? 0;
34
33
  const displayAppBar = appBarElementsLength > 0 || (!isLargeScreen && navbar.elements.length > 0);
@@ -83,7 +82,7 @@ export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, info
83
82
  } }, navbar.orgName))),
84
83
  notificationSideBar && (React.createElement(C3NotificationSidebar, { sideBar: { ...notificationSideBar, type: "notifications" } })),
85
84
  orgSideBar && (React.createElement(C3OrgSidebar, { sideBar: { ...orgSideBar, type: "org" } })),
86
- infoButton ? (React.createElement(InfoButton, { onClick: infoButton.onClick })) : (infoSideBar && (React.createElement(C3InfoSidebar, { sideBar: { ...infoSideBar, type: "info" } }))),
85
+ infoSideBar && (React.createElement(C3InfoSidebar, { sideBar: { ...infoSideBar, type: "info" } })),
87
86
  userSideBar && (React.createElement(C3UserSidebar, { sideBar: { ...userSideBar, type: "user" } })))));
88
87
  } }));
89
88
  };
@@ -53,9 +53,6 @@ export interface C3NavigationProps {
53
53
  appBar: WithoutType<C3NavigationAppBarProps>;
54
54
  orgSideBar?: WithoutType<C3NavigationOrgSideBarProps>;
55
55
  infoSideBar?: WithoutType<C3NavigationInfoSideBarProps>;
56
- infoButton?: {
57
- onClick: () => void;
58
- };
59
56
  userSideBar?: WithoutType<C3NavigationUserSideBarProps>;
60
57
  notificationSideBar?: WithoutType<C3NavigationNotificationsSideBarProps>;
61
58
  navbar: C3NavigationNavBarProps;
@@ -32,7 +32,9 @@ const C3NotificationProvider = ({ children, }) => {
32
32
  if (enabled && isFetched && !isEventStreamAvailable) {
33
33
  setEventStreamAvailable(true);
34
34
  NotificationService.notificationsStream(config, (notification) => {
35
- setNotifications((allNotifications) => NotificationService.updateNotifications(allNotifications, notification));
35
+ if (notification.orgId === activeOrganizationId) {
36
+ setNotifications((allNotifications) => NotificationService.updateNotifications(allNotifications, notification));
37
+ }
36
38
  });
37
39
  }
38
40
  useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.0.38-rc1",
3
+ "version": "0.0.38-rc3",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
6
  "copy-css-files": "copyfiles -u 1 src/components/**/*.css lib/esm",
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- export declare const InfoButton: FC<{
3
- onClick: () => void;
4
- }>;
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { HeaderGlobalAction } from "@carbon/react";
3
- import { Help } from "@carbon/react/icons";
4
- export const InfoButton = ({ onClick }) => (React.createElement(HeaderGlobalAction, { "aria-label": "Open Help Center", tooltipAlignment: "center", onClick: onClick },
5
- React.createElement(Help, { size: 20 })));