Files
klz-cables.com/.pnpm-store/v10/files/7d/957036d9bd072b168dd9b1f8fa54d0efb3ea4dbc262f4cb5e0d23718839afed399f2da4eb075e2f3aed27d61dc7c9cd66a8f32927812181df459485e8eeafb
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

69 lines
3.1 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 type { BaseSelection, DOMExportOutput, EditorConfig, LexicalNode, LexicalUpdateJSON, NodeKey, ParagraphNode, RangeSelection, SerializedElementNode, Spread } from 'lexical';
import { ElementNode, LexicalEditor } from 'lexical';
export type SerializedListItemNode = Spread<{
checked: boolean | undefined;
value: number;
}, SerializedElementNode>;
/** @noInheritDoc */
export declare class ListItemNode extends ElementNode {
/** @internal */
__value: number;
/** @internal */
__checked?: boolean;
/** @internal */
$config(): import("lexical").StaticNodeConfigRecord<"listitem", {
$transform: (node: ListItemNode) => void;
extends: typeof ElementNode;
importDOM: import("lexical").DOMConversionMap<HTMLElement>;
}>;
constructor(value?: number, checked?: undefined | boolean, key?: NodeKey);
afterCloneFrom(prevNode: this): void;
createDOM(config: EditorConfig): HTMLElement;
updateListItemDOM(prevNode: ListItemNode | null, dom: HTMLLIElement, config: EditorConfig): void;
updateDOM(prevNode: ListItemNode, dom: HTMLElement, config: EditorConfig): boolean;
updateFromJSON(serializedNode: LexicalUpdateJSON<SerializedListItemNode>): this;
exportDOM(editor: LexicalEditor): DOMExportOutput;
exportJSON(): SerializedListItemNode;
append(...nodes: LexicalNode[]): this;
replace<N extends LexicalNode>(replaceWithNode: N, includeChildren?: boolean): N;
insertAfter(node: LexicalNode, restoreSelection?: boolean): LexicalNode;
remove(preserveEmptyParent?: boolean): void;
insertNewAfter(_: RangeSelection, restoreSelection?: boolean): ListItemNode | ParagraphNode;
collapseAtStart(selection: RangeSelection): true;
getValue(): number;
setValue(value: number): this;
getChecked(): boolean | undefined;
setChecked(checked?: boolean): this;
toggleChecked(): this;
getIndent(): number;
setIndent(indent: number): this;
/** @deprecated @internal */
canInsertAfter(node: LexicalNode): boolean;
/** @deprecated @internal */
canReplaceWith(replacement: LexicalNode): boolean;
canMergeWith(node: LexicalNode): boolean;
extractWithChild(child: LexicalNode, selection: BaseSelection): boolean;
isParentRequired(): true;
createParentElementNode(): ElementNode;
canMergeWhenEmpty(): true;
}
/**
* Creates a new List Item node, passing true/false will convert it to a checkbox input.
* @param checked - Is the List Item a checkbox and, if so, is it checked? undefined/null: not a checkbox, true/false is a checkbox and checked/unchecked, respectively.
* @returns The new List Item.
*/
export declare function $createListItemNode(checked?: boolean): ListItemNode;
/**
* Checks to see if the node is a ListItemNode.
* @param node - The node to be checked.
* @returns true if the node is a ListItemNode, false otherwise.
*/
export declare function $isListItemNode(node: LexicalNode | null | undefined): node is ListItemNode;