Files
lexical/packages/lexical-react/flow/LexicalDraggableBlockPlugin.js.flow
Stéphane 0c2875e593 [lexical-playground][lexical-react] Feature: Push Draggable Element to Parent (#7338)
Co-authored-by: Stéphane Escandell <stephane.escandell@sociabble.com>
Co-authored-by: Bob Ippolito <bob@redivi.com>
2025-03-17 22:38:54 +00:00

25 lines
662 B
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 * as React from 'react';
type Props = $ReadOnly<{
anchorElem?: ?HTMLElement,
menuRef: React.RefObject<?HTMLElement>,
targetLineRef: React.RefObject<?HTMLElement>,
menuComponent: React.Node,
targetLineComponent: React.Node,
isOnMenu: (element: HTMLElement) => boolean,
onElementChanged?: (element: HTMLElement | null) => void
}>;
declare export function DraggableBlockPlugin_EXPERIMENTAL(
props: Props,
): React.MixedElement;