mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 10:50:56 +01:00
c2d0fb2040
Update packages to include these bug fixes from Gutenberg: - Navigation: Fix click-button size, submenu directions, scrollbars. - Group - Fix overzealous regex when restoring inner containers - Babel Preset: Update Babel packages to 7.16 version - theme.json: adds a setting property that enables some other ones - Polish metabox container. - Fix submenu justification and spacer orientation. - Fix Gutenberg 11.8.2 in WordPress trunk - Strip meta tags from pasted links in Chromium - Hide visilibility and status for navigation posts - Navigation: Refactor and simplify setup state. - Nav block menu switcher - decode HTML entities and utilise accessible markup pattern - Rename fse_navigation_area to wp_navigation_area - theme.json: adds a setting property that enables some other ones - Revert "theme.json: adds a setting property that enables some other ones" - Skip flaky image block test - WordPress/gutenberg@3c935c4 - React to any errors coming up in gutenberg_migrate_menu_to_navigation_post - Return wp error from wp_insert_post - Fix not transforming logical assignments for packages See #54337. Built from https://develop.svn.wordpress.org/trunk@52161 git-svn-id: http://core.svn.wordpress.org/trunk@51753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.url=function(t){var n={};function e(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)e.d(r,u,function(n){return t[n]}.bind(null,u));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="lbya")}({YLtl:function(t,n){t.exports=window.lodash},lbya:function(t,n,e){"use strict";function r(t){try{return new URL(t),!0}catch{return!1}}e.r(n),e.d(n,"isURL",(function(){return r})),e.d(n,"isEmail",(function(){return o})),e.d(n,"getProtocol",(function(){return i})),e.d(n,"isValidProtocol",(function(){return c})),e.d(n,"getAuthority",(function(){return s})),e.d(n,"isValidAuthority",(function(){return f})),e.d(n,"getPath",(function(){return l})),e.d(n,"isValidPath",(function(){return a})),e.d(n,"getQueryString",(function(){return d})),e.d(n,"buildQueryString",(function(){return p})),e.d(n,"isValidQueryString",(function(){return g})),e.d(n,"getPathAndQueryString",(function(){return h})),e.d(n,"getFragment",(function(){return y})),e.d(n,"isValidFragment",(function(){return m})),e.d(n,"addQueryArgs",(function(){return j})),e.d(n,"getQueryArg",(function(){return v})),e.d(n,"getQueryArgs",(function(){return b})),e.d(n,"hasQueryArg",(function(){return O})),e.d(n,"removeQueryArgs",(function(){return w})),e.d(n,"prependHTTP",(function(){return A})),e.d(n,"safeDecodeURI",(function(){return S})),e.d(n,"safeDecodeURIComponent",(function(){return P})),e.d(n,"filterURLForDisplay",(function(){return R})),e.d(n,"cleanForSlug",(function(){return $})),e.d(n,"getFilename",(function(){return Q})),e.d(n,"normalizePath",(function(){return L}));const u=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function o(t){return u.test(t)}function i(t){const n=/^([^\s:]+:)/.exec(t);if(n)return n[1]}function c(t){return!!t&&/^[a-z\-.\+]+[0-9]*:$/i.test(t)}function s(t){const n=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(t);if(n)return n[1]}function f(t){return!!t&&/^[^\s#?]+$/.test(t)}function l(t){const n=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(t);if(n)return n[1]}function a(t){return!!t&&/^[^\s#?]+$/.test(t)}function d(t){let n;try{n=new URL(t,"http://example.com").search.substring(1)}catch(t){}if(n)return n}function p(t){let n="";const e=Object.entries(t);let r;for(;r=e.shift();){let[t,u]=r;if(Array.isArray(u)||u&&u.constructor===Object){const n=Object.entries(u).reverse();for(const[r,u]of n)e.unshift([`${t}[${r}]`,u])}else void 0!==u&&(null===u&&(u=""),n+="&"+[t,u].map(encodeURIComponent).join("="))}return n.substr(1)}function g(t){return!!t&&/^[^\s#?\/]+$/.test(t)}function h(t){const n=l(t),e=d(t);let r="/";return n&&(r+=n),e&&(r+="?"+e),r}function y(t){const n=/^\S+?(#[^\s\?]*)/.exec(t);if(n)return n[1]}function m(t){return!!t&&/^#[^\s#?\/]*$/.test(t)}function b(t){return(d(t)||"").replace(/\+/g,"%20").split("&").reduce((t,n)=>{const[e,r=""]=n.split("=").filter(Boolean).map(decodeURIComponent);if(e){!function(t,n,e){const r=n.length,u=r-1;for(let o=0;o<r;o++){let r=n[o];!r&&Array.isArray(t)&&(r=t.length.toString());const i=!isNaN(Number(n[o+1]));t[r]=o===u?e:t[r]||(i?[]:{}),Array.isArray(t[r])&&!i&&(t[r]={...t[r]}),t=t[r]}}(t,e.replace(/\]/g,"").split("["),r)}return t},{})}function j(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(!n||!Object.keys(n).length)return t;let e=t;const r=t.indexOf("?");return-1!==r&&(n=Object.assign(b(t),n),e=e.substr(0,r)),e+"?"+p(n)}function v(t,n){return b(t)[n]}function O(t,n){return void 0!==v(t,n)}function w(t){const n=t.indexOf("?");if(-1===n)return t;const e=b(t),r=t.substr(0,n);for(var u=arguments.length,o=new Array(u>1?u-1:0),i=1;i<u;i++)o[i-1]=arguments[i];o.forEach(t=>delete e[t]);const c=p(e);return c?r+"?"+c:r}const x=/^(?:[a-z]+:|#|\?|\.|\/)/i;function A(t){return t?(t=t.trim(),x.test(t)||o(t)?t:"http://"+t):t}function S(t){try{return decodeURI(t)}catch(n){return t}}function P(t){try{return decodeURIComponent(t)}catch(n){return t}}function R(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.replace(/^(?:https?:)\/\/(?:www\.)?/,"");e.match(/^[^\/]+\/$/)&&(e=e.replace("/",""));const r=/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/;if(!n||e.length<=n||!e.match(r))return e;e=e.split("?")[0];const u=e.split("/"),o=u[u.length-1];if(o.length<=n)return"…"+e.slice(-n);const i=o.lastIndexOf("."),[c,s]=[o.slice(0,i),o.slice(i+1)],f=c.slice(-3)+"."+s;return o.slice(0,n-f.length-1)+"…"+f}var U=e("YLtl");function $(t){return t?Object(U.trim)(Object(U.deburr)(t).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function Q(t){let n;try{n=new URL(t,"http://example.com").pathname.split("/").pop()}catch(t){}if(n)return n}function L(t){const n=t.split("?"),e=n[1],r=n[0];return e?r+"?"+e.split("&").map(t=>t.split("=")).sort((t,n)=>t[0].localeCompare(n[0])).map(t=>t.join("=")).join("&"):r}}}); |