@xh/hoist 79.0.0 → 80.0.0-SNAPSHOT.1767799665209
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/impl/MenuItems.ts +3 -3
package/utils/impl/MenuItems.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright © 2026 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
|
-
import {isMenuItem, MenuItemLike} from '@xh/hoist/core';
|
|
7
|
+
import {ElementSpec, isMenuItem, MenuItemLike} from '@xh/hoist/core';
|
|
8
8
|
import {menuDivider, menuItem} from '@xh/hoist/kit/blueprint';
|
|
9
9
|
import {MenuItemProps} from '@blueprintjs/core';
|
|
10
10
|
import {wait} from '@xh/hoist/promise';
|
|
@@ -43,7 +43,7 @@ export function parseMenuItems(items: MenuItemLike[]): ReactNode[] {
|
|
|
43
43
|
const {actionFn} = item;
|
|
44
44
|
|
|
45
45
|
// Create menuItem from config
|
|
46
|
-
const cfg: MenuItemProps = {
|
|
46
|
+
const cfg: ElementSpec<MenuItemProps> = {
|
|
47
47
|
text: item.text,
|
|
48
48
|
icon: item.icon,
|
|
49
49
|
intent: item.intent,
|
|
@@ -54,7 +54,7 @@ export function parseMenuItems(items: MenuItemLike[]): ReactNode[] {
|
|
|
54
54
|
|
|
55
55
|
// Recursively parse any submenus
|
|
56
56
|
if (!isEmpty(item.items)) {
|
|
57
|
-
cfg.
|
|
57
|
+
cfg.items = parseMenuItems(item.items);
|
|
58
58
|
cfg.popoverProps = {openOnTargetFocus: false};
|
|
59
59
|
}
|
|
60
60
|
|