hunk.code_window:       if (!instance.ref) {
           return null
         }
         if (element === instance.ref.current) {
           return p
         }
         // If there's no `tmp` then we're at a leaf node without success.
         if (!instance.tmp) {
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:       if (nodeElement === instance.ref.current) {
  
hunk.file_path: packages/slate-react/src/plugins/react/queries.js
hunk.type: replace
file: /** @jsx h */
  
  import h from '../../../helpers/h'
  
  export const input = (
    <value>
      <document>
        <paragraph key="a">
          <text key="b">one</text>
        </paragraph>
        <paragraph key="c">
          <text key="d">
            tw<anchor />o
          </text>
        </paragraph>
        <image key="e" src="https://example.com/image2.png">
          <text key="f" />
        </image>
        <paragraph key="g">
          <inline type="link" key="h">
            <text key="i">three</text>
          </inline>
          <text key="j">
            <focus />four
          </text>
        </paragraph>
      </document>
    </value>
  )
  
  export default function({ document, selection }) {
    return document.isInRange('d', selection)
  }
  
  export const output = true
  