PluginProbe
Gutenberg / 16.6.0
Gutenberg v16.6.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / block-library / blocks / query / view.min.js

view.min.js in Gutenberg 16.6.0, at build/block-library/blocks/query/view.min.js

2 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const e=window.wp.interactivity,t=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin;(0,e.store)({selectors:{core:{query:{startAnimation:({context:e})=>"start"===e.core.query.animation,finishAnimation:({context:e})=>"finish"===e.core.query.animation}}},actions:{core:{query:{navigate:async({event:a,ref:r,context:i,state:o})=>{if(t(r)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(a)){a.preventDefault();const t=r.closest("[data-wp-navigation-id]").dataset.wpNavigationId,n=setTimeout((()=>{i.core.query.message=o.core.query.loadingText,i.core.query.animation="start"}),300);await(0,e.navigate)(r.href),clearTimeout(n),i.core.query.message=o.core.query.loadedText+(i.core.query.message===o.core.query.loadedText?" ":""),i.core.query.animation="finish",document.querySelector(`[data-wp-navigation-id=${t}] a[href]`)?.focus()}},prefetch:async({ref:a})=>{t(a)&&await(0,e.prefetch)(a.href)}}}}})})();
2 //# sourceMappingURL=view.min.js.map