[MM-56599] Upgrade to "@floating-ui/react" for advanced_text_editor/formatting_bar component (#25970)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
62064e3bf7
Коммит
797fe9b917
@@ -1,18 +0,0 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import React from 'react';
|
||||
import MuiFocusTrap, {FocusTrapProps as MuiFocusTrapProps} from '@mui/base/FocusTrap';
|
||||
|
||||
export interface Props {
|
||||
active: MuiFocusTrapProps['open'];
|
||||
children: MuiFocusTrapProps['children'];
|
||||
}
|
||||
|
||||
export const FocusTrap = ({active, children}: Props) => {
|
||||
return (
|
||||
<MuiFocusTrap open={active}>
|
||||
{children}
|
||||
</MuiFocusTrap>
|
||||
);
|
||||
};
|
||||
@@ -4,7 +4,6 @@
|
||||
// type
|
||||
export type {Props as GenericModalProps} from './generic_modal/generic_modal';
|
||||
export type {CircleSkeletonLoaderProps, RectangleSkeletonLoaderProps} from './skeleton_loader';
|
||||
export type {Props as FocusTrapProps} from './focus_trap';
|
||||
export type {Props as PunchOutCoordsHeightAndWidth} from './common/hooks/useMeasurePunchouts';
|
||||
|
||||
// components
|
||||
@@ -14,7 +13,6 @@ export {CircleSkeletonLoader, RectangleSkeletonLoader} from './skeleton_loader';
|
||||
export {TourTip} from './tour_tip/tour_tip';
|
||||
export {TourTipBackdrop} from './tour_tip/tour_tip_backdrop';
|
||||
export {PulsatingDot} from './pulsating_dot';
|
||||
export {FocusTrap} from './focus_trap';
|
||||
|
||||
// hooks
|
||||
export {useMeasurePunchouts} from './common/hooks/useMeasurePunchouts';
|
||||
|
||||
Ссылка в новой задаче
Block a user