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: import { Path } from 'slate'
  
  const path = [3, 3, 3]
  
  const op = {
    type: 'move_node',
    path: [3, 0, 0],
    newPath: [3, 2],
  }
  
  export const test = () => {
    return Path.transform(path, op)
  }
  
  export const output = [3, 4, 3]
  