@@ -2,13 +2,13 @@ import React from 'react';
22import { Nullable } from 'tsdef' ;
33import { ContextMenuEvent } from './handlers' ;
44export declare const useLazyValue : < T > ( factory : ( ) => T ) => T ;
5- export declare const ContextMenuEventContext : React . Context < Nullable < ContextMenuEvent > > ;
6- export declare const useContextMenuEvent : ( ) => Nullable < ContextMenuEvent > ;
5+ export declare const ContextMenuEventContext : React . Context < Nullable < ContextMenuEvent < any > > > ;
6+ export declare const useContextMenuEvent : < DataType = any > ( ) => Nullable < ContextMenuEvent < DataType > > ;
77export declare const useContextMenuTrigger : < RefType extends HTMLElement > ( parameters : {
8- id ?: string | undefined ;
8+ menuId ?: string | undefined ;
99 data ?: any ;
1010 ref ?: React . RefObject < RefType > | undefined ;
1111} ) => React . RefObject < RefType > ;
12- export declare const useMenuToggleMethods : ( lastShowMenuEvent : Nullable < ContextMenuEvent > , setShowMenuEvent : ( event : Nullable < ContextMenuEvent > ) => void , onShow ?: ( ( event : ContextMenuEvent ) => void ) | undefined , onHide ?: ( ( ) => void ) | undefined ) => [ ( event : ContextMenuEvent ) => void , ( ) => void ] ;
13- export declare const useMenuPlacementStyle : ( wrapperRef : React . RefObject < HTMLElement > , lastShowMenuEvent : Nullable < ContextMenuEvent > , setMenuPlacementStyle : ( style : Nullable < React . CSSProperties > ) => void ) => void ;
14- export declare const useInternalHandlers : ( wrapperRef : React . RefObject < HTMLElement > , lastShowMenuEvent : Nullable < ContextMenuEvent > , showMenu : ( event : ContextMenuEvent ) => void , hideMenu : ( ) => void , id ?: string | undefined , global ?: boolean | undefined , hideOnSelfClick ?: boolean | undefined , hideOnOutsideClick ?: boolean | undefined , hideOnEscape ?: boolean | undefined , hideOnScroll ?: boolean | undefined , hideOnWindowResize ?: boolean | undefined ) => void ;
12+ export declare const useMenuToggleMethods : ( lastShowMenuEvent : Nullable < ContextMenuEvent < any > > , setShowMenuEvent : ( event : Nullable < ContextMenuEvent < any > > ) => void , onShow ?: ( ( event : ContextMenuEvent < any > ) => void ) | undefined , onHide ?: ( ( ) => void ) | undefined ) => [ ( event : ContextMenuEvent < any > ) => void , ( ) => void ] ;
13+ export declare const useMenuPlacementStyle : ( wrapperRef : React . RefObject < HTMLElement > , lastShowMenuEvent : Nullable < ContextMenuEvent < any > > , setMenuPlacementStyle : ( style : Nullable < React . CSSProperties > ) => void ) => void ;
14+ export declare const useInternalHandlers : ( wrapperRef : React . RefObject < HTMLElement > , lastShowMenuEvent : Nullable < ContextMenuEvent < any > > , showMenu : ( event : ContextMenuEvent < any > ) => void , hideMenu : ( ) => void , id ?: string | undefined , global ?: boolean | undefined , hideOnSelfClick ?: boolean | undefined , hideOnOutsideClick ?: boolean | undefined , hideOnEscape ?: boolean | undefined , hideOnScroll ?: boolean | undefined , hideOnWindowResize ?: boolean | undefined ) => void ;
0 commit comments