@admin-layout/client 12.2.4-alpha.0 → 12.2.4-alpha.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.
@@ -3,6 +3,6 @@ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
3
3
  export declare const useComponentSize: () => {
4
4
  width: any;
5
5
  height: any;
6
- ref: import("react").MutableRefObject<any>;
6
+ ref: import("react").RefObject<any>;
7
7
  };
8
8
  //# sourceMappingURL=componentSize.d.ts.map
@@ -8,9 +8,8 @@ import { type IMenuData } from '@common-stack/client-react/lib/interfaces/menu';
8
8
  *
9
9
  * @param menuList
10
10
  * @param authorities
11
- * @param isTopLevel - Internal flag to prevent logging during recursion
12
11
  */
13
- export declare const menuDataRender: (menuList: IMenuData[], authorities: any, isTopLevel?: boolean) => IMenuData[];
12
+ export declare const menuDataRender: (menuList: IMenuData[], authorities: any) => IMenuData[];
14
13
  export declare function transformData(data: any): any;
15
14
  export declare function setLocale(obj: any, parentName?: string): void;
16
15
  export declare const addProLayoutParentKeys: (menuData?: any[], parentKeys?: string[]) => any[];
@@ -1 +1 @@
1
- {"version":3,"file":"menuUtils.d.ts","sourceRoot":"","sources":["../../src/utils/menuUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAChF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,EAAE,EAAE,gBAAW,EAAE,oBAAiB,KAAG,SAAS,EAuB/F,CAAC;AAMF,wBAAgB,aAAa,CAAC,IAAI,KAAA,OAcjC;AACD,wBAAgB,SAAS,CAAC,GAAG,KAAA,EAAE,UAAU,SAAK,QAO7C;AAED,eAAO,MAAM,sBAAsB,GAAI,WAAW,GAAG,EAAE,EAAE,aAAY,MAAM,EAAO,UASjF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAM,QAa5C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,KAAA,QAY9C"}
1
+ {"version":3,"file":"menuUtils.d.ts","sourceRoot":"","sources":["../../src/utils/menuUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAChF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,EAAE,EAAE,gBAAW,KAAG,SAAS,EAqB5E,CAAC;AAMF,wBAAgB,aAAa,CAAC,IAAI,KAAA,OAcjC;AACD,wBAAgB,SAAS,CAAC,GAAG,KAAA,EAAE,UAAU,SAAK,QAO7C;AAED,eAAO,MAAM,sBAAsB,GAAI,WAAW,GAAG,EAAE,EAAE,aAAY,MAAM,EAAO,UASjF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAM,QAa5C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,KAAA,QAY9C"}
@@ -7,12 +7,9 @@ import {get,cloneDeep,sortBy}from'lodash-es';import {PermissionType}from'common'
7
7
  *
8
8
  * @param menuList
9
9
  * @param authorities
10
- * @param isTopLevel - Internal flag to prevent logging during recursion
11
10
  */
12
- const menuDataRender = (menuList, authorities, isTopLevel = true) => {
13
- if (isTopLevel) {
14
- logger.trace('menuDataRender execution started');
15
- }
11
+ const menuDataRender = (menuList, authorities) => {
12
+ logger.trace('menuDataRender execution started');
16
13
  const sortedMenuList = sortMenusByPriority(menuList);
17
14
  return (sortedMenuList
18
15
  // filter routes with valid permission
@@ -27,7 +24,7 @@ const menuDataRender = (menuList, authorities, isTopLevel = true) => {
27
24
  // return Authorized.check(item.authority, localItem, null) as MenuDataItem;
28
25
  return {
29
26
  ...item,
30
- children: item.children ? menuDataRender(item.children, authorities, false) : undefined,
27
+ children: item.children ? menuDataRender(item.children, authorities) : undefined,
31
28
  };
32
29
  }));
33
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"menuUtils.js","sources":["../../src/utils/menuUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAcG;AACH;AA6BA;AAeA,MAAA,uCAA+B,EAAU,UAAK,GAAA,IAO7C,KAAA;AAED,IAAA,IAAA,UAAO,EAAA;AAWP,QAAA,MAAA,CAAO,KAAA,CAAM,kCAA0B,CAAA;AAevC,IAAA;;;AAGG;AACH,SAAA,MAAA,CAAA,CAAA,IAAA,KAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"menuUtils.js","sources":["../../src/utils/menuUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAaG;AACH;AA2BA;AAeA,MAAA,uCAA+B;AAS/B,IAAA,MAAA,CAAA,KAAO,CAAA,kCAAgC,CAAA;AAWvC,IAAA,MAAA,cAAa,GAAA,mBAA0B,CAAA,QAAA,CAAA;AAevC,IAAA,QAAA;;;AAGG,QAAA,MAAA,EAAA,SAAA,EAAA,GAAA,IAAA;AACH,QAAA,IAAA,KAAA,CAAA,OAAgB,CAAA,SAAA,CAAA,IAAA,SAAA,EAA2B,MAAI,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/client",
3
- "version": "12.2.4-alpha.0",
3
+ "version": "12.2.4-alpha.1",
4
4
  "description": "Sample client for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -26,7 +26,7 @@
26
26
  "serialize-error": "^8.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "common": "12.2.4-alpha.0",
29
+ "common": "12.2.4-alpha.1",
30
30
  "rc-menu": "^9.16.1"
31
31
  },
32
32
  "peerDependencies": {
@@ -44,5 +44,5 @@
44
44
  "typescript": {
45
45
  "definition": "lib/index.d.ts"
46
46
  },
47
- "gitHead": "2aab7f1711e368f44601309301c62082f1ebeec1"
47
+ "gitHead": "f80e1b60eea1e3d755b88c840a068fde92219a5d"
48
48
  }