@touchtech/web-navigation-menu 0.0.12-alpha.1 → 0.0.12-alpha.2

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.
@@ -14,6 +14,8 @@ export type NavigationContextValue = {
14
14
  hasSendoutsAccess: boolean;
15
15
  hasSendoutsCmsAccess: boolean;
16
16
  hasUserManagementAccess: boolean;
17
+ hasUniversalAccess: boolean;
18
+ hasSettingsAccess: boolean;
17
19
  viewState: NavigationViewState;
18
20
  updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
19
21
  signOut: () => void;
@@ -1,8 +1,9 @@
1
- /// <reference types="react" />
1
+ import { PropsWithChildren } from "react";
2
2
  type Props = {
3
- children: string;
4
3
  to: string;
5
4
  hidden?: boolean;
5
+ disabled?: boolean;
6
+ onClick?: () => void | Promise<void>;
6
7
  };
7
- declare function ApplicationLink({ children, to, hidden }: Props): JSX.Element | null;
8
+ declare function ApplicationLink({ children, to, hidden, disabled, onClick, }: PropsWithChildren<Props>): JSX.Element | null;
8
9
  export default ApplicationLink;
@@ -7,6 +7,8 @@ export declare const AppPaths: {
7
7
  TENANTS: string;
8
8
  DASHBOARD: string;
9
9
  DASHBOARD_CREATE_WORKSPACE_MODAL: string;
10
+ CREATE_WORKSPACE: string;
11
+ SETTINGS: string;
10
12
  INSTORE_ADMIN: string;
11
13
  SUPERADMIN: string;
12
14
  };
@@ -0,0 +1,4 @@
1
+ export declare const createSubscriptionManagementSessionUrl: () => string;
2
+ export declare function useManageSubscription(): (returnUrl: string) => Promise<{
3
+ text: string;
4
+ }>;