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 16:37:00 +01:00
this . wp = this . wp || { } , this . wp . formatLibrary = function ( t ) { var e = { } ; function n ( r ) { if ( e [ r ] ) return e [ r ] . exports ; var i = e [ r ] = { i : r , l : ! 1 , exports : { } } ; return t [ r ] . call ( i . exports , i , i . exports , n ) , i . l = ! 0 , i . 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 i in t ) n . d ( r , i , function ( e ) { return t [ e ] } . bind ( null , i ) ) ; 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 = 313 ) } ( { 0 : function ( t , e ) { ! function ( ) { t . exports = this . wp . element } ( ) } , 1 : function ( t , e ) { ! function ( ) { t . exports = this . wp . i18n } ( ) } , 10 : function ( t , e , n ) { "use strict" ; function r ( t , e ) { if ( ! ( t instanceof e ) ) throw new TypeError ( "Cannot call a class as a function" ) } n . d ( e , "a" , function ( ) { return r } ) } , 12 : function ( t , e , n ) { "use strict" ; n . d ( e , "a" , function ( ) { return o } ) ; var r = n ( 28 ) , i = n ( 3 ) ; function o ( t , e ) { return ! e || "object" !== Object ( r . a ) ( e ) && "function" != typeof e ? Object ( i . a ) ( t ) : e } } , 13 : function ( t , e , n ) { "use strict" ; function r ( t ) { return ( r = Object . setPrototypeOf ? Object . getPrototypeOf : function ( t ) { return t . _ _proto _ _ || Object . getPrototypeOf ( t ) } ) ( t ) } n . d ( e , "a" , function ( ) { return r } ) } , 14 : function ( t , e , n ) { "use strict" ; function r ( t , e ) { return ( r = Object . setPrototypeOf || function ( t , e ) { return t . _ _proto _ _ = e , t } ) ( t , e ) } function i ( t , e ) { if ( "function" != typeof e && null !== e ) throw new TypeError ( "Super expression must either be null or a function" ) ; t . prototype = Object . create ( e && e . prototype , { constructor : { value : t , writable : ! 0 , configurable : ! 0 } } ) , e && r ( t , e ) } n . d ( e , "a" , function ( ) { return i } ) } , 16 : function ( t , e , n ) { var r ;
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 16:37:00 +01:00
! function ( ) { "use strict" ; var n = { } . hasOwnProperty ; function i ( ) { for ( var t = [ ] , e = 0 ; e < arguments . length ; e ++ ) { var r = arguments [ e ] ; if ( r ) { var o = typeof r ; if ( "string" === o || "number" === o ) t . push ( r ) ; else if ( Array . isArray ( r ) && r . length ) { var a = i . apply ( null , r ) ; a && t . push ( a ) } else if ( "object" === o ) for ( var c in r ) n . call ( r , c ) && r [ c ] && t . push ( c ) } } return t . join ( " " ) } t . exports ? ( i . default = i , t . exports = i ) : void 0 === ( r = function ( ) { return i } . apply ( e , [ ] ) ) || ( t . exports = r ) } ( ) } , 17 : function ( t , e ) { ! function ( ) { t . exports = this . wp . keycodes } ( ) } , 2 : function ( t , e ) { ! function ( ) { t . exports = this . lodash } ( ) } , 20 : function ( t , e ) { ! function ( ) { t . exports = this . wp . richText } ( ) } , 21 : function ( t , e , n ) { "use strict" ; function r ( t , e ) { if ( null == t ) return { } ; var n , r , i = function ( t , e ) { if ( null == t ) return { } ; var n , r , i = { } , o = Object . keys ( t ) ; for ( r = 0 ; r < o . length ; r ++ ) n = o [ r ] , e . indexOf ( n ) >= 0 || ( i [ n ] = t [ n ] ) ; return i } ( t , e ) ; if ( Object . getOwnPropertySymbols ) { var o = Object . getOwnPropertySymbols ( t ) ; for ( r = 0 ; r < o . length ; r ++ ) n = o [ r ] , e . indexOf ( n ) >= 0 || Object . prototype . propertyIsEnumerable . call ( t , n ) && ( i [ n ] = t [ n ] ) } return i } n . d ( e , "a" , function ( ) { return r } ) } , 22 : function ( t , e ) { ! function ( ) { t . exports = this . wp . dom } ( ) } , 24 : function ( t , e ) { ! function ( ) { t . exports = this . wp . url } ( ) } , 28 : function ( t , e , n ) { "use strict" ; function r ( t ) { return ( r = "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( t ) { return typeof t } : function ( t ) { return t && "function" == typeof Symbol && t . constructor === Symbol && t !== Symbol . prototype ? "symbol" : typeof t } ) ( t ) } function i ( t ) { return ( i = "function" == typeof Symbol && "symbol" === r ( Symbol . iterator ) ? function ( t ) { return r ( t ) } : function ( t ) { return t && "function" == typeof Symbol && t . constructor === Symbol && t !== Symbol . prototype ? "symbol" : r ( t ) } ) ( t ) } n . d ( e , "a" , function ( ) { return i } ) } , 3 : function ( t , e , n ) { "use strict" ; function r ( t ) { if ( void 0 === t ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; return t } n . d ( e , "a" , function ( ) { return r } ) } , 313 : function ( t , e , n ) { "use strict" ; n . r ( e ) ; var r = n ( 21 ) , i = n ( 0 ) , o = n ( 1 ) , a = n ( 20 ) , c = n ( 6 ) , u = { name : "core/bold" , title : Object ( o . _ _ ) ( "Bold" ) , tagName : "strong" , className : null , edit : function ( t ) { var e = t . isActive , n = t . value , r = t . onChange , u = function ( ) { return r ( Object ( a . toggleFormat ) ( n , { type : "core/bold" } ) ) } ; return Object ( i . createElement ) ( i . Fragment , null , Object ( i . createElement ) ( c . RichTextShortcut , { type : "primary" , character : "b" , onUse : u } ) , Object ( i . createElement ) ( c . RichTextToolbarButton , { name : "bold" , icon : "editor-bold" , title : Object ( o . _ _ ) ( "Bold" ) , onClick : u , isActive : e , shortcutType : "primary" , shortcutCharacter : "b" } ) ) } } , s = { name : "core/code" , title : Object ( o . _ _ ) ( "Code" ) , tagName : "code" , className : null , edit : function ( t ) { var e = t . value , n = t . onChange ; return Object ( i . createElement ) ( c . RichTextShortcut , { type : "access" , character : "x" , onUse : function ( ) { return n ( Object ( a . toggleFormat ) ( e , { type : "core/code" } ) ) } } ) } } , l = n ( 10 ) , b = n ( 9 ) , p = n ( 12 ) , f = n ( 13 ) , h = n ( 14 ) , d = n ( 3 ) , m = n ( 4 ) , O = [ "image" ] , j = { name : "core/image" , title : Object ( o . _ _ ) ( "Image" ) , keywords : [ Object ( o . _ _ ) ( "photo" ) , Object ( o . _ _ ) ( "media" ) ] , object : ! 0 , tagName : "img" , className : null , attributes : { className : "class" , style : "style" , url : "src" , alt : "alt" } , edit : function ( t ) { function e ( ) { var t ; return Object ( l . a ) ( this , e ) , ( t = Object ( p . a ) ( this , Object ( f . a ) ( e ) . apply ( this , arguments ) ) ) . openModal = t . openModal . bind ( Object ( d . a ) ( Object ( d . a ) ( t ) ) ) , t . closeModal = t . closeModal . bind ( Object ( d . a ) ( Object ( d . a ) ( t ) ) ) , t . state = { modal : ! 1 } , t } return Object ( h . a ) ( e , t ) , Object ( b . a ) ( e , [ { key : "openModal" , value : function ( ) { this . setState ( { modal : ! 0 } ) } } , { key : "closeModal" , value : function ( ) { this . setState ( { modal : ! 1 } ) } } , { key : "render" , value : function ( ) { var t = this , e = this . props , n = e . value , r = e . onChange ; return Object ( i . createElement ) ( c . MediaUploadCheck , null , Object ( i . createElement ) ( c . RichTextInserterItem , { name : "core/image" , icon : Object ( i . createElement ) ( m . SVG , { xmlns : "http://www.w3.org/2000/svg" , viewBox : "0 0 24 24" } , Object ( i . createElement ) ( m . Path , { d : "M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z" } ) ) , title : Object ( o . _ _ ) ( "Inline Image" ) , onClick : this . openModal } ) , this . state . modal && Object ( i . createElement ) ( c . MediaUpload , { allowedTypes : O , onSelect : function ( e ) { var i = e . id , o = e . url , c = e . alt