@vuu-ui/vuu-popups 0.8.0-debug → 0.8.1-debug
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/cjs/index.js +55 -18
- package/cjs/index.js.map +2 -2
- package/esm/index.js +2456 -21
- package/esm/index.js.map +2 -2
- package/package.json +3 -3
- package/types/menu/context-menu-provider.d.ts +2 -8
- package/types/menu/useContextMenu.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-popups",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-debug",
|
|
4
4
|
"description": "VUU popup components - Context Menu, Dialog etc",
|
|
5
5
|
"author": "heswell",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"@salt-ds/core": "1.2.0",
|
|
9
9
|
"@salt-ds/icons": "1.1.0",
|
|
10
10
|
"@heswell/salt-lab": "1.0.0-alpha.2",
|
|
11
|
-
"@vuu-ui/vuu-data-types": "0.8.
|
|
12
|
-
"@vuu-ui/vuu-utils": "0.8.
|
|
11
|
+
"@vuu-ui/vuu-data-types": "0.8.1-debug",
|
|
12
|
+
"@vuu-ui/vuu-utils": "0.8.1-debug"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"classnames": "^2.2.6",
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
+
import type { ContextMenuContextType, MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
1
2
|
import { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export type MenuActionHandler = (type: string, options: unknown) => boolean | undefined;
|
|
4
|
-
export type MenuBuilder<L = string, O = unknown> = (location: L, options: O) => ContextMenuItemDescriptor[];
|
|
5
|
-
export interface ContextMenuContext {
|
|
6
|
-
menuBuilders: MenuBuilder[];
|
|
7
|
-
menuActionHandler: MenuActionHandler;
|
|
8
|
-
}
|
|
9
|
-
export declare const ContextMenuContext: import("react").Context<ContextMenuContext | null>;
|
|
3
|
+
export declare const ContextMenuContext: import("react").Context<ContextMenuContextType | null>;
|
|
10
4
|
export interface ContextMenuProviderProps {
|
|
11
5
|
children: ReactNode;
|
|
12
6
|
label?: string;
|