@vuu-ui/vuu-data-types 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.
Files changed (2) hide show
  1. package/index.d.ts +15 -0
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -51,3 +51,18 @@ export interface ContextMenuGroupItemDescriptor extends ContextMenuItemBase {
51
51
  export type ContextMenuItemDescriptor =
52
52
  | ContextMenuLeafItemDescriptor
53
53
  | ContextMenuGroupItemDescriptor;
54
+
55
+ export type MenuBuilder<L = string, O = unknown> = (
56
+ location: L,
57
+ options: O
58
+ ) => ContextMenuItemDescriptor[];
59
+
60
+ export type MenuActionHandler = (
61
+ type: string,
62
+ options: unknown
63
+ ) => boolean | undefined;
64
+
65
+ export interface ContextMenuContextType {
66
+ menuBuilders: MenuBuilder[];
67
+ menuActionHandler: MenuActionHandler;
68
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-types",
3
- "version": "0.8.0-debug",
3
+ "version": "0.8.1-debug",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-filter-types": "0.8.0-debug",
8
- "@vuu-ui/vuu-protocol-types": "0.8.0-debug"
7
+ "@vuu-ui/vuu-filter-types": "0.8.1-debug",
8
+ "@vuu-ui/vuu-protocol-types": "0.8.1-debug"
9
9
  },
10
10
  "dependencies": {},
11
11
  "peerDependencies": {},