hunk.code_window:       // @ts-ignore The `beforeinput` event isn't recognized.
         ref.current.addEventListener('beforeinput', onDOMBeforeInput)
       }
       return () => {
         if (ref.current) {
           // @ts-ignore The `beforeinput` event isn't recognized.
           ref.current.removeEventListener('beforeinput', onDOMBeforeInput)
         }
       }
     }, [onDOMBeforeInput])
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:       if (ref.current && HAS_BEFORE_INPUT_SUPPORT) {
  
hunk.file_path: packages/slate-react/src/components/editable.tsx
hunk.type: replace
file: /** @jsx jsx */
  
  import { Transforms } from 'slate'
  import { jsx } from '../../..'
  
  export const run = editor => {
    Transforms.insertNodes(
      editor,
      <inline void>
        <text />
      </inline>
    )
  }
  
  export const input = (
    <editor>
      <block>
        word
        <cursor />
      </block>
    </editor>
  )
  
  export const output = (
    <editor>
      <block>
        word
        <inline void>
          <cursor />
        </inline>
        <text />
      </block>
    </editor>
  )
  