CoreFiles by mySites.guru
view.min.js1 lines, 929 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
19ebbb04f97a6a979cf5ef3062012a1e
sha1
58f9bff672bce02b8e5d907d5725b818d58d73c3
sha256
0887a114aee0754997e81959b762c9fb5f1a6bd43c84c2f7767e4674e62e0db4
import{store as a,getContext as c,getElement as r,withSyncEvent as l}from"@wordpress/interactivity";var i=t=>t&&t instanceof window.HTMLAnchorElement&&t.href&&(!t.target||t.target==="_self")&&t.origin===window.location.origin,f=t=>t.button===0&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.defaultPrevented;a("core/query",{actions:{navigate:l(function*(t){let e=c(),{ref:o}=r(),n=o.closest(".wp-block-query[data-wp-router-region]");if(i(o)&&f(t)){t.preventDefault();let{actions:s}=yield import("@wordpress/interactivity-router");yield s.navigate(o.href),e.url=o.href,n.querySelector(".wp-block-post-template a[href]")?.focus()}}),*prefetch(){let{ref:t}=r();if(i(t)){let{actions:e}=yield import("@wordpress/interactivity-router");yield e.prefetch(t.href)}}},callbacks:{*prefetch(){let{url:t}=c(),{ref:e}=r();if(t&&i(e)){let{actions:o}=yield import("@wordpress/interactivity-router");yield o.prefetch(e.href)}}}},{lock:!0});

The same content is in 41 releases, WordPress 7.0-beta4 to 7.2-RC2. See them all, or every version of this file.