Chore: remove react-popper from AnnotationEditor and AnnotationMarker (#82090)

update AnnotationEditor and AnnotationMarker to use floating-ui/react instead of react-popper
This commit is contained in:
Ashley Harrison
2024-02-12 17:18:10 +00:00
committed by GitHub
parent 29be9b127a
commit fea23862b4
5 changed files with 120 additions and 129 deletions

View File

@@ -1,8 +1,9 @@
/**
* This API allows popovers to update Popper's position when e.g. popover content changes
* update is delivered to content by react-popper.
*/
export interface ToggletipContentProps {
/**
* @deprecated
* This prop is deprecated and no longer has any effect as popper position updates automatically.
* It will be removed in a future release.
*/
update?: () => void;
}

View File

@@ -1,10 +1,11 @@
import { Placement } from '@floating-ui/react';
/**
* This API allows popovers to update Popper's position when e.g. popover content changes
* updatePopperPosition is delivered to content by react-popper.
*/
export interface PopoverContentProps {
// Is this used anywhere in plugins? Can we remove it or rename it to just update?
/**
* @deprecated
* This prop is deprecated and no longer has any effect as popper position updates automatically.
* It will be removed in a future release.
*/
updatePopperPosition?: () => void;
}