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

49 lines
1.9 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 { Binding } from './Bindings';
import type { BaseSelection, NodeKey } from 'lexical';
import { Provider, UserState } from '.';
import { CollabDecoratorNode } from './CollabDecoratorNode';
import { CollabElementNode } from './CollabElementNode';
import { CollabLineBreakNode } from './CollabLineBreakNode';
import { CollabTextNode } from './CollabTextNode';
export type CursorSelection = {
anchor: {
key: NodeKey;
offset: number;
};
caret: HTMLElement;
color: string;
focus: {
key: NodeKey;
offset: number;
};
name: HTMLSpanElement;
selections: Array<HTMLElement>;
};
export type Cursor = {
color: string;
name: string;
selection: null | CursorSelection;
};
type AnyCollabNode = CollabDecoratorNode | CollabElementNode | CollabTextNode | CollabLineBreakNode;
export declare function getAnchorAndFocusCollabNodesForUserState(binding: Binding, userState: UserState): {
anchorCollabNode: AnyCollabNode | null;
anchorOffset: number;
focusCollabNode: AnyCollabNode | null;
focusOffset: number;
};
export declare function $syncLocalCursorPosition(binding: Binding, provider: Provider): void;
export type SyncCursorPositionsFn = (binding: Binding, provider: Provider, options?: SyncCursorPositionsOptions) => void;
export type SyncCursorPositionsOptions = {
getAwarenessStates?: (binding: Binding, provider: Provider) => Map<number, UserState>;
};
export declare function syncCursorPositions(binding: Binding, provider: Provider, options?: SyncCursorPositionsOptions): void;
export declare function syncLexicalSelectionToYjs(binding: Binding, provider: Provider, prevSelection: null | BaseSelection, nextSelection: null | BaseSelection): void;
export {};