Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
|
|
|
this.wp=this.wp||{},this.wp.notices=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=280)}({122:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},175:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},176:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_STATUS=t.DEFAULT_CONTEXT=void 0;t.DEFAULT_CONTEXT="global";t.DEFAULT_STATUS="info"},2:function(e,t){!function(){e.exports=this.lodash}()},280:function(e,t,r){"use strict";r(281)},281:function(e,t,r){"use strict";var n=r(282),o=r(122);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(5),u=o(r(283)),c=n(r(290)),a=n(r(291)),f=o(r(292)),s=(0,i.registerStore)("core/notices",{reducer:u.default,actions:c,selectors:a,controls:f.default});t.default=s},282:function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},283:function(e,t,r){"use strict";var n=r(122);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(284)),i=r(2),u=(0,n(r(288)).default)("context")(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return(0,o.default)((0,i.reject)(e,{id:t.notice.id})).concat([t.notice]);case"REMOVE_NOTICE":return(0,i.reject)(e,{id:t.id})}return e});t.default=u},284:function(e,t,r){var n=r(285),o=r(286),i=r(287);e.exports=function(e){return n(e)||o(e)||i()}},285:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},286:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},287:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},288:function(e,t,r){"use strict";var n=r(122);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.onSubKey=void 0;var o=n(r(175)),i=n(r(289)),u=function(e){return function(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,u=n[e];if(void 0===u)return r;var c=t(r[u],n);return c===r[u]?r:(0,i.default)({},r,(0,o.default)({},u,c))}}};t.onSubKey=u;var c=u;t.default=c},289:function(e,t,r){var n=r(175);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}},290:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNotice=u,t.createSuccessNotice=function(e,t){return u("success",e,t)},t.createInfoNotice=function(e,t){return u("info",e,t)},t.createErrorNotice=functio
|