Files
klz-cables.com/.pnpm-store/v10/files/f4/5ed070ce0817c5c387f9b983f444d2d3091309e31fd7afd586e368385230691cde29cecd9ba39c4011d50d4762819efbcabd91dfadd7b6ceeb035b0932c844
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

47 lines
1.5 KiB
Plaintext

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { LexicalNode } from 'lexical';
import { MutableRefObject } from 'react';
declare class MenuOption {
key: string;
ref?: MutableRefObject<HTMLElement | null>;
constructor(key: string);
setRefElement(element: HTMLElement | null): void;
}
declare class NodeContextMenuOption extends MenuOption {
type: string;
title: string;
icon: JSX.Element | null;
disabled: boolean;
$onSelect: () => void;
$showOn?: (node: LexicalNode) => boolean;
constructor(title: string, options: {
disabled?: boolean;
icon?: JSX.Element;
$onSelect: () => void;
$showOn?: (node: LexicalNode) => boolean;
});
}
declare class NodeContextMenuSeparator extends MenuOption {
type: string;
$showOn?: (node: LexicalNode) => boolean;
constructor(options?: {
$showOn?: (node: LexicalNode) => boolean;
});
}
type ContextMenuType = NodeContextMenuOption | NodeContextMenuSeparator;
interface Props {
label?: string;
nested?: boolean;
itemClassName?: string;
separatorClassName?: string;
items: ContextMenuType[];
}
declare const NodeContextMenuPlugin: import("react").ForwardRefExoticComponent<Omit<Props & import("react").HTMLProps<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
export { NodeContextMenuOption, NodeContextMenuPlugin, NodeContextMenuSeparator };