Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/******/ var _ _webpack _modules _ _ = ( {
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/***/ 47 :
/***/ ( function ( _ _unused _webpack _module , exports ) {
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
var _ _webpack _unused _export _ _ ;
/ * *
* @ license React
* react . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /
var l = Symbol . for ( "react.element" ) ,
n = Symbol . for ( "react.portal" ) ,
p = Symbol . for ( "react.fragment" ) ,
q = Symbol . for ( "react.strict_mode" ) ,
r = Symbol . for ( "react.profiler" ) ,
t = Symbol . for ( "react.provider" ) ,
u = Symbol . for ( "react.context" ) ,
v = Symbol . for ( "react.forward_ref" ) ,
w = Symbol . for ( "react.suspense" ) ,
x = Symbol . for ( "react.memo" ) ,
y = Symbol . for ( "react.lazy" ) ,
z = Symbol . iterator ;
function A ( a ) {
if ( null === a || "object" !== typeof a ) return null ;
a = z && a [ z ] || a [ "@@iterator" ] ;
return "function" === typeof a ? a : null ;
}
var B = {
isMounted : function ( ) {
return ! 1 ;
} ,
enqueueForceUpdate : function ( ) { } ,
enqueueReplaceState : function ( ) { } ,
enqueueSetState : function ( ) { }
} ,
C = Object . assign ,
D = { } ;
function E ( a , b , e ) {
this . props = a ;
this . context = b ;
this . refs = D ;
this . updater = e || B ;
}
E . prototype . isReactComponent = { } ;
E . prototype . setState = function ( a , b ) {
if ( "object" !== typeof a && "function" !== typeof a && null != a ) throw Error ( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ) ;
this . updater . enqueueSetState ( this , a , b , "setState" ) ;
} ;
E . prototype . forceUpdate = function ( a ) {
this . updater . enqueueForceUpdate ( this , a , "forceUpdate" ) ;
} ;
function F ( ) { }
F . prototype = E . prototype ;
function G ( a , b , e ) {
this . props = a ;
this . context = b ;
this . refs = D ;
this . updater = e || B ;
}
var H = G . prototype = new F ( ) ;
H . constructor = G ;
C ( H , E . prototype ) ;
H . isPureReactComponent = ! 0 ;
var I = Array . isArray ,
J = Object . prototype . hasOwnProperty ,
K = {
current : null
} ,
L = {
key : ! 0 ,
ref : ! 0 ,
_ _self : ! 0 ,
_ _source : ! 0
} ;
function M ( a , b , e ) {
var d ,
c = { } ,
k = null ,
h = null ;
if ( null != b ) for ( d in void 0 !== b . ref && ( h = b . ref ) , void 0 !== b . key && ( k = "" + b . key ) , b ) J . call ( b , d ) && ! L . hasOwnProperty ( d ) && ( c [ d ] = b [ d ] ) ;
var g = arguments . length - 2 ;
if ( 1 === g ) c . children = e ; else if ( 1 < g ) {
for ( var f = Array ( g ) , m = 0 ; m < g ; m ++ ) f [ m ] = arguments [ m + 2 ] ;
c . children = f ;
}
if ( a && a . defaultProps ) for ( d in g = a . defaultProps , g ) void 0 === c [ d ] && ( c [ d ] = g [ d ] ) ;
return {
$$typeof : l ,
type : a ,
key : k ,
ref : h ,
props : c ,
_owner : K . current
} ;
}
function N ( a , b ) {
return {
$$typeof : l ,
type : a . type ,
key : b ,
ref : a . ref ,
props : a . props ,
_owner : a . _owner
} ;
}
function O ( a ) {
return "object" === typeof a && null !== a && a . $$typeof === l ;
}
function escape ( a ) {
var b = {
"=" : "=0" ,
":" : "=2"
} ;
return "$" + a . replace ( /[=:]/g , function ( a ) {
return b [ a ] ;
} ) ;
}
var P = /\/+/g ;
function Q ( a , b ) {
return "object" === typeof a && null !== a && null != a . key ? escape ( "" + a . key ) : b . toString ( 36 ) ;
}
function R ( a , b , e , d , c ) {
var k = typeof a ;
if ( "undefined" === k || "boolean" === k ) a = null ;
var h = ! 1 ;
if ( null === a ) h = ! 0 ; else switch ( k ) {
case "string" :
case "number" :
h = ! 0 ;
break ;
case "object" :
switch ( a . $$typeof ) {
case l :
case n :
h = ! 0 ;
}
}
if ( h ) return h = a , c = c ( h ) , a = "" === d ? "." + Q ( h , 0 ) : d , I ( c ) ? ( e = "" , null != a && ( e = a . replace ( P , "$&/" ) + "/" ) , R ( c , b , e , "" , function ( a ) {
return a ;
} ) ) : null != c && ( O ( c ) && ( c = N ( c , e + ( ! c . key || h && h . key === c . key ? "" : ( "" + c . key ) . replace ( P , "$&/" ) + "/" ) + a ) ) , b . push ( c ) ) , 1 ;
h = 0 ;
d = "" === d ? "." : d + ":" ;
if ( I ( a ) ) for ( var g = 0 ; g < a . length ; g ++ ) {
k = a [ g ] ;
var f = d + Q ( k , g ) ;
h += R ( k , b , e , f , c ) ;
} else if ( f = A ( a ) , "function" === typeof f ) for ( a = f . call ( a ) , g = 0 ; ! ( k = a . next ( ) ) . done ; ) k = k . value , f = d + Q ( k , g ++ ) , h += R ( k , b , e , f , c ) ; else if ( "object" === k ) throw b = String ( a ) , Error ( "Objects are not valid as a React child (found: " + ( "[object Object]" === b ? "object with keys {" + Object . keys ( a ) . join ( ", " ) + "}" : b ) + "). If you meant to render a collection of children, use an array instead." ) ;
return h ;
}
function S ( a , b , e ) {
if ( null == a ) return a ;
var d = [ ] ,
c = 0 ;
R ( a , d , "" , "" , function ( a ) {
return b . call ( e , a , c ++ ) ;
} ) ;
return d ;
}
function T ( a ) {
if ( - 1 === a . _status ) {
var b = a . _result ;
b = b ( ) ;
b . then ( function ( b ) {
if ( 0 === a . _status || - 1 === a . _status ) a . _status = 1 , a . _result = b ;
} , function ( b ) {
if ( 0 === a . _status || - 1 === a . _status ) a . _status = 2 , a . _result = b ;
} ) ;
- 1 === a . _status && ( a . _status = 0 , a . _result = b ) ;
}
if ( 1 === a . _status ) return a . _result . default ;
throw a . _result ;
}
var U = {
current : null
} ,
V = {
transition : null
} ,
W = {
ReactCurrentDispatcher : U ,
ReactCurrentBatchConfig : V ,
ReactCurrentOwner : K
} ;
_ _webpack _unused _export _ _ = {
map : S ,
forEach : function ( a , b , e ) {
S ( a , function ( ) {
b . apply ( this , arguments ) ;
} , e ) ;
} ,
count : function ( a ) {
var b = 0 ;
S ( a , function ( ) {
b ++ ;
} ) ;
return b ;
} ,
toArray : function ( a ) {
return S ( a , function ( a ) {
return a ;
} ) || [ ] ;
} ,
only : function ( a ) {
if ( ! O ( a ) ) throw Error ( "React.Children.only expected to receive a single React element child." ) ;
return a ;
}
} ;
_ _webpack _unused _export _ _ = E ;
_ _webpack _unused _export _ _ = p ;
_ _webpack _unused _export _ _ = r ;
_ _webpack _unused _export _ _ = G ;
_ _webpack _unused _export _ _ = q ;
_ _webpack _unused _export _ _ = w ;
_ _webpack _unused _export _ _ = W ;
_ _webpack _unused _export _ _ = function ( a , b , e ) {
if ( null === a || void 0 === a ) throw Error ( "React.cloneElement(...): The argument must be a React element, but you passed " + a + "." ) ;
var d = C ( { } , a . props ) ,
c = a . key ,
k = a . ref ,
h = a . _owner ;
if ( null != b ) {
void 0 !== b . ref && ( k = b . ref , h = K . current ) ;
void 0 !== b . key && ( c = "" + b . key ) ;
if ( a . type && a . type . defaultProps ) var g = a . type . defaultProps ;
for ( f in b ) J . call ( b , f ) && ! L . hasOwnProperty ( f ) && ( d [ f ] = void 0 === b [ f ] && void 0 !== g ? g [ f ] : b [ f ] ) ;
}
var f = arguments . length - 2 ;
if ( 1 === f ) d . children = e ; else if ( 1 < f ) {
g = Array ( f ) ;
for ( var m = 0 ; m < f ; m ++ ) g [ m ] = arguments [ m + 2 ] ;
d . children = g ;
}
return {
$$typeof : l ,
type : a . type ,
key : c ,
ref : k ,
props : d ,
_owner : h
} ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
a = {
$$typeof : u ,
_currentValue : a ,
_currentValue2 : a ,
_threadCount : 0 ,
Provider : null ,
Consumer : null ,
_defaultValue : null ,
_globalName : null
} ;
a . Provider = {
$$typeof : t ,
_context : a
} ;
return a . Consumer = a ;
} ;
exports . createElement = M ;
_ _webpack _unused _export _ _ = function ( a ) {
var b = M . bind ( null , a ) ;
b . type = a ;
return b ;
} ;
_ _webpack _unused _export _ _ = function ( ) {
return {
current : null
} ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
return {
$$typeof : v ,
render : a
} ;
} ;
_ _webpack _unused _export _ _ = O ;
_ _webpack _unused _export _ _ = function ( a ) {
return {
$$typeof : y ,
_payload : {
_status : - 1 ,
_result : a
} ,
_init : T
} ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return {
$$typeof : x ,
type : a ,
compare : void 0 === b ? null : b
} ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
var b = V . transition ;
V . transition = { } ;
try {
a ( ) ;
} finally {
V . transition = b ;
}
} ;
_ _webpack _unused _export _ _ = function ( ) {
throw Error ( "act(...) is not supported in production builds of React." ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return U . current . useCallback ( a , b ) ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
return U . current . useContext ( a ) ;
} ;
_ _webpack _unused _export _ _ = function ( ) { } ;
_ _webpack _unused _export _ _ = function ( a ) {
return U . current . useDeferredValue ( a ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return U . current . useEffect ( a , b ) ;
} ;
_ _webpack _unused _export _ _ = function ( ) {
return U . current . useId ( ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b , e ) {
return U . current . useImperativeHandle ( a , b , e ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return U . current . useInsertionEffect ( a , b ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return U . current . useLayoutEffect ( a , b ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b ) {
return U . current . useMemo ( a , b ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b , e ) {
return U . current . useReducer ( a , b , e ) ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
return U . current . useRef ( a ) ;
} ;
_ _webpack _unused _export _ _ = function ( a ) {
return U . current . useState ( a ) ;
} ;
_ _webpack _unused _export _ _ = function ( a , b , e ) {
return U . current . useSyncExternalStore ( a , b , e ) ;
} ;
_ _webpack _unused _export _ _ = function ( ) {
return U . current . useTransition ( ) ;
} ;
_ _webpack _unused _export _ _ = "18.2.0" ;
/***/ } ) ,
/***/ 401 :
/***/ ( function ( module , _ _unused _webpack _exports , _ _webpack _require _ _ ) {
if ( true ) {
module . exports = _ _webpack _require _ _ ( 47 ) ;
} else { }
/***/ } )
/******/ } ) ;
/************************************************************************/
/******/ // The module cache
/******/ var _ _webpack _module _cache _ _ = { } ;
/******/
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/ // Check if module is in cache
/******/ var cachedModule = _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ if ( cachedModule !== undefined ) {
/******/ return cachedModule . exports ;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = _ _webpack _module _cache _ _ [ moduleId ] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports : { }
/******/ } ;
/******/
/******/ // Execute the module function
/******/ _ _webpack _modules _ _ [ moduleId ] ( module , module . exports , _ _webpack _require _ _ ) ;
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ ! function ( ) {
/******/ // define getter functions for harmony exports
/******/ _ _webpack _require _ _ . d = function ( exports , definition ) {
/******/ for ( var key in definition ) {
/******/ if ( _ _webpack _require _ _ . o ( definition , key ) && ! _ _webpack _require _ _ . o ( exports , key ) ) {
/******/ Object . defineProperty ( exports , key , { enumerable : true , get : definition [ key ] } ) ;
/******/ }
/******/ }
/******/ } ;
/******/ } ( ) ;
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ ! function ( ) {
/******/ _ _webpack _require _ _ . o = function ( obj , prop ) { return Object . prototype . hasOwnProperty . call ( obj , prop ) ; }
/******/ } ( ) ;
/******/
/************************************************************************/
var _ _webpack _exports _ _ = { } ;
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
! function ( ) {
2023-09-26 10:23:26 -04:00
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
Tm : function ( ) { return /* reexport */ E ; } ,
az : function ( ) { return /* reexport */ y ; } ,
Aj : function ( ) { return /* reexport */ deepsignal _module _g ; } ,
XM : function ( ) { return /* reexport */ directive ; } ,
LO : function ( ) { return /* reexport */ directivePrefix ; } ,
fw : function ( ) { return /* reexport */ getContext ; } ,
sb : function ( ) { return /* reexport */ getElement ; } ,
D _ : function ( ) { return /* reexport */ getNamespace ; } ,
y7 : function ( ) { return /* reexport */ getRegionRootFragment ; } ,
sY : function ( ) { return /* reexport */ q ; } ,
h : function ( ) { return /* reexport */ store ; } ,
l2 : function ( ) { return /* reexport */ toVdom ; } ,
I4 : function ( ) { return /* reexport */ useCallback ; } ,
qp : function ( ) { return /* reexport */ hooks _module _q ; } ,
d4 : function ( ) { return /* reexport */ useEffect ; } ,
Dp : function ( ) { return /* reexport */ useInit ; } ,
bt : function ( ) { return /* reexport */ useLayoutEffect ; } ,
Ye : function ( ) { return /* reexport */ useMemo ; } ,
sO : function ( ) { return /* reexport */ hooks _module _ ; } ,
eJ : function ( ) { return /* reexport */ hooks _module _h ; } ,
qo : function ( ) { return /* reexport */ useWatch ; } ,
$e : function ( ) { return /* reexport */ withScope ; }
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = _ _webpack _require _ _ ( 401 ) ;
2023-09-26 10:23:26 -04:00
; // CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
var preact _module _n ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l ,
2023-09-26 10:23:26 -04:00
preact _module _u ,
preact _module _t ,
i ,
preact _module _o ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
r ,
2023-09-26 10:23:26 -04:00
preact _module _f ,
preact _module _e ,
preact _module _c = { } ,
s = [ ] ,
a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
h = Array . isArray ;
function v ( n , l ) {
2023-09-26 10:23:26 -04:00
for ( var u in l ) n [ u ] = l [ u ] ;
return n ;
}
function p ( n ) {
var l = n . parentNode ;
l && l . removeChild ( n ) ;
}
function y ( l , u , t ) {
var i ,
o ,
r ,
f = { } ;
for ( r in u ) "key" == r ? i = u [ r ] : "ref" == r ? o = u [ r ] : f [ r ] = u [ r ] ;
if ( arguments . length > 2 && ( f . children = arguments . length > 3 ? preact _module _n . call ( arguments , 2 ) : t ) , "function" == typeof l && null != l . defaultProps ) for ( r in l . defaultProps ) void 0 === f [ r ] && ( f [ r ] = l . defaultProps [ r ] ) ;
return d ( l , f , i , o , null ) ;
}
function d ( n , t , i , o , r ) {
var f = {
type : n ,
props : t ,
key : i ,
ref : o ,
_ _k : null ,
_ _ : null ,
_ _b : 0 ,
_ _e : null ,
_ _d : void 0 ,
_ _c : null ,
constructor : void 0 ,
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
_ _v : null == r ? ++ preact _module _u : r ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
_ _i : - 1 ,
_ _u : 0
2023-09-26 10:23:26 -04:00
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return null == r && null != l . vnode && l . vnode ( f ) , f ;
2023-09-26 10:23:26 -04:00
}
function _ ( ) {
return {
current : null
} ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function g ( n ) {
2023-09-26 10:23:26 -04:00
return n . children ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function b ( n , l ) {
2023-09-26 10:23:26 -04:00
this . props = n , this . context = l ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function m ( n , l ) {
if ( null == l ) return n . _ _ ? m ( n . _ _ , n . _ _i + 1 ) : null ;
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
for ( var u ; l < n . _ _k . length ; l ++ ) if ( null != ( u = n . _ _k [ l ] ) && null != u . _ _e ) return u . _ _e ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
return "function" == typeof n . type ? m ( n ) : null ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function k ( n ) {
2023-09-26 10:23:26 -04:00
var l , u ;
if ( null != ( n = n . _ _ ) && null != n . _ _c ) {
for ( n . _ _e = n . _ _c . base = null , l = 0 ; l < n . _ _k . length ; l ++ ) if ( null != ( u = n . _ _k [ l ] ) && null != u . _ _e ) {
n . _ _e = n . _ _c . base = u . _ _e ;
break ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
return k ( n ) ;
2023-09-26 10:23:26 -04:00
}
}
function w ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
( ! n . _ _d && ( n . _ _d = ! 0 ) && i . push ( n ) && ! x . _ _r ++ || preact _module _o !== l . debounceRendering ) && ( ( preact _module _o = l . debounceRendering ) || r ) ( x ) ;
2023-09-26 10:23:26 -04:00
}
function x ( ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
var n , u , t , o , r , e , c , s , a ;
for ( i . sort ( preact _module _f ) ; n = i . shift ( ) ; ) n . _ _d && ( u = i . length , o = void 0 , e = ( r = ( t = n ) . _ _v ) . _ _e , s = [ ] , a = [ ] , ( c = t . _ _P ) && ( ( o = v ( { } , r ) ) . _ _v = r . _ _v + 1 , l . vnode && l . vnode ( o ) , L ( c , o , r , t . _ _n , void 0 !== c . ownerSVGElement , 32 & r . _ _u ? [ e ] : null , s , null == e ? m ( r ) : e , ! ! ( 32 & r . _ _u ) , a ) , o . _ _ . _ _k [ o . _ _i ] = o , M ( s , o , a ) , o . _ _e != e && k ( o ) ) , i . length > u && i . sort ( preact _module _f ) ) ;
2023-09-26 10:23:26 -04:00
x . _ _r = 0 ;
}
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
function C ( n , l , u , t , i , o , r , f , e , a , h ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
var v ,
p ,
2023-09-26 10:23:26 -04:00
y ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
d ,
2023-09-26 10:23:26 -04:00
_ ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
g = t && t . _ _k || s ,
b = l . length ;
for ( u . _ _d = e , P ( u , l , g ) , e = u . _ _d , v = 0 ; v < b ; v ++ ) null != ( y = u . _ _k [ v ] ) && "boolean" != typeof y && "function" != typeof y && ( p = - 1 === y . _ _i ? preact _module _c : g [ y . _ _i ] || preact _module _c , y . _ _i = v , L ( n , y , p , i , o , r , f , e , a , h ) , d = y . _ _e , y . ref && p . ref != y . ref && ( p . ref && z ( p . ref , null , y ) , h . push ( y . ref , y . _ _c || d , y ) ) , null == _ && null != d && ( _ = d ) , 65536 & y . _ _u || p . _ _k === y . _ _k ? e = S ( y , e , n ) : "function" == typeof y . type && void 0 !== y . _ _d ? e = y . _ _d : d && ( e = d . nextSibling ) , y . _ _d = void 0 , y . _ _u &= - 196609 ) ;
u . _ _d = e , u . _ _e = _ ;
2023-09-26 10:23:26 -04:00
}
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
function P ( n , l , u ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
var t ,
i ,
o ,
r ,
f ,
e = l . length ,
c = u . length ,
s = c ,
a = 0 ;
for ( n . _ _k = [ ] , t = 0 ; t < e ; t ++ ) null != ( i = n . _ _k [ t ] = null == ( i = l [ t ] ) || "boolean" == typeof i || "function" == typeof i ? null : "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i . constructor == String ? d ( null , i , null , null , i ) : h ( i ) ? d ( g , {
children : i
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , null , null , null ) : void 0 === i . constructor && i . _ _b > 0 ? d ( i . type , i . props , i . key , i . ref ? i . ref : null , i . _ _v ) : i ) ? ( i . _ _ = n , i . _ _b = n . _ _b + 1 , f = H ( i , u , r = t + a , s ) , i . _ _i = f , o = null , - 1 !== f && ( s -- , ( o = u [ f ] ) && ( o . _ _u |= 131072 ) ) , null == o || null === o . _ _v ? ( - 1 == f && a -- , "function" != typeof i . type && ( i . _ _u |= 65536 ) ) : f !== r && ( f === r + 1 ? a ++ : f > r ? s > e - r ? a += f - r : a -- : a = f < r && f == r - 1 ? f - r : 0 , f !== t + a && ( i . _ _u |= 65536 ) ) ) : ( o = u [ t ] ) && null == o . key && o . _ _e && ( o . _ _e == n . _ _d && ( n . _ _d = m ( o ) ) , N ( o , o , ! 1 ) , u [ t ] = null , s -- ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( s ) for ( t = 0 ; t < c ; t ++ ) null != ( o = u [ t ] ) && 0 == ( 131072 & o . _ _u ) && ( o . _ _e == n . _ _d && ( n . _ _d = m ( o ) ) , N ( o , o ) ) ;
}
function S ( n , l , u ) {
var t , i ;
if ( "function" == typeof n . type ) {
for ( t = n . _ _k , i = 0 ; t && i < t . length ; i ++ ) t [ i ] && ( t [ i ] . _ _ = n , l = S ( t [ i ] , l , u ) ) ;
return l ;
}
return n . _ _e != l && ( u . insertBefore ( n . _ _e , l || null ) , l = n . _ _e ) , l && l . nextSibling ;
2023-09-26 10:23:26 -04:00
}
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
function $ ( n , l ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
return l = l || [ ] , null == n || "boolean" == typeof n || ( h ( n ) ? n . some ( function ( n ) {
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
$ ( n , l ) ;
2023-09-26 10:23:26 -04:00
} ) : l . push ( n ) ) , l ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function H ( n , l , u , t ) {
2023-09-26 10:23:26 -04:00
var i = n . key ,
o = n . type ,
r = u - 1 ,
f = u + 1 ,
e = l [ u ] ;
if ( null === e || e && i == e . key && o === e . type ) return u ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( t > ( null != e && 0 == ( 131072 & e . _ _u ) ? 1 : 0 ) ) for ( ; r >= 0 || f < l . length ; ) {
2023-09-26 10:23:26 -04:00
if ( r >= 0 ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( ( e = l [ r ] ) && 0 == ( 131072 & e . _ _u ) && i == e . key && o === e . type ) return r ;
2023-09-26 10:23:26 -04:00
r -- ;
}
if ( f < l . length ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( ( e = l [ f ] ) && 0 == ( 131072 & e . _ _u ) && i == e . key && o === e . type ) return f ;
2023-09-26 10:23:26 -04:00
f ++ ;
}
}
return - 1 ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function I ( n , l , u ) {
2023-09-26 10:23:26 -04:00
"-" === l [ 0 ] ? n . setProperty ( l , null == u ? "" : u ) : n [ l ] = null == u ? "" : "number" != typeof u || a . test ( l ) ? u : u + "px" ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function T ( n , l , u , t , i ) {
2023-09-26 10:23:26 -04:00
var o ;
n : if ( "style" === l ) {
if ( "string" == typeof u ) n . style . cssText = u ; else {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( "string" == typeof t && ( n . style . cssText = t = "" ) , t ) for ( l in t ) u && l in u || I ( n . style , l , "" ) ;
if ( u ) for ( l in u ) t && u [ l ] === t [ l ] || I ( n . style , l , u [ l ] ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
} else if ( "o" === l [ 0 ] && "n" === l [ 1 ] ) o = l !== ( l = l . replace ( /(PointerCapture)$|Capture$/ , "$1" ) ) , l = l . toLowerCase ( ) in n ? l . toLowerCase ( ) . slice ( 2 ) : l . slice ( 2 ) , n . l || ( n . l = { } ) , n . l [ l + o ] = u , u ? t ? u . u = t . u : ( u . u = Date . now ( ) , n . addEventListener ( l , o ? D : A , o ) ) : n . removeEventListener ( l , o ? D : A , o ) ; else {
Update npm packages to latest.
The npm packages needed a further update for beta 2 in preparation for 6.4.
Props @mmaattiiaass , @wildworks , @aaronrobertshaw, @bartkalisz, @mamaduka, @artemiosans, @youknowriad, @czapla, @richtabor, @glendaviesnz, @pbking, @cbravobernal, @madhudollu, @kevin940726, @adamsilverstein, @get_dave, @ntsekouras, @ramonopoly, @jffng, @swissspidy, @carlosgprim, @siobhyb, @mikachan.
See #59411.
Built from https://develop.svn.wordpress.org/trunk@56755
git-svn-id: http://core.svn.wordpress.org/trunk@56267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-02 14:58:22 -04:00
if ( i ) l = l . replace ( /xlink(H|:h)/ , "h" ) . replace ( /sName$/ , "s" ) ; else if ( "width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n ) try {
2023-09-26 10:23:26 -04:00
n [ l ] = null == u ? "" : u ;
break n ;
} catch ( n ) { }
"function" == typeof u || ( null == u || ! 1 === u && "-" !== l [ 4 ] ? n . removeAttribute ( l ) : n . setAttribute ( l , u ) ) ;
}
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function A ( n ) {
Update npm packages to latest.
The npm packages needed a further update for beta 2 in preparation for 6.4.
Props @mmaattiiaass , @wildworks , @aaronrobertshaw, @bartkalisz, @mamaduka, @artemiosans, @youknowriad, @czapla, @richtabor, @glendaviesnz, @pbking, @cbravobernal, @madhudollu, @kevin940726, @adamsilverstein, @get_dave, @ntsekouras, @ramonopoly, @jffng, @swissspidy, @carlosgprim, @siobhyb, @mikachan.
See #59411.
Built from https://develop.svn.wordpress.org/trunk@56755
git-svn-id: http://core.svn.wordpress.org/trunk@56267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-02 14:58:22 -04:00
var u = this . l [ n . type + ! 1 ] ;
if ( n . t ) {
if ( n . t <= u . u ) return ;
} else n . t = Date . now ( ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return u ( l . event ? l . event ( n ) : n ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function D ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return this . l [ n . type + ! 0 ] ( l . event ? l . event ( n ) : n ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function L ( n , u , t , i , o , r , f , e , c , s ) {
2023-09-26 10:23:26 -04:00
var a ,
p ,
y ,
d ,
_ ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
m ,
k ,
2023-09-26 10:23:26 -04:00
w ,
x ,
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
P ,
2023-09-26 10:23:26 -04:00
S ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
$ ,
2023-09-26 10:23:26 -04:00
H ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
I ,
T ,
A = u . type ;
2023-09-26 10:23:26 -04:00
if ( void 0 !== u . constructor ) return null ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
128 & t . _ _u && ( c = ! ! ( 32 & t . _ _u ) , r = [ e = u . _ _e = t . _ _e ] ) , ( a = l . _ _b ) && a ( u ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
n : if ( "function" == typeof A ) try {
if ( w = u . props , x = ( a = A . contextType ) && i [ a . _ _c ] , P = a ? x ? x . props . value : a . _ _ : i , t . _ _c ? k = ( p = u . _ _c = t . _ _c ) . _ _ = p . _ _E : ( "prototype" in A && A . prototype . render ? u . _ _c = p = new A ( w , P ) : ( u . _ _c = p = new b ( w , P ) , p . constructor = A , p . render = O ) , x && x . sub ( p ) , p . props = w , p . state || ( p . state = { } ) , p . context = P , p . _ _n = i , y = p . _ _d = ! 0 , p . _ _h = [ ] , p . _sb = [ ] ) , null == p . _ _s && ( p . _ _s = p . state ) , null != A . getDerivedStateFromProps && ( p . _ _s == p . state && ( p . _ _s = v ( { } , p . _ _s ) ) , v ( p . _ _s , A . getDerivedStateFromProps ( w , p . _ _s ) ) ) , d = p . props , _ = p . state , p . _ _v = u , y ) null == A . getDerivedStateFromProps && null != p . componentWillMount && p . componentWillMount ( ) , null != p . componentDidMount && p . _ _h . push ( p . componentDidMount ) ; else {
if ( null == A . getDerivedStateFromProps && w !== d && null != p . componentWillReceiveProps && p . componentWillReceiveProps ( w , P ) , ! p . _ _e && ( null != p . shouldComponentUpdate && ! 1 === p . shouldComponentUpdate ( w , p . _ _s , P ) || u . _ _v === t . _ _v ) ) {
2023-09-26 10:23:26 -04:00
for ( u . _ _v !== t . _ _v && ( p . props = w , p . state = p . _ _s , p . _ _d = ! 1 ) , u . _ _e = t . _ _e , u . _ _k = t . _ _k , u . _ _k . forEach ( function ( n ) {
n && ( n . _ _ = u ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
} ) , S = 0 ; S < p . _sb . length ; S ++ ) p . _ _h . push ( p . _sb [ S ] ) ;
2023-09-26 10:23:26 -04:00
p . _sb = [ ] , p . _ _h . length && f . push ( p ) ;
break n ;
}
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
null != p . componentWillUpdate && p . componentWillUpdate ( w , p . _ _s , P ) , null != p . componentDidUpdate && p . _ _h . push ( function ( ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
p . componentDidUpdate ( d , _ , m ) ;
2023-09-26 10:23:26 -04:00
} ) ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( p . context = P , p . props = w , p . _ _P = n , p . _ _e = ! 1 , $ = l . _ _r , H = 0 , "prototype" in A && A . prototype . render ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
for ( p . state = p . _ _s , p . _ _d = ! 1 , $ && $ ( u ) , a = p . render ( p . props , p . state , p . context ) , I = 0 ; I < p . _sb . length ; I ++ ) p . _ _h . push ( p . _sb [ I ] ) ;
2023-09-26 10:23:26 -04:00
p . _sb = [ ] ;
} else do {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
p . _ _d = ! 1 , $ && $ ( u ) , a = p . render ( p . props , p . state , p . context ) , p . state = p . _ _s ;
} while ( p . _ _d && ++ H < 25 ) ;
p . state = p . _ _s , null != p . getChildContext && ( i = v ( v ( { } , i ) , p . getChildContext ( ) ) ) , y || null == p . getSnapshotBeforeUpdate || ( m = p . getSnapshotBeforeUpdate ( d , _ ) ) , C ( n , h ( T = null != a && a . type === g && null == a . key ? a . props . children : a ) ? T : [ T ] , u , t , i , o , r , f , e , c , s ) , p . base = u . _ _e , u . _ _u &= - 161 , p . _ _h . length && f . push ( p ) , k && ( p . _ _E = p . _ _ = null ) ;
2023-09-26 10:23:26 -04:00
} catch ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
u . _ _v = null , c || null != r ? ( u . _ _e = e , u . _ _u |= c ? 160 : 32 , r [ r . indexOf ( e ) ] = null ) : ( u . _ _e = t . _ _e , u . _ _k = t . _ _k ) , l . _ _e ( n , u , t ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
} else null == r && u . _ _v === t . _ _v ? ( u . _ _k = t . _ _k , u . _ _e = t . _ _e ) : u . _ _e = j ( t . _ _e , u , t , i , o , r , f , c , s ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
( a = l . diffed ) && a ( u ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function M ( n , u , t ) {
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
u . _ _d = void 0 ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
for ( var i = 0 ; i < t . length ; i ++ ) z ( t [ i ] , t [ ++ i ] , t [ ++ i ] ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _c && l . _ _c ( u , n ) , n . some ( function ( u ) {
2023-09-26 10:23:26 -04:00
try {
n = u . _ _h , u . _ _h = [ ] , n . some ( function ( n ) {
n . call ( u ) ;
} ) ;
} catch ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _e ( n , u . _ _v ) ;
2023-09-26 10:23:26 -04:00
}
} ) ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function j ( l , u , t , i , o , r , f , e , s ) {
2023-09-26 10:23:26 -04:00
var a ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
v ,
2023-09-26 10:23:26 -04:00
y ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
d ,
_ ,
g ,
b ,
k = t . props ,
w = u . props ,
x = u . type ;
if ( "svg" === x && ( o = ! 0 ) , null != r ) for ( a = 0 ; a < r . length ; a ++ ) if ( ( _ = r [ a ] ) && "setAttribute" in _ == ! ! x && ( x ? _ . localName === x : 3 === _ . nodeType ) ) {
l = _ , r [ a ] = null ;
2023-09-26 10:23:26 -04:00
break ;
}
if ( null == l ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( null === x ) return document . createTextNode ( w ) ;
l = o ? document . createElementNS ( "http://www.w3.org/2000/svg" , x ) : document . createElement ( x , w . is && w ) , r = null , e = ! 1 ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( null === x ) k === w || e && l . data === w || ( l . data = w ) ; else {
if ( r = r && preact _module _n . call ( l . childNodes ) , k = t . props || preact _module _c , ! e && null != r ) for ( k = { } , a = 0 ; a < l . attributes . length ; a ++ ) k [ ( _ = l . attributes [ a ] ) . name ] = _ . value ;
for ( a in k ) _ = k [ a ] , "children" == a || ( "dangerouslySetInnerHTML" == a ? y = _ : "key" === a || a in w || T ( l , a , null , _ , o ) ) ;
for ( a in w ) _ = w [ a ] , "children" == a ? d = _ : "dangerouslySetInnerHTML" == a ? v = _ : "value" == a ? g = _ : "checked" == a ? b = _ : "key" === a || e && "function" != typeof _ || k [ a ] === _ || T ( l , a , _ , k [ a ] , o ) ;
if ( v ) e || y && ( v . _ _html === y . _ _html || v . _ _html === l . innerHTML ) || ( l . innerHTML = v . _ _html ) , u . _ _k = [ ] ; else if ( y && ( l . innerHTML = "" ) , C ( l , h ( d ) ? d : [ d ] , u , t , i , o && "foreignObject" !== x , r , f , r ? r [ 0 ] : t . _ _k && m ( t , 0 ) , e , s ) , null != r ) for ( a = r . length ; a -- ; ) null != r [ a ] && p ( r [ a ] ) ;
e || ( a = "value" , void 0 !== g && ( g !== l [ a ] || "progress" === x && ! g || "option" === x && g !== k [ a ] ) && T ( l , a , g , k [ a ] , ! 1 ) , a = "checked" , void 0 !== b && b !== l [ a ] && T ( l , a , b , k [ a ] , ! 1 ) ) ;
2023-09-26 10:23:26 -04:00
}
return l ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function z ( n , u , t ) {
2023-09-26 10:23:26 -04:00
try {
"function" == typeof n ? n ( u ) : n . current = u ;
} catch ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _e ( n , t ) ;
2023-09-26 10:23:26 -04:00
}
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function N ( n , u , t ) {
2023-09-26 10:23:26 -04:00
var i , o ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( l . unmount && l . unmount ( n ) , ( i = n . ref ) && ( i . current && i . current !== n . _ _e || z ( i , null , u ) ) , null != ( i = n . _ _c ) ) {
2023-09-26 10:23:26 -04:00
if ( i . componentWillUnmount ) try {
i . componentWillUnmount ( ) ;
} catch ( n ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _e ( n , u ) ;
2023-09-26 10:23:26 -04:00
}
i . base = i . _ _P = null , n . _ _c = void 0 ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
if ( i = n . _ _k ) for ( o = 0 ; o < i . length ; o ++ ) i [ o ] && N ( i [ o ] , u , t || "function" != typeof n . type ) ;
2023-09-26 10:23:26 -04:00
t || null == n . _ _e || p ( n . _ _e ) , n . _ _ = n . _ _e = n . _ _d = void 0 ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function O ( n , l , u ) {
2023-09-26 10:23:26 -04:00
return this . constructor ( n , u ) ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function q ( u , t , i ) {
2023-09-26 10:23:26 -04:00
var o , r , f , e ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _ && l . _ _ ( u , t ) , r = ( o = "function" == typeof i ) ? null : i && i . _ _k || t . _ _k , f = [ ] , e = [ ] , L ( t , u = ( ! o && i || t ) . _ _k = y ( g , null , [ u ] ) , r || preact _module _c , preact _module _c , void 0 !== t . ownerSVGElement , ! o && i ? [ i ] : r ? null : t . firstChild ? preact _module _n . call ( t . childNodes ) : null , f , ! o && i ? i : r ? r . _ _e : t . firstChild , o , e ) , M ( f , u , e ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function B ( n , l ) {
q ( n , l , B ) ;
2023-09-26 10:23:26 -04:00
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function E ( l , u , t ) {
2023-09-26 10:23:26 -04:00
var i ,
o ,
r ,
f ,
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
e = v ( { } , l . props ) ;
2023-09-26 10:23:26 -04:00
for ( r in l . type && l . type . defaultProps && ( f = l . type . defaultProps ) , u ) "key" == r ? i = u [ r ] : "ref" == r ? o = u [ r ] : e [ r ] = void 0 === u [ r ] && void 0 !== f ? f [ r ] : u [ r ] ;
return arguments . length > 2 && ( e . children = arguments . length > 3 ? preact _module _n . call ( arguments , 2 ) : t ) , d ( l . type , e , i || l . key , o || l . ref , null ) ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
function F ( n , l ) {
2023-09-26 10:23:26 -04:00
var u = {
_ _c : l = "__cC" + preact _module _e ++ ,
_ _ : n ,
Consumer : function ( n , l ) {
return n . children ( l ) ;
} ,
Provider : function ( n ) {
var u , t ;
return this . getChildContext || ( u = [ ] , ( t = { } ) [ l ] = this , this . getChildContext = function ( ) {
return t ;
} , this . shouldComponentUpdate = function ( n ) {
this . props . value !== n . value && u . some ( function ( n ) {
n . _ _e = ! 0 , w ( n ) ;
} ) ;
} , this . sub = function ( n ) {
u . push ( n ) ;
var l = n . componentWillUnmount ;
n . componentWillUnmount = function ( ) {
u . splice ( u . indexOf ( n ) , 1 ) , l && l . call ( n ) ;
} ;
} ) , n . children ;
}
} ;
return u . Provider . _ _ = u . Consumer . contextType = u ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
preact _module _n = s . slice , l = {
2023-09-26 10:23:26 -04:00
_ _e : function ( n , l , u , t ) {
for ( var i , o , r ; l = l . _ _ ; ) if ( ( i = l . _ _c ) && ! i . _ _ ) try {
if ( ( o = i . constructor ) && null != o . getDerivedStateFromError && ( i . setState ( o . getDerivedStateFromError ( n ) ) , r = i . _ _d ) , null != i . componentDidCatch && ( i . componentDidCatch ( n , t || { } ) , r = i . _ _d ) , r ) return i . _ _E = i ;
} catch ( l ) {
n = l ;
}
throw n ;
}
} , preact _module _u = 0 , preact _module _t = function ( n ) {
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:
* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].
Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.
For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.
This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined
}}}
which restores the rendering of the pattern template.
* Regression: [https://github.com/WordPress/gutenberg/pull/55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.
Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].
Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/trunk@57063
git-svn-id: http://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 12:16:25 -05:00
return null != n && null == n . constructor ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
} , b . prototype . setState = function ( n , l ) {
2023-09-26 10:23:26 -04:00
var u ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
u = null != this . _ _s && this . _ _s !== this . state ? this . _ _s : this . _ _s = v ( { } , this . state ) , "function" == typeof n && ( n = n ( v ( { } , u ) , this . props ) ) , n && v ( u , n ) , null != n && this . _ _v && ( l && this . _sb . push ( l ) , w ( this ) ) ;
} , b . prototype . forceUpdate = function ( n ) {
2023-09-26 10:23:26 -04:00
this . _ _v && ( this . _ _e = ! 0 , n && this . _ _h . push ( n ) , w ( this ) ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , b . prototype . render = g , i = [ ] , r = "function" == typeof Promise ? Promise . prototype . then . bind ( Promise . resolve ( ) ) : setTimeout , preact _module _f = function ( n , l ) {
2023-09-26 10:23:26 -04:00
return n . _ _v . _ _b - l . _ _v . _ _b ;
} , x . _ _r = 0 , preact _module _e = 0 ;
; // CONCATENATED MODULE: ./node_modules/preact/hooks/dist/hooks.module.js
var hooks _module _t ,
hooks _module _r ,
hooks _module _u ,
hooks _module _i ,
hooks _module _o = 0 ,
hooks _module _f = [ ] ,
hooks _module _c = [ ] ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
hooks _module _e = l . _ _b ,
hooks _module _a = l . _ _r ,
hooks _module _v = l . diffed ,
hooks _module _l = l . _ _c ,
hooks _module _m = l . unmount ;
2023-09-26 10:23:26 -04:00
function hooks _module _d ( t , u ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _h && l . _ _h ( hooks _module _r , t , hooks _module _o || u ) , hooks _module _o = 0 ;
2023-09-26 10:23:26 -04:00
var i = hooks _module _r . _ _H || ( hooks _module _r . _ _H = {
_ _ : [ ] ,
_ _h : [ ]
} ) ;
return t >= i . _ _ . length && i . _ _ . push ( {
_ _V : hooks _module _c
} ) , i . _ _ [ t ] ;
}
function hooks _module _h ( n ) {
return hooks _module _o = 1 , hooks _module _s ( hooks _module _B , n ) ;
}
function hooks _module _s ( n , u , i ) {
var o = hooks _module _d ( hooks _module _t ++ , 2 ) ;
if ( o . t = n , ! o . _ _c && ( o . _ _ = [ i ? i ( u ) : hooks _module _B ( void 0 , u ) , function ( n ) {
var t = o . _ _N ? o . _ _N [ 0 ] : o . _ _ [ 0 ] ,
r = o . t ( t , n ) ;
t !== r && ( o . _ _N = [ r , o . _ _ [ 1 ] ] , o . _ _c . setState ( { } ) ) ;
} ] , o . _ _c = hooks _module _r , ! hooks _module _r . u ) ) {
var f = function ( n , t , r ) {
if ( ! o . _ _c . _ _H ) return ! 0 ;
var u = o . _ _c . _ _H . _ _ . filter ( function ( n ) {
return n . _ _c ;
} ) ;
if ( u . every ( function ( n ) {
return ! n . _ _N ;
} ) ) return ! c || c . call ( this , n , t , r ) ;
var i = ! 1 ;
return u . forEach ( function ( n ) {
if ( n . _ _N ) {
var t = n . _ _ [ 0 ] ;
n . _ _ = n . _ _N , n . _ _N = void 0 , t !== n . _ _ [ 0 ] && ( i = ! 0 ) ;
}
} ) , ! ( ! i && o . _ _c . props === n ) && ( ! c || c . call ( this , n , t , r ) ) ;
} ;
hooks _module _r . u = ! 0 ;
var c = hooks _module _r . shouldComponentUpdate ,
e = hooks _module _r . componentWillUpdate ;
hooks _module _r . componentWillUpdate = function ( n , t , r ) {
if ( this . _ _e ) {
var u = c ;
c = void 0 , f ( n , t , r ) , c = u ;
}
e && e . call ( this , n , t , r ) ;
} , hooks _module _r . shouldComponentUpdate = f ;
}
return o . _ _N || o . _ _ ;
}
function hooks _module _p ( u , i ) {
var o = hooks _module _d ( hooks _module _t ++ , 3 ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
! l . _ _s && hooks _module _z ( o . _ _H , i ) && ( o . _ _ = u , o . i = i , hooks _module _r . _ _H . _ _h . push ( o ) ) ;
2023-09-26 10:23:26 -04:00
}
function hooks _module _y ( u , i ) {
var o = hooks _module _d ( hooks _module _t ++ , 4 ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
! l . _ _s && hooks _module _z ( o . _ _H , i ) && ( o . _ _ = u , o . i = i , hooks _module _r . _ _h . push ( o ) ) ;
2023-09-26 10:23:26 -04:00
}
function hooks _module _ ( n ) {
return hooks _module _o = 5 , hooks _module _F ( function ( ) {
return {
current : n
} ;
} , [ ] ) ;
}
function hooks _module _A ( n , t , r ) {
hooks _module _o = 6 , hooks _module _y ( function ( ) {
return "function" == typeof n ? ( n ( t ( ) ) , function ( ) {
return n ( null ) ;
} ) : n ? ( n . current = t ( ) , function ( ) {
return n . current = null ;
} ) : void 0 ;
} , null == r ? r : r . concat ( n ) ) ;
}
function hooks _module _F ( n , r ) {
var u = hooks _module _d ( hooks _module _t ++ , 7 ) ;
return hooks _module _z ( u . _ _H , r ) ? ( u . _ _V = n ( ) , u . i = r , u . _ _h = n , u . _ _V ) : u . _ _ ;
}
function hooks _module _T ( n , t ) {
return hooks _module _o = 8 , hooks _module _F ( function ( ) {
return n ;
} , t ) ;
}
function hooks _module _q ( n ) {
var u = hooks _module _r . context [ n . _ _c ] ,
i = hooks _module _d ( hooks _module _t ++ , 9 ) ;
return i . c = n , u ? ( null == i . _ _ && ( i . _ _ = ! 0 , u . sub ( hooks _module _r ) ) , u . props . value ) : n . _ _ ;
}
function hooks _module _x ( t , r ) {
n . useDebugValue && n . useDebugValue ( r ? r ( t ) : t ) ;
}
function hooks _module _P ( n ) {
var u = hooks _module _d ( hooks _module _t ++ , 10 ) ,
i = hooks _module _h ( ) ;
return u . _ _ = n , hooks _module _r . componentDidCatch || ( hooks _module _r . componentDidCatch = function ( n , t ) {
u . _ _ && u . _ _ ( n , t ) , i [ 1 ] ( n ) ;
} ) , [ i [ 0 ] , function ( ) {
i [ 1 ] ( void 0 ) ;
} ] ;
}
function V ( ) {
var n = hooks _module _d ( hooks _module _t ++ , 11 ) ;
if ( ! n . _ _ ) {
for ( var u = hooks _module _r . _ _v ; null !== u && ! u . _ _m && null !== u . _ _ ; ) u = u . _ _ ;
var i = u . _ _m || ( u . _ _m = [ 0 , 0 ] ) ;
n . _ _ = "P" + i [ 0 ] + "-" + i [ 1 ] ++ ;
}
return n . _ _ ;
}
function hooks _module _b ( ) {
for ( var t ; t = hooks _module _f . shift ( ) ; ) if ( t . _ _P && t . _ _H ) try {
t . _ _H . _ _h . forEach ( hooks _module _k ) , t . _ _H . _ _h . forEach ( hooks _module _w ) , t . _ _H . _ _h = [ ] ;
} catch ( r ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
t . _ _H . _ _h = [ ] , l . _ _e ( r , t . _ _v ) ;
2023-09-26 10:23:26 -04:00
}
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l . _ _b = function ( n ) {
2023-09-26 10:23:26 -04:00
hooks _module _r = null , hooks _module _e && hooks _module _e ( n ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , l . _ _r = function ( n ) {
2023-09-26 10:23:26 -04:00
hooks _module _a && hooks _module _a ( n ) , hooks _module _t = 0 ;
var i = ( hooks _module _r = n . _ _c ) . _ _H ;
i && ( hooks _module _u === hooks _module _r ? ( i . _ _h = [ ] , hooks _module _r . _ _h = [ ] , i . _ _ . forEach ( function ( n ) {
n . _ _N && ( n . _ _ = n . _ _N ) , n . _ _V = hooks _module _c , n . _ _N = n . i = void 0 ;
} ) ) : ( i . _ _h . forEach ( hooks _module _k ) , i . _ _h . forEach ( hooks _module _w ) , i . _ _h = [ ] , hooks _module _t = 0 ) ) , hooks _module _u = hooks _module _r ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , l . diffed = function ( t ) {
2023-09-26 10:23:26 -04:00
hooks _module _v && hooks _module _v ( t ) ;
var o = t . _ _c ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
o && o . _ _H && ( o . _ _H . _ _h . length && ( 1 !== hooks _module _f . push ( o ) && hooks _module _i === l . requestAnimationFrame || ( ( hooks _module _i = l . requestAnimationFrame ) || hooks _module _j ) ( hooks _module _b ) ) , o . _ _H . _ _ . forEach ( function ( n ) {
2023-09-26 10:23:26 -04:00
n . i && ( n . _ _H = n . i ) , n . _ _V !== hooks _module _c && ( n . _ _ = n . _ _V ) , n . i = void 0 , n . _ _V = hooks _module _c ;
} ) ) , hooks _module _u = hooks _module _r = null ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , l . _ _c = function ( t , r ) {
2023-09-26 10:23:26 -04:00
r . some ( function ( t ) {
try {
t . _ _h . forEach ( hooks _module _k ) , t . _ _h = t . _ _h . filter ( function ( n ) {
return ! n . _ _ || hooks _module _w ( n ) ;
} ) ;
} catch ( u ) {
r . some ( function ( n ) {
n . _ _h && ( n . _ _h = [ ] ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) , r = [ ] , l . _ _e ( u , t . _ _v ) ;
2023-09-26 10:23:26 -04:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) , hooks _module _l && hooks _module _l ( t , r ) ;
} , l . unmount = function ( t ) {
2023-09-26 10:23:26 -04:00
hooks _module _m && hooks _module _m ( t ) ;
var r ,
u = t . _ _c ;
u && u . _ _H && ( u . _ _H . _ _ . forEach ( function ( n ) {
try {
hooks _module _k ( n ) ;
} catch ( n ) {
r = n ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) , u . _ _H = void 0 , r && l . _ _e ( r , u . _ _v ) ) ;
2023-09-26 10:23:26 -04:00
} ;
var hooks _module _g = "function" == typeof requestAnimationFrame ;
function hooks _module _j ( n ) {
var t ,
r = function ( ) {
clearTimeout ( u ) , hooks _module _g && cancelAnimationFrame ( t ) , setTimeout ( n ) ;
} ,
u = setTimeout ( r , 100 ) ;
hooks _module _g && ( t = requestAnimationFrame ( r ) ) ;
}
function hooks _module _k ( n ) {
var t = hooks _module _r ,
u = n . _ _c ;
"function" == typeof u && ( n . _ _c = void 0 , u ( ) ) , hooks _module _r = t ;
}
function hooks _module _w ( n ) {
var t = hooks _module _r ;
n . _ _c = n . _ _ ( ) , hooks _module _r = t ;
}
function hooks _module _z ( n , t ) {
return ! n || n . length !== t . length || t . some ( function ( t , r ) {
return t !== n [ r ] ;
} ) ;
}
function hooks _module _B ( n , t ) {
return "function" == typeof t ? t ( n ) : t ;
}
; // CONCATENATED MODULE: ./node_modules/@preact/signals-core/dist/signals-core.module.js
function signals _core _module _i ( ) {
throw new Error ( "Cycle detected" ) ;
}
var signals _core _module _t = Symbol . for ( "preact-signals" ) ;
function signals _core _module _r ( ) {
if ( ! ( signals _core _module _v > 1 ) ) {
var i ,
t = ! 1 ;
while ( void 0 !== signals _core _module _f ) {
var r = signals _core _module _f ;
signals _core _module _f = void 0 ;
signals _core _module _e ++ ;
while ( void 0 !== r ) {
var n = r . o ;
r . o = void 0 ;
r . f &= - 3 ;
if ( ! ( 8 & r . f ) && signals _core _module _l ( r ) ) try {
r . c ( ) ;
} catch ( r ) {
if ( ! t ) {
i = r ;
t = ! 0 ;
}
}
r = n ;
}
}
signals _core _module _e = 0 ;
signals _core _module _v -- ;
if ( t ) throw i ;
} else signals _core _module _v -- ;
}
function signals _core _module _n ( i ) {
if ( signals _core _module _v > 0 ) return i ( ) ;
signals _core _module _v ++ ;
try {
return i ( ) ;
} finally {
signals _core _module _r ( ) ;
}
}
var signals _core _module _o = void 0 ,
signals _core _module _h = 0 ;
function signals _core _module _s ( i ) {
if ( signals _core _module _h > 0 ) return i ( ) ;
var t = signals _core _module _o ;
signals _core _module _o = void 0 ;
signals _core _module _h ++ ;
try {
return i ( ) ;
} finally {
signals _core _module _h -- ;
signals _core _module _o = t ;
}
}
var signals _core _module _f = void 0 ,
signals _core _module _v = 0 ,
signals _core _module _e = 0 ,
signals _core _module _u = 0 ;
function signals _core _module _c ( i ) {
if ( void 0 !== signals _core _module _o ) {
var t = i . n ;
if ( void 0 === t || t . t !== signals _core _module _o ) {
t = {
i : 0 ,
S : i ,
p : signals _core _module _o . s ,
n : void 0 ,
t : signals _core _module _o ,
e : void 0 ,
x : void 0 ,
r : t
} ;
if ( void 0 !== signals _core _module _o . s ) signals _core _module _o . s . n = t ;
signals _core _module _o . s = t ;
i . n = t ;
if ( 32 & signals _core _module _o . f ) i . S ( t ) ;
return t ;
} else if ( - 1 === t . i ) {
t . i = 0 ;
if ( void 0 !== t . n ) {
t . n . p = t . p ;
if ( void 0 !== t . p ) t . p . n = t . n ;
t . p = signals _core _module _o . s ;
t . n = void 0 ;
signals _core _module _o . s . n = t ;
signals _core _module _o . s = t ;
}
return t ;
}
}
}
function signals _core _module _d ( i ) {
this . v = i ;
this . i = 0 ;
this . n = void 0 ;
this . t = void 0 ;
}
signals _core _module _d . prototype . brand = signals _core _module _t ;
signals _core _module _d . prototype . h = function ( ) {
return ! 0 ;
} ;
signals _core _module _d . prototype . S = function ( i ) {
if ( this . t !== i && void 0 === i . e ) {
i . x = this . t ;
if ( void 0 !== this . t ) this . t . e = i ;
this . t = i ;
}
} ;
signals _core _module _d . prototype . U = function ( i ) {
if ( void 0 !== this . t ) {
var t = i . e ,
r = i . x ;
if ( void 0 !== t ) {
t . x = r ;
i . e = void 0 ;
}
if ( void 0 !== r ) {
r . e = t ;
i . x = void 0 ;
}
if ( i === this . t ) this . t = r ;
}
} ;
signals _core _module _d . prototype . subscribe = function ( i ) {
var t = this ;
return signals _core _module _O ( function ( ) {
var r = t . value ,
n = 32 & this . f ;
this . f &= - 33 ;
try {
i ( r ) ;
} finally {
this . f |= n ;
}
} ) ;
} ;
signals _core _module _d . prototype . valueOf = function ( ) {
return this . value ;
} ;
signals _core _module _d . prototype . toString = function ( ) {
return this . value + "" ;
} ;
signals _core _module _d . prototype . toJSON = function ( ) {
return this . value ;
} ;
signals _core _module _d . prototype . peek = function ( ) {
return this . v ;
} ;
Object . defineProperty ( signals _core _module _d . prototype , "value" , {
get : function ( ) {
var i = signals _core _module _c ( this ) ;
if ( void 0 !== i ) i . i = this . i ;
return this . v ;
} ,
set : function ( t ) {
if ( signals _core _module _o instanceof signals _core _module _ ) ! function ( ) {
throw new Error ( "Computed cannot have side-effects" ) ;
} ( ) ;
if ( t !== this . v ) {
if ( signals _core _module _e > 100 ) signals _core _module _i ( ) ;
this . v = t ;
this . i ++ ;
signals _core _module _u ++ ;
signals _core _module _v ++ ;
try {
for ( var n = this . t ; void 0 !== n ; n = n . x ) n . t . N ( ) ;
} finally {
signals _core _module _r ( ) ;
}
}
}
} ) ;
function signals _core _module _a ( i ) {
return new signals _core _module _d ( i ) ;
}
function signals _core _module _l ( i ) {
for ( var t = i . s ; void 0 !== t ; t = t . n ) if ( t . S . i !== t . i || ! t . S . h ( ) || t . S . i !== t . i ) return ! 0 ;
return ! 1 ;
}
function signals _core _module _y ( i ) {
for ( var t = i . s ; void 0 !== t ; t = t . n ) {
var r = t . S . n ;
if ( void 0 !== r ) t . r = r ;
t . S . n = t ;
t . i = - 1 ;
if ( void 0 === t . n ) {
i . s = t ;
break ;
}
}
}
function signals _core _module _w ( i ) {
var t = i . s ,
r = void 0 ;
while ( void 0 !== t ) {
var n = t . p ;
if ( - 1 === t . i ) {
t . S . U ( t ) ;
if ( void 0 !== n ) n . n = t . n ;
if ( void 0 !== t . n ) t . n . p = n ;
} else r = t ;
t . S . n = t . r ;
if ( void 0 !== t . r ) t . r = void 0 ;
t = n ;
}
i . s = r ;
}
function signals _core _module _ ( i ) {
signals _core _module _d . call ( this , void 0 ) ;
this . x = i ;
this . s = void 0 ;
this . g = signals _core _module _u - 1 ;
this . f = 4 ;
}
( signals _core _module _ . prototype = new signals _core _module _d ( ) ) . h = function ( ) {
this . f &= - 3 ;
if ( 1 & this . f ) return ! 1 ;
if ( 32 == ( 36 & this . f ) ) return ! 0 ;
this . f &= - 5 ;
if ( this . g === signals _core _module _u ) return ! 0 ;
this . g = signals _core _module _u ;
this . f |= 1 ;
if ( this . i > 0 && ! signals _core _module _l ( this ) ) {
this . f &= - 2 ;
return ! 0 ;
}
var i = signals _core _module _o ;
try {
signals _core _module _y ( this ) ;
signals _core _module _o = this ;
var t = this . x ( ) ;
if ( 16 & this . f || this . v !== t || 0 === this . i ) {
this . v = t ;
this . f &= - 17 ;
this . i ++ ;
}
} catch ( i ) {
this . v = i ;
this . f |= 16 ;
this . i ++ ;
}
signals _core _module _o = i ;
signals _core _module _w ( this ) ;
this . f &= - 2 ;
return ! 0 ;
} ;
signals _core _module _ . prototype . S = function ( i ) {
if ( void 0 === this . t ) {
this . f |= 36 ;
for ( var t = this . s ; void 0 !== t ; t = t . n ) t . S . S ( t ) ;
}
signals _core _module _d . prototype . S . call ( this , i ) ;
} ;
signals _core _module _ . prototype . U = function ( i ) {
if ( void 0 !== this . t ) {
signals _core _module _d . prototype . U . call ( this , i ) ;
if ( void 0 === this . t ) {
this . f &= - 33 ;
for ( var t = this . s ; void 0 !== t ; t = t . n ) t . S . U ( t ) ;
}
}
} ;
signals _core _module _ . prototype . N = function ( ) {
if ( ! ( 2 & this . f ) ) {
this . f |= 6 ;
for ( var i = this . t ; void 0 !== i ; i = i . x ) i . t . N ( ) ;
}
} ;
signals _core _module _ . prototype . peek = function ( ) {
if ( ! this . h ( ) ) signals _core _module _i ( ) ;
if ( 16 & this . f ) throw this . v ;
return this . v ;
} ;
Object . defineProperty ( signals _core _module _ . prototype , "value" , {
get : function ( ) {
if ( 1 & this . f ) signals _core _module _i ( ) ;
var t = signals _core _module _c ( this ) ;
this . h ( ) ;
if ( void 0 !== t ) t . i = this . i ;
if ( 16 & this . f ) throw this . v ;
return this . v ;
}
} ) ;
function signals _core _module _p ( i ) {
return new signals _core _module _ ( i ) ;
}
function signals _core _module _g ( i ) {
var t = i . u ;
i . u = void 0 ;
if ( "function" == typeof t ) {
signals _core _module _v ++ ;
var n = signals _core _module _o ;
signals _core _module _o = void 0 ;
try {
t ( ) ;
} catch ( t ) {
i . f &= - 2 ;
i . f |= 8 ;
signals _core _module _b ( i ) ;
throw t ;
} finally {
signals _core _module _o = n ;
signals _core _module _r ( ) ;
}
}
}
function signals _core _module _b ( i ) {
for ( var t = i . s ; void 0 !== t ; t = t . n ) t . S . U ( t ) ;
i . x = void 0 ;
i . s = void 0 ;
signals _core _module _g ( i ) ;
}
function signals _core _module _x ( i ) {
if ( signals _core _module _o !== this ) throw new Error ( "Out-of-order effect" ) ;
signals _core _module _w ( this ) ;
signals _core _module _o = i ;
this . f &= - 2 ;
if ( 8 & this . f ) signals _core _module _b ( this ) ;
signals _core _module _r ( ) ;
}
function signals _core _module _E ( i ) {
this . x = i ;
this . u = void 0 ;
this . s = void 0 ;
this . o = void 0 ;
this . f = 32 ;
}
signals _core _module _E . prototype . c = function ( ) {
var i = this . S ( ) ;
try {
if ( 8 & this . f ) return ;
if ( void 0 === this . x ) return ;
var t = this . x ( ) ;
if ( "function" == typeof t ) this . u = t ;
} finally {
i ( ) ;
}
} ;
signals _core _module _E . prototype . S = function ( ) {
if ( 1 & this . f ) signals _core _module _i ( ) ;
this . f |= 1 ;
this . f &= - 9 ;
signals _core _module _g ( this ) ;
signals _core _module _y ( this ) ;
signals _core _module _v ++ ;
var t = signals _core _module _o ;
signals _core _module _o = this ;
return signals _core _module _x . bind ( this , t ) ;
} ;
signals _core _module _E . prototype . N = function ( ) {
if ( ! ( 2 & this . f ) ) {
this . f |= 2 ;
this . o = signals _core _module _f ;
signals _core _module _f = this ;
}
} ;
signals _core _module _E . prototype . d = function ( ) {
this . f |= 8 ;
if ( ! ( 1 & this . f ) ) signals _core _module _b ( this ) ;
} ;
function signals _core _module _O ( i ) {
var t = new signals _core _module _E ( i ) ;
try {
t . c ( ) ;
} catch ( i ) {
t . d ( ) ;
throw i ;
}
return t . d . bind ( t ) ;
}
; // CONCATENATED MODULE: ./node_modules/@preact/signals/dist/signals.module.js
var signals _module _v , signals _module _s ;
function signals _module _l ( n , i ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
l [ n ] = i . bind ( null , l [ n ] || function ( ) { } ) ;
2023-09-26 10:23:26 -04:00
}
function signals _module _d ( n ) {
if ( signals _module _s ) signals _module _s ( ) ;
signals _module _s = n && n . S ( ) ;
}
function signals _module _p ( n ) {
var r = this ,
f = n . data ,
o = useSignal ( f ) ;
o . value = f ;
var e = hooks _module _F ( function ( ) {
var n = r . _ _v ;
while ( n = n . _ _ ) if ( n . _ _c ) {
n . _ _c . _ _$f |= 4 ;
break ;
}
r . _ _$u . c = function ( ) {
var n ;
if ( ! preact _module _t ( e . peek ( ) ) && 3 === ( null == ( n = r . base ) ? void 0 : n . nodeType ) ) r . base . data = e . peek ( ) ; else {
r . _ _$f |= 1 ;
r . setState ( { } ) ;
}
} ;
return signals _core _module _p ( function ( ) {
var n = o . value . value ;
return 0 === n ? 0 : ! 0 === n ? "" : n || "" ;
} ) ;
} , [ ] ) ;
return e . value ;
}
signals _module _p . displayName = "_st" ;
Object . defineProperties ( signals _core _module _d . prototype , {
constructor : {
configurable : ! 0 ,
value : void 0
} ,
type : {
configurable : ! 0 ,
value : signals _module _p
} ,
props : {
configurable : ! 0 ,
get : function ( ) {
return {
data : this
} ;
}
} ,
_ _b : {
configurable : ! 0 ,
value : 1
}
} ) ;
signals _module _l ( "__b" , function ( n , r ) {
if ( "string" == typeof r . type ) {
var i ,
t = r . props ;
for ( var f in t ) if ( "children" !== f ) {
var o = t [ f ] ;
if ( o instanceof signals _core _module _d ) {
if ( ! i ) r . _ _np = i = { } ;
i [ f ] = o ;
t [ f ] = o . peek ( ) ;
}
}
}
n ( r ) ;
} ) ;
signals _module _l ( "__r" , function ( n , r ) {
signals _module _d ( ) ;
var i ,
t = r . _ _c ;
if ( t ) {
t . _ _$f &= - 2 ;
if ( void 0 === ( i = t . _ _$u ) ) t . _ _$u = i = function ( n ) {
var r ;
signals _core _module _O ( function ( ) {
r = this ;
} ) ;
r . c = function ( ) {
t . _ _$f |= 1 ;
t . setState ( { } ) ;
} ;
return r ;
} ( ) ;
}
signals _module _v = t ;
signals _module _d ( i ) ;
n ( r ) ;
} ) ;
signals _module _l ( "__e" , function ( n , r , i , t ) {
signals _module _d ( ) ;
signals _module _v = void 0 ;
n ( r , i , t ) ;
} ) ;
signals _module _l ( "diffed" , function ( n , r ) {
signals _module _d ( ) ;
signals _module _v = void 0 ;
var i ;
if ( "string" == typeof r . type && ( i = r . _ _e ) ) {
var t = r . _ _np ,
f = r . props ;
if ( t ) {
var o = i . U ;
if ( o ) for ( var e in o ) {
var u = o [ e ] ;
if ( void 0 !== u && ! ( e in t ) ) {
u . d ( ) ;
o [ e ] = void 0 ;
}
} else i . U = o = { } ;
for ( var a in t ) {
var c = o [ a ] ,
s = t [ a ] ;
if ( void 0 === c ) {
c = signals _module _ ( i , a , s , f ) ;
o [ a ] = c ;
} else c . o ( s , f ) ;
}
}
}
n ( r ) ;
} ) ;
function signals _module _ ( n , r , i , t ) {
var f = r in n && void 0 === n . ownerSVGElement ,
o = signals _core _module _a ( i ) ;
return {
o : function ( n , r ) {
o . value = n ;
t = r ;
} ,
d : signals _core _module _O ( function ( ) {
var i = o . value . value ;
if ( t [ r ] !== i ) {
t [ r ] = i ;
if ( f ) n [ r ] = i ; else if ( i ) n . setAttribute ( r , i ) ; else n . removeAttribute ( r ) ;
}
} )
} ;
}
signals _module _l ( "unmount" , function ( n , r ) {
if ( "string" == typeof r . type ) {
var i = r . _ _e ;
if ( i ) {
var t = i . U ;
if ( t ) {
i . U = void 0 ;
for ( var f in t ) {
var o = t [ f ] ;
if ( o ) o . d ( ) ;
}
}
}
} else {
var e = r . _ _c ;
if ( e ) {
var u = e . _ _$u ;
if ( u ) {
e . _ _$u = void 0 ;
u . d ( ) ;
}
}
}
n ( r ) ;
} ) ;
signals _module _l ( "__h" , function ( n , r , i , t ) {
if ( t < 3 || 9 === t ) r . _ _$f |= 2 ;
n ( r , i , t ) ;
} ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
b . prototype . shouldComponentUpdate = function ( n , r ) {
2023-09-26 10:23:26 -04:00
var i = this . _ _$u ;
if ( ! ( i && void 0 !== i . s || 4 & this . _ _$f ) ) return ! 0 ;
if ( 3 & this . _ _$f ) return ! 0 ;
for ( var t in r ) return ! 0 ;
for ( var f in n ) if ( "__source" !== f && n [ f ] !== this . props [ f ] ) return ! 0 ;
for ( var o in this . props ) if ( ! ( o in n ) ) return ! 0 ;
return ! 1 ;
} ;
function useSignal ( n ) {
return hooks _module _F ( function ( ) {
return signals _core _module _a ( n ) ;
} , [ ] ) ;
}
function useComputed ( n ) {
var r = f ( n ) ;
r . current = n ;
signals _module _v . _ _$f |= 4 ;
return t ( function ( ) {
return u ( function ( ) {
return r . current ( ) ;
} ) ;
} , [ ] ) ;
}
function useSignalEffect ( n ) {
var r = f ( n ) ;
r . current = n ;
o ( function ( ) {
return c ( function ( ) {
return r . current ( ) ;
} ) ;
} , [ ] ) ;
}
; // CONCATENATED MODULE: ./node_modules/deepsignal/dist/deepsignal.module.js
var deepsignal _module _a = new WeakMap ( ) ,
deepsignal _module _o = new WeakMap ( ) ,
deepsignal _module _s = new WeakMap ( ) ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _u = new WeakSet ( ) ,
deepsignal _module _c = new WeakMap ( ) ,
2023-09-26 10:23:26 -04:00
deepsignal _module _i = /^\$/ ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _f = Object . getOwnPropertyDescriptor ,
deepsignal _module _l = ! 1 ,
deepsignal _module _g = function ( e ) {
if ( ! R ( e ) ) throw new Error ( "This object can't be observed." ) ;
return deepsignal _module _o . has ( e ) || deepsignal _module _o . set ( e , deepsignal _module _h ( e , deepsignal _module _w ) ) , deepsignal _module _o . get ( e ) ;
2023-09-26 10:23:26 -04:00
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _p = function ( e , t ) {
deepsignal _module _l = ! 0 ;
2023-09-26 10:23:26 -04:00
var r = e [ t ] ;
try {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _l = ! 1 ;
2023-09-26 10:23:26 -04:00
} catch ( e ) { }
return r ;
} ,
deepsignal _module _h = function ( e , t ) {
var r = new Proxy ( e , t ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return deepsignal _module _u . add ( r ) , r ;
2023-09-26 10:23:26 -04:00
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _y = function ( ) {
2023-09-26 10:23:26 -04:00
throw new Error ( "Don't mutate the signals directly." ) ;
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _v = function ( e ) {
return function ( t , u , c ) {
var g ;
if ( deepsignal _module _l ) return Reflect . get ( t , u , c ) ;
var p = e || "$" === u [ 0 ] ;
if ( ! e && p && Array . isArray ( t ) ) {
if ( "$" === u ) return deepsignal _module _s . has ( t ) || deepsignal _module _s . set ( t , deepsignal _module _h ( t , deepsignal _module _m ) ) , deepsignal _module _s . get ( t ) ;
p = "$length" === u ;
2023-09-26 10:23:26 -04:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _a . has ( c ) || deepsignal _module _a . set ( c , new Map ( ) ) ;
var y = deepsignal _module _a . get ( c ) ,
v = p ? u . replace ( deepsignal _module _i , "" ) : u ;
if ( y . has ( v ) || "function" != typeof ( null == ( g = deepsignal _module _f ( t , v ) ) ? void 0 : g . get ) ) {
var d = Reflect . get ( t , v , c ) ;
if ( p && "function" == typeof d ) return ;
if ( "symbol" == typeof v && deepsignal _module _b . has ( v ) ) return d ;
y . has ( v ) || ( R ( d ) && ( deepsignal _module _o . has ( d ) || deepsignal _module _o . set ( d , deepsignal _module _h ( d , deepsignal _module _w ) ) , d = deepsignal _module _o . get ( d ) ) , y . set ( v , signals _core _module _a ( d ) ) ) ;
} else y . set ( v , signals _core _module _p ( function ( ) {
return Reflect . get ( t , v , c ) ;
2023-09-26 10:23:26 -04:00
} ) ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return p ? y . get ( v ) : y . get ( v ) . value ;
2023-09-26 10:23:26 -04:00
} ;
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _w = {
get : deepsignal _module _v ( ! 1 ) ,
set : function ( e , n , s , u ) {
var l ;
if ( "function" == typeof ( null == ( l = deepsignal _module _f ( e , n ) ) ? void 0 : l . set ) ) return Reflect . set ( e , n , s , u ) ;
deepsignal _module _a . has ( u ) || deepsignal _module _a . set ( u , new Map ( ) ) ;
var g = deepsignal _module _a . get ( u ) ;
2023-09-26 10:23:26 -04:00
if ( "$" === n [ 0 ] ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
s instanceof signals _core _module _d || deepsignal _module _y ( ) ;
var p = n . replace ( deepsignal _module _i , "" ) ;
return g . set ( p , s ) , Reflect . set ( e , p , s . peek ( ) , u ) ;
2023-09-26 10:23:26 -04:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
var v = s ;
R ( s ) && ( deepsignal _module _o . has ( s ) || deepsignal _module _o . set ( s , deepsignal _module _h ( s , deepsignal _module _w ) ) , v = deepsignal _module _o . get ( s ) ) ;
var m = ! ( n in e ) ,
b = Reflect . set ( e , n , s , u ) ;
return g . has ( n ) ? g . get ( n ) . value = v : g . set ( n , signals _core _module _a ( v ) ) , m && deepsignal _module _c . has ( e ) && deepsignal _module _c . get ( e ) . value ++ , Array . isArray ( e ) && g . has ( "length" ) && ( g . get ( "length" ) . value = e . length ) , b ;
2023-09-26 10:23:26 -04:00
} ,
deleteProperty : function ( e , t ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
"$" === t [ 0 ] && deepsignal _module _y ( ) ;
2023-09-26 10:23:26 -04:00
var r = deepsignal _module _a . get ( deepsignal _module _o . get ( e ) ) ,
n = Reflect . deleteProperty ( e , t ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return r && r . has ( t ) && ( r . get ( t ) . value = void 0 ) , deepsignal _module _c . has ( e ) && deepsignal _module _c . get ( e ) . value ++ , n ;
2023-09-26 10:23:26 -04:00
} ,
ownKeys : function ( e ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return deepsignal _module _c . has ( e ) || deepsignal _module _c . set ( e , signals _core _module _a ( 0 ) ) , deepsignal _module _c . _ = deepsignal _module _c . get ( e ) . value , Reflect . ownKeys ( e ) ;
2023-09-26 10:23:26 -04:00
}
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _m = {
get : deepsignal _module _v ( ! 0 ) ,
set : deepsignal _module _y ,
deleteProperty : deepsignal _module _y
2023-09-26 10:23:26 -04:00
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _b = new Set ( Object . getOwnPropertyNames ( Symbol ) . map ( function ( e ) {
2023-09-26 10:23:26 -04:00
return Symbol [ e ] ;
} ) . filter ( function ( e ) {
return "symbol" == typeof e ;
} ) ) ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
deepsignal _module _d = new Set ( [ Object , Array ] ) ,
R = function ( e ) {
return "object" == typeof e && null !== e && ( ! ( "function" == typeof e . constructor && e . constructor . name in globalThis && globalThis [ e . constructor . name ] === e . constructor ) || deepsignal _module _d . has ( e . constructor ) ) && ! deepsignal _module _u . has ( e ) ;
2023-09-26 10:23:26 -04:00
} ,
deepsignal _module _k = function ( t ) {
return e ( function ( ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return deepsignal _module _g ( t ) ;
2023-09-26 10:23:26 -04:00
} , [ ] ) ;
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/portals.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
/ * *
* @ param { import ( '../../src/index' ) . RenderableProps < { context : any } > } props
* /
function ContextProvider ( props ) {
this . getChildContext = ( ) => props . context ;
return props . children ;
}
/ * *
* Portal component
*
* @ this { import ( './internal' ) . Component }
* @ param { object | null | undefined } props
*
* TODO : use createRoot ( ) instead of fake root
* /
function Portal ( props ) {
const _this = this ;
const container = props . _container ;
_this . componentWillUnmount = function ( ) {
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
q ( null , _this . _temp ) ;
2023-09-26 10:23:26 -04:00
_this . _temp = null ;
_this . _container = null ;
} ;
// When we change container we should clear our old container and
// indicate a new mount.
if ( _this . _container && _this . _container !== container ) {
_this . componentWillUnmount ( ) ;
}
// When props.vnode is undefined/false/null we are dealing with some kind of
// conditional vnode. This should not trigger a render.
if ( props . _vnode ) {
if ( ! _this . _temp ) {
_this . _container = container ;
// Create a fake DOM parent node that manages a subset of `container`'s children:
_this . _temp = {
nodeType : 1 ,
parentNode : container ,
childNodes : [ ] ,
appendChild ( child ) {
this . childNodes . push ( child ) ;
_this . _container . appendChild ( child ) ;
} ,
insertBefore ( child ) {
this . childNodes . push ( child ) ;
_this . _container . appendChild ( child ) ;
} ,
removeChild ( child ) {
this . childNodes . splice (
// eslint-disable-next-line no-bitwise
this . childNodes . indexOf ( child ) >>> 1 , 1 ) ;
_this . _container . removeChild ( child ) ;
}
} ;
}
// Render our wrapping element into temp.
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
q ( y ( ContextProvider , {
2023-09-26 10:23:26 -04:00
context : _this . context
} , props . _vnode ) , _this . _temp ) ;
}
// When we come from a conditional render, on a mounted
// portal we should clear the DOM.
else if ( _this . _temp ) {
_this . componentWillUnmount ( ) ;
}
}
/ * *
* Create a ` Portal ` to continue rendering the vnode tree at a different DOM node
*
* @ param { import ( './internal' ) . VNode } vnode The vnode to render
* @ param { import ( './internal' ) . PreactElement } container The DOM node to continue rendering in to .
* /
function createPortal ( vnode , container ) {
const el = y ( Portal , {
_vnode : vnode ,
_container : container
} ) ;
el . containerInfo = container ;
return el ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/store.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Internal dependencies
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const isObject = item => ! ! item && typeof item === 'object' && ! Array . isArray ( item ) ;
2023-09-26 10:23:26 -04:00
const deepMerge = ( target , source ) => {
if ( isObject ( target ) && isObject ( source ) ) {
for ( const key in source ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const getter = Object . getOwnPropertyDescriptor ( source , key ) ? . get ;
if ( typeof getter === 'function' ) {
Object . defineProperty ( target , key , {
get : getter
} ) ;
} else if ( isObject ( source [ key ] ) ) {
2023-09-26 10:23:26 -04:00
if ( ! target [ key ] ) Object . assign ( target , {
[ key ] : { }
} ) ;
deepMerge ( target [ key ] , source [ key ] ) ;
} else {
Object . assign ( target , {
[ key ] : source [ key ]
} ) ;
}
}
}
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const parseInitialState = ( ) => {
const storeTag = document . querySelector ( ` script[type="application/json"]#wp-interactivity-data ` ) ;
if ( ! storeTag ? . textContent ) return { } ;
2023-09-26 10:23:26 -04:00
try {
const {
state
} = JSON . parse ( storeTag . textContent ) ;
if ( isObject ( state ) ) return state ;
throw Error ( 'Parsed state is not an object' ) ;
} catch ( e ) {
// eslint-disable-next-line no-console
console . log ( e ) ;
}
return { } ;
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const stores = new Map ( ) ;
const rawStores = new Map ( ) ;
const storeLocks = new Map ( ) ;
const objToProxy = new WeakMap ( ) ;
const proxyToNs = new WeakMap ( ) ;
const scopeToGetters = new WeakMap ( ) ;
const proxify = ( obj , ns ) => {
if ( ! objToProxy . has ( obj ) ) {
const proxy = new Proxy ( obj , handlers ) ;
objToProxy . set ( obj , proxy ) ;
proxyToNs . set ( proxy , ns ) ;
}
return objToProxy . get ( obj ) ;
2023-09-26 10:23:26 -04:00
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const handlers = {
get : ( target , key , receiver ) => {
const ns = proxyToNs . get ( receiver ) ;
// Check if the property is a getter and we are inside an scope. If that is
// the case, we clone the getter to avoid overwriting the scoped
// dependencies of the computed each time that getter runs.
const getter = Object . getOwnPropertyDescriptor ( target , key ) ? . get ;
if ( getter ) {
const scope = getScope ( ) ;
if ( scope ) {
const getters = scopeToGetters . get ( scope ) || scopeToGetters . set ( scope , new Map ( ) ) . get ( scope ) ;
if ( ! getters . has ( getter ) ) {
getters . set ( getter , signals _core _module _p ( ( ) => {
setNamespace ( ns ) ;
setScope ( scope ) ;
try {
return getter . call ( target ) ;
} finally {
resetScope ( ) ;
resetNamespace ( ) ;
}
} ) ) ;
}
return getters . get ( getter ) . value ;
}
}
const result = Reflect . get ( target , key , receiver ) ;
// Check if the proxy is the store root and no key with that name exist. In
// that case, return an empty object for the requested key.
if ( typeof result === 'undefined' && receiver === stores . get ( ns ) ) {
const obj = { } ;
Reflect . set ( target , key , obj , receiver ) ;
return proxify ( obj , ns ) ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Check if the property is a generator. If it is, we turn it into an
// asynchronous function where we restore the default namespace and scope
// each time it awaits/yields.
if ( result ? . constructor ? . name === 'GeneratorFunction' ) {
return async ( ... args ) => {
const scope = getScope ( ) ;
const gen = result ( ... args ) ;
let value ;
let it ;
while ( true ) {
setNamespace ( ns ) ;
setScope ( scope ) ;
try {
it = gen . next ( value ) ;
} finally {
resetScope ( ) ;
resetNamespace ( ) ;
}
try {
value = await it . value ;
} catch ( e ) {
gen . throw ( e ) ;
}
if ( it . done ) break ;
}
return value ;
} ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Check if the property is a synchronous function. If it is, set the
// default namespace. Synchronous functions always run in the proper scope,
// which is set by the Directives component.
if ( typeof result === 'function' ) {
return ( ... args ) => {
setNamespace ( ns ) ;
try {
return result ( ... args ) ;
} finally {
resetNamespace ( ) ;
}
} ;
}
// Check if the property is an object. If it is, proxyify it.
if ( isObject ( result ) ) return proxify ( result , ns ) ;
return result ;
}
} ;
const universalUnlock = 'I acknowledge that using a private store means my plugin will inevitably break on the next store release.' ;
2023-09-26 10:23:26 -04:00
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Extends the Interactivity API global store adding the passed properties to
* the given namespace . It also returns stable references to the namespace
* content .
2023-09-26 10:23:26 -04:00
*
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* These props typically consist of ` state ` , which is the reactive part of the
* store ― which means that any directive referencing a state property will be
* re - rendered anytime it changes ― and function properties like ` actions ` and
* ` callbacks ` , mostly used for event handlers . These props can then be
* referenced by any directive to make the HTML interactive .
2023-09-26 10:23:26 -04:00
*
* @ example
* ` ` ` js
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* const { state } = store ( 'counter' , {
2023-09-26 10:23:26 -04:00
* state : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* value : 0 ,
* get double ( ) { return state . value * 2 ; } ,
2023-09-26 10:23:26 -04:00
* } ,
* actions : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* increment ( ) {
* state . value += 1 ;
2023-09-26 10:23:26 -04:00
* } ,
* } ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* } ) ;
2023-09-26 10:23:26 -04:00
* ` ` `
*
* The code from the example above allows blocks to subscribe and interact with
* the store by using directives in the HTML , e . g . :
*
* ` ` ` html
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* < div data - wp - interactive = '{ "namespace": "counter" }' >
2023-09-26 10:23:26 -04:00
* < button
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* data - wp - text = "state.double"
* data - wp - on -- click = "actions.increment"
2023-09-26 10:23:26 -04:00
* >
* 0
* < / b u t t o n >
* < / d i v >
* ` ` `
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* @ param namespace The store namespace to interact with .
* @ param storePart Properties to add to the store namespace .
* @ param options Options for the given namespace .
2023-09-26 10:23:26 -04:00
*
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* @ return A reference to the namespace content .
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
function store ( namespace , {
state = { } ,
2023-09-26 10:23:26 -04:00
... block
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} = { } , {
lock = false
} = { } ) {
if ( ! stores . has ( namespace ) ) {
// Lock the store if the passed lock is different from the universal
// unlock. Once the lock is set (either false, true, or a given string),
// it cannot change.
if ( lock !== universalUnlock ) {
storeLocks . set ( namespace , lock ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const rawStore = {
state : deepsignal _module _g ( state ) ,
... block
} ;
const proxiedStore = new Proxy ( rawStore , handlers ) ;
rawStores . set ( namespace , rawStore ) ;
stores . set ( namespace , proxiedStore ) ;
proxyToNs . set ( proxiedStore , namespace ) ;
} else {
// Lock the store if it wasn't locked yet and the passed lock is
// different from the universal unlock. If no lock is given, the store
// will be public and won't accept any lock from now on.
if ( lock !== universalUnlock && ! storeLocks . has ( namespace ) ) {
storeLocks . set ( namespace , lock ) ;
} else {
const storeLock = storeLocks . get ( namespace ) ;
const isLockValid = lock === universalUnlock || lock !== true && lock === storeLock ;
if ( ! isLockValid ) {
if ( ! storeLock ) {
throw Error ( 'Cannot lock a public store' ) ;
} else {
throw Error ( 'Cannot unlock a private store with an invalid lock code' ) ;
}
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
}
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const target = rawStores . get ( namespace ) ;
deepMerge ( target , block ) ;
deepMerge ( target . state , state ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return stores . get ( namespace ) ;
2023-09-26 10:23:26 -04:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Parse and populate the initial state.
Object . entries ( parseInitialState ( ) ) . forEach ( ( [ namespace , state ] ) => {
store ( namespace , {
state
} ) ;
} ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/hooks.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
/ * *
* Internal dependencies
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Main context.
const context = F ( { } ) ;
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Wrap the element props to prevent modifications.
const immutableMap = new WeakMap ( ) ;
const immutableError = ( ) => {
throw new Error ( 'Please use `data-wp-bind` to modify the attributes of an element.' ) ;
} ;
const immutableHandlers = {
get ( target , key , receiver ) {
const value = Reflect . get ( target , key , receiver ) ;
return ! ! value && typeof value === 'object' ? deepImmutable ( value ) : value ;
} ,
set : immutableError ,
deleteProperty : immutableError
} ;
const deepImmutable = target => {
if ( ! immutableMap . has ( target ) ) immutableMap . set ( target , new Proxy ( target , immutableHandlers ) ) ;
return immutableMap . get ( target ) ;
} ;
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Store stacks for the current scope and the default namespaces and export APIs
// to interact with them.
const scopeStack = [ ] ;
const namespaceStack = [ ] ;
2023-09-26 10:23:26 -04:00
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Retrieves the context inherited by the element evaluating a function from the
* store . The returned value depends on the element and the namespace where the
* function calling ` getContext() ` exists .
*
* @ param namespace Store namespace . By default , the namespace where the calling
* function exists is used .
* @ return The context content .
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const getContext = namespace => getScope ( ) ? . context [ namespace || namespaceStack . slice ( - 1 ) [ 0 ] ] ;
2023-09-26 10:23:26 -04:00
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Retrieves a representation of the element where a function from the store
* is being evalutated . Such representation is read - only , and contains a
* reference to the DOM element , its props and a local reactive state .
*
* @ return Element representation .
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const getElement = ( ) => {
if ( ! getScope ( ) ) {
throw Error ( 'Cannot call `getElement()` outside getters and actions used by directives.' ) ;
}
const {
ref ,
attributes
} = getScope ( ) ;
return Object . freeze ( {
ref : ref . current ,
attributes : deepImmutable ( attributes )
} ) ;
} ;
const getScope = ( ) => scopeStack . slice ( - 1 ) [ 0 ] ;
const setScope = scope => {
scopeStack . push ( scope ) ;
} ;
const resetScope = ( ) => {
scopeStack . pop ( ) ;
} ;
const getNamespace = ( ) => namespaceStack . slice ( - 1 ) [ 0 ] ;
const setNamespace = namespace => {
namespaceStack . push ( namespace ) ;
} ;
const resetNamespace = ( ) => {
namespaceStack . pop ( ) ;
} ;
2023-09-26 10:23:26 -04:00
// WordPress Directives.
const directiveCallbacks = { } ;
const directivePriorities = { } ;
/ * *
* Register a new directive type in the Interactivity API runtime .
*
* @ example
* ` ` ` js
* directive (
* 'alert' , // Name without the `data-wp-` prefix.
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* ( { directives : { alert } , element , evaluate } ) => {
* const defaultEntry = alert . find ( entry => entry . suffix === 'default' ) ;
* element . props . onclick = ( ) => { alert ( evaluate ( defaultEntry ) ) ; }
2023-09-26 10:23:26 -04:00
* }
* )
* ` ` `
*
* The previous code registers a custom directive type for displaying an alert
* message whenever an element using it is clicked . The message text is obtained
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* from the store under the inherited namespace , using ` evaluate ` .
2023-09-26 10:23:26 -04:00
*
* When the HTML is processed by the Interactivity API , any element containing
* the ` data-wp-alert ` directive will have the ` onclick ` event handler , e . g . ,
*
* ` ` ` html
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* < div data - wp - interactive = '{ "namespace": "messages" }' >
* < button data - wp - alert = "state.alert" > Click me ! < / b u t t o n >
* < / d i v >
2023-09-26 10:23:26 -04:00
* ` ` `
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Note that , in the previous example , the directive callback gets the path
* value ( ` state.alert ` ) from the directive entry with suffix ` default ` . A
* custom suffix can also be specified by appending ` -- ` to the directive
* attribute , followed by the suffix , like in the following HTML snippet :
2023-09-26 10:23:26 -04:00
*
* ` ` ` html
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* < div data - wp - interactive = '{ "namespace": "myblock" }' >
* < button
* data - wp - color -- text = "state.text"
* data - wp - color -- background = "state.background"
* > Click me ! < / b u t t o n >
* < / d i v >
2023-09-26 10:23:26 -04:00
* ` ` `
*
* This could be an hypothetical implementation of the custom directive used in
* the snippet above .
*
* @ example
* ` ` ` js
* directive (
* 'color' , // Name without prefix and suffix.
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* ( { directives : { color } , ref , evaluate } ) =>
* colors . forEach ( ( color ) => {
* if ( color . suffix = 'text' ) {
* ref . style . setProperty (
* 'color' ,
* evaluate ( color . text )
* ) ;
* }
* if ( color . suffix = 'background' ) {
* ref . style . setProperty (
* 'background-color' ,
* evaluate ( color . background )
* ) ;
* }
* } ) ;
2023-09-26 10:23:26 -04:00
* }
* )
* ` ` `
*
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* @ param name Directive name , without the ` data-wp- ` prefix .
* @ param callback Function that runs the directive logic .
* @ param options Options object .
* @ param options . priority Option to control the directive execution order . The
* lesser , the highest priority . Default is ` 10 ` .
2023-09-26 10:23:26 -04:00
* /
const directive = ( name , callback , {
priority = 10
} = { } ) => {
directiveCallbacks [ name ] = callback ;
directivePriorities [ name ] = priority ;
} ;
// Resolve the path to some property of the store object.
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const resolve = ( path , namespace ) => {
2023-09-26 10:23:26 -04:00
let current = {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
... stores . get ( namespace ) ,
context : getScope ( ) . context [ namespace ]
2023-09-26 10:23:26 -04:00
} ;
path . split ( '.' ) . forEach ( p => current = current [ p ] ) ;
return current ;
} ;
// Generate the evaluate function.
const getEvaluate = ( {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
scope
} ) => ( entry , ... args ) => {
let {
value : path ,
namespace
} = entry ;
if ( typeof path !== 'string' ) {
throw new Error ( 'The `value` prop should be a string path' ) ;
}
2023-09-26 10:23:26 -04:00
// If path starts with !, remove it and save a flag.
const hasNegationOperator = path [ 0 ] === '!' && ! ! ( path = path . slice ( 1 ) ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
setScope ( scope ) ;
const value = resolve ( path , namespace ) ;
const result = typeof value === 'function' ? value ( ... args ) : value ;
resetScope ( ) ;
return hasNegationOperator ? ! result : result ;
2023-09-26 10:23:26 -04:00
} ;
// Separate directives by priority. The resulting array contains objects
// of directives grouped by same priority, and sorted in ascending order.
const getPriorityLevels = directives => {
const byPriority = Object . keys ( directives ) . reduce ( ( obj , name ) => {
if ( directiveCallbacks [ name ] ) {
const priority = directivePriorities [ name ] ;
( obj [ priority ] = obj [ priority ] || [ ] ) . push ( name ) ;
}
return obj ;
} , { } ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return Object . entries ( byPriority ) . sort ( ( [ p1 ] , [ p2 ] ) => parseInt ( p1 ) - parseInt ( p2 ) ) . map ( ( [ , arr ] ) => arr ) ;
2023-09-26 10:23:26 -04:00
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Component that wraps each priority level of directives of an element.
2023-09-26 10:23:26 -04:00
const Directives = ( {
directives ,
priorityLevels : [ currentPriorityLevel , ... nextPriorityLevels ] ,
element ,
originalProps ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
previousScope
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Initialize the scope of this element. These scopes are different per each
// level because each level has a different context, but they share the same
// element ref, state and props.
const scope = hooks _module _ ( { } ) . current ;
scope . evaluate = hooks _module _T ( getEvaluate ( {
scope
2023-09-26 10:23:26 -04:00
} ) , [ ] ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
scope . context = hooks _module _q ( context ) ;
/* eslint-disable react-hooks/rules-of-hooks */
scope . ref = previousScope ? . ref || hooks _module _ ( null ) ;
/* eslint-enable react-hooks/rules-of-hooks */
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Create a fresh copy of the vnode element and add the props to the scope,
// named as attributes (HTML Attributes).
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
element = E ( element , {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
ref : scope . ref
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
scope . attributes = element . props ;
2023-09-26 10:23:26 -04:00
// Recursively render the wrapper for the next priority level.
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const children = nextPriorityLevels . length > 0 ? /*#__PURE__*/ ( 0 , react . createElement ) ( Directives , {
2023-09-26 10:23:26 -04:00
directives : directives ,
priorityLevels : nextPriorityLevels ,
element : element ,
originalProps : originalProps ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
previousScope : scope
2023-09-26 10:23:26 -04:00
} ) : element ;
const props = {
... originalProps ,
children
} ;
const directiveArgs = {
directives ,
props ,
element ,
context ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate : scope . evaluate
2023-09-26 10:23:26 -04:00
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
setScope ( scope ) ;
2023-09-26 10:23:26 -04:00
for ( const directiveName of currentPriorityLevel ) {
const wrapper = directiveCallbacks [ directiveName ] ? . ( directiveArgs ) ;
if ( wrapper !== undefined ) props . children = wrapper ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
resetScope ( ) ;
2023-09-26 10:23:26 -04:00
return props . children ;
} ;
// Preact Options Hook called each time a vnode is created.
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const old = l . vnode ;
l . vnode = vnode => {
2023-09-26 10:23:26 -04:00
if ( vnode . props . _ _directives ) {
const props = vnode . props ;
const directives = props . _ _directives ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( directives . key ) vnode . key = directives . key . find ( ( {
suffix
} ) => suffix === 'default' ) . value ;
2023-09-26 10:23:26 -04:00
delete props . _ _directives ;
const priorityLevels = getPriorityLevels ( directives ) ;
if ( priorityLevels . length > 0 ) {
vnode . props = {
directives ,
priorityLevels ,
originalProps : props ,
type : vnode . type ,
element : y ( vnode . type , props ) ,
top : true
} ;
vnode . type = Directives ;
}
}
if ( old ) old ( vnode ) ;
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/utils.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Internal dependencies
* /
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const afterNextFrame = callback => {
return new Promise ( resolve => {
const done = ( ) => {
clearTimeout ( timeout ) ;
window . cancelAnimationFrame ( raf ) ;
setTimeout ( ( ) => {
callback ( ) ;
resolve ( ) ;
} ) ;
} ;
const timeout = setTimeout ( done , 100 ) ;
const raf = window . requestAnimationFrame ( done ) ;
} ) ;
} ;
// Using the mangled properties:
// this.c: this._callback
// this.x: this._compute
// https://github.com/preactjs/signals/blob/main/mangle.json
function createFlusher ( compute , notify ) {
let flush ;
const dispose = signals _core _module _O ( function ( ) {
flush = this . c . bind ( this ) ;
this . x = compute ;
this . c = notify ;
return compute ( ) ;
} ) ;
return {
flush ,
dispose
} ;
}
// Version of `useSignalEffect` with a `useEffect`-like execution. This hook
// implementation comes from this PR, but we added short-cirtuiting to avoid
// infinite loops: https://github.com/preactjs/signals/pull/290
function utils _useSignalEffect ( callback ) {
2023-09-26 10:23:26 -04:00
hooks _module _p ( ( ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
let eff = null ;
let isExecuting = false ;
const notify = async ( ) => {
if ( eff && ! isExecuting ) {
isExecuting = true ;
await afterNextFrame ( eff . flush ) ;
isExecuting = false ;
}
} ;
eff = createFlusher ( callback , notify ) ;
return eff . dispose ;
} , [ ] ) ;
}
/ * *
* Returns the passed function wrapped with the current scope so it is
* accessible whenever the function runs . This is primarily to make the scope
* available inside hook callbacks .
*
* @ param { Function } func The passed function .
* @ return { Function } The wrapped function .
* /
const withScope = func => {
const scope = getScope ( ) ;
const ns = getNamespace ( ) ;
if ( func ? . constructor ? . name === 'GeneratorFunction' ) {
return async ( ... args ) => {
const gen = func ( ... args ) ;
let value ;
let it ;
while ( true ) {
setNamespace ( ns ) ;
setScope ( scope ) ;
try {
it = gen . next ( value ) ;
} finally {
resetNamespace ( ) ;
resetScope ( ) ;
}
try {
value = await it . value ;
} catch ( e ) {
gen . throw ( e ) ;
}
if ( it . done ) break ;
}
return value ;
} ;
}
return ( ... args ) => {
setNamespace ( ns ) ;
setScope ( scope ) ;
try {
return func ( ... args ) ;
} finally {
resetNamespace ( ) ;
resetScope ( ) ;
2023-09-26 10:23:26 -04:00
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ;
2023-09-26 10:23:26 -04:00
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
2023-09-26 10:23:26 -04:00
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Accepts a function that contains imperative code which runs whenever any of
* the accessed _reactive _ properties ( e . g . , values from the global state or the
* context ) is modified .
*
* This hook makes the element ' s scope available so functions like
* ` getElement() ` and ` getContext() ` can be used inside the passed callback .
*
* @ param { Function } callback The hook callback .
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
function useWatch ( callback ) {
utils _useSignalEffect ( withScope ( callback ) ) ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Accepts a function that contains imperative code which runs only after the
* element ' s first render , mainly useful for intialization logic .
*
* This hook makes the element ' s scope available so functions like
* ` getElement() ` and ` getContext() ` can be used inside the passed callback .
*
* @ param { Function } callback The hook callback .
* /
function useInit ( callback ) {
hooks _module _p ( withScope ( callback ) , [ ] ) ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Accepts a function that contains imperative , possibly effectful code . The
* effects run after browser paint , without blocking it .
*
* This hook is equivalent to Preact 's `useEffect` and makes the element' s scope
* available so functions like ` getElement() ` and ` getContext() ` can be used
* inside the passed callback .
*
* @ param { Function } callback Imperative function that can return a cleanup
* function .
* @ param { any [ ] } inputs If present , effect will only activate if the
* values in the list change ( using ` === ` ) .
* /
function useEffect ( callback , inputs ) {
hooks _module _p ( withScope ( callback ) , inputs ) ;
}
2023-09-26 10:23:26 -04:00
/ * *
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
* Accepts a function that contains imperative , possibly effectful code . Use
* this to read layout from the DOM and synchronously re - render .
*
* This hook is equivalent to Preact 's `useLayoutEffect` and makes the element' s
* scope available so functions like ` getElement() ` and ` getContext() ` can be
* used inside the passed callback .
*
* @ param { Function } callback Imperative function that can return a cleanup
* function .
* @ param { any [ ] } inputs If present , effect will only activate if the
* values in the list change ( using ` === ` ) .
2023-09-26 10:23:26 -04:00
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
function useLayoutEffect ( callback , inputs ) {
hooks _module _y ( withScope ( callback ) , inputs ) ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Returns a memoized version of the callback that only changes if one of the
* inputs has changed ( using ` === ` ) .
*
* This hook is equivalent to Preact 's `useCallback` and makes the element' s
* scope available so functions like ` getElement() ` and ` getContext() ` can be
* used inside the passed callback .
*
* @ param { Function } callback Imperative function that can return a cleanup
* function .
* @ param { any [ ] } inputs If present , effect will only activate if the
* values in the list change ( using ` === ` ) .
* /
function useCallback ( callback , inputs ) {
hooks _module _T ( withScope ( callback ) , inputs ) ;
}
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Pass a factory function and an array of inputs . ` useMemo ` will only recompute
* the memoized value when one of the inputs has changed .
*
* This hook is equivalent to Preact 's `useMemo` and makes the element' s scope
* available so functions like ` getElement() ` and ` getContext() ` can be used
* inside the passed factory function .
*
* @ param { Function } factory Imperative function that can return a cleanup
* function .
* @ param { any [ ] } inputs If present , effect will only activate if the
* values in the list change ( using ` === ` ) .
* /
function useMemo ( factory , inputs ) {
hooks _module _F ( withScope ( factory ) , inputs ) ;
}
// For wrapperless hydration.
// See https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
const createRootFragment = ( parent , replaceNode ) => {
replaceNode = [ ] . concat ( replaceNode ) ;
const s = replaceNode [ replaceNode . length - 1 ] . nextSibling ;
function insert ( c , r ) {
parent . insertBefore ( c , r || s ) ;
}
return parent . _ _k = {
nodeType : 1 ,
parentNode : parent ,
firstChild : replaceNode [ 0 ] ,
childNodes : replaceNode ,
insertBefore : insert ,
appendChild : insert ,
removeChild ( c ) {
parent . removeChild ( c ) ;
}
} ;
} ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/directives.js
/ * *
* External dependencies
* /
2023-09-26 10:23:26 -04:00
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ * *
* Internal dependencies
* /
2023-09-26 10:23:26 -04:00
const directives _isObject = item => item && typeof item === 'object' && ! Array . isArray ( item ) ;
const mergeDeepSignals = ( target , source , overwrite ) => {
for ( const k in source ) {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( directives _isObject ( deepsignal _module _p ( target , k ) ) && directives _isObject ( deepsignal _module _p ( source , k ) ) ) {
2023-09-26 10:23:26 -04:00
mergeDeepSignals ( target [ ` $ ${ k } ` ] . peek ( ) , source [ ` $ ${ k } ` ] . peek ( ) , overwrite ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} else if ( overwrite || typeof deepsignal _module _p ( target , k ) === 'undefined' ) {
2023-09-26 10:23:26 -04:00
target [ ` $ ${ k } ` ] = source [ ` $ ${ k } ` ] ;
}
}
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g ;
const ruleClean = /\/\*[^]*?\*\/| +/g ;
const ruleNewline = /\n+/g ;
const empty = ' ' ;
/ * *
* Convert a css style string into a object .
*
* Made by Cristian Bote ( @ cristianbote ) for Goober .
* https : //unpkg.com/browse/goober@2.1.13/src/core/astish.js
*
* @ param { string } val CSS string .
* @ return { Object } CSS object .
* /
const cssStringToObject = val => {
const tree = [ { } ] ;
let block , left ;
while ( block = newRule . exec ( val . replace ( ruleClean , '' ) ) ) {
if ( block [ 4 ] ) {
tree . shift ( ) ;
} else if ( block [ 3 ] ) {
left = block [ 3 ] . replace ( ruleNewline , empty ) . trim ( ) ;
tree . unshift ( tree [ 0 ] [ left ] = tree [ 0 ] [ left ] || { } ) ;
} else {
tree [ 0 ] [ block [ 1 ] ] = block [ 2 ] . replace ( ruleNewline , empty ) . trim ( ) ;
}
}
return tree [ 0 ] ;
} ;
/ * *
* Creates a directive that adds an event listener to the global window or
* document object .
*
* @ param { string } type 'window' or 'document'
* @ return { void }
* /
const getGlobalEventDirective = type => ( {
directives ,
evaluate
} ) => {
directives [ ` on- ${ type } ` ] . filter ( ( {
suffix
} ) => suffix !== 'default' ) . forEach ( entry => {
useInit ( ( ) => {
const cb = event => evaluate ( entry , event ) ;
const globalVar = type === 'window' ? window : document ;
globalVar . addEventListener ( entry . suffix , cb ) ;
return ( ) => globalVar . removeEventListener ( entry . suffix , cb ) ;
} , [ ] ) ;
} ) ;
} ;
2023-09-26 10:23:26 -04:00
/* harmony default export */ var directives = ( ( ) => {
// data-wp-context
directive ( 'context' , ( {
directives : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
context
2023-09-26 10:23:26 -04:00
} ,
props : {
children
} ,
context : inheritedContext
} ) => {
const {
Provider
} = inheritedContext ;
const inheritedValue = hooks _module _q ( inheritedContext ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const currentValue = hooks _module _ ( deepsignal _module _g ( { } ) ) ;
const passedValues = context . map ( ( {
value
} ) => value ) ;
2023-09-26 10:23:26 -04:00
currentValue . current = hooks _module _F ( ( ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const newValue = context . map ( c => deepsignal _module _g ( {
[ c . namespace ] : c . value
} ) ) . reduceRight ( mergeDeepSignals ) ;
2023-09-26 10:23:26 -04:00
mergeDeepSignals ( newValue , inheritedValue ) ;
mergeDeepSignals ( currentValue . current , newValue , true ) ;
return currentValue . current ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} , [ inheritedValue , ... passedValues ] ) ;
return /*#__PURE__*/ ( 0 , react . createElement ) ( Provider , {
value : currentValue . current
} , children ) ;
2023-09-26 10:23:26 -04:00
} , {
priority : 5
} ) ;
// data-wp-body
directive ( 'body' , ( {
props : {
children
}
} ) => {
return createPortal ( children , document . body ) ;
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// data-wp-watch--[name]
directive ( 'watch' , ( {
2023-09-26 10:23:26 -04:00
directives : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
watch
2023-09-26 10:23:26 -04:00
} ,
evaluate
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
watch . forEach ( entry => {
useWatch ( ( ) => evaluate ( entry ) ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} ) ;
// data-wp-init--[name]
directive ( 'init' , ( {
directives : {
init
} ,
evaluate
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
init . forEach ( entry => {
// TODO: Replace with useEffect to prevent unneeded scopes.
useInit ( ( ) => evaluate ( entry ) ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} ) ;
// data-wp-on--[event]
directive ( 'on' , ( {
directives : {
on
} ,
element ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
on . filter ( ( {
suffix
} ) => suffix !== 'default' ) . forEach ( entry => {
element . props [ ` on ${ entry . suffix } ` ] = event => {
evaluate ( entry , event ) ;
2023-09-26 10:23:26 -04:00
} ;
} ) ;
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// data-wp-on-window--[event]
directive ( 'on-window' , getGlobalEventDirective ( 'window' ) ) ;
// data-wp-on-document--[event]
directive ( 'on-document' , getGlobalEventDirective ( 'document' ) ) ;
2023-09-26 10:23:26 -04:00
// data-wp-class--[classname]
directive ( 'class' , ( {
directives : {
class : className
} ,
element ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
className . filter ( ( {
suffix
} ) => suffix !== 'default' ) . forEach ( entry => {
const name = entry . suffix ;
const result = evaluate ( entry , {
className : name
2023-09-26 10:23:26 -04:00
} ) ;
const currentClass = element . props . class || '' ;
const classFinder = new RegExp ( ` (^| \\ s) ${ name } ( \\ s| $ ) ` , 'g' ) ;
if ( ! result ) element . props . class = currentClass . replace ( classFinder , ' ' ) . trim ( ) ; else if ( ! classFinder . test ( currentClass ) ) element . props . class = currentClass ? ` ${ currentClass } ${ name } ` : name ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
useInit ( ( ) => {
/ *
* This seems necessary because Preact doesn ' t change the class
* names on the hydration , so we have to do it manually . It doesn ' t
* need deps because it only needs to do it the first time .
* /
2023-09-26 10:23:26 -04:00
if ( ! result ) {
element . ref . current . classList . remove ( name ) ;
} else {
element . ref . current . classList . add ( name ) ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} ) ;
// data-wp-style--[style-key]
directive ( 'style' , ( {
directives : {
style
} ,
element ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
style . filter ( ( {
suffix
} ) => suffix !== 'default' ) . forEach ( entry => {
const key = entry . suffix ;
const result = evaluate ( entry , {
key
2023-09-26 10:23:26 -04:00
} ) ;
element . props . style = element . props . style || { } ;
if ( typeof element . props . style === 'string' ) element . props . style = cssStringToObject ( element . props . style ) ;
if ( ! result ) delete element . props . style [ key ] ; else element . props . style [ key ] = result ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
useInit ( ( ) => {
/ *
* This seems necessary because Preact doesn ' t change the styles on
* the hydration , so we have to do it manually . It doesn ' t need deps
* because it only needs to do it the first time .
* /
2023-09-26 10:23:26 -04:00
if ( ! result ) {
element . ref . current . style . removeProperty ( key ) ;
} else {
element . ref . current . style [ key ] = result ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} ) ;
// data-wp-bind--[attribute]
directive ( 'bind' , ( {
directives : {
bind
} ,
element ,
evaluate
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
bind . filter ( ( {
suffix
} ) => suffix !== 'default' ) . forEach ( entry => {
const attribute = entry . suffix ;
const result = evaluate ( entry ) ;
2023-09-26 10:23:26 -04:00
element . props [ attribute ] = result ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ *
* This is necessary because Preact doesn ' t change the attributes on the
* hydration , so we have to do it manually . It only needs to do it the
* first time . After that , Preact will handle the changes .
* /
useInit ( ( ) => {
2023-09-26 10:23:26 -04:00
const el = element . ref . current ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ *
* We set the value directly to the corresponding HTMLElement instance
* property excluding the following special cases . We follow Preact ' s
* logic : https : //github.com/preactjs/preact/blob/ea49f7a0f9d1ff2c98c0bdd66aa0cbc583055246/src/diff/props.js#L110-L129
* /
2023-09-26 10:23:26 -04:00
if ( attribute !== 'width' && attribute !== 'height' && attribute !== 'href' && attribute !== 'list' && attribute !== 'form' &&
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ *
* The value for ` tabindex ` follows the parsing rules for an
* integer . If that fails , or if the attribute isn ' t present , then
* the browsers should " follow platform conventions to determine if
* the element should be considered as a focusable area " ,
* practically meaning that most elements get a default of ` -1 ` ( not
* focusable ) , but several also get a default of ` 0 ` ( focusable in
* order after all elements with a positive ` tabindex ` value ) .
*
* @ see https : //html.spec.whatwg.org/#tabindex-value
* /
2023-09-26 10:23:26 -04:00
attribute !== 'tabIndex' && attribute !== 'download' && attribute !== 'rowSpan' && attribute !== 'colSpan' && attribute !== 'role' && attribute in el ) {
try {
el [ attribute ] = result === null || result === undefined ? '' : result ;
return ;
} catch ( err ) { }
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
/ *
* aria - and data - attributes have no boolean representation .
* A ` false ` value is different from the attribute not being
* present , so we can ' t remove it .
* We follow Preact ' s logic : https : //github.com/preactjs/preact/blob/ea49f7a0f9d1ff2c98c0bdd66aa0cbc583055246/src/diff/props.js#L131C24-L136
* /
2023-09-26 10:23:26 -04:00
if ( result !== null && result !== undefined && ( result !== false || attribute [ 4 ] === '-' ) ) {
el . setAttribute ( attribute , result ) ;
} else {
el . removeAttribute ( attribute ) ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} ) ;
// data-wp-ignore
directive ( 'ignore' , ( {
element : {
type : Type ,
props : {
innerHTML ,
... rest
}
}
} ) => {
// Preserve the initial inner HTML.
const cached = hooks _module _F ( ( ) => innerHTML , [ ] ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
return /*#__PURE__*/ ( 0 , react . createElement ) ( Type , {
2023-09-26 10:23:26 -04:00
dangerouslySetInnerHTML : {
_ _html : cached
} ,
... rest
} ) ;
} ) ;
// data-wp-text
directive ( 'text' , ( {
directives : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
text
2023-09-26 10:23:26 -04:00
} ,
element ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const entry = text . find ( ( {
suffix
} ) => suffix === 'default' ) ;
try {
const result = evaluate ( entry ) ;
element . props . children = typeof result === 'object' ? null : result . toString ( ) ;
} catch ( e ) {
element . props . children = null ;
}
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// data-wp-run
directive ( 'run' , ( {
2023-09-26 10:23:26 -04:00
directives : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
run
2023-09-26 10:23:26 -04:00
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
run . forEach ( entry => evaluate ( entry ) ) ;
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// data-wp-each--[item]
directive ( 'each' , ( {
2023-09-26 10:23:26 -04:00
directives : {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
each ,
'each-key' : eachKey
2023-09-26 10:23:26 -04:00
} ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
context : inheritedContext ,
element ,
evaluate
2023-09-26 10:23:26 -04:00
} ) => {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( element . type !== 'template' ) return ;
const {
Provider
} = inheritedContext ;
const inheritedValue = hooks _module _q ( inheritedContext ) ;
const [ entry ] = each ;
const {
namespace ,
suffix
} = entry ;
const list = evaluate ( entry ) ;
return list . map ( item => {
const mergedContext = deepsignal _module _g ( { } ) ;
const itemProp = suffix === 'default' ? 'item' : suffix ;
const newValue = deepsignal _module _g ( {
[ namespace ] : {
[ itemProp ] : item
}
} ) ;
mergeDeepSignals ( newValue , inheritedValue ) ;
mergeDeepSignals ( mergedContext , newValue , true ) ;
const scope = {
... getScope ( ) ,
context : mergedContext
} ;
const key = eachKey ? getEvaluate ( {
scope
} ) ( eachKey [ 0 ] ) : item ;
return /*#__PURE__*/ ( 0 , react . createElement ) ( Provider , {
value : mergedContext ,
key : key
} , element . props . content ) ;
2023-09-26 10:23:26 -04:00
} ) ;
} , {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
priority : 20
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
directive ( 'each-child' , ( ) => null ) ;
2023-09-26 10:23:26 -04:00
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/constants.js
2023-09-26 10:23:26 -04:00
const directivePrefix = 'wp' ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/vdom.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
/ * *
* Internal dependencies
* /
const ignoreAttr = ` data- ${ directivePrefix } -ignore ` ;
const islandAttr = ` data- ${ directivePrefix } -interactive ` ;
const fullPrefix = ` data- ${ directivePrefix } - ` ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const namespaces = [ ] ;
const currentNamespace = ( ) => {
var _namespaces ;
return ( _namespaces = namespaces [ namespaces . length - 1 ] ) !== null && _namespaces !== void 0 ? _namespaces : null ;
} ;
2023-09-26 10:23:26 -04:00
// Regular expression for directive parsing.
const directiveParser = new RegExp ( ` ^data- ${ directivePrefix } - ` +
// ${p} must be a prefix string, like 'wp'.
// Match alphanumeric characters including hyphen-separated
// segments. It excludes underscore intentionally to prevent confusion.
// E.g., "custom-directive".
'([a-z0-9]+(?:-[a-z0-9]+)*)' +
// (Optional) Match '--' followed by any alphanumeric charachters. It
// excludes underscore intentionally to prevent confusion, but it can
// contain multiple hyphens. E.g., "--custom-prefix--with-more-info".
'(?:--([a-z0-9_-]+))?$' , 'i' // Case insensitive.
) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Regular expression for reference parsing. It can contain a namespace before
// the reference, separated by `::`, like `some-namespace::state.somePath`.
// Namespaces can contain any alphanumeric characters, hyphens, underscores or
// forward slashes. References don't have any restrictions.
const nsPathRegExp = /^([\w-_\/]+)::(.+)$/ ;
2023-09-26 10:23:26 -04:00
const hydratedIslands = new WeakSet ( ) ;
// Recursive function that transforms a DOM tree into vDOM.
function toVdom ( root ) {
const treeWalker = document . createTreeWalker ( root , 205 // ELEMENT + TEXT + COMMENT + CDATA_SECTION + PROCESSING_INSTRUCTION
) ;
function walk ( node ) {
const {
attributes ,
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
nodeType ,
localName
2023-09-26 10:23:26 -04:00
} = node ;
if ( nodeType === 3 ) return [ node . data ] ;
if ( nodeType === 4 ) {
const next = treeWalker . nextSibling ( ) ;
node . replaceWith ( new window . Text ( node . nodeValue ) ) ;
return [ node . nodeValue , next ] ;
}
if ( nodeType === 8 || nodeType === 7 ) {
const next = treeWalker . nextSibling ( ) ;
node . remove ( ) ;
return [ null , next ] ;
}
const props = { } ;
const children = [ ] ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
const directives = [ ] ;
2023-09-26 10:23:26 -04:00
let ignore = false ;
let island = false ;
for ( let i = 0 ; i < attributes . length ; i ++ ) {
const n = attributes [ i ] . name ;
if ( n [ fullPrefix . length ] && n . slice ( 0 , fullPrefix . length ) === fullPrefix ) {
if ( n === ignoreAttr ) {
ignore = true ;
} else {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
var _nsPathRegExp$exec$sl ;
let [ ns , value ] = ( _nsPathRegExp$exec$sl = nsPathRegExp . exec ( attributes [ i ] . value ) ? . slice ( 1 ) ) !== null && _nsPathRegExp$exec$sl !== void 0 ? _nsPathRegExp$exec$sl : [ null , attributes [ i ] . value ] ;
2023-09-26 10:23:26 -04:00
try {
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
value = JSON . parse ( value ) ;
2023-09-26 10:23:26 -04:00
} catch ( e ) { }
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( n === islandAttr ) {
var _value$namespace ;
island = true ;
namespaces . push ( ( _value$namespace = value ? . namespace ) !== null && _value$namespace !== void 0 ? _value$namespace : null ) ;
} else {
directives . push ( [ n , ns , value ] ) ;
}
2023-09-26 10:23:26 -04:00
}
} else if ( n === 'ref' ) {
continue ;
}
props [ n ] = attributes [ i ] . value ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( ignore && ! island ) return [ y ( localName , {
2023-09-26 10:23:26 -04:00
... props ,
innerHTML : node . innerHTML ,
_ _directives : {
ignore : true
}
} ) ] ;
if ( island ) hydratedIslands . add ( node ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
if ( directives . length ) {
props . _ _directives = directives . reduce ( ( obj , [ name , ns , value ] ) => {
const [ , prefix , suffix = 'default' ] = directiveParser . exec ( name ) ;
if ( ! obj [ prefix ] ) obj [ prefix ] = [ ] ;
obj [ prefix ] . push ( {
namespace : ns !== null && ns !== void 0 ? ns : currentNamespace ( ) ,
value ,
suffix
} ) ;
return obj ;
} , { } ) ;
}
if ( localName === 'template' ) {
props . content = [ ... node . content . childNodes ] . map ( childNode => toVdom ( childNode ) ) ;
} else {
let child = treeWalker . firstChild ( ) ;
if ( child ) {
while ( child ) {
const [ vnode , nextChild ] = walk ( child ) ;
if ( vnode ) children . push ( vnode ) ;
child = nextChild || treeWalker . nextSibling ( ) ;
}
treeWalker . parentNode ( ) ;
2023-09-26 10:23:26 -04:00
}
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
// Restore previous namespace.
if ( island ) namespaces . pop ( ) ;
return [ y ( localName , props , children ) ] ;
2023-09-26 10:23:26 -04:00
}
return walk ( treeWalker . currentNode ) ;
}
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/init.js
2023-09-26 10:23:26 -04:00
/ * *
* External dependencies
* /
/ * *
* Internal dependencies
* /
// Keep the same root fragment for each interactive region node.
const regionRootFragments = new WeakMap ( ) ;
const getRegionRootFragment = region => {
if ( ! regionRootFragments . has ( region ) ) {
regionRootFragments . set ( region , createRootFragment ( region . parentElement , region ) ) ;
}
return regionRootFragments . get ( region ) ;
} ;
// Initialize the router with the initial DOM.
const init = async ( ) => {
document . querySelectorAll ( ` [data- ${ directivePrefix } -interactive] ` ) . forEach ( node => {
if ( ! hydratedIslands . has ( node ) ) {
const fragment = getRegionRootFragment ( node ) ;
const vdom = toVdom ( node ) ;
Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.
Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.
Built from https://develop.svn.wordpress.org/trunk@57109
git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-13 19:12:23 -05:00
B ( vdom , fragment ) ;
2023-09-26 10:23:26 -04:00
}
} ) ;
} ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/build-module/index.js
2023-09-26 10:23:26 -04:00
/ * *
* Internal dependencies
* /
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
2023-09-26 10:23:26 -04:00
document . addEventListener ( 'DOMContentLoaded' , async ( ) => {
directives ( ) ;
await init ( ) ;
} ) ;
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
} ( ) ;
var _ _webpack _exports _ _cloneElement = _ _webpack _exports _ _ . Tm ;
var _ _webpack _exports _ _createElement = _ _webpack _exports _ _ . az ;
var _ _webpack _exports _ _deepSignal = _ _webpack _exports _ _ . Aj ;
var _ _webpack _exports _ _directive = _ _webpack _exports _ _ . XM ;
var _ _webpack _exports _ _directivePrefix = _ _webpack _exports _ _ . LO ;
var _ _webpack _exports _ _getContext = _ _webpack _exports _ _ . fw ;
var _ _webpack _exports _ _getElement = _ _webpack _exports _ _ . sb ;
var _ _webpack _exports _ _getNamespace = _ _webpack _exports _ _ . D _ ;
var _ _webpack _exports _ _getRegionRootFragment = _ _webpack _exports _ _ . y7 ;
var _ _webpack _exports _ _render = _ _webpack _exports _ _ . sY ;
var _ _webpack _exports _ _store = _ _webpack _exports _ _ . h ;
var _ _webpack _exports _ _toVdom = _ _webpack _exports _ _ . l2 ;
var _ _webpack _exports _ _useCallback = _ _webpack _exports _ _ . I4 ;
var _ _webpack _exports _ _useContext = _ _webpack _exports _ _ . qp ;
var _ _webpack _exports _ _useEffect = _ _webpack _exports _ _ . d4 ;
var _ _webpack _exports _ _useInit = _ _webpack _exports _ _ . Dp ;
var _ _webpack _exports _ _useLayoutEffect = _ _webpack _exports _ _ . bt ;
var _ _webpack _exports _ _useMemo = _ _webpack _exports _ _ . Ye ;
var _ _webpack _exports _ _useRef = _ _webpack _exports _ _ . sO ;
var _ _webpack _exports _ _useState = _ _webpack _exports _ _ . eJ ;
var _ _webpack _exports _ _useWatch = _ _webpack _exports _ _ . qo ;
var _ _webpack _exports _ _withScope = _ _webpack _exports _ _ . $e ;
export { _ _webpack _exports _ _cloneElement as cloneElement , _ _webpack _exports _ _createElement as createElement , _ _webpack _exports _ _deepSignal as deepSignal , _ _webpack _exports _ _directive as directive , _ _webpack _exports _ _directivePrefix as directivePrefix , _ _webpack _exports _ _getContext as getContext , _ _webpack _exports _ _getElement as getElement , _ _webpack _exports _ _getNamespace as getNamespace , _ _webpack _exports _ _getRegionRootFragment as getRegionRootFragment , _ _webpack _exports _ _render as render , _ _webpack _exports _ _store as store , _ _webpack _exports _ _toVdom as toVdom , _ _webpack _exports _ _useCallback as useCallback , _ _webpack _exports _ _useContext as useContext , _ _webpack _exports _ _useEffect as useEffect , _ _webpack _exports _ _useInit as useInit , _ _webpack _exports _ _useLayoutEffect as useLayoutEffect , _ _webpack _exports _ _useMemo as useMemo , _ _webpack _exports _ _useRef as useRef , _ _webpack _exports _ _useState as useState , _ _webpack _exports _ _useWatch as useWatch , _ _webpack _exports _ _withScope as withScope } ;