Files
klz-cables.com/.pnpm-store/v10/files/28/4abe4142675ad63b3f8dea7775bb9522da1d844155ad14d26c04aaff29de0849b0bf86f805db8cc2877a0d757c7abb26af883d3f6fa29a0212c6caf3bd95cc
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

65 lines
1.6 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.
*
* @flow strict
*/
import type {LexicalCommand, LexicalEditor, NodeKey, TextNode} from 'lexical';
import * as React from 'react';
export type MenuTextMatch = {
leadOffset: number,
matchingString: string,
replaceableString: string,
};
export type MenuResolution = {
match?: MenuTextMatch,
getRect: () => ClientRect,
};
declare export class MenuOption {
key: string;
ref: {current: HTMLElement | null};
constructor(key: string): void;
setRefElement(element: HTMLElement | null): void;
}
export type MenuRenderFn<TOption> = (
anchorElementRef: {current: HTMLElement | null},
itemProps: {
selectedIndex: number | null,
selectOptionAndCleanUp: (option: TOption) => void,
setHighlightedIndex: (index: number) => void,
options: Array<TOption>,
},
matchingString: string,
) => React.Portal | React.MixedElement | null;
export type TriggerFn = (
text: string,
editor: LexicalEditor,
) => MenuTextMatch | null;
type NodeMenuPluginProps<TOption> = {
onSelectOption: (
option: TOption,
textNodeContainingQuery: TextNode | null,
closeMenu: () => void,
matchingString: string,
) => void,
options: Array<TOption>,
nodeKey: NodeKey | null,
onClose?: () => void,
onOpen?: (resolution: MenuResolution) => void,
menuRenderFn: MenuRenderFn<TOption>,
anchorClassName?: string,
};
declare export function LexicalNodeMenuPlugin<TOption>(
options: NodeMenuPluginProps<TOption>,
): React.MixedElement | null;