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

44 lines
1.2 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 {ElementNode, LexicalEditor, RootNode, TextNode} from 'lexical';
export type TextNodeWithOffset = {
node: TextNode,
offset: number,
};
declare export function $findTextIntersectionFromCharacters(
root: RootNode,
targetCharacters: number,
): null | {
node: TextNode,
offset: number,
};
declare export function $isRootTextContentEmpty(
isEditorComposing: boolean,
trim?: boolean,
): boolean;
declare export function $isRootTextContentEmptyCurry(
isEditorComposing: boolean,
trim?: boolean,
): () => boolean;
declare export function $rootTextContent(): string;
declare export function $canShowPlaceholder(isComposing: boolean): boolean;
declare export function $canShowPlaceholderCurry(
isEditorComposing: boolean,
): () => boolean;
export type EntityMatch = {
end: number,
start: number,
};
declare export function registerLexicalTextEntity<N: TextNode>(
editor: LexicalEditor,
getMatch: (text: string) => null | EntityMatch,
targetNode: Class<N>,
createNode: (textNode: TextNode) => N,
): Array<() => void>;