@@ -3,11 +3,6 @@ import * as ReactDOM from 'react-dom';
3
3
import SampleEntityPlugin from '../plugins/SampleEntityPlugin' ;
4
4
import { ApiPlaygroundPlugin } from '../sidePane/apiPlayground/ApiPlaygroundPlugin' ;
5
5
import { ContentModelPanePlugin } from '../sidePane/contentModel/ContentModelPanePlugin' ;
6
- import { createEmojiPlugin } from '../roosterjsReact/emoji' ;
7
- import { createImageEditMenuProvider } from '../roosterjsReact/contextMenu/menus/createImageEditMenuProvider' ;
8
- import { createListEditMenuProvider } from '../roosterjsReact/contextMenu/menus/createListEditMenuProvider' ;
9
- import { createPasteOptionPlugin } from '../roosterjsReact/pasteOptions' ;
10
- import { createRibbonPlugin , Ribbon , RibbonButton , RibbonPlugin } from '../roosterjsReact/ribbon' ;
11
6
import { darkModeButton } from '../demoButtons/darkModeButton' ;
12
7
import { Editor } from 'roosterjs-content-model-core' ;
13
8
import { EditorOptionsPlugin } from '../sidePane/editorOptions/EditorOptionsPlugin' ;
@@ -23,20 +18,31 @@ import { getTheme } from '../theme/themes';
23
18
import { OptionState , UrlPlaceholder } from '../sidePane/editorOptions/OptionState' ;
24
19
import { popoutButton } from '../demoButtons/popoutButton' ;
25
20
import { PresetPlugin } from '../sidePane/presets/PresetPlugin' ;
26
- import { redoButton } from '../roosterjsReact/ribbon/buttons/redoButton' ;
27
21
import { registerWindowForCss , unregisterWindowForCss } from '../../utils/cssMonitor' ;
28
- import { Rooster } from '../roosterjsReact/rooster' ;
29
22
import { SamplePickerPlugin } from '../plugins/SamplePickerPlugin' ;
30
23
import { SidePane } from '../sidePane/SidePane' ;
31
24
import { SidePanePlugin } from '../sidePane/SidePanePlugin' ;
32
25
import { SnapshotPlugin } from '../sidePane/snapshot/SnapshotPlugin' ;
33
26
import { ThemeProvider } from '@fluentui/react/lib/Theme' ;
34
27
import { TitleBar } from '../titleBar/TitleBar' ;
35
28
import { trustedHTMLHandler } from '../../utils/trustedHTMLHandler' ;
36
- import { undoButton } from '../roosterjsReact/ribbon/buttons/undoButton' ;
37
29
import { UpdateContentPlugin } from '../plugins/UpdateContentPlugin' ;
38
30
import { WindowProvider } from '@fluentui/react/lib/WindowProvider' ;
39
31
import { zoomButton } from '../demoButtons/zoomButton' ;
32
+ import type { RibbonButton , RibbonPlugin } from 'roosterjs-react' ;
33
+ import {
34
+ createContextMenuPlugin ,
35
+ createEmojiPlugin ,
36
+ createImageEditMenuProvider ,
37
+ createListEditMenuProvider ,
38
+ createPasteOptionPlugin ,
39
+ createRibbonPlugin ,
40
+ createTableEditMenuProvider ,
41
+ redoButton ,
42
+ Rooster ,
43
+ undoButton ,
44
+ Ribbon ,
45
+ } from 'roosterjs-react' ;
40
46
import {
41
47
Border ,
42
48
Colors ,
@@ -59,10 +65,6 @@ import {
59
65
TableEditPlugin ,
60
66
WatermarkPlugin ,
61
67
} from 'roosterjs-content-model-plugins' ;
62
- import {
63
- createContextMenuPlugin ,
64
- createTableEditMenuProvider ,
65
- } from '../roosterjsReact/contextMenu' ;
66
68
67
69
const styles = require ( './MainPane.scss' ) ;
68
70
0 commit comments