@vuu-ui/vuu-filter-parser 0.13.46 → 0.13.47

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "version": "0.13.46",
2
+ "version": "0.13.47",
3
3
  "author": "heswell",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@lezer/common": "^1.0.2",
8
8
  "@lezer/lr": "1.4.2",
9
- "@vuu-ui/vuu-data-types": "0.13.46",
10
- "@vuu-ui/vuu-filter-types": "0.13.46",
11
- "@vuu-ui/vuu-utils": "0.13.46"
9
+ "@vuu-ui/vuu-data-types": "0.13.47",
10
+ "@vuu-ui/vuu-filter-types": "0.13.47",
11
+ "@vuu-ui/vuu-utils": "0.13.47"
12
12
  },
13
13
  "files": [
14
14
  "README.md",
@@ -40,7 +40,6 @@ export * from "./layout-types";
40
40
  export * from "./list-utils";
41
41
  export * from "./local-storage-utils";
42
42
  export * from "./logging-utils";
43
- export * from "./menu-utils";
44
43
  export * from "./module-utils";
45
44
  export * from "./moving-window";
46
45
  export * from "./nanoid";
@@ -1,10 +0,0 @@
1
- import { MenuProps } from "@salt-ds/core";
2
- import { MenuActionHandler } from "./ContextMenuProvider";
3
- import { ContextMenuItemDescriptor } from "./menu-utils";
4
- export interface ContextMenuProps extends Pick<MenuProps, "open" | "onOpenChange"> {
5
- menuHandler: MenuActionHandler;
6
- menuItemDescriptors: ContextMenuItemDescriptor[];
7
- x: number;
8
- y: number;
9
- }
10
- export declare const ContextMenu: ({ menuHandler, menuItemDescriptors, onOpenChange, open, x, y, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- import { ContextMenuItemDescriptor } from "./menu-utils";
3
- export type MenuActionHandler<T extends string = string, Options = unknown> = (menuItemId: T, options?: Options) => boolean | undefined;
4
- export type MenuBuilder<Location extends string = string, Options = unknown> = (location: Location, options: Options) => ContextMenuItemDescriptor[];
5
- export interface ContextMenuContextType {
6
- menuBuilders: MenuBuilder[];
7
- menuActionHandler: MenuActionHandler;
8
- showContextMenu: (contextMenu: ReactElement | null) => void;
9
- }
10
- export declare const ContextMenuContext: import("react").Context<ContextMenuContextType | null>;
11
- export interface ContextMenuProviderProps<L extends string = string, O = unknown> {
12
- children: ReactNode;
13
- menuActionHandler?: MenuActionHandler;
14
- menuBuilder?: MenuBuilder<L, O>;
15
- }
16
- export declare const ContextMenuProvider: <L extends string = string, O = unknown>({ children, menuActionHandler, menuBuilder, }: ContextMenuProviderProps<L, O>) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export { ContextMenuProvider, type MenuActionHandler, type MenuBuilder, } from "./ContextMenuProvider";
2
- export { isGroupMenuItemDescriptor, type ContextMenuGroupItemDescriptor, type ContextMenuItemDescriptor, } from "./menu-utils";
3
- export { useContextMenu } from "./useContextMenu";
@@ -1,17 +0,0 @@
1
- import { MenuActionHandler } from "./ContextMenuProvider";
2
- export interface ContextMenuItemBase {
3
- className?: string;
4
- icon?: string;
5
- label: string;
6
- location?: string;
7
- }
8
- export interface ContextMenuLeafItemDescriptor extends ContextMenuItemBase {
9
- id: string;
10
- options?: unknown;
11
- }
12
- export interface ContextMenuGroupItemDescriptor extends ContextMenuItemBase {
13
- children: ContextMenuItemDescriptor[];
14
- }
15
- export type ContextMenuItemDescriptor = ContextMenuLeafItemDescriptor | ContextMenuGroupItemDescriptor;
16
- export declare const isGroupMenuItemDescriptor: (menuItem?: ContextMenuItemDescriptor) => menuItem is ContextMenuGroupItemDescriptor;
17
- export declare const menuItemsFromMenuDescriptors: (menuDescriptors: ContextMenuItemDescriptor[], menuActionHandler: MenuActionHandler) => import("react/jsx-runtime").JSX.Element[];
@@ -1,10 +0,0 @@
1
- import { ContextMenuProps } from "./ContextMenu";
2
- import { MenuActionHandler, MenuBuilder } from "./ContextMenuProvider";
3
- export type EventLike = {
4
- clientX: number;
5
- clientY: number;
6
- preventDefault?: () => void;
7
- stopPropagation?: () => void;
8
- };
9
- export type ShowContextMenu = (e: EventLike, location: string, options: unknown, contextMenuProps?: Partial<Pick<ContextMenuProps, "onOpenChange" | "x" | "y">>) => boolean;
10
- export declare const useContextMenu: (menuBuilder?: MenuBuilder, menuActionHandler?: MenuActionHandler) => ShowContextMenu;
@@ -1,6 +0,0 @@
1
- import { MenuRpcResponse, OpenDialogActionWithSchema } from "@vuu-ui/vuu-data-types";
2
- import { ShowNotificationAction, VuuRpcResponse } from "@vuu-ui/vuu-protocol-types";
3
- import { ContextMenuGroupItemDescriptor, ContextMenuItemDescriptor } from "@vuu-ui/vuu-context-menu";
4
- export declare const isGroupMenuItemDescriptor: (menuItem?: ContextMenuItemDescriptor) => menuItem is ContextMenuGroupItemDescriptor;
5
- export declare const isOpenBulkEditResponse: (rpcResponse: Partial<VuuRpcResponse>) => rpcResponse is MenuRpcResponse<OpenDialogActionWithSchema>;
6
- export declare const hasShowNotificationAction: (res: Partial<VuuRpcResponse>) => res is MenuRpcResponse<ShowNotificationAction>;