@@ -174,7 +174,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
174174 const pasteRef = useRef < boolean > ( false ) ;
175175 const divRef = useRef < HTMLDivElement | null > ( null ) ;
176176 const currentlyFocusedField = useRef < HTMLDivElement | null > ( null ) ;
177- const contentSelection = useRef < ParseUtils . Selection | null > ( null ) ;
177+ const contentSelection = useRef < CursorUtils . Selection | null > ( null ) ;
178178 const className = `react-native-live-markdown-input-${ multiline ? 'multiline' : 'singleline' } ` ;
179179 const history = useRef < InputHistory > ( ) ;
180180 const dimensions = React . useRef < Dimensions | null > ( null ) ;
@@ -298,15 +298,15 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
298298 [ onSelectionChange , setEventProps ] ,
299299 ) ;
300300
301- const updateRefSelectionVariables = useCallback ( ( newSelection : ParseUtils . Selection ) => {
301+ const updateRefSelectionVariables = useCallback ( ( newSelection : CursorUtils . Selection ) => {
302302 const { start, end} = newSelection ;
303303 const markdownHTMLInput = divRef . current as HTMLInputElement ;
304304 markdownHTMLInput . selectionStart = start ;
305305 markdownHTMLInput . selectionEnd = end ;
306306 } , [ ] ) ;
307307
308308 const updateSelection = useCallback (
309- ( e : SyntheticEvent < HTMLDivElement > | null = null , predefinedSelection : ParseUtils . Selection | null = null ) => {
309+ ( e : SyntheticEvent < HTMLDivElement > | null = null , predefinedSelection : CursorUtils . Selection | null = null ) => {
310310 if ( ! divRef . current ) {
311311 return ;
312312 }
@@ -636,7 +636,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
636636 return ;
637637 }
638638
639- const newSelection : ParseUtils . Selection = { start : selection . start , end : selection . end ?? selection . start } ;
639+ const newSelection : CursorUtils . Selection = { start : selection . start , end : selection . end ?? selection . start } ;
640640 contentSelection . current = newSelection ;
641641 updateRefSelectionVariables ( newSelection ) ;
642642 CursorUtils . setCursorPosition ( divRef . current , newSelection . start , newSelection . end ) ;
0 commit comments