mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +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
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.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 o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));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="z7pY")}({YLtl:function(t,n){t.exports=window.lodash},l3Sj:function(t,n){t.exports=window.wp.i18n},z7pY:function(t,n,e){"use strict";e.r(n),e.d(n,"BACKSPACE",(function(){return i})),e.d(n,"TAB",(function(){return c})),e.d(n,"ENTER",(function(){return f})),e.d(n,"ESCAPE",(function(){return l})),e.d(n,"SPACE",(function(){return d})),e.d(n,"PAGEUP",(function(){return a})),e.d(n,"PAGEDOWN",(function(){return s})),e.d(n,"END",(function(){return p})),e.d(n,"HOME",(function(){return b})),e.d(n,"LEFT",(function(){return O})),e.d(n,"UP",(function(){return j})),e.d(n,"RIGHT",(function(){return h})),e.d(n,"DOWN",(function(){return y})),e.d(n,"DELETE",(function(){return m})),e.d(n,"F10",(function(){return S})),e.d(n,"ALT",(function(){return g})),e.d(n,"CTRL",(function(){return w})),e.d(n,"COMMAND",(function(){return C})),e.d(n,"SHIFT",(function(){return v})),e.d(n,"ZERO",(function(){return E})),e.d(n,"modifiers",(function(){return P})),e.d(n,"rawShortcut",(function(){return A})),e.d(n,"displayShortcutList",(function(){return L})),e.d(n,"displayShortcut",(function(){return _})),e.d(n,"shortcutAriaLabel",(function(){return T})),e.d(n,"isKeyboardEvent",(function(){return M}));var r=e("YLtl"),o=e("l3Sj");function u(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t){if("undefined"==typeof window)return!1;t=window}const{platform:n}=t.navigator;return-1!==n.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],n)}const i=8,c=9,f=13,l=27,d=32,a=33,s=34,p=35,b=36,O=37,j=38,h=39,y=40,m=46,S=121,g="alt",w="ctrl",C="meta",v="shift",E=48,P={primary:t=>t()?[C]:[w],primaryShift:t=>t()?[v,C]:[w,v],primaryAlt:t=>t()?[g,C]:[w,g],secondary:t=>t()?[v,g,C]:[w,v,g],access:t=>t()?[w,g]:[v,g],ctrl:()=>[w],alt:()=>[g],ctrlShift:()=>[w,v],shift:()=>[v],shiftAlt:()=>[v,g],undefined:()=>[]},A=Object(r.mapValues)(P,t=>function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return[...t(e),n.toLowerCase()].join("+")}),L=Object(r.mapValues)(P,t=>function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;const o=e(),i={[g]:o?"⌥":"Alt",[w]:o?"⌃":"Ctrl",[C]:"⌘",[v]:o?"⇧":"Shift"},c=t(e).reduce((t,n)=>{const e=Object(r.get)(i,n,n);return o?[...t,e]:[...t,e,"+"]},[]),f=Object(r.capitalize)(n);return[...c,f]}),_=Object(r.mapValues)(L,t=>function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return t(n,e).join("")}),T=Object(r.mapValues)(P,t=>function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;const i=e(),c={[v]:"Shift",[C]:i?"Command":"Control",[w]:"Control",[g]:i?"Option":"Alt",",":Object(o.__)("Comma"),".":Object(o.__)("Period"),"`":Object(o.__)("Backtick")};return[...t(e),n].map(t=>Object(r.capitalize)(Object(r.get)(c,t,t))).join(i?" ":" + ")});function x(t){return[g,w,C,v].filter(n=>t[n+"Key"])}const M=Object(r.mapValues)(P,t=>function(n,e){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;const i=t(o),c=x(n);if(Object(r.xor)(i,c).length)return!1;let f=n.key.toLowerCase();return e?(n.altKey&&1===e.length&&(f=String.fromCharCode(n.keyCode).toLowerCase()),"del"===e&&(e="delete"),f===e.toLowerCase()):Object(r.includes)(i,f)})}}); |