Skip to content

Commit dc798d1

Browse files
PROD-3277 Revert type updates
1 parent ca01a05 commit dc798d1

12 files changed

+7
-56
lines changed

types/src/lib/app-context/app-context.functions.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export declare const buildContext: (newConfig: Partial<NavigationAppProps>, prev
1313
toolConfig: {
1414
name: any;
1515
root: any;
16-
fullFooter: any;
1716
};
1817
supportMeta: any;
1918
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export interface ToolConfig {
22
name: string;
33
root: string;
4-
fullFooter?: boolean;
54
}

types/src/lib/config/nav-menu/footer-nav-items.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ export declare const footerNavItems: {
1313
icon?: string;
1414
action?: string;
1515
url?: string;
16-
authenticatedPath?: string;
17-
groupOrder?: number;
1816
}[];
1917
};

types/src/lib/config/nav-menu/marketing-nav-items.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ export declare const marketingNavItems: {
1111
icon?: string;
1212
action?: string;
1313
url?: string;
14-
authenticatedPath?: string;
15-
groupOrder?: number;
1614
})[];
1715
description?: string;
1816
host?: string;
@@ -22,8 +20,6 @@ export declare const marketingNavItems: {
2220
icon?: string;
2321
action?: string;
2422
url?: string;
25-
authenticatedPath?: string;
26-
groupOrder?: number;
2723
})[];
2824
description?: string;
2925
host?: string;
@@ -33,7 +29,5 @@ export declare const marketingNavItems: {
3329
icon?: string;
3430
action?: string;
3531
url?: string;
36-
authenticatedPath?: string;
37-
groupOrder?: number;
3832
}[];
3933
};
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export declare const toolSelectorNavItems: {
2-
children: ({
2+
children: {
33
label: string;
44
children: ({
55
label: string;
@@ -17,17 +17,5 @@ export declare const toolSelectorNavItems: {
1717
type: string;
1818
}[];
1919
})[];
20-
} | {
21-
label: string;
22-
children: {
23-
label: string;
24-
groupOrder: number;
25-
children: {
26-
label: string;
27-
url: string;
28-
icon: string;
29-
description: string;
30-
}[];
31-
}[];
32-
})[];
20+
}[];
3321
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import type { NavMenuItem } from './nav-menu-item.model';
2-
export declare function getFooterNavItems(isAuthenticated: boolean): NavMenuItem[];
2+
export declare function getFooterNavItems(): NavMenuItem[];
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import type { NavMenuItem } from './nav-menu-item.model';
2-
export declare function getMainNavItems(isAuthenticated: boolean): NavMenuItem[];
3-
export declare function getActiveRoute(navItems: NavMenuItem[], index?: number): NavMenuItem[];
2+
export declare function getMainNavItems(): NavMenuItem[];
3+
export declare function getActiveRoute(index?: number): NavMenuItem[];

types/src/lib/functions/nav-menu-item.model.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ export interface NavMenuItem {
88
icon?: string;
99
action?: string;
1010
url?: string;
11-
authenticatedPath?: string;
12-
groupOrder?: number;
1311
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import type { NavMenuItem } from './nav-menu-item.model';
2-
export declare function getMainNavItems(isAuthenticated: boolean): NavMenuItem[];
2+
export declare function getMainNavItems(): NavMenuItem[];

types/src/lib/utils/routes.d.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
import type { NavMenuItem } from 'lib/functions/nav-menu-item.model';
2-
/**
3-
* Parses the passed nav menu items and
4-
* based on the `isAuthenticated` param
5-
* activates the `authenticatedPath` for a nav menu item
6-
* @param isAuthenticated
7-
* @param navigationItem
8-
* @param depth
9-
* @returns NavMenuItem.children
10-
*/
11-
export declare const activateAuthenticatedRoutes: (isAuthenticated: boolean, { children }: NavMenuItem, depth?: number) => NavMenuItem[];
122
/**
133
* Matches the current route to a navigation menu item
144
* and returns the full trail to the matched route (eg. [parent, matchedRoute])
@@ -23,4 +13,4 @@ export declare const matchRoutes: (navMenu: NavMenuItem, path: string) => NavMen
2313
* @param trailLevel The trail level of the active route to return
2414
* @returns
2515
*/
26-
export declare function getActiveRoute(navMenuItems: NavMenuItem[], trailLevel?: number): NavMenuItem[];
16+
export declare function getActiveRoute(navMenu: NavMenuItem, trailLevel?: number): NavMenuItem[];

0 commit comments

Comments
 (0)