Files
klz-cables.com/.pnpm-store/v10/files/df/e21288961425cf954ea59d07dad03f32039075c21e508b49bac1c8aafd4b10a02191b34f217ecfb4a1d6bb837922cfc599aa6e4da6ef5117c0a23fb5954005
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

56 lines
1.3 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 {
NodeKey,
RangeSelection,
TextNode,
SerializedElementNode,
} from 'lexical';
import {ElementNode, LexicalNode} from 'lexical';
export type SerializedMarkNode = SerializedElementNode & {
ids: Array<string>,
};
declare export class MarkNode extends ElementNode {
__ids: Array<string>;
static clone(node: this): MarkNode;
constructor(ids: Array<string>, key?: NodeKey): void;
hasID(id: string): boolean;
getIDs(): Array<string>;
addID(id: string): void;
deleteID(id: string): void;
canInsertTextBefore(): false;
canInsertTextAfter(): false;
isInline(): true;
}
declare export function $isMarkNode(
node: ?LexicalNode,
): node is MarkNode;
declare export function $createMarkNode(ids: Array<string>): MarkNode;
declare export function $getMarkIDs(
node: TextNode,
offset: number,
): null | Array<string>;
declare export function $wrapSelectionInMarkNode(
selection: RangeSelection,
isBackward: boolean,
id: string,
createNode?: (ids: Array<string>) => MarkNode,
): void;
declare export function $unwrapMarkNode(node: MarkNode): void;