Files
klz-cables.com/.pnpm-store/v10/files/b2/10fdfd8c8f82222db89960465a4f155a86242b9817f5c57b227370a1219cfdb8c4908efdce85b831815395b8eee37cfdae0f4d7dc166589b9f84f1515af421
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

100 lines
2.8 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 {
DOMConversionMap,
EditorConfig,
LexicalNode,
NodeKey,
RangeSelection,
LexicalCommand,
SerializedElementNode,
} from 'lexical';
import {addClassNamesToElement} from '@lexical/utils';
import {$isElementNode, ElementNode} from 'lexical';
export type LinkAttributes = $ReadOnly<{
rel?: null | string,
target?: null | string,
title?: null | string,
}>;
export type SerializedLinkNode = {
...SerializedElementNode,
rel?: null | string,
target?: null | string,
title?: null | string,
url: string,
...
};
declare export class LinkNode extends ElementNode {
__url: string;
__target: null | string;
__rel: null | string;
__title: null | string;
static getType(): string;
static clone(node: LinkNode): LinkNode;
constructor(url: string, attributes?: LinkAttributes, key?: NodeKey): void;
createDOM(config: EditorConfig): HTMLElement;
static importDOM(): DOMConversionMap | null;
exportJSON(): SerializedLinkNode;
getURL(): string;
setURL(url: string): void;
getTarget(): null | string;
setTarget(target: null | string): void;
getRel(): null | string;
setRel(rel: null | string): void;
getTitle(): null | string;
setTitle(title: null | string): void;
insertNewAfter(
selection: RangeSelection,
restoreSelection?: boolean,
): null | ElementNode;
canInsertTextBefore(): false;
canInsertTextAfter(): false;
canBeEmpty(): false;
isInline(): true;
}
declare export function $createLinkNode(
url: string,
attributes?: LinkAttributes,
): LinkNode;
declare export function $isLinkNode(
node: ?LexicalNode,
): node is LinkNode;
export type SerializedAutoLinkNode = {
...SerializedLinkNode,
isUnlinked: boolean,
...
};
declare export class AutoLinkNode extends LinkNode {
static getType(): string;
// $FlowFixMe[incompatible-type] clone method inheritance
static clone(node: AutoLinkNode): AutoLinkNode;
insertNewAfter(
selection: RangeSelection,
restoreSelection?: boolean,
): null | ElementNode;
}
declare export function $createAutoLinkNode(
url: string,
attributes?: LinkAttributes,
): AutoLinkNode;
declare export function $isAutoLinkNode(
node: ?LexicalNode,
): node is AutoLinkNode;
declare export var TOGGLE_LINK_COMMAND: LexicalCommand<
string | {url: string, ...LinkAttributes} | null,
>;
declare export function $toggleLink(
url: null | string,
attributes: LinkAttributes,
): void;
/** @deprecated renamed to {@link $toggleLink} by @lexical/eslint-plugin rules-of-lexical */
declare const toggleLink: typeof $toggleLink;
declare export function formatUrl(url: string): string;