mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-17 10:04:49 +02:00
The following package versions were changed: @wordpress/annotations: 1.12.0 -> 1.12.1 @wordpress/block-directory: 1.5.2 -> 1.5.3 @wordpress/block-editor: 3.7.2 -> 3.7.3 @wordpress/block-library: 2.14.2 -> 2.14.3 @wordpress/blocks: 6.12.0 -> 6.12.1 @wordpress/components: 9.2.2 -> 9.2.3 @wordpress/core-data: 2.12.0 -> 2.12.1 @wordpress/data: 4.14.0 -> 4.14.1 @wordpress/data-controls: 1.8.0 -> 1.8.1 @wordpress/edit-post: 3.13.2 -> 3.13.3 @wordpress/editor: 9.12.2 -> 9.12.3 @wordpress/format-library: 1.14.2 -> 1.14.3 @wordpress/keyboard-shortcuts: 1.1.0 -> 1.1.1 @wordpress/list-reusable-blocks: 1.13.2 -> 1.13.3 @wordpress/notices: 2.0.0 -> 2.0.1 @wordpress/nux: 3.12.2 -> 3.12.3 @wordpress/priority-queue: 1.5.0 -> 1.5.1 @wordpress/rich-text: 3.12.0 -> 3.12.1 @wordpress/server-side-render: 1.8.2 -> 1.8.3 @wordpress/viewport: 2.13.0 -> 2.13.1 Props aduth. Fixes: #49567. Built from https://develop.svn.wordpress.org/trunk@47408 git-svn-id: http://core.svn.wordpress.org/trunk@47195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.notices=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=436)}({18:function(t,e,n){"use strict";var r=n(32);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||Object(r.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"a",(function(){return o}))},2:function(t,e){!function(){t.exports=this.lodash}()},32:function(t,e,n){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},4:function(t,e){!function(){t.exports=this.wp.data}()},436:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"createNotice",(function(){return b})),n.d(r,"createSuccessNotice",(function(){return v})),n.d(r,"createInfoNotice",(function(){return O})),n.d(r,"createErrorNotice",(function(){return y})),n.d(r,"createWarningNotice",(function(){return g})),n.d(r,"removeNotice",(function(){return j}));var o={};n.r(o),n.d(o,"getNotices",(function(){return m}));var i=n(4),c=n(18),u=n(2),a=n(5);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=function(t){return function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=r[t];if(void 0===o)return n;var i=e(n[o],r);return i===n[o]?n:s({},n,Object(a.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(u.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(u.reject)(t,{id:e.id})}return t})),d="global",p="info";function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.speak,o=void 0===r||r,i=n.isDismissible,c=void 0===i||i,a=n.context,f=void 0===a?d:a,s=n.id,l=void 0===s?Object(u.uniqueId)(f):s,b=n.actions,v=void 0===b?[]:b,O=n.type,y=void 0===O?"default":O,g=n.__unstableHTML;return{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e=String(e),spokenMessage:o?e:null,__unstableHTML:g,isDismissible:c,actions:v,type:y}}}function v(t,e){return b("success",t,e)}function O(t,e){return b("info",t,e)}function y(t,e){return b("error",t,e)}function g(t,e){return b("warning",t,e)}function j(t){return{type:"REMOVE_NOTICE",id:t,context:arguments.length>1&&void 0!==arguments[1]?arguments[1]:d}}var h=[];function m(t){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:d]||h}Object(i.registerStore)("core/notices",{reducer:l,actions:r,selectors:o})},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); |