gant-core 0.1.42 → 0.1.44

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.
package/lib/index.d.ts CHANGED
@@ -1745,7 +1745,16 @@ type MAIN_CONFIG_TYPE = {
1745
1745
  locale?: boolean;
1746
1746
  tools?: boolean;
1747
1747
  transformTool?: boolean;
1748
- hotKey?: boolean;
1748
+ ocrTool?: boolean;
1749
+ hotKeyTool?: boolean;
1750
+ fullScreenTool?: boolean;
1751
+ networkSpeedTool?: boolean;
1752
+ recordModeTool?: boolean;
1753
+ debuggerTool?: boolean;
1754
+ compactMode?: boolean;
1755
+ drakMode?: boolean;
1756
+ meettingMode?: boolean;
1757
+ motionMode?: boolean;
1749
1758
  menuCollection?: boolean;
1750
1759
  version?: boolean;
1751
1760
  autoDetectVersion?: boolean;
@@ -1927,6 +1936,7 @@ interface ServerMenu {
1927
1936
  leaf?: boolean;
1928
1937
  children?: ServerMenu[];
1929
1938
  seqNum?: number;
1939
+ hide?: boolean;
1930
1940
  }
1931
1941
  type ServerMenuData = ServerMenu[];
1932
1942
  type ServerMenuMap = {
package/lib/index.js CHANGED
@@ -1189,7 +1189,7 @@ class GlobalStoreClass {
1189
1189
  const { user: currentUser, startMenus, isSuperAdmin, ...restInfo } = res;
1190
1190
  this.userStore.setUserAggregateInfo({ ...restInfo, currentUser });
1191
1191
  this.isSuperAdmin = isSuperAdmin;
1192
- const localeMenus = typeof menus == "function" ? menus(res) : menus;
1192
+ const localeMenus = typeof menus == "function" ? await menus(res) : menus;
1193
1193
  this.menuStore.init(isEmpty(localeMenus) ? startMenus : localeMenus, currentUser.id);
1194
1194
  };
1195
1195
  init = async (options) => {