WordPress/wp-includes/js/dist/customize-widgets.min.js

7 lines
34 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Block Editor: Package updates for 5.8 beta 1. This includes the following fixes: Widgets Editor: - Load widgets.php https://github.com/WordPress/gutenberg/pull/32299 - Fix Legacy Widget Preview https://github.com/WordPress/gutenberg/pull/32300 - Fix error when saving empty Legacy Widget block https://github.com/WordPress/gutenberg/pull/32359 Widget blocks in the customizer: - Fix deselection blocks when the inspector is open https://github.com/WordPress/gutenberg/pull/32361 - Display wide widgets as popovers https://github.com/WordPress/gutenberg/pull/31736 Global Styles: - Align classNames generation between client and server https://github.com/WordPress/gutenberg/pull/32352 - Group typography block supports https://github.com/WordPress/gutenberg/pull/32252 https://github.com/WordPress/gutenberg/pull/32444 https://github.com/WordPress/gutenberg/pull/32459 - Make theme.json syntax errors more visible to the users https://github.com/WordPress/gutenberg/pull/32404 Template Editor: - Update the appearance of the template details https://github.com/WordPress/gutenberg/pull/32042 - Fix layout definition https://github.com/WordPress/gutenberg/pull/32425 - Fix grouping post content block https://github.com/WordPress/gutenberg/pull/32453 Miscellaneous: - Prevent saving when the post is locked https://github.com/WordPress/gutenberg/pull/32341 - Fix allowed block patterns selector https://github.com/WordPress/gutenberg/pull/32376 - Fix wrong results in the Post Author picker https://github.com/WordPress/gutenberg/pull/32344 - Fix notices position in top toolbar mode https://github.com/WordPress/gutenberg/pull/32238 - Allow non-latin characters in post slugs https://github.com/WordPress/gutenberg/pull/32232 - Fix Random collapse of the color settings panel https://github.com/WordPress/gutenberg/pull/32388 - Fix theme logo theme mode not being removed on theme removal https://github.com/WordPress/gutenberg/pull/32370 - Fix block alignment styles in the editor https://github.com/WordPress/gutenberg/pull/32454 - Fix some block toolbar overlaps https://github.com/WordPress/gutenberg/pull/32424 - Fix content loss when switching list types https://github.com/WordPress/gutenberg/pull/32432 Performance: - Improve the performance of buttons block https://github.com/WordPress/gutenberg/pull/32356 - Improve the performance of the container blocks https://github.com/WordPress/gutenberg/pull/32380 Props noisysocks, nosolosw, jorgefilipecosta. See #52991. Built from https://develop.svn.wordpress.org/trunk@51089 git-svn-id: http://core.svn.wordpress.org/trunk@50698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-08 10:09:53 +02:00
this.wp=this.wp||{},this.wp.customizeWidgets=function(e){var t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(s,n,function(t){return e[t]}.bind(null,n));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="9pbN")}({"1CF3":function(e,t){e.exports=window.wp.dom},"1ZqX":function(e,t){e.exports=window.wp.data},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},"9pbN":function(e,t,i){"use strict";i.r(t),i.d(t,"initialize",(function(){return Ce}));var s={};i.r(s),i.d(s,"__unstableIsFeatureActive",(function(){return T}));var n={};i.r(n),i.d(n,"__unstableToggleFeature",(function(){return M}));var c=i("GRId"),o=i("QyPg"),r=i("GLVC"),a=i("tI+e"),l=i("YLtl"),d=i("jZUy"),u=i("1ZqX"),b=i("axFQ"),m=i("6aBm"),h=i("wx14"),p=i("l3Sj");var g=function({inspector:e,closeMenu:t,...i}){const s=Object(u.useSelect)(e=>e(b.store).getSelectedBlockClientId(),[]),n=Object(c.useMemo)(()=>document.getElementById("block-"+s),[s]);return Object(c.createElement)(a.MenuItem,Object(h.a)({onClick:()=>{e.open({returnFocusWhenClose:n}),t()}},i),Object(p.__)("Show more settings"))},O=i("TSYQ"),w=i.n(O),j=i("RxS6"),f=i("Ntru"),_=i("K2cm"),y=i("Q4Sy"),v=i("K9lf"),E=i("bWcr");var k=function e({setIsOpened:t}){const i=Object(v.useInstanceId)(e,"customize-widget-layout__inserter-panel-title");return Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":i},Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},Object(c.createElement)("h2",{id:i,className:"customize-widgets-layout__inserter-panel-header-title"},Object(p.__)("Add a block")),Object(c.createElement)(a.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:E.a,onClick:()=>t(!1),"aria-label":Object(p.__)("Close inserter")})),Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},Object(c.createElement)(b.__experimentalLibrary,{showInserterHelpPanel:!0,onSelect:()=>t(!1)})))},C=i("VKE3"),x=i("K+tz"),S=i("hF7m"),z=i("RMJe"),W=i("gdqT");const I=Object(l.flow)([u.combineReducers,(B={features:{fixedToolbar:!1,welcomeGuide:!0}},e=>(t=B,i)=>e(t,i))])({features:(e,t)=>"TOGGLE_FEATURE"===t.type?{...e,[t.feature]:!e[t.feature]}:e});var B;function T(e,t){return Object(l.get)(e.preferences.features,[t],!1)}function M(e){return{type:"TOGGLE_FEATURE",feature:e}}const F={reducer:Object(u.combineReducers)({preferences:I}),selectors:s,actions:n,persist:["preferences"]},N=Object(u.createReduxStore)("core/customize-widgets",F);function G({label:e,info:t,messageActivated:i,messageDeactivated:s,shortcut:n,feature:o}){const r=Object(u.useSelect)(e=>e(N).__unstableIsFeatureActive(o),[o]),{__unstableToggleFeature:l}=Object(u.useDispatch)(N);return Object(c.createElement)(a.MenuItem,{icon:r&&z.a,isSelected:r,onClick:()=>{l(o),r?Object(W.speak)(s||Object(p.__)("Feature deactivated")):Object(W.speak)(i||Object(p.__)("Feature activated"))},role:"menuitemcheckbox",info:t,shortcut:n},e)}Object(u.registerStore)("core/customize-widgets",F);const A=[{keyCombination:{modifier:"primary",character:"b"},description:Object(p.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(p.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(p.__)("Con
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
Block Editor: Package updates for 5.8 beta 1. This includes the following fixes: Widgets Editor: - Load widgets.php https://github.com/WordPress/gutenberg/pull/32299 - Fix Legacy Widget Preview https://github.com/WordPress/gutenberg/pull/32300 - Fix error when saving empty Legacy Widget block https://github.com/WordPress/gutenberg/pull/32359 Widget blocks in the customizer: - Fix deselection blocks when the inspector is open https://github.com/WordPress/gutenberg/pull/32361 - Display wide widgets as popovers https://github.com/WordPress/gutenberg/pull/31736 Global Styles: - Align classNames generation between client and server https://github.com/WordPress/gutenberg/pull/32352 - Group typography block supports https://github.com/WordPress/gutenberg/pull/32252 https://github.com/WordPress/gutenberg/pull/32444 https://github.com/WordPress/gutenberg/pull/32459 - Make theme.json syntax errors more visible to the users https://github.com/WordPress/gutenberg/pull/32404 Template Editor: - Update the appearance of the template details https://github.com/WordPress/gutenberg/pull/32042 - Fix layout definition https://github.com/WordPress/gutenberg/pull/32425 - Fix grouping post content block https://github.com/WordPress/gutenberg/pull/32453 Miscellaneous: - Prevent saving when the post is locked https://github.com/WordPress/gutenberg/pull/32341 - Fix allowed block patterns selector https://github.com/WordPress/gutenberg/pull/32376 - Fix wrong results in the Post Author picker https://github.com/WordPress/gutenberg/pull/32344 - Fix notices position in top toolbar mode https://github.com/WordPress/gutenberg/pull/32238 - Allow non-latin characters in post slugs https://github.com/WordPress/gutenberg/pull/32232 - Fix Random collapse of the color settings panel https://github.com/WordPress/gutenberg/pull/32388 - Fix theme logo theme mode not being removed on theme removal https://github.com/WordPress/gutenberg/pull/32370 - Fix block alignment styles in the editor https://github.com/WordPress/gutenberg/pull/32454 - Fix some block toolbar overlaps https://github.com/WordPress/gutenberg/pull/32424 - Fix content loss when switching list types https://github.com/WordPress/gutenberg/pull/32432 Performance: - Improve the performance of buttons block https://github.com/WordPress/gutenberg/pull/32356 - Improve the performance of the container blocks https://github.com/WordPress/gutenberg/pull/32380 Props noisysocks, nosolosw, jorgefilipecosta. See #52991. Built from https://develop.svn.wordpress.org/trunk@51089 git-svn-id: http://core.svn.wordpress.org/trunk@50698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-08 10:09:53 +02:00
*/!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var c=typeof s;if("string"===c||"number"===c)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===c)if(s.toString===Object.prototype.toString)for(var r in s)i.call(s,r)&&s[r]&&e.push(r);else e.push(s.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},VKE3:function(e,t,i){"use strict";var s=i("GRId"),n=i("Tqx9");const c=Object(s.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,i){"use strict";var s=i("GRId"),n=i("Tqx9");const c=Object(s.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=c},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},jZUy:function(e,t){e.exports=window.wp.coreData},l3Sj:function(e,t){e.exports=window.wp.i18n},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},"tI+e":function(e,t){e.exports=window.wp.components},wx14:function(e,t,i){"use strict";function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}i.d(t,"a",(function(){return s}))}});