CoreFiles by mySites.guru
view.min.js1 lines, 928 bytes, from wordpress-7.0-beta3.zip
Raw History Compare with 7.0-beta2
md5
b8bb42212e96e1ef3ef63960e53e047a
sha1
d9957669d2050a5847627468f895b681f47cdb91
sha256
803460afb84175109e71b133280b009e332cb04f4a66d0941cfb866a9d2cf0dc
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 3 releases, WordPress 7.0-beta1 to 7.0-beta3. See them all, or every version of this file.