Files
klz-cables.com/.pnpm-store/v10/files/1f/fd6c12955bbe97ceea72699019a3d745b2f34dc035f1f53435fec7721c4e48b81ae8f210951f5f33e2d24cf9dde92e1263380f6489d877c33b2e03ce122cb8
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

51 lines
1.6 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 {InitialEditorStateType} from '@lexical/react/LexicalComposer';
import type {ExcludedProperties, ProviderAwareness} from '@lexical/yjs';
import type {Doc, RelativePosition} from 'yjs';
export interface Provider {
connect(): void | Promise<void>;
disconnect(): void;
awareness: ProviderAwareness;
on(type: 'sync', cb: (isSynced: boolean) => void): void;
on(type: 'status', cb: ({status: string}) => void): void;
// $FlowFixMe[unclear-type]: temp
on(type: 'update', cb: (any) => void): void;
on(type: 'reload', cb: (doc: Doc) => void): void;
off(type: 'sync', cb: (isSynced: boolean) => void): void;
// $FlowFixMe[unclear-type]: temp
off(type: 'update', cb: (any) => void): void;
off(type: 'status', cb: ({status: string}) => void): void;
off(type: 'reload', cb: (doc: Doc) => void): void;
}
export type ProviderFactory = (
id: string,
yjsDocMap: Map<string, Doc>,
) => Provider;
export type CursorsContainerRef = {current: null | HTMLElement};
declare export function CollaborationPlugin(arg0: {
id: string,
providerFactory: (
// eslint-disable-next-line no-shadow
id: string,
yjsDocMap: Map<string, Doc>,
) => Provider,
shouldBootstrap: boolean,
username?: string,
cursorColor?: string,
cursorsContainerRef?: CursorsContainerRef,
initialEditorState?: InitialEditorStateType,
excludedProperties?: ExcludedProperties,
}): React.Node;