[MM-56599] Upgrade to "@floating-ui/react" for advanced_text_editor/formatting_bar component (#25970)

Этот коммит содержится в:
M-ZubairAhmed
2024-01-23 12:18:22 +00:00
коммит произвёл GitHub
родитель 62064e3bf7
Коммит 797fe9b917
6 изменённых файлов: 68 добавлений и 77 удалений

Просмотреть файл

@@ -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';