@@ -13,8 +13,8 @@ import { useComposition } from "./hooks/useComposition.ts";
13
13
import { useCopyAndPaste } from "./hooks/useCopyAndPaste.ts" ;
14
14
import { useMarkdownGrammer } from "./hooks/useMarkdownGrammer" ;
15
15
import { useTextOptionSelect } from "./hooks/useTextOptions.ts" ;
16
- import { DndContextProvider } from "./provider/DndContextProvider .tsx" ;
17
- import { WebsocketContextProvider } from "./provider/WebsocketContextProvider .tsx" ;
16
+ import { DndProvider } from "./provider/DndProvider .tsx" ;
17
+ import { WebSocketProvider } from "./provider/WebsocketProvider .tsx" ;
18
18
19
19
export interface EditorStateProps {
20
20
clock : number ;
@@ -193,21 +193,21 @@ export const Editor = memo(({ testKey, pageId, serializedEditorData }: EditorPro
193
193
return < div > Loading editor data...</ div > ;
194
194
}
195
195
return (
196
- < WebsocketContextProvider
197
- editorCRDT = { editorCRDT }
198
- pageId = { pageId }
199
- setEditorState = { setEditorState }
200
- isSameLocalChange = { isSameLocalChange }
201
- subscribeToRemoteOperations = { subscribeToRemoteOperations }
202
- >
203
- < div data-testid = { `editor- ${ testKey } ` } className = { editorContainer } ref = { editorRef } >
204
- < div
205
- style = { {
206
- height : virtualizer . getTotalSize ( ) ,
207
- position : "relative" ,
208
- } }
196
+ < div data-testid = { `editor- ${ testKey } ` } className = { editorContainer } ref = { editorRef } >
197
+ < div
198
+ style = { {
199
+ height : virtualizer . getTotalSize ( ) ,
200
+ position : "relative" ,
201
+ } }
202
+ >
203
+ < WebSocketProvider
204
+ editorCRDT = { editorCRDT }
205
+ pageId = { pageId }
206
+ setEditorState = { setEditorState }
207
+ isSameLocalChange = { isSameLocalChange }
208
+ subscribeToRemoteOperations = { subscribeToRemoteOperations }
209
209
>
210
- < DndContextProvider
210
+ < DndProvider
211
211
editorCRDT = { editorCRDT }
212
212
pageId = { pageId }
213
213
editorState = { editorState }
@@ -248,7 +248,7 @@ export const Editor = memo(({ testKey, pageId, serializedEditorData }: EditorPro
248
248
/>
249
249
) ;
250
250
} ) }
251
- </ DndContextProvider >
251
+ </ DndProvider >
252
252
{ editorState . linkedList . spread ( ) . length === 0 && (
253
253
< div
254
254
data-testid = "addNewBlockButton"
@@ -258,9 +258,9 @@ export const Editor = memo(({ testKey, pageId, serializedEditorData }: EditorPro
258
258
클릭해서 새로운 블록을 추가하세요
259
259
</ div >
260
260
) }
261
- </ div >
261
+ </ WebSocketProvider >
262
262
</ div >
263
- </ WebsocketContextProvider >
263
+ </ div >
264
264
) ;
265
265
} ) ;
266
266
0 commit comments