hunk.code_window:   // built-in `onBeforeInput` is actually a leaky polyfill that doesn't expose
     // real `beforeinput` events sadly... (2019/11/04)
     // https://github.com/facebook/react/issues/11211
     useIsomorphicLayoutEffect(() => {
       if (ref.current) {
         // @ts-ignore The `beforeinput` event isn't recognized.
         ref.current.addEventListener('beforeinput', onDOMBeforeInput)
       }
  
hunk.labels: keep keep keep keep replace 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 { Editor } from 'slate'
  import { jsx } from '../../..'
  
  export const input = (
    <editor>
      <block>one</block>
      <block>two</block>
    </editor>
  )
  
  export const test = editor => {
    return Editor.next(editor, { at: [0] })
  }
  
  export const output = [<block>two</block>, [1]]
  