2024-01-31 07:59:56 -05:00
/******/ ( ( ) => { // webpackBootstrap
2022-04-11 08:04:30 -04:00
/******/ var _ _webpack _modules _ _ = ( {
/***/ 4403 :
2024-01-31 07:59:56 -05:00
/***/ ( ( module , exports ) => {
2022-04-11 08:04:30 -04:00
var _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
2022-09-20 11:43:29 -04:00
Copyright ( c ) 2018 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2022-04-11 08:04:30 -04:00
* /
/* global define */
( function ( ) {
'use strict' ;
var hasOwn = { } . hasOwnProperty ;
2022-09-20 11:43:29 -04:00
var nativeCodeString = '[native code]' ;
2022-04-11 08:04:30 -04:00
function classNames ( ) {
var classes = [ ] ;
for ( var i = 0 ; i < arguments . length ; i ++ ) {
var arg = arguments [ i ] ;
if ( ! arg ) continue ;
var argType = typeof arg ;
if ( argType === 'string' || argType === 'number' ) {
classes . push ( arg ) ;
} else if ( Array . isArray ( arg ) ) {
if ( arg . length ) {
var inner = classNames . apply ( null , arg ) ;
if ( inner ) {
classes . push ( inner ) ;
}
}
} else if ( argType === 'object' ) {
2022-09-20 11:43:29 -04:00
if ( arg . toString !== Object . prototype . toString && ! arg . toString . toString ( ) . includes ( '[native code]' ) ) {
2022-04-11 08:04:30 -04:00
classes . push ( arg . toString ( ) ) ;
2022-09-20 11:43:29 -04:00
continue ;
}
for ( var key in arg ) {
if ( hasOwn . call ( arg , key ) && arg [ key ] ) {
classes . push ( key ) ;
}
2022-04-11 08:04:30 -04:00
}
}
}
return classes . join ( ' ' ) ;
}
if ( true && module . exports ) {
classNames . default = classNames ;
module . exports = classNames ;
} else if ( true ) {
// register as 'classnames', consistent with npm package name
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ ] , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( function ( ) {
return classNames ;
} ) . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ,
_ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else { }
} ( ) ) ;
/***/ } )
/******/ } ) ;
/************************************************************************/
2018-12-13 23:41:57 -05:00
/******/ // The module cache
2022-04-11 08:04:30 -04:00
/******/ var _ _webpack _module _cache _ _ = { } ;
/******/
2018-12-13 23:41:57 -05:00
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/ // Check if module is in cache
2022-04-11 08:04:30 -04:00
/******/ var cachedModule = _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ if ( cachedModule !== undefined ) {
/******/ return cachedModule . exports ;
2018-12-13 23:41:57 -05:00
/******/ }
/******/ // Create a new module (and put it into the cache)
2022-04-11 08:04:30 -04:00
/******/ var module = _ _webpack _module _cache _ _ [ moduleId ] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
2018-12-13 23:41:57 -05:00
/******/ exports : { }
/******/ } ;
2022-04-11 08:04:30 -04:00
/******/
2018-12-13 23:41:57 -05:00
/******/ // Execute the module function
2022-04-11 08:04:30 -04:00
/******/ _ _webpack _modules _ _ [ moduleId ] ( module , module . exports , _ _webpack _require _ _ ) ;
/******/
2018-12-13 23:41:57 -05:00
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
2022-04-11 08:04:30 -04:00
/******/
2018-12-13 23:41:57 -05:00
/************************************************************************/
2022-04-11 08:04:30 -04:00
/******/ /* webpack/runtime/compat get default export */
2024-01-31 07:59:56 -05:00
/******/ ( ( ) => {
2022-04-11 08:04:30 -04:00
/******/ // getDefaultExport function for compatibility with non-harmony modules
2024-01-31 07:59:56 -05:00
/******/ _ _webpack _require _ _ . n = ( module ) => {
2022-04-11 08:04:30 -04:00
/******/ var getter = module && module . _ _esModule ?
2024-01-31 07:59:56 -05:00
/******/ ( ) => ( module [ 'default' ] ) :
/******/ ( ) => ( module ) ;
2022-04-11 08:04:30 -04:00
/******/ _ _webpack _require _ _ . d ( getter , { a : getter } ) ;
/******/ return getter ;
/******/ } ;
2024-01-31 07:59:56 -05:00
/******/ } ) ( ) ;
2022-04-11 08:04:30 -04:00
/******/
/******/ /* webpack/runtime/define property getters */
2024-01-31 07:59:56 -05:00
/******/ ( ( ) => {
2022-04-11 08:04:30 -04:00
/******/ // define getter functions for harmony exports
2024-01-31 07:59:56 -05:00
/******/ _ _webpack _require _ _ . d = ( exports , definition ) => {
2022-04-11 08:04:30 -04:00
/******/ 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 ] } ) ;
/******/ }
/******/ }
/******/ } ;
2024-01-31 07:59:56 -05:00
/******/ } ) ( ) ;
2022-04-11 08:04:30 -04:00
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
2024-01-31 07:59:56 -05:00
/******/ ( ( ) => {
/******/ _ _webpack _require _ _ . o = ( obj , prop ) => ( Object . prototype . hasOwnProperty . call ( obj , prop ) )
/******/ } ) ( ) ;
2022-04-11 08:04:30 -04:00
/******/
/******/ /* webpack/runtime/make namespace object */
2024-01-31 07:59:56 -05:00
/******/ ( ( ) => {
2022-04-11 08:04:30 -04:00
/******/ // define __esModule on exports
2024-01-31 07:59:56 -05:00
/******/ _ _webpack _require _ _ . r = ( exports ) => {
2022-04-11 08:04:30 -04:00
/******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
/******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
/******/ }
/******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
/******/ } ;
2024-01-31 07:59:56 -05:00
/******/ } ) ( ) ;
2022-04-11 08:04:30 -04:00
/******/
/************************************************************************/
var _ _webpack _exports _ _ = { } ;
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
2024-01-31 07:59:56 -05:00
( ( ) => {
2021-05-19 11:09:27 -04:00
"use strict" ;
2022-04-11 08:04:30 -04:00
// ESM COMPAT FLAG
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2020-06-26 09:33:47 -04:00
2022-04-11 08:04:30 -04:00
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
2024-01-31 07:59:56 -05:00
PluginBlockSettingsMenuItem : ( ) => ( /* reexport */ plugin _block _settings _menu _item ) ,
PluginDocumentSettingPanel : ( ) => ( /* reexport */ plugin _document _setting _panel ) ,
PluginMoreMenuItem : ( ) => ( /* reexport */ plugin _more _menu _item ) ,
PluginPostPublishPanel : ( ) => ( /* reexport */ plugin _post _publish _panel ) ,
PluginPostStatusInfo : ( ) => ( /* reexport */ plugin _post _status _info ) ,
PluginPrePublishPanel : ( ) => ( /* reexport */ plugin _pre _publish _panel ) ,
PluginSidebar : ( ) => ( /* reexport */ PluginSidebarEditPost ) ,
PluginSidebarMoreMenuItem : ( ) => ( /* reexport */ PluginSidebarMoreMenuItem ) ,
_ _experimentalFullscreenModeClose : ( ) => ( /* reexport */ fullscreen _mode _close ) ,
_ _experimentalMainDashboardButton : ( ) => ( /* reexport */ main _dashboard _button ) ,
_ _experimentalPluginPostExcerpt : ( ) => ( /* binding */ _ _experimentalPluginPostExcerpt ) ,
initializeEditor : ( ) => ( /* binding */ initializeEditor ) ,
reinitializeEditor : ( ) => ( /* binding */ reinitializeEditor ) ,
store : ( ) => ( /* reexport */ store _store )
2022-04-11 08:04:30 -04:00
} ) ;
2020-06-26 09:33:47 -04:00
2022-04-11 08:04:30 -04:00
// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
var actions _namespaceObject = { } ;
_ _webpack _require _ _ . r ( actions _namespaceObject ) ;
_ _webpack _require _ _ . d ( actions _namespaceObject , {
2024-01-31 07:59:56 -05:00
closeModal : ( ) => ( closeModal ) ,
disableComplementaryArea : ( ) => ( disableComplementaryArea ) ,
enableComplementaryArea : ( ) => ( enableComplementaryArea ) ,
openModal : ( ) => ( openModal ) ,
pinItem : ( ) => ( pinItem ) ,
setDefaultComplementaryArea : ( ) => ( setDefaultComplementaryArea ) ,
setFeatureDefaults : ( ) => ( setFeatureDefaults ) ,
setFeatureValue : ( ) => ( setFeatureValue ) ,
toggleFeature : ( ) => ( toggleFeature ) ,
unpinItem : ( ) => ( unpinItem )
2022-04-11 08:04:30 -04:00
} ) ;
2020-07-21 08:14:37 -04:00
2022-04-11 08:04:30 -04:00
// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
var selectors _namespaceObject = { } ;
_ _webpack _require _ _ . r ( selectors _namespaceObject ) ;
_ _webpack _require _ _ . d ( selectors _namespaceObject , {
2024-01-31 07:59:56 -05:00
getActiveComplementaryArea : ( ) => ( getActiveComplementaryArea ) ,
isComplementaryAreaLoading : ( ) => ( isComplementaryAreaLoading ) ,
isFeatureActive : ( ) => ( isFeatureActive ) ,
isItemPinned : ( ) => ( isItemPinned ) ,
isModalActive : ( ) => ( isModalActive )
2022-04-11 08:04:30 -04:00
} ) ;
2021-01-27 21:04:13 -05:00
2022-04-11 08:04:30 -04:00
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
var store _actions _namespaceObject = { } ;
_ _webpack _require _ _ . r ( store _actions _namespaceObject ) ;
_ _webpack _require _ _ . d ( store _actions _namespaceObject , {
2024-01-31 07:59:56 -05:00
_ _experimentalSetPreviewDeviceType : ( ) => ( _ _experimentalSetPreviewDeviceType ) ,
_ _unstableCreateTemplate : ( ) => ( _ _unstableCreateTemplate ) ,
closeGeneralSidebar : ( ) => ( closeGeneralSidebar ) ,
closeModal : ( ) => ( actions _closeModal ) ,
closePublishSidebar : ( ) => ( closePublishSidebar ) ,
hideBlockTypes : ( ) => ( hideBlockTypes ) ,
initializeMetaBoxes : ( ) => ( initializeMetaBoxes ) ,
metaBoxUpdatesFailure : ( ) => ( metaBoxUpdatesFailure ) ,
metaBoxUpdatesSuccess : ( ) => ( metaBoxUpdatesSuccess ) ,
openGeneralSidebar : ( ) => ( openGeneralSidebar ) ,
openModal : ( ) => ( actions _openModal ) ,
openPublishSidebar : ( ) => ( openPublishSidebar ) ,
removeEditorPanel : ( ) => ( removeEditorPanel ) ,
requestMetaBoxUpdates : ( ) => ( requestMetaBoxUpdates ) ,
setAvailableMetaBoxesPerLocation : ( ) => ( setAvailableMetaBoxesPerLocation ) ,
setIsEditingTemplate : ( ) => ( setIsEditingTemplate ) ,
setIsInserterOpened : ( ) => ( setIsInserterOpened ) ,
setIsListViewOpened : ( ) => ( setIsListViewOpened ) ,
showBlockTypes : ( ) => ( showBlockTypes ) ,
switchEditorMode : ( ) => ( switchEditorMode ) ,
toggleDistractionFree : ( ) => ( toggleDistractionFree ) ,
toggleEditorPanelEnabled : ( ) => ( toggleEditorPanelEnabled ) ,
toggleEditorPanelOpened : ( ) => ( toggleEditorPanelOpened ) ,
toggleFeature : ( ) => ( actions _toggleFeature ) ,
togglePinnedPluginItem : ( ) => ( togglePinnedPluginItem ) ,
togglePublishSidebar : ( ) => ( togglePublishSidebar ) ,
updatePreferredStyleVariations : ( ) => ( updatePreferredStyleVariations )
2022-04-11 08:04:30 -04:00
} ) ;
2021-01-27 21:04:13 -05:00
2022-04-11 08:04:30 -04:00
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
var store _selectors _namespaceObject = { } ;
_ _webpack _require _ _ . r ( store _selectors _namespaceObject ) ;
_ _webpack _require _ _ . d ( store _selectors _namespaceObject , {
2024-01-31 07:59:56 -05:00
_ _experimentalGetInsertionPoint : ( ) => ( _ _experimentalGetInsertionPoint ) ,
_ _experimentalGetPreviewDeviceType : ( ) => ( _ _experimentalGetPreviewDeviceType ) ,
areMetaBoxesInitialized : ( ) => ( areMetaBoxesInitialized ) ,
getActiveGeneralSidebarName : ( ) => ( getActiveGeneralSidebarName ) ,
getActiveMetaBoxLocations : ( ) => ( getActiveMetaBoxLocations ) ,
getAllMetaBoxes : ( ) => ( getAllMetaBoxes ) ,
getEditedPostTemplate : ( ) => ( getEditedPostTemplate ) ,
getEditorMode : ( ) => ( getEditorMode ) ,
getHiddenBlockTypes : ( ) => ( getHiddenBlockTypes ) ,
getMetaBoxesPerLocation : ( ) => ( getMetaBoxesPerLocation ) ,
getPreference : ( ) => ( getPreference ) ,
getPreferences : ( ) => ( getPreferences ) ,
hasMetaBoxes : ( ) => ( hasMetaBoxes ) ,
isEditingTemplate : ( ) => ( isEditingTemplate ) ,
isEditorPanelEnabled : ( ) => ( isEditorPanelEnabled ) ,
isEditorPanelOpened : ( ) => ( isEditorPanelOpened ) ,
isEditorPanelRemoved : ( ) => ( isEditorPanelRemoved ) ,
isEditorSidebarOpened : ( ) => ( isEditorSidebarOpened ) ,
isFeatureActive : ( ) => ( selectors _isFeatureActive ) ,
isInserterOpened : ( ) => ( isInserterOpened ) ,
isListViewOpened : ( ) => ( isListViewOpened ) ,
isMetaBoxLocationActive : ( ) => ( isMetaBoxLocationActive ) ,
isMetaBoxLocationVisible : ( ) => ( isMetaBoxLocationVisible ) ,
isModalActive : ( ) => ( selectors _isModalActive ) ,
isPluginItemPinned : ( ) => ( isPluginItemPinned ) ,
isPluginSidebarOpened : ( ) => ( isPluginSidebarOpened ) ,
isPublishSidebarOpened : ( ) => ( isPublishSidebarOpened ) ,
isSavingMetaBoxes : ( ) => ( selectors _isSavingMetaBoxes )
2022-04-11 08:04:30 -04:00
} ) ;
2021-05-20 08:20:04 -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: external "React"
2024-01-31 07:59:56 -05:00
const external _React _namespaceObject = window [ "React" ] ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","blocks"]
2024-01-31 07:59:56 -05:00
const external _wp _blocks _namespaceObject = window [ "wp" ] [ "blocks" ] ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","blockLibrary"]
2024-01-31 07:59:56 -05:00
const external _wp _blockLibrary _namespaceObject = window [ "wp" ] [ "blockLibrary" ] ;
2023-02-07 02:04:52 -05:00
; // CONCATENATED MODULE: external ["wp","deprecated"]
2024-01-31 07:59:56 -05:00
const external _wp _deprecated _namespaceObject = window [ "wp" ] [ "deprecated" ] ;
2023-02-07 02:04:52 -05:00
var external _wp _deprecated _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _wp _deprecated _namespaceObject ) ;
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: external ["wp","element"]
2024-01-31 07:59:56 -05:00
const external _wp _element _namespaceObject = window [ "wp" ] [ "element" ] ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","data"]
2024-01-31 07:59:56 -05:00
const external _wp _data _namespaceObject = window [ "wp" ] [ "data" ] ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","hooks"]
2024-01-31 07:59:56 -05:00
const external _wp _hooks _namespaceObject = window [ "wp" ] [ "hooks" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","preferences"]
2024-01-31 07:59:56 -05:00
const external _wp _preferences _namespaceObject = window [ "wp" ] [ "preferences" ] ;
2023-02-07 02:04:52 -05:00
; // CONCATENATED MODULE: external ["wp","widgets"]
2024-01-31 07:59:56 -05:00
const external _wp _widgets _namespaceObject = window [ "wp" ] [ "widgets" ] ;
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: external ["wp","editor"]
2024-01-31 07:59:56 -05:00
const external _wp _editor _namespaceObject = window [ "wp" ] [ "editor" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","mediaUtils"]
2024-01-31 07:59:56 -05:00
const external _wp _mediaUtils _namespaceObject = window [ "wp" ] [ "mediaUtils" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js
/ * *
* WordPress dependencies
* /
const replaceMediaUpload = ( ) => external _wp _mediaUtils _namespaceObject . MediaUpload ;
( 0 , external _wp _hooks _namespaceObject . addFilter ) ( 'editor.MediaUpload' , 'core/edit-post/replace-media-upload' , replaceMediaUpload ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","components"]
2024-01-31 07:59:56 -05:00
const external _wp _components _namespaceObject = window [ "wp" ] [ "components" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","blockEditor"]
2024-01-31 07:59:56 -05:00
const external _wp _blockEditor _namespaceObject = window [ "wp" ] [ "blockEditor" ] ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","i18n"]
2024-01-31 07:59:56 -05:00
const external _wp _i18n _namespaceObject = window [ "wp" ] [ "i18n" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","compose"]
2024-01-31 07:59:56 -05:00
const external _wp _compose _namespaceObject = window [ "wp" ] [ "compose" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js
2021-11-08 09:29:21 -05:00
/ * *
* WordPress dependencies
* /
2022-04-12 11:12:47 -04:00
2024-02-09 13:22:22 -05:00
/ * *
* Recursively find very first block of an specific block type .
*
* @ param { Object [ ] } blocks List of blocks .
* @ param { string } name Block name to search .
*
* @ return { Object | undefined } Return block object or undefined .
* /
function findFirstOfSameType ( blocks , name ) {
if ( ! Array . isArray ( blocks ) || ! blocks . length ) {
return ;
}
for ( const block of blocks ) {
if ( block . name === name ) {
return block ;
}
// Search inside innerBlocks.
const firstBlock = findFirstOfSameType ( block . innerBlocks , name ) ;
if ( firstBlock ) {
return firstBlock ;
}
}
}
2022-04-12 11:12:47 -04:00
const enhance = ( 0 , external _wp _compose _namespaceObject . compose ) (
2021-11-08 09:29:21 -05:00
/ * *
2022-04-12 11:12:47 -04:00
* For blocks whose block type doesn ' t support ` multiple ` , provides the
* wrapped component with ` originalBlockClientId ` -- a reference to the
* first block of the same type in the content -- if and only if that
* "original" block is not the current one . Thus , an inexisting
* ` originalBlockClientId ` prop signals that the block is valid .
*
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 { Component } WrappedBlockEdit A filtered BlockEdit instance .
2022-04-12 11:12:47 -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 { Component } Enhanced component with merged state data props .
2021-11-08 09:29:21 -05:00
* /
2022-04-12 11:12:47 -04:00
( 0 , external _wp _data _namespaceObject . withSelect ) ( ( select , block ) => {
2023-09-26 10:23:26 -04:00
const multiple = ( 0 , external _wp _blocks _namespaceObject . hasBlockSupport ) ( block . name , 'multiple' , true ) ;
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
// For block types with `multiple` support, there is no "original
// block" to be found in the content, as the block itself is valid.
2022-04-12 11:12:47 -04:00
if ( multiple ) {
return { } ;
2023-09-26 10:23:26 -04:00
}
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
// Otherwise, only pass `originalBlockClientId` if it refers to a different
// block from the current one.
2022-04-12 11:12:47 -04:00
const blocks = select ( external _wp _blockEditor _namespaceObject . store ) . getBlocks ( ) ;
2024-02-09 13:22:22 -05:00
const firstOfSameType = findFirstOfSameType ( blocks , block . name ) ;
2022-04-12 11:12:47 -04:00
const isInvalid = firstOfSameType && firstOfSameType . clientId !== block . clientId ;
return {
originalBlockClientId : isInvalid && firstOfSameType . clientId
} ;
2023-06-27 10:24:19 -04:00
} ) , ( 0 , external _wp _data _namespaceObject . withDispatch ) ( ( dispatch , {
originalBlockClientId
} ) => ( {
selectFirst : ( ) => dispatch ( external _wp _blockEditor _namespaceObject . store ) . selectBlock ( originalBlockClientId )
} ) ) ) ;
2022-04-12 11:12:47 -04:00
const withMultipleValidation = ( 0 , external _wp _compose _namespaceObject . createHigherOrderComponent ) ( BlockEdit => {
2023-06-27 10:24:19 -04:00
return enhance ( ( {
originalBlockClientId ,
selectFirst ,
... props
} ) => {
2022-04-12 11:12:47 -04:00
if ( ! originalBlockClientId ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( BlockEdit , {
2023-09-26 10:23:26 -04:00
... props
2023-06-27 10:24:19 -04:00
} ) ;
2022-04-12 11:12:47 -04:00
}
const blockType = ( 0 , external _wp _blocks _namespaceObject . getBlockType ) ( props . name ) ;
const outboundType = getOutboundType ( props . 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
return [ ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-12 11:12:47 -04:00
key : "invalid-preview" ,
style : {
minHeight : '60px'
}
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
} , ( 0 , external _React _namespaceObject . createElement ) ( BlockEdit , {
2023-06-27 10:24:19 -04:00
key : "block-edit" ,
... props
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
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . Warning , {
2022-04-12 11:12:47 -04:00
key : "multiple-use-warning" ,
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
actions : [ ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-12 11:12:47 -04:00
key : "find-original" ,
variant : "secondary" ,
onClick : selectFirst
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Find original' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-12 11:12:47 -04:00
key : "remove" ,
variant : "secondary" ,
onClick : ( ) => props . onReplace ( [ ] )
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Remove' ) ) , outboundType && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-12 11:12:47 -04:00
key : "transform" ,
variant : "secondary" ,
onClick : ( ) => props . onReplace ( ( 0 , external _wp _blocks _namespaceObject . createBlock ) ( outboundType . name , props . attributes ) )
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Transform into:' ) , " " , outboundType . title ) ]
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
} , ( 0 , external _React _namespaceObject . createElement ) ( "strong" , null , blockType ? . title , ": " ) , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'This block can only be used once.' ) ) ] ;
2022-04-12 11:12:47 -04:00
} ) ;
} , 'withMultipleValidation' ) ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Given a base block name , returns the default block type to which to offer
* transforms .
*
* @ param { string } blockName Base block name .
*
* @ return { ? Object } The chosen default block type .
* /
function getOutboundType ( blockName ) {
// Grab the first outbound transform.
2023-06-27 10:24:19 -04:00
const transform = ( 0 , external _wp _blocks _namespaceObject . findTransform ) ( ( 0 , external _wp _blocks _namespaceObject . getBlockTransforms ) ( 'to' , blockName ) , ( {
type ,
blocks
} ) => type === 'block' && blocks . length === 1 // What about when .length > 1?
2022-04-12 11:12:47 -04:00
) ;
if ( ! transform ) {
return null ;
}
return ( 0 , external _wp _blocks _namespaceObject . getBlockType ) ( transform . blocks [ 0 ] ) ;
}
( 0 , external _wp _hooks _namespaceObject . addFilter ) ( 'editor.BlockEdit' , 'core/edit-post/validate-multiple-use/with-multiple-validation' , withMultipleValidation ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js
/ * *
* Internal dependencies
* /
2021-05-20 08:20:04 -04:00
2022-04-12 11:12:47 -04:00
2023-07-11 02:59:09 -04:00
; // CONCATENATED MODULE: external ["wp","coreData"]
2024-01-31 07:59:56 -05:00
const external _wp _coreData _namespaceObject = window [ "wp" ] [ "coreData" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","primitives"]
2024-01-31 07:59:56 -05:00
const external _wp _primitives _namespaceObject = window [ "wp" ] [ "primitives" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
2021-05-25 04:40:25 -04:00
/ * *
* WordPress 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
const external = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2021-05-25 04:40:25 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2023-06-27 10:24:19 -04:00
d : "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
2021-05-25 04:40:25 -04:00
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _external = ( external ) ;
2021-05-25 04:40:25 -04:00
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","plugins"]
2024-01-31 07:59:56 -05:00
const external _wp _plugins _namespaceObject = window [ "wp" ] [ "plugins" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","url"]
2024-01-31 07:59:56 -05:00
const external _wp _url _namespaceObject = window [ "wp" ] [ "url" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","notices"]
2024-01-31 07:59:56 -05:00
const external _wp _notices _namespaceObject = window [ "wp" ] [ "notices" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
2021-05-20 08:20:04 -04:00
/ * *
* WordPress dependencies
* /
2022-04-12 11:12:47 -04:00
function CopyContentMenuItem ( ) {
const {
createNotice
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _notices _namespaceObject . store ) ;
2023-09-26 10:23:26 -04:00
const {
getEditedPostAttribute
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( external _wp _editor _namespaceObject . store ) ;
function getText ( ) {
return getEditedPostAttribute ( 'content' ) ;
}
2022-04-12 11:12:47 -04:00
function onSuccess ( ) {
createNotice ( 'info' , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'All content copied.' ) , {
isDismissible : true ,
type : 'snackbar'
} ) ;
}
const ref = ( 0 , external _wp _compose _namespaceObject . useCopyToClipboard ) ( getText , onSuccess ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
2022-04-12 11:12:47 -04:00
ref : ref
2022-09-20 11:43:29 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Copy all blocks' ) ) ;
2022-04-12 11:12:47 -04:00
}
; // CONCATENATED MODULE: external ["wp","keycodes"]
2024-01-31 07:59:56 -05:00
const external _wp _keycodes _namespaceObject = window [ "wp" ] [ "keycodes" ] ;
2022-04-12 11:12:47 -04:00
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = _ _webpack _require _ _ ( 4403 ) ;
var classnames _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( classnames ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
/ * *
* WordPress 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
const check = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-12 11:12:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-12 11:12:47 -04:00
d : "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _check = ( check ) ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
/ * *
* WordPress 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
const starFilled = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-12 11:12:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-12 11:12:47 -04:00
d : "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const star _filled = ( starFilled ) ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
/ * *
* WordPress 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
const starEmpty = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-12 11:12:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-12 11:12:47 -04:00
fillRule : "evenodd" ,
d : "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z" ,
clipRule : "evenodd"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const star _empty = ( starEmpty ) ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: external ["wp","viewport"]
2024-01-31 07:59:56 -05:00
const external _wp _viewport _namespaceObject = window [ "wp" ] [ "viewport" ] ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
/ * *
* WordPress 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
const closeSmall = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-12 11:12:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-12 11:12:47 -04:00
d : "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const close _small = ( closeSmall ) ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
/ * *
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2022-09-20 11:43:29 -04:00
/ * *
* Set a default complementary area .
*
* @ param { string } scope Complementary area scope .
* @ param { string } area Area identifier .
*
* @ return { Object } Action object .
* /
const setDefaultComplementaryArea = ( scope , area ) => ( {
type : 'SET_DEFAULT_COMPLEMENTARY_AREA' ,
scope ,
area
} ) ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Enable the complementary area .
*
* @ param { string } scope Complementary area scope .
* @ param { string } area Area identifier .
* /
2023-06-27 10:24:19 -04:00
const enableComplementaryArea = ( scope , area ) => ( {
registry ,
dispatch
} ) => {
2022-04-12 11:12:47 -04:00
// Return early if there's no area.
if ( ! area ) {
return ;
}
2022-09-20 11:43:29 -04:00
const isComplementaryAreaVisible = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'isComplementaryAreaVisible' ) ;
if ( ! isComplementaryAreaVisible ) {
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( scope , 'isComplementaryAreaVisible' , true ) ;
}
dispatch ( {
type : 'ENABLE_COMPLEMENTARY_AREA' ,
scope ,
area
} ) ;
2022-04-12 11:12:47 -04:00
} ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Disable the complementary area .
*
* @ param { string } scope Complementary area scope .
* /
2023-06-27 10:24:19 -04:00
const disableComplementaryArea = scope => ( {
registry
} ) => {
2022-09-20 11:43:29 -04:00
const isComplementaryAreaVisible = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'isComplementaryAreaVisible' ) ;
if ( isComplementaryAreaVisible ) {
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( scope , 'isComplementaryAreaVisible' , false ) ;
}
2022-04-12 11:12:47 -04:00
} ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Pins an item .
*
* @ param { string } scope Item scope .
* @ param { string } item Item identifier .
*
* @ return { Object } Action object .
* /
2023-06-27 10:24:19 -04:00
const pinItem = ( scope , item ) => ( {
registry
} ) => {
2022-04-12 11:12:47 -04:00
// Return early if there's no item.
if ( ! item ) {
return ;
}
2023-09-26 10:23:26 -04:00
const pinnedItems = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'pinnedItems' ) ;
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
// The item is already pinned, there's nothing to do.
2023-06-27 10:24:19 -04:00
if ( pinnedItems ? . [ item ] === true ) {
2022-04-12 11:12:47 -04:00
return ;
}
2023-09-26 10:23:26 -04:00
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( scope , 'pinnedItems' , {
... pinnedItems ,
2022-04-12 11:12:47 -04:00
[ item ] : true
} ) ;
} ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Unpins an item .
*
* @ param { string } scope Item scope .
* @ param { string } item Item identifier .
* /
2023-06-27 10:24:19 -04:00
const unpinItem = ( scope , item ) => ( {
registry
} ) => {
2022-04-12 11:12:47 -04:00
// Return early if there's no item.
if ( ! item ) {
return ;
}
const pinnedItems = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'pinnedItems' ) ;
2023-09-26 10:23:26 -04:00
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( scope , 'pinnedItems' , {
... pinnedItems ,
2022-04-12 11:12:47 -04:00
[ item ] : false
} ) ;
} ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Returns an action object used in signalling that a feature should be toggled .
*
* @ param { string } scope The feature scope ( e . g . core / edit - post ) .
* @ param { string } featureName The feature name .
* /
function toggleFeature ( scope , featureName ) {
2023-06-27 10:24:19 -04:00
return function ( {
registry
} ) {
2022-05-10 10:49:35 -04:00
external _wp _deprecated _default ( ) ( ` dispatch( 'core/interface' ).toggleFeature ` , {
2022-04-12 11:12:47 -04:00
since : '6.0' ,
2022-05-10 10:49:35 -04:00
alternative : ` dispatch( 'core/preferences' ).toggle `
2022-04-12 11:12:47 -04:00
} ) ;
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . toggle ( scope , featureName ) ;
} ;
}
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Returns an action object used in signalling that a feature should be set to
* a true or false value
*
* @ param { string } scope The feature scope ( e . g . core / edit - post ) .
* @ param { string } featureName The feature name .
* @ param { boolean } value The value to set .
*
* @ return { Object } Action object .
* /
function setFeatureValue ( scope , featureName , value ) {
2023-06-27 10:24:19 -04:00
return function ( {
registry
} ) {
2022-05-10 10:49:35 -04:00
external _wp _deprecated _default ( ) ( ` dispatch( 'core/interface' ).setFeatureValue ` , {
2022-04-12 11:12:47 -04:00
since : '6.0' ,
2022-05-10 10:49:35 -04:00
alternative : ` dispatch( 'core/preferences' ).set `
2022-04-12 11:12:47 -04:00
} ) ;
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( scope , featureName , ! ! value ) ;
} ;
}
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Returns an action object used in signalling that defaults should be set for features .
*
* @ param { string } scope The feature scope ( e . g . core / edit - post ) .
* @ param { Object < string , boolean > } defaults A key / value map of feature names to values .
*
* @ return { Object } Action object .
* /
function setFeatureDefaults ( scope , defaults ) {
2023-06-27 10:24:19 -04:00
return function ( {
registry
} ) {
2022-05-10 10:49:35 -04:00
external _wp _deprecated _default ( ) ( ` dispatch( 'core/interface' ).setFeatureDefaults ` , {
2022-04-12 11:12:47 -04:00
since : '6.0' ,
2022-05-10 10:49:35 -04:00
alternative : ` dispatch( 'core/preferences' ).setDefaults `
2022-04-12 11:12:47 -04:00
} ) ;
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . setDefaults ( scope , defaults ) ;
} ;
}
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used in signalling that the user opened a modal .
2022-04-12 11:12:47 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string } name A string that uniquely identifies the modal .
2022-04-12 11:12:47 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
* /
function openModal ( name ) {
return {
type : 'OPEN_MODAL' ,
name
} ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an action object signalling that the user closed a modal .
*
* @ return { Object } Action object .
* /
function closeModal ( ) {
return {
type : 'CLOSE_MODAL'
} ;
}
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
/ * *
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns the complementary area that is active in a given scope .
*
* @ param { Object } state Global application state .
* @ param { string } scope Item scope .
*
* @ return { string | null | undefined } The complementary area that is active in the given scope .
2022-04-12 11:12:47 -04:00
* /
const getActiveComplementaryArea = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , scope ) => {
2023-09-26 10:23:26 -04:00
const isComplementaryAreaVisible = select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'isComplementaryAreaVisible' ) ;
// Return `undefined` to indicate that the user has never toggled
2022-09-20 11:43:29 -04:00
// visibility, this is the vanilla default. Other code relies on this
// nuance in the return value.
if ( isComplementaryAreaVisible === undefined ) {
return undefined ;
2023-09-26 10:23:26 -04:00
}
2022-09-20 11:43:29 -04:00
2023-09-26 10:23:26 -04:00
// Return `null` to indicate the user hid the complementary area.
2023-06-27 10:24:19 -04:00
if ( isComplementaryAreaVisible === false ) {
2022-09-20 11:43:29 -04:00
return null ;
}
2023-06-27 10:24:19 -04:00
return state ? . complementaryAreas ? . [ scope ] ;
} ) ;
const isComplementaryAreaLoading = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , scope ) => {
const isVisible = select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'isComplementaryAreaVisible' ) ;
const identifier = state ? . complementaryAreas ? . [ scope ] ;
return isVisible && identifier === undefined ;
2022-04-12 11:12:47 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Returns a boolean indicating if an item is pinned or not .
*
* @ param { Object } state Global application state .
* @ param { string } scope Scope .
* @ param { string } item Item to check .
*
* @ return { boolean } True if the item is pinned and false otherwise .
* /
const isItemPinned = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , scope , item ) => {
var _pinnedItems$item ;
const pinnedItems = select ( external _wp _preferences _namespaceObject . store ) . get ( scope , 'pinnedItems' ) ;
2023-06-27 10:24:19 -04:00
return ( _pinnedItems$item = pinnedItems ? . [ item ] ) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true ;
2022-04-12 11:12:47 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Returns a boolean indicating whether a feature is active for a particular
* scope .
*
* @ param { Object } state The store state .
* @ param { string } scope The scope of the feature ( e . g . core / edit - post ) .
* @ param { string } featureName The name of the feature .
*
* @ return { boolean } Is the feature enabled ?
* /
const isFeatureActive = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , scope , featureName ) => {
2022-05-10 10:49:35 -04:00
external _wp _deprecated _default ( ) ( ` select( 'core/interface' ).isFeatureActive( scope, featureName ) ` , {
2022-04-12 11:12:47 -04:00
since : '6.0' ,
2022-05-10 10:49:35 -04:00
alternative : ` select( 'core/preferences' ).get( scope, featureName ) `
2022-04-12 11:12:47 -04:00
} ) ;
return ! ! select ( external _wp _preferences _namespaceObject . store ) . get ( scope , featureName ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if a modal is active , or false otherwise .
*
* @ param { Object } state Global application state .
* @ param { string } modalName A string that uniquely identifies the modal .
*
* @ return { boolean } Whether the modal is active .
* /
function isModalActive ( state , modalName ) {
return state . activeModal === modalName ;
}
2022-04-12 11:12:47 -04:00
2022-09-20 11:43:29 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
/ * *
* WordPress dependencies
* /
2023-06-27 10:24:19 -04:00
function complementaryAreas ( state = { } , action ) {
2022-09-20 11:43:29 -04:00
switch ( action . type ) {
case 'SET_DEFAULT_COMPLEMENTARY_AREA' :
{
const {
scope ,
area
2023-09-26 10:23:26 -04:00
} = action ;
2022-09-20 11:43:29 -04:00
2023-09-26 10:23:26 -04:00
// If there's already an area, don't overwrite it.
2022-09-20 11:43:29 -04:00
if ( state [ scope ] ) {
return state ;
}
2023-09-26 10:23:26 -04:00
return {
... state ,
2022-09-20 11:43:29 -04:00
[ scope ] : area
} ;
}
case 'ENABLE_COMPLEMENTARY_AREA' :
{
const {
scope ,
area
} = action ;
2023-09-26 10:23:26 -04:00
return {
... state ,
2022-09-20 11:43:29 -04:00
[ scope ] : area
} ;
}
}
return state ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Reducer for storing the name of the open modal , or null if no modal is open .
*
* @ param { Object } state Previous state .
* @ param { Object } action Action object containing the ` name ` of the modal
*
* @ return { Object } Updated state
* /
function activeModal ( state = null , action ) {
switch ( action . type ) {
case 'OPEN_MODAL' :
return action . name ;
case 'CLOSE_MODAL' :
return null ;
}
return state ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const reducer = ( ( 0 , external _wp _data _namespaceObject . combineReducers ) ( {
2023-06-28 03:04:13 -04:00
complementaryAreas ,
activeModal
2022-09-20 11:43:29 -04:00
} ) ) ;
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
/ * *
* The identifier for the data store .
*
* @ type { string }
* /
const STORE _NAME = 'core/interface' ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
/ * *
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Internal dependencies
* /
2022-04-11 08:04:30 -04:00
2022-09-20 11:43:29 -04:00
2022-04-11 08:04:30 -04:00
/ * *
* Store definition for the interface namespace .
2021-05-21 06:14:23 -04:00
*
2022-04-11 08:04:30 -04:00
* @ see https : //github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
2021-05-21 06:14:23 -04:00
*
2022-04-11 08:04:30 -04:00
* @ type { Object }
2021-05-21 06:14:23 -04:00
* /
2022-04-11 08:04:30 -04:00
const store = ( 0 , external _wp _data _namespaceObject . createReduxStore ) ( STORE _NAME , {
2023-06-28 03:04:13 -04:00
reducer : reducer ,
2022-04-11 08:04:30 -04:00
actions : actions _namespaceObject ,
2022-04-12 11:12:47 -04:00
selectors : selectors _namespaceObject
2023-09-26 10:23:26 -04:00
} ) ;
2022-04-11 08:04:30 -04:00
2023-09-26 10:23:26 -04:00
// Once we build a more generic persistence plugin that works across types of stores
// we'd be able to replace this with a register call.
2022-04-12 11:12:47 -04:00
( 0 , external _wp _data _namespaceObject . register ) ( store ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
/ * *
* WordPress dependencies
* /
2024-01-31 07:59:56 -05:00
/* harmony default export */ const complementary _area _context = ( ( 0 , external _wp _plugins _namespaceObject . withPluginContext ) ( ( context , ownProps ) => {
2022-04-11 08:04:30 -04:00
return {
icon : ownProps . icon || context . icon ,
identifier : ownProps . identifier || ` ${ context . name } / ${ ownProps . name } `
} ;
} ) ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
2021-11-15 07:50:17 -05:00
2022-04-11 08:04:30 -04:00
/ * *
* WordPress dependencies
2021-05-19 11:09:27 -04:00
* /
2020-07-07 10:43:35 -04:00
2021-11-15 07:50:17 -05:00
2023-09-26 10:23:26 -04:00
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
* /
2023-06-27 10:24:19 -04:00
function ComplementaryAreaToggle ( {
as = external _wp _components _namespaceObject . Button ,
scope ,
identifier ,
icon ,
selectedIcon ,
name ,
... props
} ) {
2022-04-11 08:04:30 -04:00
const ComponentToUse = as ;
2023-09-26 10:23:26 -04:00
const isSelected = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => select ( store ) . getActiveComplementaryArea ( scope ) === identifier , [ identifier , scope ] ) ;
2022-04-11 08:04:30 -04:00
const {
enableComplementaryArea ,
disableComplementaryArea
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( ComponentToUse , {
2022-04-11 08:04:30 -04:00
icon : selectedIcon && isSelected ? selectedIcon : icon ,
2023-09-26 10:23:26 -04:00
"aria-controls" : identifier . replace ( '/' , ':' ) ,
2022-04-11 08:04:30 -04:00
onClick : ( ) => {
if ( isSelected ) {
disableComplementaryArea ( scope ) ;
} else {
enableComplementaryArea ( scope , identifier ) ;
}
2023-06-27 10:24:19 -04:00
} ,
... props
} ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const complementary _area _toggle = ( complementary _area _context ( ComplementaryAreaToggle ) ) ;
2021-02-02 00:17:13 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
2021-02-02 00:17:13 -05:00
2022-04-11 08:04:30 -04:00
/ * *
* External dependencies
* /
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
* WordPress dependencies
* /
2021-11-08 09:29:21 -05:00
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
2021-05-19 11:09:27 -04:00
* /
2021-05-07 07:48:27 -04:00
2023-06-27 10:24:19 -04:00
const ComplementaryAreaHeader = ( {
smallScreenTitle ,
children ,
className ,
toggleButtonProps
} ) => {
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 toggleButton = ( 0 , external _React _namespaceObject . createElement ) ( complementary _area _toggle , {
2023-06-27 10:24:19 -04:00
icon : close _small ,
... toggleButtonProps
} ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : "components-panel__header interface-complementary-area-header__small"
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
} , smallScreenTitle && ( 0 , external _React _namespaceObject . createElement ) ( "span" , {
2022-04-11 08:04:30 -04:00
className : "interface-complementary-area-header__small-title"
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
} , smallScreenTitle ) , toggleButton ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : classnames _default ( ) ( 'components-panel__header' , 'interface-complementary-area-header' , className ) ,
tabIndex : - 1
} , children , toggleButton ) ) ;
2021-05-19 11:09:27 -04:00
} ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const complementary _area _header = ( ComplementaryAreaHeader ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
2021-01-27 21:04:13 -05:00
/ * *
* WordPress dependencies
* /
2018-12-17 22:14:52 -05:00
2022-09-20 11:43:29 -04:00
const noop = ( ) => { } ;
2023-06-27 10:24:19 -04:00
function ActionItemSlot ( {
name ,
as : Component = external _wp _components _namespaceObject . ButtonGroup ,
fillProps = { } ,
bubblesVirtually ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Slot , {
2022-04-11 08:04:30 -04:00
name : name ,
bubblesVirtually : bubblesVirtually ,
fillProps : fillProps
} , fills => {
2022-09-20 11:43:29 -04:00
if ( ! external _wp _element _namespaceObject . Children . toArray ( fills ) . length ) {
2022-04-11 08:04:30 -04:00
return null ;
2023-09-26 10:23:26 -04:00
}
// Special handling exists for backward compatibility.
2022-04-11 08:04:30 -04:00
// It ensures that menu items created by plugin authors aren't
// duplicated with automatically injected menu items coming
// from pinnable plugin sidebars.
// @see https://github.com/WordPress/gutenberg/issues/14457
const initializedByPlugins = [ ] ;
2023-06-27 10:24:19 -04:00
external _wp _element _namespaceObject . Children . forEach ( fills , ( {
props : {
_ _unstableExplicitMenuItem ,
_ _unstableTarget
}
} ) => {
2022-04-11 08:04:30 -04:00
if ( _ _unstableTarget && _ _unstableExplicitMenuItem ) {
initializedByPlugins . push ( _ _unstableTarget ) ;
}
} ) ;
const children = external _wp _element _namespaceObject . Children . map ( fills , child => {
if ( ! child . props . _ _unstableExplicitMenuItem && initializedByPlugins . includes ( child . props . _ _unstableTarget ) ) {
return null ;
}
return child ;
} ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( Component , {
2023-09-26 10:23:26 -04:00
... props
2023-06-27 10:24:19 -04:00
} , children ) ;
2022-04-11 08:04:30 -04:00
} ) ;
}
2023-06-27 10:24:19 -04:00
function ActionItem ( {
name ,
as : Component = external _wp _components _namespaceObject . Button ,
onClick ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Fill , {
2022-04-11 08:04:30 -04:00
name : name
2023-06-27 10:24:19 -04:00
} , ( {
onClick : fpOnClick
} ) => {
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 ( 0 , external _React _namespaceObject . createElement ) ( Component , {
2023-06-27 10:24:19 -04:00
onClick : onClick || fpOnClick ? ( ... args ) => {
( onClick || noop ) ( ... args ) ;
( fpOnClick || noop ) ( ... args ) ;
} : undefined ,
... props
} ) ;
2022-04-11 08:04:30 -04:00
} ) ;
}
ActionItem . Slot = ActionItemSlot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const action _item = ( ActionItem ) ;
2021-11-08 09:29:21 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
2019-03-07 04:09:59 -05:00
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2021-05-19 11:09:27 -04:00
* /
2020-06-26 09:33:47 -04:00
2022-04-11 08:04:30 -04:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
2021-05-19 11:09:27 -04:00
* /
2020-06-26 09:33:47 -04:00
2023-06-27 10:24:19 -04:00
const PluginsMenuItem = ( {
// Menu item is marked with unstable prop for backward compatibility.
// They are removed so they don't leak to DOM elements.
// @see https://github.com/WordPress/gutenberg/issues/14457
_ _unstableExplicitMenuItem ,
_ _unstableTarget ,
... restProps
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
2023-09-26 10:23:26 -04:00
... restProps
2023-06-27 10:24:19 -04:00
} ) ;
function ComplementaryAreaMoreMenuItem ( {
scope ,
target ,
_ _unstableExplicitMenuItem ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( complementary _area _toggle , {
2022-04-11 08:04:30 -04:00
as : toggleProps => {
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 ( 0 , external _React _namespaceObject . createElement ) ( action _item , {
2022-04-11 08:04:30 -04:00
_ _unstableExplicitMenuItem : _ _unstableExplicitMenuItem ,
_ _unstableTarget : ` ${ scope } / ${ target } ` ,
as : PluginsMenuItem ,
2023-06-27 10:24:19 -04:00
name : ` ${ scope } /plugin-more-menu ` ,
... toggleProps
} ) ;
2022-04-11 08:04:30 -04:00
} ,
role : "menuitemcheckbox" ,
selectedIcon : library _check ,
name : target ,
2023-06-27 10:24:19 -04:00
scope : scope ,
... props
} ) ;
2021-05-19 11:09:27 -04:00
}
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* External dependencies
2021-05-19 11:09:27 -04:00
* /
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2021-05-19 11:09:27 -04:00
* /
2021-05-07 07:48:27 -04:00
2023-06-27 10:24:19 -04:00
function PinnedItems ( {
scope ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Fill , {
2023-06-27 10:24:19 -04:00
name : ` PinnedItems/ ${ scope } ` ,
2022-04-11 08:04:30 -04:00
... props
2023-06-27 10:24:19 -04:00
} ) ;
2021-05-19 11:09:27 -04:00
}
2023-06-27 10:24:19 -04:00
function PinnedItemsSlot ( {
scope ,
className ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Slot , {
2023-06-27 10:24:19 -04:00
name : ` PinnedItems/ ${ scope } ` ,
2022-04-11 08:04:30 -04:00
... props
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
} , fills => fills ? . length > 0 && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : classnames _default ( ) ( className , 'interface-pinned-items' )
} , fills ) ) ;
2021-05-19 11:09:27 -04:00
}
2022-04-11 08:04:30 -04:00
PinnedItems . Slot = PinnedItemsSlot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const pinned _items = ( PinnedItems ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
2020-06-26 09:33:47 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* External dependencies
2020-06-26 09:33:47 -04:00
* /
2023-09-26 10:23:26 -04:00
2020-06-26 09:33:47 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2020-06-26 09:33:47 -04:00
* /
2021-01-27 21:04:13 -05:00
2020-06-26 09:33:47 -04:00
2021-11-08 09:29:21 -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
2020-06-26 09:33:47 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
2021-05-19 11:09:27 -04:00
* /
2021-11-08 09:29:21 -05:00
2020-06-26 09:33:47 -04:00
2021-05-19 11:09:27 -04:00
2021-05-21 06:14:23 -04:00
2021-05-19 11:09:27 -04:00
2023-06-27 10:24:19 -04:00
function ComplementaryAreaSlot ( {
scope ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Slot , {
2023-06-27 10:24:19 -04:00
name : ` ComplementaryArea/ ${ scope } ` ,
2022-04-11 08:04:30 -04:00
... props
2023-06-27 10:24:19 -04:00
} ) ;
2021-04-15 11:19:43 -04:00
}
2023-06-27 10:24:19 -04:00
function ComplementaryAreaFill ( {
scope ,
children ,
2023-09-26 10:23:26 -04:00
className ,
id
2023-06-27 10:24:19 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Fill , {
2022-04-11 08:04:30 -04:00
name : ` ComplementaryArea/ ${ scope } `
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
} , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-09-26 10:23:26 -04:00
id : id ,
2022-04-11 08:04:30 -04:00
className : className
} , children ) ) ;
2021-11-08 09:29:21 -05:00
}
2022-04-11 08:04:30 -04:00
function useAdjustComplementaryListener ( scope , identifier , activeArea , isActive , isSmall ) {
const previousIsSmall = ( 0 , external _wp _element _namespaceObject . useRef ) ( false ) ;
const shouldOpenWhenNotSmall = ( 0 , external _wp _element _namespaceObject . useRef ) ( false ) ;
const {
enableComplementaryArea ,
disableComplementaryArea
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2023-06-27 10:24:19 -04:00
// If the complementary area is active and the editor is switching from
// a big to a small window size.
2022-04-11 08:04:30 -04:00
if ( isActive && isSmall && ! previousIsSmall . current ) {
2023-09-26 10:23:26 -04:00
disableComplementaryArea ( scope ) ;
// Flag the complementary area to be reopened when the window size
2023-06-27 10:24:19 -04:00
// goes from small to big.
2022-04-11 08:04:30 -04:00
shouldOpenWhenNotSmall . current = true ;
2023-09-26 10:23:26 -04:00
} else if (
// If there is a flag indicating the complementary area should be
2023-06-27 10:24:19 -04:00
// enabled when we go from small to big window size and we are going
// from a small to big window size.
2022-04-11 08:04:30 -04:00
shouldOpenWhenNotSmall . current && ! isSmall && previousIsSmall . current ) {
2023-06-27 10:24:19 -04:00
// Remove the flag indicating the complementary area should be
// enabled.
shouldOpenWhenNotSmall . current = false ;
2022-04-11 08:04:30 -04:00
enableComplementaryArea ( scope , identifier ) ;
2023-09-26 10:23:26 -04:00
} else if (
// If the flag is indicating the current complementary should be
2023-06-27 10:24:19 -04:00
// reopened but another complementary area becomes active, remove
// the flag.
2022-04-11 08:04:30 -04:00
shouldOpenWhenNotSmall . current && activeArea && activeArea !== identifier ) {
shouldOpenWhenNotSmall . current = false ;
}
if ( isSmall !== previousIsSmall . current ) {
previousIsSmall . current = isSmall ;
}
2023-09-26 10:23:26 -04:00
} , [ isActive , isSmall , scope , identifier , activeArea , disableComplementaryArea , enableComplementaryArea ] ) ;
2022-04-11 08:04:30 -04:00
}
2023-06-27 10:24:19 -04:00
function ComplementaryArea ( {
children ,
className ,
closeLabel = ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Close plugin' ) ,
identifier ,
header ,
headerClassName ,
icon ,
isPinnable = true ,
panelClassName ,
scope ,
name ,
smallScreenTitle ,
title ,
toggleShortcut ,
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
isActiveByDefault
2023-06-27 10:24:19 -04:00
} ) {
2022-04-11 08:04:30 -04:00
const {
2023-06-27 10:24:19 -04:00
isLoading ,
2022-04-11 08:04:30 -04:00
isActive ,
isPinned ,
activeArea ,
isSmall ,
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
isLarge ,
showIconLabels
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
getActiveComplementaryArea ,
2023-06-27 10:24:19 -04:00
isComplementaryAreaLoading ,
2022-04-11 08:04:30 -04:00
isItemPinned
} = select ( store ) ;
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 {
get
} = select ( external _wp _preferences _namespaceObject . store ) ;
2022-04-11 08:04:30 -04:00
const _activeArea = getActiveComplementaryArea ( scope ) ;
return {
2023-06-27 10:24:19 -04:00
isLoading : isComplementaryAreaLoading ( scope ) ,
2022-04-11 08:04:30 -04:00
isActive : _activeArea === identifier ,
isPinned : isItemPinned ( scope , identifier ) ,
activeArea : _activeArea ,
isSmall : select ( external _wp _viewport _namespaceObject . store ) . isViewportMatch ( '< medium' ) ,
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
isLarge : select ( external _wp _viewport _namespaceObject . store ) . isViewportMatch ( 'large' ) ,
showIconLabels : get ( 'core' , 'showIconLabels' )
2022-04-11 08:04:30 -04:00
} ;
} , [ identifier , scope ] ) ;
useAdjustComplementaryListener ( scope , identifier , activeArea , isActive , isSmall ) ;
const {
enableComplementaryArea ,
disableComplementaryArea ,
pinItem ,
unpinItem
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2023-06-27 10:24:19 -04:00
// Set initial visibility: For large screens, enable if it's active by
// default. For small screens, always initially disable.
2022-04-11 08:04:30 -04:00
if ( isActiveByDefault && activeArea === undefined && ! isSmall ) {
enableComplementaryArea ( scope , identifier ) ;
2023-06-27 10:24:19 -04:00
} else if ( activeArea === undefined && isSmall ) {
disableComplementaryArea ( scope , identifier ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
}
2023-09-26 10:23:26 -04:00
} , [ activeArea , isActiveByDefault , scope , identifier , isSmall , enableComplementaryArea , disableComplementaryArea ] ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , isPinnable && ( 0 , external _React _namespaceObject . createElement ) ( pinned _items , {
2022-04-11 08:04:30 -04:00
scope : scope
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
} , isPinned && ( 0 , external _React _namespaceObject . createElement ) ( complementary _area _toggle , {
2022-04-11 08:04:30 -04:00
scope : scope ,
identifier : identifier ,
isPressed : isActive && ( ! showIconLabels || isLarge ) ,
"aria-expanded" : isActive ,
2023-06-27 10:24:19 -04:00
"aria-disabled" : isLoading ,
2022-04-11 08:04:30 -04:00
label : title ,
icon : showIconLabels ? library _check : icon ,
showTooltip : ! showIconLabels ,
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
variant : showIconLabels ? 'tertiary' : undefined ,
size : "compact"
} ) ) , name && isPinnable && ( 0 , external _React _namespaceObject . createElement ) ( ComplementaryAreaMoreMenuItem , {
2022-04-11 08:04:30 -04:00
target : name ,
scope : scope ,
icon : icon
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
} , title ) , isActive && ( 0 , external _React _namespaceObject . createElement ) ( ComplementaryAreaFill , {
2022-04-11 08:04:30 -04:00
className : classnames _default ( ) ( 'interface-complementary-area' , className ) ,
2023-09-26 10:23:26 -04:00
scope : scope ,
id : identifier . replace ( '/' , ':' )
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
} , ( 0 , external _React _namespaceObject . createElement ) ( complementary _area _header , {
2022-04-11 08:04:30 -04:00
className : headerClassName ,
closeLabel : closeLabel ,
onClose : ( ) => disableComplementaryArea ( scope ) ,
smallScreenTitle : smallScreenTitle ,
toggleButtonProps : {
label : closeLabel ,
shortcut : toggleShortcut ,
scope ,
identifier
}
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
} , header || ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "strong" , null , title ) , isPinnable && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-11 08:04:30 -04:00
className : "interface-complementary-area__pin-unpin-item" ,
icon : isPinned ? star _filled : star _empty ,
label : isPinned ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Unpin from toolbar' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Pin to toolbar' ) ,
onClick : ( ) => ( isPinned ? unpinItem : pinItem ) ( scope , identifier ) ,
isPressed : isPinned ,
"aria-expanded" : isPinned
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
} ) ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Panel , {
2022-04-11 08:04:30 -04:00
className : panelClassName
} , children ) ) ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
}
2022-04-11 08:04:30 -04:00
const ComplementaryAreaWrapped = complementary _area _context ( ComplementaryArea ) ;
ComplementaryAreaWrapped . Slot = ComplementaryAreaSlot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const complementary _area = ( ComplementaryAreaWrapped ) ;
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
2021-05-07 07:48:27 -04:00
/ * *
* WordPress dependencies
* /
2023-06-27 10:24:19 -04:00
const FullscreenMode = ( {
isActive
} ) => {
2022-04-11 08:04:30 -04:00
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2023-09-26 10:23:26 -04:00
let isSticky = false ;
// `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
2022-04-11 08:04:30 -04:00
// `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
// even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
2022-04-12 11:12:47 -04:00
// a consequence of the FullscreenMode setup.
2022-04-11 08:04:30 -04:00
if ( document . body . classList . contains ( 'sticky-menu' ) ) {
isSticky = true ;
document . body . classList . remove ( 'sticky-menu' ) ;
}
return ( ) => {
if ( isSticky ) {
document . body . classList . add ( 'sticky-menu' ) ;
}
} ;
} , [ ] ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
if ( isActive ) {
document . body . classList . add ( 'is-fullscreen-mode' ) ;
} else {
document . body . classList . remove ( 'is-fullscreen-mode' ) ;
}
return ( ) => {
if ( isActive ) {
document . body . classList . remove ( 'is-fullscreen-mode' ) ;
}
} ;
} , [ isActive ] ) ;
return null ;
} ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const fullscreen _mode = ( FullscreenMode ) ;
2022-04-11 08:04:30 -04:00
2023-02-07 02:04:52 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/navigable-region/index.js
/ * *
* External dependencies
* /
2023-06-27 10:24:19 -04:00
function NavigableRegion ( {
children ,
className ,
ariaLabel ,
as : Tag = 'div' ,
... props
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( Tag , {
2023-02-07 02:04:52 -05:00
className : classnames _default ( ) ( 'interface-navigable-region' , className ) ,
"aria-label" : ariaLabel ,
role : "region" ,
2023-06-27 10:24:19 -04:00
tabIndex : "-1" ,
... props
} , children ) ;
2023-02-07 02:04:52 -05:00
}
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
2019-10-15 11:37:08 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2022-04-11 08:04:30 -04:00
* External dependencies
2021-01-27 21:04:13 -05:00
* /
2019-03-07 04:09:59 -05:00
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2020-03-23 19:40:19 -04:00
2022-04-11 08:04:30 -04:00
2023-02-07 02:04:52 -05:00
/ * *
* Internal dependencies
* /
2022-04-11 08:04:30 -04:00
function useHTMLClass ( className ) {
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
const element = document && document . querySelector ( ` html:not(. ${ className } ) ` ) ;
if ( ! element ) {
return ;
}
element . classList . toggle ( className ) ;
return ( ) => {
element . classList . toggle ( className ) ;
} ;
} , [ className ] ) ;
2021-01-27 21:04:13 -05:00
}
2023-06-27 10:24:19 -04:00
const headerVariants = {
hidden : {
opacity : 0
} ,
hover : {
opacity : 1 ,
transition : {
type : 'tween' ,
delay : 0.2 ,
delayChildren : 0.2
}
} ,
distractionFreeInactive : {
opacity : 1 ,
transition : {
delay : 0
}
}
} ;
function InterfaceSkeleton ( {
isDistractionFree ,
footer ,
header ,
editorNotices ,
sidebar ,
secondarySidebar ,
notices ,
content ,
actions ,
labels ,
className ,
enableRegionNavigation = true ,
// Todo: does this need to be a prop.
// Can we use a dependency to keyboard-shortcuts directly?
shortcuts
} , ref ) {
2022-04-11 08:04:30 -04:00
const navigateRegionsProps = ( 0 , external _wp _components _namespaceObject . _ _unstableUseNavigateRegions ) ( shortcuts ) ;
useHTMLClass ( 'interface-interface-skeleton__html-container' ) ;
const defaultLabels = {
/* translators: accessibility text for the top bar landmark region. */
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
header : ( 0 , external _wp _i18n _namespaceObject . _x ) ( 'Header' , 'header landmark area' ) ,
2022-04-11 08:04:30 -04:00
/* translators: accessibility text for the content landmark region. */
body : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Content' ) ,
/* translators: accessibility text for the secondary sidebar landmark region. */
secondarySidebar : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Block Library' ) ,
/* translators: accessibility text for the settings landmark region. */
sidebar : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Settings' ) ,
/* translators: accessibility text for the publish landmark region. */
actions : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Publish' ) ,
/* translators: accessibility text for the footer landmark region. */
footer : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Footer' )
} ;
2023-09-26 10:23:26 -04:00
const mergedLabels = {
... defaultLabels ,
2022-04-11 08:04:30 -04:00
... labels
} ;
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 ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-09-26 10:23:26 -04:00
... ( enableRegionNavigation ? navigateRegionsProps : { } ) ,
2023-02-07 02:04:52 -05:00
ref : ( 0 , external _wp _compose _namespaceObject . useMergeRefs ) ( [ ref , enableRegionNavigation ? navigateRegionsProps . ref : undefined ] ) ,
2022-04-11 08:04:30 -04:00
className : classnames _default ( ) ( className , 'interface-interface-skeleton' , navigateRegionsProps . className , ! ! footer && 'has-footer' )
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
} , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__editor"
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
} , ! ! header && ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2023-02-07 02:04:52 -05:00
as : external _wp _components _namespaceObject . _ _unstableMotion . div ,
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__header" ,
"aria-label" : mergedLabels . header ,
2023-06-27 10:24:19 -04:00
initial : isDistractionFree ? 'hidden' : 'distractionFreeInactive' ,
whileHover : isDistractionFree ? 'hover' : 'distractionFreeInactive' ,
animate : isDistractionFree ? 'hidden' : 'distractionFreeInactive' ,
2023-02-07 02:04:52 -05:00
variants : headerVariants ,
2023-06-27 10:24:19 -04:00
transition : isDistractionFree ? {
2023-02-07 02:04:52 -05:00
type : 'tween' ,
delay : 0.8
2023-06-27 10:24:19 -04:00
} : undefined
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
} , header ) , isDistractionFree && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-02-07 02:04:52 -05:00
className : "interface-interface-skeleton__header"
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
} , editorNotices ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__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
} , ! ! secondarySidebar && ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__secondary-sidebar" ,
2023-02-07 02:04:52 -05:00
ariaLabel : mergedLabels . secondarySidebar
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
} , secondarySidebar ) , ! ! notices && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__notices"
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
} , notices ) , ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__content" ,
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
ariaLabel : mergedLabels . body
} , content ) , ! ! sidebar && ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__sidebar" ,
2023-02-07 02:04:52 -05:00
ariaLabel : mergedLabels . sidebar
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
} , sidebar ) , ! ! actions && ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__actions" ,
2023-02-07 02:04:52 -05:00
ariaLabel : mergedLabels . 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
} , actions ) ) ) , ! ! footer && ( 0 , external _React _namespaceObject . createElement ) ( NavigableRegion , {
2022-04-11 08:04:30 -04:00
className : "interface-interface-skeleton__footer" ,
2023-02-07 02:04:52 -05:00
ariaLabel : mergedLabels . footer
2022-04-11 08:04:30 -04:00
} , footer ) ) ;
2021-01-27 21:04:13 -05:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const interface _skeleton = ( ( 0 , external _wp _element _namespaceObject . forwardRef ) ( InterfaceSkeleton ) ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
2021-05-19 11:09:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2021-05-19 11:09:27 -04:00
* /
2020-06-26 09:33:47 -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 moreVertical = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-11 08:04:30 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-11 08:04:30 -04:00
d : "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const more _vertical = ( moreVertical ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
2020-06-26 09:33:47 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* External dependencies
2020-06-26 09:33:47 -04:00
* /
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2020-06-26 09:33:47 -04:00
2022-04-11 08:04:30 -04:00
2023-06-27 10:24:19 -04:00
function MoreMenuDropdown ( {
as : DropdownComponent = external _wp _components _namespaceObject . DropdownMenu ,
className ,
/* translators: button label text should, if possible, be under 16 characters. */
label = ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Options' ) ,
popoverProps ,
toggleProps ,
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
return ( 0 , external _React _namespaceObject . createElement ) ( DropdownComponent , {
2022-04-11 08:04:30 -04:00
className : classnames _default ( ) ( 'interface-more-menu-dropdown' , className ) ,
icon : more _vertical ,
label : label ,
popoverProps : {
2023-02-07 02:04:52 -05:00
placement : 'bottom-end' ,
2022-04-11 08:04:30 -04:00
... popoverProps ,
2023-06-27 10:24:19 -04:00
className : classnames _default ( ) ( 'interface-more-menu-dropdown__content' , popoverProps ? . className )
2022-04-11 08:04:30 -04:00
} ,
toggleProps : {
tooltipPosition : 'bottom' ,
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
... toggleProps ,
size : 'compact'
2022-04-11 08:04:30 -04:00
}
} , onClose => children ( onClose ) ) ;
2021-01-27 21:04:13 -05:00
}
2022-04-11 08:04:30 -04:00
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
2021-11-08 09:29:21 -05:00
2022-04-11 08:04:30 -04:00
2021-11-08 09:29:21 -05:00
2020-01-22 17:06:21 -05:00
2021-05-20 08:20:04 -04:00
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
2022-04-11 08:04:30 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
2024-01-31 07:59:56 -05:00
const external _wp _keyboardShortcuts _namespaceObject = window [ "wp" ] [ "keyboardShortcuts" ] ;
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js
2021-11-08 09:29:21 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* WordPress dependencies
2021-11-08 09:29:21 -05:00
* /
2023-06-28 03:04:13 -04:00
const textFormattingShortcuts = [ {
keyCombination : {
modifier : 'primary' ,
character : 'b'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Make the selected text bold.' )
} , {
keyCombination : {
modifier : 'primary' ,
character : 'i'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Make the selected text italic.' )
} , {
keyCombination : {
modifier : 'primary' ,
character : 'k'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Convert the selected text into a link.' )
} , {
keyCombination : {
modifier : 'primaryShift' ,
character : 'k'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Remove a link.' )
} , {
keyCombination : {
character : '[['
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Insert a link to a post or page.' )
} , {
keyCombination : {
modifier : 'primary' ,
character : 'u'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Underline the selected text.' )
} , {
keyCombination : {
modifier : 'access' ,
character : 'd'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Strikethrough the selected text.' )
} , {
keyCombination : {
modifier : 'access' ,
character : 'x'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Make the selected text inline code.' )
} , {
keyCombination : {
modifier : 'access' ,
character : '0'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Convert the current heading to a paragraph.' )
} , {
keyCombination : {
modifier : 'access' ,
character : '1-6'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Convert the current paragraph or heading to a heading of level 1 to 6.' )
} ] ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/shortcut.js
2021-11-08 09:29:21 -05:00
2021-05-20 08:20:04 -04:00
/ * *
* WordPress dependencies
* /
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
function KeyCombination ( {
keyCombination ,
forceAriaLabel
} ) {
const shortcut = keyCombination . modifier ? external _wp _keycodes _namespaceObject . displayShortcutList [ keyCombination . modifier ] ( keyCombination . character ) : keyCombination . character ;
const ariaLabel = keyCombination . modifier ? external _wp _keycodes _namespaceObject . shortcutAriaLabel [ keyCombination . modifier ] ( keyCombination . character ) : keyCombination . character ;
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 ( 0 , external _React _namespaceObject . createElement ) ( "kbd" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__shortcut-key-combination" ,
"aria-label" : forceAriaLabel || ariaLabel
} , ( Array . isArray ( shortcut ) ? shortcut : [ shortcut ] ) . map ( ( character , index ) => {
if ( character === '+' ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _element _namespaceObject . Fragment , {
2023-06-28 03:04:13 -04:00
key : index
} , character ) ;
}
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 ( 0 , external _React _namespaceObject . createElement ) ( "kbd" , {
2023-06-28 03:04:13 -04:00
key : index ,
className : "edit-post-keyboard-shortcut-help-modal__shortcut-key"
} , character ) ;
} ) ) ;
}
function Shortcut ( {
description ,
keyCombination ,
aliases = [ ] ,
ariaLabel
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _element _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__shortcut-description"
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
} , description ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__shortcut-term"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( KeyCombination , {
2023-06-28 03:04:13 -04:00
keyCombination : keyCombination ,
forceAriaLabel : ariaLabel
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
} ) , aliases . map ( ( alias , index ) => ( 0 , external _React _namespaceObject . createElement ) ( KeyCombination , {
2023-06-28 03:04:13 -04:00
keyCombination : alias ,
forceAriaLabel : ariaLabel ,
key : index
} ) ) ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const keyboard _shortcut _help _modal _shortcut = ( Shortcut ) ;
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* WordPress dependencies
* /
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
2021-11-08 09:29:21 -05:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
2021-11-08 09:29:21 -05:00
* /
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
function DynamicShortcut ( {
name
} ) {
const {
keyCombination ,
description ,
aliases
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
getShortcutKeyCombination ,
getShortcutDescription ,
getShortcutAliases
} = select ( external _wp _keyboardShortcuts _namespaceObject . store ) ;
return {
keyCombination : getShortcutKeyCombination ( name ) ,
aliases : getShortcutAliases ( name ) ,
description : getShortcutDescription ( name )
} ;
} , [ name ] ) ;
if ( ! keyCombination ) {
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
return ( 0 , external _React _namespaceObject . createElement ) ( keyboard _shortcut _help _modal _shortcut , {
2023-06-28 03:04:13 -04:00
keyCombination : keyCombination ,
description : description ,
aliases : aliases
} ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const dynamic _shortcut = ( DynamicShortcut ) ;
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js
2021-01-27 21:04:13 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* External dependencies
2021-01-27 21:04:13 -05:00
* /
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2020-01-22 17:06:21 -05:00
2018-12-13 23:41:57 -05:00
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
2019-09-19 11:19:18 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Internal dependencies
2019-09-19 11:19:18 -04:00
* /
2018-12-13 23:41:57 -05:00
2022-04-12 11:12:47 -04:00
2023-06-28 03:04:13 -04:00
const KEYBOARD _SHORTCUT _HELP _MODAL _NAME = 'edit-post/keyboard-shortcut-help' ;
const ShortcutList = ( {
shortcuts
} ) =>
/ *
* Disable reason : The ` list ` ARIA role is redundant but
* Safari + VoiceOver won ' t announce the list otherwise .
2021-05-19 11:09:27 -04:00
* /
2023-06-28 03:04:13 -04:00
/* eslint-disable jsx-a11y/no-redundant-roles */
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
( 0 , external _React _namespaceObject . createElement ) ( "ul" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__shortcut-list" ,
role : "list"
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
} , shortcuts . map ( ( shortcut , index ) => ( 0 , external _React _namespaceObject . createElement ) ( "li" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__shortcut" ,
key : index
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
} , typeof shortcut === 'string' ? ( 0 , external _React _namespaceObject . createElement ) ( dynamic _shortcut , {
2023-06-28 03:04:13 -04:00
name : shortcut
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
} ) : ( 0 , external _React _namespaceObject . createElement ) ( keyboard _shortcut _help _modal _shortcut , {
2023-09-26 10:23:26 -04:00
... shortcut
2023-06-28 03:04:13 -04:00
} ) ) ) )
2023-09-26 10:23:26 -04:00
/* eslint-enable jsx-a11y/no-redundant-roles */ ;
2023-06-28 03:04:13 -04:00
const ShortcutSection = ( {
title ,
shortcuts ,
className
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( "section" , {
2023-06-28 03:04:13 -04:00
className : classnames _default ( ) ( 'edit-post-keyboard-shortcut-help-modal__section' , className )
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
} , ! ! title && ( 0 , external _React _namespaceObject . createElement ) ( "h2" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__section-title"
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
} , title ) , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutList , {
2023-06-28 03:04:13 -04:00
shortcuts : shortcuts
} ) ) ;
const ShortcutCategorySection = ( {
title ,
categoryName ,
additionalShortcuts = [ ]
} ) => {
const categoryShortcuts = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
return select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getCategoryShortcuts ( categoryName ) ;
} , [ categoryName ] ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( ShortcutSection , {
2023-06-28 03:04:13 -04:00
title : title ,
shortcuts : categoryShortcuts . concat ( additionalShortcuts )
} ) ;
} ;
function KeyboardShortcutHelpModal ( {
isModalActive ,
toggleModal
} ) {
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/keyboard-shortcuts' , toggleModal ) ;
if ( ! isModalActive ) {
return null ;
2022-04-12 11:12:47 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Modal , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal" ,
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Keyboard shortcuts' ) ,
closeButtonLabel : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Close' ) ,
onRequestClose : toggleModal
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
} , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutSection , {
2023-06-28 03:04:13 -04:00
className : "edit-post-keyboard-shortcut-help-modal__main-shortcuts" ,
shortcuts : [ 'core/edit-post/keyboard-shortcuts' ]
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutCategorySection , {
2023-06-28 03:04:13 -04:00
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Global shortcuts' ) ,
categoryName : "global"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutCategorySection , {
2023-06-28 03:04:13 -04:00
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Selection shortcuts' ) ,
categoryName : "selection"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutCategorySection , {
2023-06-28 03:04:13 -04:00
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Block shortcuts' ) ,
categoryName : "block" ,
additionalShortcuts : [ {
keyCombination : {
character : '/'
} ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Change the block type after adding a new paragraph.' ) ,
/* translators: The forward-slash character. e.g. '/'. */
ariaLabel : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Forward-slash' )
} ]
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( ShortcutSection , {
2023-06-28 03:04:13 -04:00
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Text formatting' ) ,
shortcuts : textFormattingShortcuts
} ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const keyboard _shortcut _help _modal = ( ( 0 , external _wp _compose _namespaceObject . compose ) ( [ ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => ( {
2023-06-28 03:04:13 -04:00
isModalActive : select ( store ) . isModalActive ( KEYBOARD _SHORTCUT _HELP _MODAL _NAME )
} ) ) , ( 0 , external _wp _data _namespaceObject . withDispatch ) ( ( dispatch , {
isModalActive
} ) => {
const {
openModal ,
closeModal
} = dispatch ( store ) ;
2022-04-11 08:04:30 -04:00
return {
2023-06-28 03:04:13 -04:00
toggleModal : ( ) => isModalActive ? closeModal ( ) : openModal ( KEYBOARD _SHORTCUT _HELP _MODAL _NAME )
2022-04-11 08:04:30 -04:00
} ;
2023-06-28 03:04:13 -04:00
} ) ] ) ( KeyboardShortcutHelpModal ) ) ;
2022-04-12 11:12:47 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js
2021-01-27 21:04:13 -05:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* WordPress dependencies
2022-04-11 08:04:30 -04:00
* /
2018-12-13 23:41:57 -05:00
2020-06-26 09:33:47 -04:00
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
2018-12-17 22:14:52 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Internal dependencies
2018-12-17 22:14:52 -05:00
* /
2018-12-13 23:41:57 -05:00
2023-06-28 03:04:13 -04:00
function KeyboardShortcutsHelpMenuItem ( {
openModal
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
2023-06-28 03:04:13 -04:00
onClick : ( ) => {
openModal ( KEYBOARD _SHORTCUT _HELP _MODAL _NAME ) ;
} ,
shortcut : external _wp _keycodes _namespaceObject . displayShortcut . access ( 'h' )
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Keyboard shortcuts' ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const keyboard _shortcuts _help _menu _item = ( ( 0 , external _wp _data _namespaceObject . withDispatch ) ( dispatch => {
2023-06-28 03:04:13 -04:00
const {
openModal
} = dispatch ( store ) ;
return {
openModal
} ;
} ) ( KeyboardShortcutsHelpMenuItem ) ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* WordPress dependencies
2022-04-11 08:04:30 -04:00
* /
2021-01-27 21:04:13 -05:00
2022-04-12 11:12:47 -04:00
2023-06-28 03:04:13 -04:00
const {
Fill : ToolsMoreMenuGroup ,
Slot
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'ToolsMoreMenuGroup' ) ;
ToolsMoreMenuGroup . Slot = ( {
fillProps
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( Slot , {
2023-06-28 03:04:13 -04:00
fillProps : fillProps
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
} , fills => fills . length > 0 && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuGroup , {
2023-06-28 03:04:13 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Tools' )
} , fills ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const tools _more _menu _group = ( ToolsMoreMenuGroup ) ;
2023-06-28 03:04:13 -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/edit-post/build-module/plugins/welcome-guide-menu-item/index.js
/ * *
* WordPress dependencies
* /
function WelcomeGuideMenuItem ( ) {
2024-01-31 07:59:56 -05:00
const isEditingTemplate = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => select ( external _wp _editor _namespaceObject . store ) . getCurrentPostType ( ) === 'wp_template' , [ ] ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _preferences _namespaceObject . PreferenceToggleMenuItem , {
scope : "core/edit-post" ,
2024-01-31 07:59:56 -05:00
name : isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide' ,
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
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Welcome Guide' )
} ) ;
}
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* WordPress 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
2023-06-28 03:04:13 -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
2022-04-11 08:04:30 -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 ManagePatternsMenuItem ( ) {
const url = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
canUser
} = select ( external _wp _coreData _namespaceObject . store ) ;
const {
getEditorSettings
} = select ( external _wp _editor _namespaceObject . store ) ;
const isBlockTheme = getEditorSettings ( ) . _ _unstableIsBlockBasedTheme ;
const defaultUrl = ( 0 , external _wp _url _namespaceObject . addQueryArgs ) ( 'edit.php' , {
post _type : 'wp_block'
} ) ;
const patternsUrl = ( 0 , external _wp _url _namespaceObject . addQueryArgs ) ( 'site-editor.php' , {
path : '/patterns'
} ) ;
// The site editor and templates both check whether the user has
// edit_theme_options capabilities. We can leverage that here and not
// display the manage patterns link if the user can't access it.
return canUser ( 'read' , 'templates' ) && isBlockTheme ? patternsUrl : defaultUrl ;
} , [ ] ) ;
return ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
role : "menuitem" ,
href : url
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Manage patterns' ) ) ;
2023-06-28 03:04:13 -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
( 0 , external _wp _plugins _namespaceObject . registerPlugin ) ( 'edit-post' , {
render ( ) {
return ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( tools _more _menu _group , null , ( {
onClose
} ) => ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( ManagePatternsMenuItem , null ) , ( 0 , external _React _namespaceObject . createElement ) ( keyboard _shortcuts _help _menu _item , {
onSelect : onClose
} ) , ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideMenuItem , null ) , ( 0 , external _React _namespaceObject . createElement ) ( CopyContentMenuItem , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
role : "menuitem" ,
icon : library _external ,
href : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'https://wordpress.org/documentation/article/wordpress-block-editor/' ) ,
target : "_blank" ,
rel : "noopener noreferrer"
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Help' ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . VisuallyHidden , {
as : "span"
} , /* translators: accessibility text */
( 0 , external _wp _i18n _namespaceObject . _ _ ) ( '(opens in a new tab)' ) ) ) ) ) ) ;
}
} ) ;
; // CONCATENATED MODULE: external ["wp","commands"]
2024-01-31 07:59:56 -05:00
const external _wp _commands _namespaceObject = window [ "wp" ] [ "commands" ] ;
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: external ["wp","coreCommands"]
2024-01-31 07:59:56 -05:00
const external _wp _coreCommands _namespaceObject = window [ "wp" ] [ "coreCommands" ] ;
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/edit-post/build-module/store/reducer.js
/ * *
* WordPress dependencies
* /
2023-06-28 03:04:13 -04:00
function publishSidebarActive ( state = false , action ) {
switch ( action . type ) {
case 'OPEN_PUBLISH_SIDEBAR' :
return true ;
case 'CLOSE_PUBLISH_SIDEBAR' :
return false ;
case 'TOGGLE_PUBLISH_SIDEBAR' :
return ! state ;
}
return state ;
2023-02-07 02:04:52 -05:00
}
2023-09-26 10:23:26 -04:00
2018-12-13 23:41:57 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Reducer keeping track of the meta boxes isSaving state .
* A "true" value means the meta boxes saving request is in - flight .
*
*
* @ param { boolean } state Previous state .
* @ param { Object } action Action Object .
*
* @ return { Object } Updated state .
2018-12-13 23:41:57 -05:00
* /
2023-06-28 03:04:13 -04:00
function isSavingMetaBoxes ( state = false , action ) {
switch ( action . type ) {
case 'REQUEST_META_BOX_UPDATES' :
return true ;
case 'META_BOX_UPDATES_SUCCESS' :
case 'META_BOX_UPDATES_FAILURE' :
return false ;
default :
return state ;
}
}
function mergeMetaboxes ( metaboxes = [ ] , newMetaboxes ) {
const mergedMetaboxes = [ ... metaboxes ] ;
for ( const metabox of newMetaboxes ) {
const existing = mergedMetaboxes . findIndex ( box => box . id === metabox . id ) ;
if ( existing !== - 1 ) {
mergedMetaboxes [ existing ] = metabox ;
} else {
mergedMetaboxes . push ( metabox ) ;
2022-04-11 08:04:30 -04:00
}
}
2023-06-28 03:04:13 -04:00
return mergedMetaboxes ;
2022-04-11 08:04:30 -04:00
}
2023-09-26 10:23:26 -04:00
2019-09-19 11:19:18 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Reducer keeping track of the meta boxes per location .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { boolean } state Previous state .
* @ param { Object } action Action Object .
*
* @ return { Object } Updated state .
2019-09-19 11:19:18 -04:00
* /
2023-06-28 03:04:13 -04:00
function metaBoxLocations ( state = { } , action ) {
switch ( action . type ) {
case 'SET_META_BOXES_PER_LOCATIONS' :
{
2023-09-26 10:23:26 -04:00
const newState = {
... state
2023-06-28 03:04:13 -04:00
} ;
for ( const [ location , metaboxes ] of Object . entries ( action . metaBoxesPerLocation ) ) {
newState [ location ] = mergeMetaboxes ( newState [ location ] , metaboxes ) ;
}
return newState ;
}
}
return state ;
2021-05-19 11:09:27 -04:00
}
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Reducer tracking whether meta boxes are initialized .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { boolean } state
* @ param { Object } action
*
* @ return { boolean } Updated state .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function metaBoxesInitialized ( state = false , action ) {
switch ( action . type ) {
case 'META_BOXES_INITIALIZED' :
return true ;
2023-06-27 10:24:19 -04:00
}
2023-06-28 03:04:13 -04:00
return state ;
}
const metaBoxes = ( 0 , external _wp _data _namespaceObject . combineReducers ) ( {
isSaving : isSavingMetaBoxes ,
locations : metaBoxLocations ,
initialized : metaBoxesInitialized
} ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const store _reducer = ( ( 0 , external _wp _data _namespaceObject . combineReducers ) ( {
2023-06-28 03:04:13 -04:00
metaBoxes ,
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
publishSidebarActive
2023-06-28 03:04:13 -04:00
} ) ) ;
2021-01-27 21:04:13 -05:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: external ["wp","apiFetch"]
2024-01-31 07:59:56 -05:00
const external _wp _apiFetch _namespaceObject = window [ "wp" ] [ "apiFetch" ] ;
2023-06-28 03:04:13 -04:00
var external _wp _apiFetch _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _wp _apiFetch _namespaceObject ) ;
; // CONCATENATED MODULE: external ["wp","a11y"]
2024-01-31 07:59:56 -05:00
const external _wp _a11y _namespaceObject = window [ "wp" ] [ "a11y" ] ;
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
/ * *
* Function returning the current Meta Boxes DOM Node in the editor
* whether the meta box area is opened or not .
* If the MetaBox Area is visible returns it , and returns the original container instead .
*
* @ param { string } location Meta Box location .
*
* @ return { string } HTML content .
* /
const getMetaBoxContainer = location => {
const area = document . querySelector ( ` .edit-post-meta-boxes-area.is- ${ location } .metabox-location- ${ location } ` ) ;
if ( area ) {
return area ;
2022-04-11 08:04:30 -04:00
}
2023-06-28 03:04:13 -04:00
return document . querySelector ( '#metaboxes .metabox-location-' + location ) ;
} ;
2022-04-12 11:12:47 -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: external ["wp","privateApis"]
2024-01-31 07:59:56 -05:00
const external _wp _privateApis _namespaceObject = window [ "wp" ] [ "privateApis" ] ;
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/edit-post/build-module/lock-unlock.js
2023-06-28 03:04:13 -04:00
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -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 {
lock ,
unlock
} = ( 0 , external _wp _privateApis _namespaceObject . _ _dangerousOptInToUnstableAPIsOnlyForCoreModules ) ( 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.' , '@wordpress/edit-post' ) ;
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
2020-06-26 09:33:47 -04:00
2021-01-27 21:04:13 -05:00
2022-09-20 11:43:29 -04:00
2021-01-27 21:04:13 -05:00
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Internal dependencies
2022-09-20 11:43:29 -04:00
* /
2023-06-28 03:04:13 -04:00
2021-01-27 21:04:13 -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
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used in signalling that the user opened an editor sidebar .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { ? string } name Sidebar name to be opened .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
const openGeneralSidebar = name => ( {
2023-09-26 10:23:26 -04:00
dispatch ,
2023-06-28 03:04:13 -04:00
registry
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 isDistractionFree = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'distractionFree' ) ;
2023-09-26 10:23:26 -04:00
if ( isDistractionFree ) {
dispatch . toggleDistractionFree ( ) ;
}
registry . dispatch ( store ) . enableComplementaryArea ( store _store . name , name ) ;
} ;
2021-01-27 21:04:13 -05:00
2023-09-26 10:23:26 -04:00
/ * *
* Returns an action object signalling that the user closed the sidebar .
* /
2023-06-28 03:04:13 -04:00
const closeGeneralSidebar = ( ) => ( {
registry
} ) => registry . dispatch ( store ) . disableComplementaryArea ( store _store . name ) ;
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used in signalling that the user opened a modal .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ deprecated since WP 6.3 use ` core/interface ` store ' s action with the same name instead .
2022-09-20 11:43:29 -04:00
*
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string } name A string that uniquely identifies the modal .
*
* @ return { Object } Action object .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
const actions _openModal = name => ( {
registry
} ) => {
external _wp _deprecated _default ( ) ( "select( 'core/edit-post' ).openModal( name )" , {
since : '6.3' ,
alternative : "select( 'core/interface').openModal( name )"
} ) ;
return registry . dispatch ( store ) . openModal ( name ) ;
} ;
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object signalling that the user closed a modal .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ deprecated since WP 6.3 use ` core/interface ` store ' s action with the same name instead .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
const actions _closeModal = ( ) => ( {
registry
} ) => {
external _wp _deprecated _default ( ) ( "select( 'core/edit-post' ).closeModal()" , {
since : '6.3' ,
alternative : "select( 'core/interface').closeModal()"
} ) ;
return registry . dispatch ( store ) . closeModal ( ) ;
} ;
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used in signalling that the user opened the publish
* sidebar .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function openPublishSidebar ( ) {
return {
type : 'OPEN_PUBLISH_SIDEBAR'
} ;
2021-05-19 11:09:27 -04:00
}
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used in signalling that the user closed the
* publish sidebar .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
* /
function closePublishSidebar ( ) {
return {
type : 'CLOSE_PUBLISH_SIDEBAR'
} ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an action object used in signalling that the user toggles the publish sidebar .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object
2021-05-19 11:09:27 -04:00
* /
2023-06-28 03:04:13 -04:00
function togglePublishSidebar ( ) {
return {
type : 'TOGGLE_PUBLISH_SIDEBAR'
} ;
2022-04-11 08:04:30 -04:00
}
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to enable or disable a panel in the editor .
2022-04-11 08:04:30 -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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { string } panelName A string that identifies the panel to enable or disable .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
2021-05-19 11:09:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const toggleEditorPanelEnabled = panelName => ( {
registry
} ) => {
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 _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).toggleEditorPanelEnabled" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').toggleEditorPanelEnabled"
} ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . toggleEditorPanelEnabled ( panelName ) ;
2023-06-28 03:04:13 -04:00
} ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Opens a closed panel and closes an open panel .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { string } panelName A string that identifies the panel to open or close .
* /
const toggleEditorPanelOpened = panelName => ( {
registry
} ) => {
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 _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).toggleEditorPanelOpened" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').toggleEditorPanelOpened"
} ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . toggleEditorPanelOpened ( panelName ) ;
2023-06-28 03:04:13 -04:00
} ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an action object used to remove a panel from the editor .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { string } panelName A string that identifies the panel to remove .
*
* @ return { Object } Action 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 removeEditorPanel = panelName => ( {
registry
} ) => {
external _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).removeEditorPanel" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').removeEditorPanel"
} ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . removeEditorPanel ( panelName ) ;
} ;
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Triggers an action used to toggle a feature flag .
*
* @ param { string } feature Feature name .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
const actions _toggleFeature = feature => ( {
registry
} ) => registry . dispatch ( external _wp _preferences _namespaceObject . store ) . toggle ( 'core/edit-post' , feature ) ;
2023-09-26 10:23:26 -04:00
2021-11-08 09:29:21 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Triggers an action used to switch editor mode .
*
* @ param { string } mode The editor mode .
2021-11-08 09:29:21 -05:00
* /
2023-06-28 03:04:13 -04:00
const switchEditorMode = mode => ( {
2023-09-26 10:23:26 -04:00
dispatch ,
2023-06-28 03:04:13 -04:00
registry
} ) => {
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
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core' , 'editorMode' , mode ) ;
2021-11-08 09:29:21 -05:00
2023-09-26 10:23:26 -04:00
// Unselect blocks when we switch to the code editor.
2023-06-28 03:04:13 -04:00
if ( mode !== 'visual' ) {
registry . dispatch ( external _wp _blockEditor _namespaceObject . store ) . clearSelectedBlock ( ) ;
}
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 ( mode === 'text' && registry . select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'distractionFree' ) ) {
2023-09-26 10:23:26 -04:00
dispatch . toggleDistractionFree ( ) ;
}
2023-06-28 03:04:13 -04:00
const message = mode === 'visual' ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Visual editor selected' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Code editor selected' ) ;
( 0 , external _wp _a11y _namespaceObject . speak ) ( message , 'assertive' ) ;
} ;
2023-09-26 10:23:26 -04:00
2021-11-08 09:29:21 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Triggers an action object used to toggle a plugin name flag .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string } pluginName Plugin name .
* /
const togglePinnedPluginItem = pluginName => ( {
registry
} ) => {
const isPinned = registry . select ( store ) . isItemPinned ( 'core/edit-post' , pluginName ) ;
registry . dispatch ( store ) [ isPinned ? 'unpinItem' : 'pinItem' ] ( 'core/edit-post' , pluginName ) ;
} ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an action object used in signaling that a style should be auto - applied when a block is created .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string } blockName Name of the block .
* @ param { ? string } blockStyle Name of the style that should be auto applied . If undefined , the "auto apply" setting of the block is removed .
2021-11-08 09:29:21 -05:00
* /
2023-06-28 03:04:13 -04:00
const updatePreferredStyleVariations = ( blockName , blockStyle ) => ( {
registry
} ) => {
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 _registry$select$get ;
2023-06-28 03:04:13 -04:00
if ( ! blockName ) {
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 existingVariations = ( _registry$select$get = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( 'core/edit-post' , 'preferredStyleVariations' ) ) !== null && _registry$select$get !== void 0 ? _registry$select$get : { } ;
2023-06-28 03:04:13 -04:00
2023-09-26 10:23:26 -04:00
// When the blockStyle is omitted, remove the block's preferred variation.
2023-06-28 03:04:13 -04:00
if ( ! blockStyle ) {
2023-09-26 10:23:26 -04:00
const updatedVariations = {
... existingVariations
2023-06-28 03:04:13 -04:00
} ;
delete updatedVariations [ blockName ] ;
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core/edit-post' , 'preferredStyleVariations' , updatedVariations ) ;
} else {
// Else add the variation.
2023-09-26 10:23:26 -04:00
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core/edit-post' , 'preferredStyleVariations' , {
... existingVariations ,
2023-06-28 03:04:13 -04:00
[ blockName ] : blockStyle
} ) ;
}
} ;
2023-09-26 10:23:26 -04:00
2021-05-20 08:20:04 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Update the provided block types to be visible .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string [ ] } blockNames Names of block types to show .
2021-05-20 08:20:04 -04:00
* /
2023-06-28 03:04:13 -04:00
const showBlockTypes = blockNames => ( {
registry
} ) => {
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
unlock ( registry . dispatch ( external _wp _editor _namespaceObject . store ) ) . showBlockTypes ( blockNames ) ;
2023-06-28 03:04:13 -04:00
} ;
2023-09-26 10:23:26 -04:00
2021-05-20 08:20:04 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Update the provided block types to be hidden .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { string [ ] } blockNames Names of block types to hide .
2021-05-20 08:20:04 -04:00
* /
2023-06-28 03:04:13 -04:00
const hideBlockTypes = blockNames => ( {
registry
} ) => {
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
unlock ( registry . dispatch ( external _wp _editor _namespaceObject . store ) ) . hideBlockTypes ( blockNames ) ;
2023-06-28 03:04:13 -04:00
} ;
2023-09-26 10:23:26 -04:00
2021-05-20 08:20:04 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Stores info about which Meta boxes are available in which location .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { Object } metaBoxesPerLocation Meta boxes per location .
2021-05-20 08:20:04 -04:00
* /
2023-06-28 03:04:13 -04:00
function setAvailableMetaBoxesPerLocation ( metaBoxesPerLocation ) {
return {
type : 'SET_META_BOXES_PER_LOCATIONS' ,
metaBoxesPerLocation
} ;
}
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Update a metabox .
2022-04-12 11:12:47 -04:00
* /
2023-06-28 03:04:13 -04:00
const requestMetaBoxUpdates = ( ) => async ( {
registry ,
select ,
dispatch
} ) => {
dispatch ( {
type : 'REQUEST_META_BOX_UPDATES'
2023-09-26 10:23:26 -04:00
} ) ;
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
// Saves the wp_editor fields.
2023-06-28 03:04:13 -04:00
if ( window . tinyMCE ) {
window . tinyMCE . triggerSave ( ) ;
2023-09-26 10:23:26 -04:00
}
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
// Additional data needed for backward compatibility.
// If we do not provide this data, the post will be overridden with the default values.
2023-06-28 03:04:13 -04:00
const post = registry . select ( external _wp _editor _namespaceObject . store ) . getCurrentPost ( ) ;
2023-09-26 10:23:26 -04:00
const additionalData = [ post . comment _status ? [ 'comment_status' , post . comment _status ] : false , post . ping _status ? [ 'ping_status' , post . ping _status ] : false , post . sticky ? [ 'sticky' , post . sticky ] : false , post . author ? [ 'post_author' , post . author ] : false ] . filter ( Boolean ) ;
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
// We gather all the metaboxes locations data and the base form data.
2023-06-28 03:04:13 -04:00
const baseFormData = new window . FormData ( document . querySelector ( '.metabox-base-form' ) ) ;
const activeMetaBoxLocations = select . getActiveMetaBoxLocations ( ) ;
2023-09-26 10:23:26 -04:00
const formDataToMerge = [ baseFormData , ... activeMetaBoxLocations . map ( location => new window . FormData ( getMetaBoxContainer ( location ) ) ) ] ;
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
// Merge all form data objects into a single one.
2023-06-28 03:04:13 -04:00
const formData = formDataToMerge . reduce ( ( memo , currentFormData ) => {
for ( const [ key , value ] of currentFormData ) {
memo . append ( key , value ) ;
}
return memo ;
} , new window . FormData ( ) ) ;
additionalData . forEach ( ( [ key , value ] ) => formData . append ( key , value ) ) ;
try {
// Save the metaboxes.
await external _wp _apiFetch _default ( ) ( {
url : window . _wpMetaBoxUrl ,
method : 'POST' ,
body : formData ,
parse : false
} ) ;
dispatch . metaBoxUpdatesSuccess ( ) ;
} catch {
dispatch . metaBoxUpdatesFailure ( ) ;
}
} ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to signal a successful meta box update .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
2021-05-19 11:09:27 -04:00
* /
2023-06-28 03:04:13 -04:00
function metaBoxUpdatesSuccess ( ) {
return {
type : 'META_BOX_UPDATES_SUCCESS'
} ;
2022-04-11 08:04:30 -04:00
}
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to signal a failed meta box update .
2022-04-12 11:12:47 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Object } Action object .
2022-04-12 11:12:47 -04:00
* /
2023-06-28 03:04:13 -04:00
function metaBoxUpdatesFailure ( ) {
return {
type : 'META_BOX_UPDATES_FAILURE'
} ;
}
2023-09-26 10:23:26 -04:00
2019-09-19 11:19:18 -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
* Action that changes the width of the editing canvas .
2022-04-11 08:04:30 -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
* @ deprecated
2022-04-11 08:04:30 -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 { string } deviceType
2019-09-19 11:19:18 -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 _ _experimentalSetPreviewDeviceType = deviceType => ( {
registry
} ) => {
external _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).__experimentalSetPreviewDeviceType" , {
since : '6.5' ,
version : '6.7' ,
hint : 'registry.dispatch( editorStore ).setDeviceType'
} ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . setDeviceType ( deviceType ) ;
} ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to open / close the inserter .
2022-04-11 08:04:30 -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
* @ deprecated
2022-04-11 08:04:30 -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 { boolean | Object } value Whether the inserter should be opened ( true ) or closed ( false ) .
2021-05-07 07:48:27 -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 setIsInserterOpened = value => ( {
registry
} ) => {
external _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).setIsInserterOpened" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').setIsInserterOpened"
} ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . setIsInserterOpened ( value ) ;
} ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to open / close the list view .
2022-04-11 08:04:30 -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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { boolean } isOpen A boolean representing whether the list view should be opened or closed .
2021-05-19 11:09:27 -04:00
* /
2023-09-26 10:23:26 -04:00
const setIsListViewOpened = isOpen => ( {
registry
} ) => {
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 _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).setIsListViewOpened" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').setIsListViewOpened"
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
registry . dispatch ( external _wp _editor _namespaceObject . store ) . setIsListViewOpened ( isOpen ) ;
2023-09-26 10:23:26 -04:00
} ;
2021-01-27 21:04:13 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns an action object used to switch to template editing .
2022-04-11 08:04:30 -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
* @ deprecated
2021-05-07 07:48:27 -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 setIsEditingTemplate ( ) {
external _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).setIsEditingTemplate" , {
since : '6.5' ,
alternative : "dispatch( 'core/editor').setRenderingMode"
} ) ;
2023-06-28 03:04:13 -04:00
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
type : 'NOTHING'
2023-06-28 03:04:13 -04:00
} ;
}
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2023-06-28 03:04:13 -04:00
* Create a block based template .
2022-04-11 08:04:30 -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
* @ deprecated
2021-01-27 21:04:13 -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
function _ _unstableCreateTemplate ( ) {
external _wp _deprecated _default ( ) ( "dispatch( 'core/edit-post' ).__unstableCreateTemplate" , {
since : '6.5'
2023-06-28 03:04:13 -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 {
type : 'NOTHING'
} ;
}
2023-06-28 03:04:13 -04:00
let actions _metaBoxesInitialized = false ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Initializes WordPress ` postboxes ` script and the logic for saving meta boxes .
2021-05-19 11:09:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const initializeMetaBoxes = ( ) => ( {
registry ,
select ,
dispatch
} ) => {
const isEditorReady = registry . select ( external _wp _editor _namespaceObject . store ) . _ _unstableIsEditorReady ( ) ;
if ( ! isEditorReady ) {
return ;
2023-09-26 10:23:26 -04:00
}
// Only initialize once.
2023-06-28 03:04:13 -04:00
if ( actions _metaBoxesInitialized ) {
return ;
}
const postType = registry . select ( external _wp _editor _namespaceObject . store ) . getCurrentPostType ( ) ;
if ( window . postboxes . page !== postType ) {
window . postboxes . add _postbox _toggles ( postType ) ;
}
actions _metaBoxesInitialized = true ;
2023-09-26 10:23:26 -04:00
// Save metaboxes on save completion, except for autosaves.
( 0 , external _wp _hooks _namespaceObject . addFilter ) ( 'editor.__unstableSavePost' , 'core/edit-post/save-metaboxes' , ( previous , options ) => previous . then ( ( ) => {
if ( options . isAutosave ) {
return ;
2023-06-28 03:04:13 -04:00
}
2023-09-26 10:23:26 -04:00
if ( ! select . hasMetaBoxes ( ) ) {
return ;
}
return dispatch . requestMetaBoxUpdates ( ) ;
} ) ) ;
2023-06-28 03:04:13 -04:00
dispatch ( {
type : 'META_BOXES_INITIALIZED'
} ) ;
} ;
2023-09-26 10:23:26 -04:00
/ * *
* Action that toggles Distraction free mode .
* Distraction free mode expects there are no sidebars , as due to the
* z - index values set , you can ' t close sidebars .
* /
const toggleDistractionFree = ( ) => ( {
dispatch ,
registry
} ) => {
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 isDistractionFree = registry . select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'distractionFree' ) ;
2024-02-09 13:22:22 -05:00
if ( isDistractionFree ) {
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core' , 'fixedToolbar' , false ) ;
}
2023-09-26 10:23:26 -04:00
if ( ! isDistractionFree ) {
registry . batch ( ( ) => {
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
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core' , 'fixedToolbar' , true ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . setIsInserterOpened ( false ) ;
registry . dispatch ( external _wp _editor _namespaceObject . store ) . setIsListViewOpened ( false ) ;
2023-09-26 10:23:26 -04:00
dispatch . closeGeneralSidebar ( ) ;
} ) ;
}
registry . batch ( ( ) => {
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
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core' , 'distractionFree' , ! isDistractionFree ) ;
2023-09-26 10:23:26 -04:00
registry . dispatch ( external _wp _notices _namespaceObject . store ) . createInfoNotice ( isDistractionFree ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Distraction free off.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Distraction free on.' ) , {
id : 'core/edit-post/distraction-free-mode/notice' ,
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
type : 'snackbar' ,
actions : [ {
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Undo' ) ,
onClick : ( ) => {
2024-02-09 13:22:22 -05:00
registry . batch ( ( ) => {
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . set ( 'core' , 'fixedToolbar' , isDistractionFree ? true : false ) ;
registry . dispatch ( external _wp _preferences _namespaceObject . store ) . toggle ( 'core' , 'distractionFree' ) ;
} ) ;
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
} ) ;
} ) ;
} ;
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/rememo/rememo.js
/** @typedef {(...args: any[]) => *[]} GetDependants */
/** @typedef {() => void} Clear */
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* @ typedef { {
* getDependants : GetDependants ,
* clear : Clear
* } } EnhancedSelector
2021-05-19 11:09:27 -04:00
* /
2021-04-15 11:19:43 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Internal cache entry .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ typedef CacheNode
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ property { ? CacheNode | undefined } [ prev ] Previous node .
* @ property { ? CacheNode | undefined } [ next ] Next node .
* @ property { * [ ] } args Function arguments for cache entry .
* @ property { * } val Function result .
2022-04-11 08:04:30 -04:00
* /
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* @ typedef Cache
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ property { Clear } clear Function to clear cache .
* @ property { boolean } [ isUniqueByDependants ] Whether dependants are valid in
* considering cache uniqueness . A cache is unique if dependents are all arrays
* or objects .
* @ property { CacheNode ? } [ head ] Cache head .
* @ property { * [ ] } [ lastDependants ] Dependants from previous invocation .
2022-04-11 08:04:30 -04:00
* /
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Arbitrary value used as key for referencing cache object in WeakMap tree .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ type { { } }
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
var LEAF _KEY = { } ;
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns the first argument as the sole entry in an array .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ template T
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { T } value Value to return .
*
* @ return { [ T ] } Value returned as entry in array .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function arrayOf ( value ) {
return [ value ] ;
}
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the value passed is object - like , or false otherwise . A value
* is object - like if it can support property assignment , e . g . object or array .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { * } value Value to test .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { boolean } Whether value is object - like .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function isObjectLike ( value ) {
return ! ! value && 'object' === typeof value ;
2022-04-11 08:04:30 -04:00
}
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Creates and returns a new cache object .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { Cache } Cache object .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function createCache ( ) {
/** @type {Cache} */
var cache = {
clear : function ( ) {
cache . head = null ;
} ,
} ;
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
return cache ;
2022-04-11 08:04:30 -04:00
}
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if entries within the two arrays are strictly equal by
* reference from a starting index .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { * [ ] } a First array .
* @ param { * [ ] } b Second array .
* @ param { number } fromIndex Index from which to start comparison .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { boolean } Whether arrays are shallowly equal .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function isShallowEqual ( a , b , fromIndex ) {
var i ;
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
if ( a . length !== b . length ) {
return false ;
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
for ( i = fromIndex ; i < a . length ; i ++ ) {
if ( a [ i ] !== b [ i ] ) {
return false ;
}
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
return true ;
2022-04-11 08:04:30 -04:00
}
2021-05-20 08:20:04 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns a memoized selector function . The getDependants function argument is
* called before the memoized selector and is expected to return an immutable
* reference or array of references on which the selector depends for computing
* its own return value . The memoize cache is preserved only as long as those
* dependant references remain the same . If getDependants returns a different
* reference ( s ) , the cache is cleared and the selector value regenerated .
2022-04-11 08:04:30 -04:00
*
2023-06-28 03:04:13 -04:00
* @ template { ( ... args : * [ ] ) => * } S
*
* @ param { S } selector Selector function .
* @ param { GetDependants = } getDependants Dependant getter returning an array of
* references used in cache bust consideration .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
/* harmony default export */ function rememo ( selector , getDependants ) {
/** @type {WeakMap<*,*>} */
var rootCache ;
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
/** @type {GetDependants} */
var normalizedGetDependants = getDependants ? getDependants : arrayOf ;
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns the cache for a given dependants array . When possible , a WeakMap
* will be used to create a unique cache for each set of dependants . This
* is feasible due to the nature of WeakMap in allowing garbage collection
* to occur on entries where the key object is no longer referenced . Since
* WeakMap requires the key to be an object , this is only possible when the
* dependant is object - like . The root cache is created as a hierarchy where
* each top - level key is the first entry in a dependants set , the value a
* WeakMap where each key is the next dependant , and so on . This continues
* so long as the dependants are object - like . If no dependants are object -
* like , then the cache is shared across all invocations .
*
* @ see isObjectLike
*
* @ param { * [ ] } dependants Selector dependants .
*
* @ return { Cache } Cache object .
* /
function getCache ( dependants ) {
var caches = rootCache ,
isUniqueByDependants = true ,
i ,
dependant ,
map ,
cache ;
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
for ( i = 0 ; i < dependants . length ; i ++ ) {
dependant = dependants [ i ] ;
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
// Can only compose WeakMap from object-like key.
if ( ! isObjectLike ( dependant ) ) {
isUniqueByDependants = false ;
break ;
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
// Does current segment of cache already have a WeakMap?
if ( caches . has ( dependant ) ) {
// Traverse into nested WeakMap.
caches = caches . get ( dependant ) ;
} else {
// Create, set, and traverse into a new one.
map = new WeakMap ( ) ;
caches . set ( dependant , map ) ;
caches = map ;
}
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
// We use an arbitrary (but consistent) object as key for the last item
// in the WeakMap to serve as our running cache.
if ( ! caches . has ( LEAF _KEY ) ) {
cache = createCache ( ) ;
cache . isUniqueByDependants = isUniqueByDependants ;
caches . set ( LEAF _KEY , cache ) ;
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
return caches . get ( LEAF _KEY ) ;
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Resets root memoization cache .
* /
function clear ( ) {
rootCache = new WeakMap ( ) ;
}
2021-05-20 08:20:04 -04:00
2023-06-28 03:04:13 -04:00
/* eslint-disable jsdoc/check-param-names */
/ * *
* The augmented selector call , considering first whether dependants have
* changed before passing it to underlying memoize function .
*
* @ param { * } source Source object for derivation .
* @ param { ... * } extraArgs Additional arguments to pass to selector .
*
* @ return { * } Selector result .
* /
/* eslint-enable jsdoc/check-param-names */
function callSelector ( /* source, ...extraArgs */ ) {
var len = arguments . length ,
cache ,
node ,
i ,
args ,
dependants ;
2021-06-01 04:10:04 -04:00
2023-06-28 03:04:13 -04:00
// Create copy of arguments (avoid leaking deoptimization).
args = new Array ( len ) ;
for ( i = 0 ; i < len ; i ++ ) {
args [ i ] = arguments [ i ] ;
}
2021-06-01 04:10:04 -04:00
2023-06-28 03:04:13 -04:00
dependants = normalizedGetDependants . apply ( null , args ) ;
cache = getCache ( dependants ) ;
2021-06-01 04:10:04 -04:00
2023-06-28 03:04:13 -04:00
// If not guaranteed uniqueness by dependants (primitive type), shallow
// compare against last dependants and, if references have changed,
// destroy cache to recalculate result.
if ( ! cache . isUniqueByDependants ) {
if (
cache . lastDependants &&
! isShallowEqual ( dependants , cache . lastDependants , 0 )
) {
cache . clear ( ) ;
}
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
cache . lastDependants = dependants ;
}
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
node = cache . head ;
while ( node ) {
// Check whether node arguments match arguments
if ( ! isShallowEqual ( node . args , args , 1 ) ) {
node = node . next ;
continue ;
}
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
// At this point we can assume we've found a match
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
// Surface matched node to head if not already
if ( node !== cache . head ) {
// Adjust siblings to point to each other.
/** @type {CacheNode} */ ( node . prev ) . next = node . next ;
if ( node . next ) {
node . next . prev = node . prev ;
}
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
node . next = cache . head ;
node . prev = null ;
/** @type {CacheNode} */ ( cache . head ) . prev = node ;
cache . head = node ;
}
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
// Return immediately
return node . val ;
}
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
// No cached value found. Continue to insertion phase:
2022-01-04 00:39:28 -05:00
2023-06-28 03:04:13 -04:00
node = /** @type {CacheNode} */ ( {
// Generate the result from original function
val : selector . apply ( null , args ) ,
} ) ;
2021-05-19 11:09:27 -04:00
2023-06-28 03:04:13 -04:00
// Avoid including the source object in the cache.
args [ 0 ] = null ;
node . args = args ;
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
// Don't need to check whether node is already head, since it would
// have been returned above already if it was
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
// Shift existing head down list
if ( cache . head ) {
cache . head . prev = node ;
node . next = cache . head ;
}
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
cache . head = node ;
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
return node . val ;
}
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
callSelector . getDependants = normalizedGetDependants ;
callSelector . clear = clear ;
clear ( ) ;
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
return /** @type {S & EnhancedSelector} */ ( callSelector ) ;
2022-04-11 08:04:30 -04:00
}
2020-06-26 09:33:47 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
/ * *
* External dependencies
* /
2020-06-26 09:33:47 -04:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2020-06-26 09:33:47 -04:00
2021-05-19 11:09:27 -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-06-28 03:04:13 -04:00
const EMPTY _ARRAY = [ ] ;
const EMPTY _OBJECT = { } ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns the current editing mode .
*
* @ param { Object } state Global application state .
*
* @ return { string } Editing mode .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const getEditorMode = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
var _select$get ;
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 ( _select$get = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'editorMode' ) ) !== null && _select$get !== void 0 ? _select$get : 'visual' ;
2023-06-28 03:04:13 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the editor sidebar is opened .
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether the editor sidebar is opened .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const isEditorSidebarOpened = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
const activeGeneralSidebar = select ( store ) . getActiveComplementaryArea ( 'core/edit-post' ) ;
return [ 'edit-post/document' , 'edit-post/block' ] . includes ( activeGeneralSidebar ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the plugin sidebar is opened .
*
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether the plugin sidebar is opened .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const isPluginSidebarOpened = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
const activeGeneralSidebar = select ( store ) . getActiveComplementaryArea ( 'core/edit-post' ) ;
return ! ! activeGeneralSidebar && ! [ 'edit-post/document' , 'edit-post/block' ] . includes ( activeGeneralSidebar ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns the current active general sidebar name , or null if there is no
* general sidebar active . The active general sidebar is a unique name to
* identify either an editor or plugin sidebar .
*
* Examples :
*
* - ` edit-post/document `
* - ` my-plugin/insert-image-sidebar `
*
* @ param { Object } state Global application state .
*
* @ return { ? string } Active general sidebar name .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const getActiveGeneralSidebarName = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
return select ( store ) . getActiveComplementaryArea ( 'core/edit-post' ) ;
2021-05-19 11:09:27 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2020-06-26 09:33:47 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Converts panels from the new preferences store format to the old format
* that the post editor previously used .
*
* The resultant converted data should look like this :
* {
* panelName : {
* enabled : false ,
* opened : true ,
* } ,
* anotherPanelName : {
* opened : true
* } ,
* }
*
* @ param { string [ ] | undefined } inactivePanels An array of inactive panel names .
* @ param { string [ ] | undefined } openPanels An array of open panel names .
*
* @ return { Object } The converted panel data .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
function convertPanelsToOldFormat ( inactivePanels , openPanels ) {
var _ref ;
// First reduce the inactive panels.
2023-09-26 10:23:26 -04:00
const panelsWithEnabledState = inactivePanels ? . reduce ( ( accumulatedPanels , panelName ) => ( {
... accumulatedPanels ,
2023-06-28 03:04:13 -04:00
[ panelName ] : {
enabled : false
}
2023-09-26 10:23:26 -04:00
} ) , { } ) ;
// Then reduce the open panels, passing in the result of the previous
2023-06-28 03:04:13 -04:00
// reduction as the initial value so that both open and inactive
// panel state is combined.
const panels = openPanels ? . reduce ( ( accumulatedPanels , panelName ) => {
const currentPanelState = accumulatedPanels ? . [ panelName ] ;
2023-09-26 10:23:26 -04:00
return {
... accumulatedPanels ,
[ panelName ] : {
... currentPanelState ,
2023-06-28 03:04:13 -04:00
opened : true
}
} ;
2023-09-26 10:23:26 -04:00
} , panelsWithEnabledState !== null && panelsWithEnabledState !== void 0 ? panelsWithEnabledState : { } ) ;
// The panels variable will only be set if openPanels wasn't `undefined`.
2023-06-28 03:04:13 -04:00
// If it isn't set just return `panelsWithEnabledState`, and if that isn't
// set return an empty object.
return ( _ref = panels !== null && panels !== void 0 ? panels : panelsWithEnabledState ) !== null && _ref !== void 0 ? _ref : EMPTY _OBJECT ;
}
2023-09-26 10:23:26 -04:00
2020-06-26 09:33:47 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns the preferences ( these preferences are persisted locally ) .
*
* @ param { Object } state Global application state .
*
* @ return { Object } Preferences Object .
2020-06-26 09:33:47 -04:00
* /
2023-06-28 03:04:13 -04:00
const getPreferences = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).getPreferences ` , {
since : '6.0' ,
alternative : ` select( 'core/preferences' ).get `
2023-09-26 10:23:26 -04:00
} ) ;
// These preferences now exist in the preferences store.
2023-06-28 03:04:13 -04:00
// Fetch them so that they can be merged into the post
// editor preferences.
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 preferences = [ 'preferredStyleVariations' ] . reduce ( ( accumulatedPrefs , preferenceKey ) => {
2023-06-28 03:04:13 -04:00
const value = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core/edit-post' , preferenceKey ) ;
2023-09-26 10:23:26 -04:00
return {
... accumulatedPrefs ,
2023-06-28 03:04:13 -04:00
[ preferenceKey ] : 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
const corePreferences = [ 'editorMode' , 'hiddenBlockTypes' ] . reduce ( ( accumulatedPrefs , preferenceKey ) => {
const value = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , preferenceKey ) ;
return {
... accumulatedPrefs ,
[ preferenceKey ] : value
} ;
} , { } ) ;
2023-09-26 10:23:26 -04:00
// Panels were a preference, but the data structure changed when the state
2023-06-28 03:04:13 -04:00
// was migrated to the preferences store. They need to be converted from
// the new preferences store format to old format to ensure no breaking
// changes for plugins.
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 inactivePanels = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'inactivePanels' ) ;
const openPanels = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'openPanels' ) ;
2023-06-28 03:04:13 -04:00
const panels = convertPanelsToOldFormat ( inactivePanels , openPanels ) ;
2023-09-26 10:23:26 -04:00
return {
... preferences ,
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
... corePreferences ,
2023-06-28 03:04:13 -04:00
panels
} ;
} ) ;
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
/ * *
2023-06-28 03:04:13 -04:00
*
* @ param { Object } state Global application state .
* @ param { string } preferenceKey Preference Key .
* @ param { * } defaultValue Default Value .
*
* @ return { * } Preference Value .
2022-04-11 08:04:30 -04:00
* /
2023-06-28 03:04:13 -04:00
function getPreference ( state , preferenceKey , defaultValue ) {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).getPreference ` , {
since : '6.0' ,
alternative : ` select( 'core/preferences' ).get `
2023-09-26 10:23:26 -04:00
} ) ;
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
// Avoid using the `getPreferences` registry selector where possible.
2023-06-28 03:04:13 -04:00
const preferences = getPreferences ( state ) ;
const value = preferences [ preferenceKey ] ;
return value === undefined ? defaultValue : value ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an array of blocks that are hidden .
*
* @ return { Array } A list of the hidden block types
* /
const getHiddenBlockTypes = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
var _select$get2 ;
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 ( _select$get2 = select ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'hiddenBlockTypes' ) ) !== null && _select$get2 !== void 0 ? _select$get2 : EMPTY _ARRAY ;
2023-06-28 03:04:13 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the publish sidebar is opened .
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether the publish sidebar is open .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
function isPublishSidebarOpened ( state ) {
return state . publishSidebarActive ;
}
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the given panel was programmatically removed , or false otherwise .
* All panels are not removed by default .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
* @ param { string } panelName A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is removed .
2021-05-07 07:48:27 -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 isEditorPanelRemoved = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , panelName ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isEditorPanelRemoved ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).isEditorPanelRemoved `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . isEditorPanelRemoved ( panelName ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the given panel is enabled , or false otherwise . Panels are
* enabled by default .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
* @ param { string } panelName A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is enabled .
* /
const isEditorPanelEnabled = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , panelName ) => {
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 _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isEditorPanelEnabled ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).isEditorPanelEnabled `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . isEditorPanelEnabled ( panelName ) ;
2023-06-28 03:04:13 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if the given panel is open , or false otherwise . Panels are
* closed by default .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
* @ param { string } panelName A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is open .
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const isEditorPanelOpened = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , panelName ) => {
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 _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isEditorPanelOpened ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).isEditorPanelOpened `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . isEditorPanelOpened ( panelName ) ;
2023-06-28 03:04:13 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if a modal is active , or false otherwise .
*
* @ deprecated since WP 6.3 use ` core/interface ` store ' s selector with the same name instead .
*
* @ param { Object } state Global application state .
* @ param { string } modalName A string that uniquely identifies the modal .
*
* @ return { boolean } Whether the modal is active .
* /
const selectors _isModalActive = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , modalName ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isModalActive ` , {
since : '6.3' ,
alternative : ` select( 'core/interface' ).isModalActive `
} ) ;
return ! ! select ( store ) . isModalActive ( modalName ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns whether the given feature is enabled or not .
*
* @ param { Object } state Global application state .
* @ param { string } feature Feature slug .
*
* @ return { boolean } Is active .
* /
const selectors _isFeatureActive = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , feature ) => {
return ! ! select ( external _wp _preferences _namespaceObject . store ) . get ( 'core/edit-post' , feature ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the plugin item is pinned to the header .
* When the value is not set it defaults to true .
*
* @ param { Object } state Global application state .
* @ param { string } pluginName Plugin item name .
*
* @ return { boolean } Whether the plugin item is pinned .
* /
const isPluginItemPinned = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , pluginName ) => {
return select ( store ) . isItemPinned ( 'core/edit-post' , pluginName ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns an array of active meta box locations .
*
* @ param { Object } state Post editor state .
*
* @ return { string [ ] } Active meta box locations .
* /
const getActiveMetaBoxLocations = rememo ( state => {
return Object . keys ( state . metaBoxes . locations ) . filter ( location => isMetaBoxLocationActive ( state , location ) ) ;
} , state => [ state . metaBoxes . locations ] ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if a metabox location is active and visible
*
* @ param { Object } state Post editor state .
* @ param { string } location Meta box location to test .
*
* @ return { boolean } Whether the meta box location is active and visible .
* /
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 isMetaBoxLocationVisible = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( state , location ) => {
2023-06-28 03:04:13 -04:00
return isMetaBoxLocationActive ( state , location ) && getMetaBoxesPerLocation ( state , location ) ? . some ( ( {
id
} ) => {
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 select ( external _wp _editor _namespaceObject . store ) . isEditorPanelEnabled ( state , ` meta-box- ${ id } ` ) ;
2023-06-28 03:04:13 -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
2022-10-04 11:06:52 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Returns true if there is an active meta box in the given location , or false
* otherwise .
2022-10-04 11:06:52 -04:00
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Post editor state .
* @ param { string } location Meta box location to test .
2022-10-04 11:06:52 -04:00
*
2023-06-28 03:04:13 -04:00
* @ return { boolean } Whether the meta box location is active .
2022-10-04 11:06:52 -04:00
* /
2023-06-28 03:04:13 -04:00
function isMetaBoxLocationActive ( state , location ) {
const metaBoxes = getMetaBoxesPerLocation ( state , location ) ;
return ! ! metaBoxes && metaBoxes . length !== 0 ;
2022-10-04 11:06:52 -04:00
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns the list of all the available meta boxes for a given location .
*
* @ param { Object } state Global application state .
* @ param { string } location Meta box location to test .
*
* @ return { ? Array } List of meta boxes .
* /
function getMetaBoxesPerLocation ( state , location ) {
return state . metaBoxes . locations [ location ] ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns the list of all the available meta boxes .
*
* @ param { Object } state Global application state .
*
* @ return { Array } List of meta boxes .
* /
const getAllMetaBoxes = rememo ( state => {
return Object . values ( state . metaBoxes . locations ) . flat ( ) ;
} , state => [ state . metaBoxes . locations ] ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the post is using Meta Boxes
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether there are metaboxes or not .
* /
function hasMetaBoxes ( state ) {
return getActiveMetaBoxLocations ( state ) . length > 0 ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the Meta Boxes are being saved .
*
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether the metaboxes are being saved .
* /
function selectors _isSavingMetaBoxes ( state ) {
return state . metaBoxes . isSaving ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns the current editing canvas device type .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
*
* @ return { string } Device type .
* /
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 _ _experimentalGetPreviewDeviceType = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-site' ).__experimentalGetPreviewDeviceType ` , {
since : '6.5' ,
version : '6.7' ,
alternative : ` select( 'core/editor' ).getDeviceType `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . getDeviceType ( ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the inserter is opened .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether the inserter is opened .
* /
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 isInserterOpened = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isInserterOpened ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).isInserterOpened `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . isInserterOpened ( ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Get the insertion point for the inserter .
*
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
* @ deprecated
*
2023-06-28 03:04:13 -04:00
* @ param { Object } state Global application state .
*
* @ return { Object } The root client ID , index to insert at and starting filter 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
const _ _experimentalGetInsertionPoint = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).__experimentalGetInsertionPoint ` , {
since : '6.5' ,
version : '6.7'
} ) ;
return unlock ( select ( external _wp _editor _namespaceObject . store ) ) . getInsertionPoint ( ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the list view is opened .
*
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether the list view is opened .
* /
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 isListViewOpened = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isListViewOpened ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).isListViewOpened `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . isListViewOpened ( ) ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if the template editing mode is enabled .
*
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
* @ deprecated
2023-06-28 03:04:13 -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 isEditingTemplate = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
external _wp _deprecated _default ( ) ( ` select( 'core/edit-post' ).isEditingTemplate ` , {
since : '6.5' ,
alternative : ` select( 'core/editor' ).getRenderingMode `
} ) ;
return select ( external _wp _editor _namespaceObject . store ) . getRenderingMode ( ) !== 'post-only' ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Returns true if meta boxes are initialized .
*
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether meta boxes are initialized .
* /
function areMetaBoxesInitialized ( state ) {
return state . metaBoxes . initialized ;
}
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Retrieves the template of the currently edited post .
*
* @ return { Object ? } Post Template .
* /
const getEditedPostTemplate = ( 0 , external _wp _data _namespaceObject . createRegistrySelector ) ( select => ( ) => {
const currentTemplate = select ( external _wp _editor _namespaceObject . store ) . getEditedPostAttribute ( 'template' ) ;
if ( currentTemplate ) {
const templateWithSameSlug = select ( external _wp _coreData _namespaceObject . store ) . getEntityRecords ( 'postType' , 'wp_template' , {
per _page : - 1
} ) ? . find ( template => template . slug === currentTemplate ) ;
if ( ! templateWithSameSlug ) {
return templateWithSameSlug ;
}
return select ( external _wp _coreData _namespaceObject . store ) . getEditedEntityRecord ( 'postType' , 'wp_template' , templateWithSameSlug . id ) ;
2021-05-19 11:09:27 -04:00
}
2023-06-28 03:04:13 -04:00
const post = select ( external _wp _editor _namespaceObject . store ) . getCurrentPost ( ) ;
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 slugToCheck ;
// In `draft` status we might not have a slug available, so we use the `single`
// post type templates slug(ex page, single-post, single-product etc..).
// Pages do not need the `single` prefix in the slug to be prioritized
// through template hierarchy.
if ( post . slug ) {
slugToCheck = post . type === 'page' ? ` ${ post . type } - ${ post . slug } ` : ` single- ${ post . type } - ${ post . slug } ` ;
} else {
slugToCheck = post . type === 'page' ? 'page' : ` single- ${ post . type } ` ;
2021-05-19 11:09:27 -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 defaultTemplateId = select ( external _wp _coreData _namespaceObject . store ) . getDefaultTemplateId ( {
slug : slugToCheck
} ) ;
return select ( external _wp _coreData _namespaceObject . store ) . getEditedEntityRecord ( 'postType' , 'wp_template' , defaultTemplateId ) ;
2023-06-28 03:04:13 -04:00
} ) ;
2022-10-04 11:06:52 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js
/ * *
* The identifier for the data store .
*
* @ type { string }
* /
const constants _STORE _NAME = 'core/edit-post' ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* CSS selector string for the admin bar view post link anchor tag .
*
* @ type { string }
* /
const VIEW _AS _LINK _SELECTOR = '#wp-admin-bar-view a' ;
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* CSS selector string for the admin bar preview post link anchor tag .
*
* @ type { string }
* /
const VIEW _AS _PREVIEW _LINK _SELECTOR = '#wp-admin-bar-preview a' ;
2022-09-20 11:43:29 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js
/ * *
* WordPress dependencies
* /
2023-06-27 10:24:19 -04:00
2023-09-26 10:23:26 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Internal dependencies
* /
2023-06-27 10:24:19 -04:00
2022-10-04 11:06:52 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* Store definition for the edit post namespace .
*
* @ see https : //github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
*
* @ type { Object }
* /
const store _store = ( 0 , external _wp _data _namespaceObject . createReduxStore ) ( constants _STORE _NAME , {
reducer : store _reducer ,
actions : store _actions _namespaceObject ,
selectors : store _selectors _namespaceObject
} ) ;
( 0 , external _wp _data _namespaceObject . register ) ( store _store ) ;
2023-06-27 10:24:19 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js
2021-05-07 07:48:27 -04:00
/ * *
* WordPress dependencies
* /
2021-05-21 06:14:23 -04: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
2021-05-07 07:48:27 -04:00
/ * *
* Internal dependencies
* /
2023-06-28 03:04:13 -04:00
function TextEditor ( ) {
const isRichEditingEnabled = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
return select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) . richEditingEnabled ;
2021-05-19 11:09:27 -04:00
} , [ ] ) ;
2023-02-07 02:04:52 -05:00
const {
2023-06-28 03:04:13 -04:00
switchEditorMode
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
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 {
isWelcomeGuideVisible
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
isFeatureActive
} = select ( store _store ) ;
return {
isWelcomeGuideVisible : isFeatureActive ( 'welcomeGuide' )
} ;
} , [ ] ) ;
const titleRef = ( 0 , external _wp _element _namespaceObject . useRef ) ( ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
if ( isWelcomeGuideVisible ) {
return ;
}
titleRef ? . current ? . focus ( ) ;
} , [ isWelcomeGuideVisible ] ) ;
return ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-text-editor"
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
} , isRichEditingEnabled && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-text-editor__toolbar"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( "h2" , null , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editing code' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2023-06-28 03:04:13 -04:00
variant : "tertiary" ,
onClick : ( ) => switchEditorMode ( 'visual' ) ,
shortcut : external _wp _keycodes _namespaceObject . displayShortcut . secondary ( 'm' )
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Exit code editor' ) ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : "edit-post-text-editor__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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTitleRaw , {
ref : titleRef
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTextEditor , null ) ) ) ;
2023-06-28 03:04:13 -04:00
}
2023-02-07 02:04:52 -05:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js
2023-06-27 10:24:19 -04:00
2023-06-28 03:04:13 -04:00
/ * *
* External dependencies
* /
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
* WordPress dependencies
* /
2023-06-28 03:04:13 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2023-06-28 03:04:13 -04:00
* Internal dependencies
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
const {
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
EditorCanvas
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2023-06-28 03:04:13 -04:00
const isGutenbergPlugin = false ? 0 : false ;
2023-09-26 10:23:26 -04:00
function VisualEditor ( {
styles
} ) {
const {
2023-06-28 03:04:13 -04:00
isWelcomeGuideVisible ,
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
renderingMode ,
2023-06-28 03:04:13 -04:00
isBlockBasedTheme ,
2024-01-31 07:59:56 -05:00
hasV3BlocksOnly ,
isEditingTemplate
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
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
isFeatureActive
2023-06-28 03:04:13 -04:00
} = select ( store _store ) ;
const {
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
getEditorSettings ,
getRenderingMode
2023-06-28 03:04:13 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
const {
getBlockTypes
} = select ( external _wp _blocks _namespaceObject . store ) ;
const editorSettings = getEditorSettings ( ) ;
return {
isWelcomeGuideVisible : isFeatureActive ( 'welcomeGuide' ) ,
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
renderingMode : getRenderingMode ( ) ,
2023-06-28 03:04:13 -04:00
isBlockBasedTheme : editorSettings . _ _unstableIsBlockBasedTheme ,
hasV3BlocksOnly : getBlockTypes ( ) . every ( type => {
return type . apiVersion >= 3 ;
2024-01-31 07:59:56 -05:00
} ) ,
isEditingTemplate : select ( external _wp _editor _namespaceObject . store ) . getCurrentPostType ( ) === 'wp_template'
2023-06-28 03:04:13 -04:00
} ;
} , [ ] ) ;
const hasMetaBoxes = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => select ( store _store ) . hasMetaBoxes ( ) , [ ] ) ;
2023-09-26 10:23:26 -04:00
let paddingBottom ;
2021-05-07 07:48:27 -04:00
2023-09-26 10:23:26 -04:00
// Add a constant padding for the typewritter effect. When typing at the
2023-06-28 03:04:13 -04:00
// bottom, there needs to be room to scroll up.
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 ( ! hasMetaBoxes && renderingMode === 'post-only' ) {
2023-06-28 03:04:13 -04:00
paddingBottom = '40vh' ;
}
styles = ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => [ ... styles , {
// We should move this in to future to the 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
css : paddingBottom ? ` body{padding-bottom: ${ paddingBottom } } ` : ''
} ] , [ styles , paddingBottom ] ) ;
2024-01-31 07:59:56 -05:00
const isToBeIframed = ( hasV3BlocksOnly || isGutenbergPlugin && isBlockBasedTheme ) && ! hasMetaBoxes || isEditingTemplate ;
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 ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2023-06-28 03:04:13 -04:00
className : classnames _default ( ) ( 'edit-post-visual-editor' , {
2023-09-05 23:19:44 -04:00
'has-inline-canvas' : ! isToBeIframed
2023-06-28 03:04:13 -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
} , ( 0 , external _React _namespaceObject . createElement ) ( EditorCanvas , {
disableIframe : ! isToBeIframed ,
styles : styles
// We should auto-focus the canvas (title) on load.
// eslint-disable-next-line jsx-a11y/no-autofocus
2023-06-28 03:04:13 -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
autoFocus : ! isWelcomeGuideVisible
} ) ) ;
2023-06-28 03:04:13 -04:00
}
2021-05-07 07:48:27 -04:00
2023-06-28 03:04:13 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcuts/index.js
2021-05-07 07:48:27 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Internal dependencies
2021-05-07 07:48:27 -04:00
* /
2023-06-28 03:04:13 -04:00
function KeyboardShortcuts ( ) {
const {
getEditorMode ,
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
isEditorSidebarOpened
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( store _store ) ;
const isModeToggleDisabled = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
richEditingEnabled ,
codeEditingEnabled
} = select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) ;
return ! richEditingEnabled || ! codeEditingEnabled ;
} , [ ] ) ;
const {
switchEditorMode ,
openGeneralSidebar ,
closeGeneralSidebar ,
toggleFeature ,
2023-09-26 10:23:26 -04:00
toggleDistractionFree
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
const {
registerShortcut
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _keyboardShortcuts _namespaceObject . store ) ;
const {
replaceBlocks
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _blockEditor _namespaceObject . store ) ;
const {
getBlockName ,
getSelectedBlockClientId ,
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
getBlockAttributes ,
getBlockSelectionStart
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( external _wp _blockEditor _namespaceObject . store ) ;
const handleTextLevelShortcut = ( event , level ) => {
event . preventDefault ( ) ;
const destinationBlockName = level === 0 ? 'core/paragraph' : 'core/heading' ;
const currentClientId = getSelectedBlockClientId ( ) ;
if ( currentClientId === null ) {
return ;
}
const blockName = getBlockName ( currentClientId ) ;
if ( blockName !== 'core/paragraph' && blockName !== 'core/heading' ) {
return ;
}
const attributes = getBlockAttributes ( currentClientId ) ;
const textAlign = blockName === 'core/paragraph' ? 'align' : 'textAlign' ;
const destinationTextAlign = destinationBlockName === 'core/paragraph' ? 'align' : 'textAlign' ;
replaceBlocks ( currentClientId , ( 0 , external _wp _blocks _namespaceObject . createBlock ) ( destinationBlockName , {
level ,
content : attributes . content ,
... {
[ destinationTextAlign ] : attributes [ textAlign ]
}
} ) ) ;
} ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
registerShortcut ( {
name : 'core/edit-post/toggle-mode' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Switch between visual editor and code editor.' ) ,
2021-05-19 11:09:27 -04:00
keyCombination : {
2023-06-28 03:04:13 -04:00
modifier : 'secondary' ,
character : 'm'
}
} ) ;
registerShortcut ( {
name : 'core/edit-post/toggle-distraction-free' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle distraction free mode.' ) ,
keyCombination : {
modifier : 'primaryShift' ,
character : '\\'
}
} ) ;
registerShortcut ( {
name : 'core/edit-post/toggle-fullscreen' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle fullscreen mode.' ) ,
keyCombination : {
modifier : 'secondary' ,
character : 'f'
}
} ) ;
registerShortcut ( {
name : 'core/edit-post/toggle-sidebar' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Show or hide the Settings sidebar.' ) ,
keyCombination : {
modifier : 'primaryShift' ,
character : ','
}
} ) ;
registerShortcut ( {
name : 'core/edit-post/next-region' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Navigate to the next part of the editor.' ) ,
keyCombination : {
modifier : 'ctrl' ,
character : '`'
2021-05-19 11:09:27 -04:00
} ,
2023-06-28 03:04:13 -04:00
aliases : [ {
modifier : 'access' ,
character : 'n'
} ]
} ) ;
registerShortcut ( {
name : 'core/edit-post/previous-region' ,
category : 'global' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Navigate to the previous part of the editor.' ) ,
keyCombination : {
modifier : 'ctrlShift' ,
character : '`'
} ,
aliases : [ {
modifier : 'access' ,
character : 'p'
} , {
modifier : 'ctrlShift' ,
character : '~'
} ]
} ) ;
registerShortcut ( {
name : 'core/edit-post/keyboard-shortcuts' ,
category : 'main' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Display these keyboard shortcuts.' ) ,
keyCombination : {
modifier : 'access' ,
character : 'h'
}
} ) ;
registerShortcut ( {
name : 'core/edit-post/transform-heading-to-paragraph' ,
category : 'block-library' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Transform heading to paragraph.' ) ,
keyCombination : {
modifier : 'access' ,
character : ` 0 `
}
} ) ;
[ 1 , 2 , 3 , 4 , 5 , 6 ] . forEach ( level => {
registerShortcut ( {
name : ` core/edit-post/transform-paragraph-to-heading- ${ level } ` ,
category : 'block-library' ,
description : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Transform paragraph to heading.' ) ,
keyCombination : {
modifier : 'access' ,
character : ` ${ level } `
}
} ) ;
} ) ;
} , [ ] ) ;
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/toggle-mode' , ( ) => {
switchEditorMode ( getEditorMode ( ) === 'visual' ? 'text' : 'visual' ) ;
} , {
isDisabled : isModeToggleDisabled
} ) ;
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/toggle-fullscreen' , ( ) => {
toggleFeature ( 'fullscreenMode' ) ;
} ) ;
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/toggle-distraction-free' , ( ) => {
toggleDistractionFree ( ) ;
} ) ;
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/toggle-sidebar' , event => {
// This shortcut has no known clashes, but use preventDefault to prevent any
// obscure shortcuts from triggering.
event . preventDefault ( ) ;
if ( isEditorSidebarOpened ( ) ) {
closeGeneralSidebar ( ) ;
} else {
const sidebarToOpen = getBlockSelectionStart ( ) ? 'edit-post/block' : 'edit-post/document' ;
openGeneralSidebar ( sidebarToOpen ) ;
}
2023-09-26 10:23:26 -04:00
} ) ;
2023-06-28 03:04:13 -04:00
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( 'core/edit-post/transform-heading-to-paragraph' , event => handleTextLevelShortcut ( event , 0 ) ) ;
[ 1 , 2 , 3 , 4 , 5 , 6 ] . forEach ( level => {
//the loop is based off on a constant therefore
//the hook will execute the same way every time
//eslint-disable-next-line react-hooks/rules-of-hooks
( 0 , external _wp _keyboardShortcuts _namespaceObject . useShortcut ) ( ` core/edit-post/transform-paragraph-to-heading- ${ level } ` , event => handleTextLevelShortcut ( event , level ) ) ;
} ) ;
return null ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const keyboard _shortcuts = ( KeyboardShortcuts ) ;
2021-05-07 07:48:27 -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/edit-post/build-module/components/preferences-modal/enable-custom-fields.js
2022-04-11 08:04:30 -04:00
/ * *
* WordPress 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
* /
const {
PreferenceBaseOption
} = unlock ( external _wp _preferences _namespaceObject . privateApis ) ;
2023-09-26 10:23:26 -04:00
function submitCustomFieldsForm ( ) {
const customFieldsForm = document . getElementById ( 'toggle-custom-fields-form' ) ;
// Ensure the referrer values is up to update with any
customFieldsForm . querySelector ( '[name="_wp_http_referer"]' ) . setAttribute ( 'value' , ( 0 , external _wp _url _namespaceObject . getPathAndQueryString ) ( window . location . href ) ) ;
customFieldsForm . submit ( ) ;
}
2023-06-27 10:24:19 -04:00
function CustomFieldsConfirmation ( {
willEnable
} ) {
2022-04-11 08:04:30 -04:00
const [ isReloading , setIsReloading ] = ( 0 , external _wp _element _namespaceObject . useState ) ( false ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2022-04-11 08:04:30 -04:00
className : "edit-post-preferences-modal__custom-fields-confirmation-message"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'A page reload is required for this change. Make sure your content is saved before reloading.' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-11 08:04:30 -04:00
className : "edit-post-preferences-modal__custom-fields-confirmation-button" ,
variant : "secondary" ,
isBusy : isReloading ,
disabled : isReloading ,
onClick : ( ) => {
setIsReloading ( true ) ;
2023-09-26 10:23:26 -04:00
submitCustomFieldsForm ( ) ;
2022-04-11 08:04:30 -04:00
}
2023-06-27 10:24:19 -04:00
} , willEnable ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Show & Reload Page' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Hide & Reload Page' ) ) ) ;
2022-04-11 08:04:30 -04:00
}
2023-06-27 10:24:19 -04:00
function EnableCustomFieldsOption ( {
label ,
areCustomFieldsEnabled
} ) {
2022-04-11 08:04:30 -04:00
const [ isChecked , setIsChecked ] = ( 0 , external _wp _element _namespaceObject . useState ) ( areCustomFieldsEnabled ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( PreferenceBaseOption , {
2022-04-11 08:04:30 -04:00
label : label ,
isChecked : isChecked ,
onChange : setIsChecked
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
} , isChecked !== areCustomFieldsEnabled && ( 0 , external _React _namespaceObject . createElement ) ( CustomFieldsConfirmation , {
2022-04-11 08:04:30 -04:00
willEnable : isChecked
} ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const enable _custom _fields = ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => ( {
2022-04-11 08:04:30 -04:00
areCustomFieldsEnabled : ! ! select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) . enableCustomFields
} ) ) ( EnableCustomFieldsOption ) ) ;
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/edit-post/build-module/components/preferences-modal/enable-panel.js
2022-04-11 08:04:30 -04:00
/ * *
* WordPress dependencies
* /
2022-04-12 11:12:47 -04: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
2022-04-11 08:04:30 -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
const {
PreferenceBaseOption : enable _panel _PreferenceBaseOption
} = unlock ( external _wp _preferences _namespaceObject . privateApis ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const enable _panel = ( ( 0 , external _wp _compose _namespaceObject . compose ) ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( ( select , {
2023-06-27 10:24:19 -04:00
panelName
} ) => {
2022-04-11 08:04:30 -04:00
const {
isEditorPanelEnabled ,
isEditorPanelRemoved
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
} = select ( external _wp _editor _namespaceObject . store ) ;
2022-04-11 08:04:30 -04:00
return {
isRemoved : isEditorPanelRemoved ( panelName ) ,
isChecked : isEditorPanelEnabled ( panelName )
} ;
2023-06-27 10:24:19 -04:00
} ) , ( 0 , external _wp _compose _namespaceObject . ifCondition ) ( ( {
isRemoved
} ) => ! isRemoved ) , ( 0 , external _wp _data _namespaceObject . withDispatch ) ( ( dispatch , {
panelName
} ) => ( {
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
onChange : ( ) => dispatch ( external _wp _editor _namespaceObject . store ) . toggleEditorPanelEnabled ( panelName )
} ) ) ) ( enable _panel _PreferenceBaseOption ) ) ;
2022-04-11 08:04:30 -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/edit-post/build-module/components/preferences-modal/meta-boxes-section.js
2022-04-11 08:04:30 -04:00
/ * *
* WordPress dependencies
* /
2022-04-12 11:12:47 -04:00
2022-04-11 08:04:30 -04: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 {
PreferencesModalSection
} = unlock ( external _wp _preferences _namespaceObject . privateApis ) ;
2023-06-27 10:24:19 -04:00
function MetaBoxesSection ( {
areCustomFieldsRegistered ,
metaBoxes ,
... sectionProps
} ) {
2021-11-08 09:29:21 -05:00
// The 'Custom Fields' meta box is a special case that we handle separately.
2023-06-27 10:24:19 -04:00
const thirdPartyMetaBoxes = metaBoxes . filter ( ( {
id
} ) => id !== 'postcustom' ) ;
2021-11-08 09:29:21 -05:00
if ( ! areCustomFieldsRegistered && thirdPartyMetaBoxes . length === 0 ) {
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
return ( 0 , external _React _namespaceObject . createElement ) ( PreferencesModalSection , {
2023-09-26 10:23:26 -04:00
... sectionProps
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
} , areCustomFieldsRegistered && ( 0 , external _React _namespaceObject . createElement ) ( enable _custom _fields , {
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Custom fields' )
2023-06-27 10:24:19 -04:00
} ) , thirdPartyMetaBoxes . map ( ( {
id ,
title
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( enable _panel , {
2023-06-27 10:24:19 -04:00
key : id ,
label : title ,
panelName : ` meta-box- ${ id } `
} ) ) ) ;
2021-11-08 09:29:21 -05:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const meta _boxes _section = ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => {
2021-11-08 09:29:21 -05:00
const {
getEditorSettings
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
2021-11-08 09:29:21 -05:00
const {
getAllMetaBoxes
2022-04-11 08:04:30 -04:00
} = select ( store _store ) ;
2021-11-08 09:29:21 -05:00
return {
// This setting should not live in the block editor's store.
areCustomFieldsRegistered : getEditorSettings ( ) . enableCustomFields !== undefined ,
metaBoxes : getAllMetaBoxes ( )
} ;
} ) ( MetaBoxesSection ) ) ;
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/edit-post/build-module/components/preferences-modal/enable-publish-sidebar.js
2021-05-07 07:48:27 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2021-05-07 07:48:27 -04:00
* /
2021-05-19 11:09:27 -04:00
/ * *
* Internal dependencies
* /
2021-05-07 07:48:27 -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 {
PreferenceBaseOption : enable _publish _sidebar _PreferenceBaseOption
} = unlock ( external _wp _preferences _namespaceObject . privateApis ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const enable _publish _sidebar = ( ( 0 , external _wp _compose _namespaceObject . compose ) ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => ( {
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
isChecked : select ( external _wp _editor _namespaceObject . store ) . isPublishSidebarEnabled ( )
} ) ) , ( 0 , external _wp _data _namespaceObject . withDispatch ) ( dispatch => {
2023-06-27 10:24:19 -04:00
const {
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
enablePublishSidebar ,
disablePublishSidebar
} = dispatch ( external _wp _editor _namespaceObject . store ) ;
2023-06-27 10:24:19 -04:00
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
onChange : isEnabled => isEnabled ? enablePublishSidebar ( ) : disablePublishSidebar ( )
2023-06-27 10:24:19 -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
} ) ,
// In < medium viewports we override this option and always show the publish sidebar.
// See the edit-post's header component for the specific logic.
( 0 , external _wp _viewport _namespaceObject . ifViewportMatches ) ( 'medium' ) ) ( enable _publish _sidebar _PreferenceBaseOption ) ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/index.js
2018-12-13 23:41:57 -05:00
2021-05-07 07:48:27 -04:00
/ * *
* WordPress dependencies
* /
2018-12-13 23:41:57 -05:00
2018-12-18 22:16:48 -05:00
2019-09-19 11:19:18 -04:00
2018-12-13 23:41:57 -05:00
2023-09-26 10:23:26 -04:00
2018-12-13 23:41:57 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* Internal dependencies
2018-12-13 23:41:57 -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 {
PreferencesModalSection : preferences _modal _PreferencesModalSection ,
PreferenceToggleControl
} = unlock ( external _wp _preferences _namespaceObject . privateApis ) ;
const {
PreferencesModal
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2023-06-28 03:04:13 -04:00
const PREFERENCES _MODAL _NAME = 'edit-post/preferences' ;
2022-04-12 11:12:47 -04:00
function EditPostPreferencesModal ( ) {
2022-04-11 08:04:30 -04:00
const isLargeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' ) ;
2021-05-19 11:09:27 -04:00
const {
closeModal
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
2023-02-07 02:04:52 -05:00
const {
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
isModalActive
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const modalActive = select ( store ) . isModalActive ( PREFERENCES _MODAL _NAME ) ;
return {
isModalActive : modalActive
} ;
} , [ ] ) ;
const extraSections = {
general : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , isLargeViewport && ( 0 , external _React _namespaceObject . createElement ) ( preferences _modal _PreferencesModalSection , {
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Publishing' )
} , ( 0 , external _React _namespaceObject . createElement ) ( enable _publish _sidebar , {
2022-04-11 08:04:30 -04:00
help : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Review settings, such as visibility and tags.' ) ,
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
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Enable pre-publish checks' )
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( meta _boxes _section , {
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Advanced' )
} ) ) ,
appearance : ( 0 , external _React _namespaceObject . createElement ) ( PreferenceToggleControl , {
scope : "core/edit-post" ,
2021-05-19 11:09:27 -04:00
featureName : "themeStyles" ,
2022-04-11 08:04:30 -04:00
help : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Make the editor look like your theme.' ) ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Use theme styles' )
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
} )
} ;
2021-05-19 11:09:27 -04:00
if ( ! isModalActive ) {
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
return ( 0 , external _React _namespaceObject . createElement ) ( PreferencesModal , {
extraSections : extraSections ,
isActive : isModalActive ,
onClose : closeModal
} ) ;
2021-05-19 11:09:27 -04:00
}
2020-07-07 10:43:35 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2020-07-07 10:43:35 -04:00
2021-11-08 09:29:21 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Returns the Post ' s Edit URL .
*
* @ param { number } postId Post ID .
*
* @ return { string } Post edit URL .
* /
function getPostEditURL ( postId ) {
2022-04-11 08:04:30 -04:00
return ( 0 , external _wp _url _namespaceObject . addQueryArgs ) ( 'post.php' , {
2021-05-19 11:09:27 -04:00
post : postId ,
action : 'edit'
} ) ;
}
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Returns the Post ' s Trashed URL .
*
2021-11-08 09:29:21 -05:00
* @ param { number } postId Post ID .
2021-05-19 11:09:27 -04:00
* @ param { string } postType Post Type .
*
* @ return { string } Post trashed URL .
2021-05-07 07:48:27 -04:00
* /
2021-05-19 11:09:27 -04:00
function getPostTrashedURL ( postId , postType ) {
2022-04-11 08:04:30 -04:00
return ( 0 , external _wp _url _namespaceObject . addQueryArgs ) ( 'edit.php' , {
2021-05-19 11:09:27 -04:00
trashed : 1 ,
post _type : postType ,
ids : postId
} ) ;
2021-01-27 21:04:13 -05:00
}
2022-04-11 08:04:30 -04:00
class BrowserURL extends external _wp _element _namespaceObject . Component {
2021-05-19 11:09:27 -04:00
constructor ( ) {
super ( ... arguments ) ;
this . state = {
historyId : null
} ;
}
componentDidUpdate ( prevProps ) {
const {
postId ,
postStatus ,
postType ,
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
isSavingPost ,
hasHistory
2021-05-19 11:09:27 -04:00
} = this . props ;
const {
historyId
2023-09-26 10:23:26 -04:00
} = this . state ;
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
// Posts are still dirty while saving so wait for saving to finish
// to avoid the unsaved changes warning when trashing posts.
2021-05-19 11:09:27 -04:00
if ( postStatus === 'trash' && ! isSavingPost ) {
this . setTrashURL ( postId , postType ) ;
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
if ( ( postId !== prevProps . postId || postId !== historyId ) && postStatus !== 'auto-draft' && postId && ! hasHistory ) {
2021-05-19 11:09:27 -04:00
this . setBrowserURL ( postId ) ;
2021-05-07 07:48:27 -04:00
}
2021-05-19 11:09:27 -04:00
}
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Navigates the browser to the post trashed URL to show a notice about the trashed post .
*
2021-11-08 09:29:21 -05:00
* @ param { number } postId Post ID .
* @ param { string } postType Post Type .
2021-05-19 11:09:27 -04:00
* /
setTrashURL ( postId , postType ) {
window . location . href = getPostTrashedURL ( postId , postType ) ;
}
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Replaces the browser URL with a post editor link for the given post ID .
*
* Note it is important that , since this function may be called when the
* editor first loads , the result generated ` getPostEditURL ` matches that
* produced by the server . Otherwise , the URL will change unexpectedly .
*
* @ param { number } postId Post ID for which to generate post editor URL .
* /
setBrowserURL ( postId ) {
window . history . replaceState ( {
id : postId
} , 'Post ' + postId , getPostEditURL ( postId ) ) ;
this . setState ( ( ) => ( {
historyId : postId
} ) ) ;
}
render ( ) {
return null ;
}
2021-05-07 07:48:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const browser _url = ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => {
2021-05-19 11:09:27 -04:00
const {
getCurrentPost ,
isSavingPost
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
const post = getCurrentPost ( ) ;
let {
id ,
status ,
type
} = post ;
const isTemplate = [ 'wp_template' , 'wp_template_part' ] . includes ( type ) ;
if ( isTemplate ) {
id = post . wp _id ;
}
return {
postId : id ,
postStatus : status ,
postType : type ,
isSavingPost : isSavingPost ( )
} ;
2022-04-11 08:04:30 -04:00
} ) ( BrowserURL ) ) ;
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/icons/build-module/library/next.js
/ * *
* WordPress dependencies
* /
const next = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _next = ( next ) ;
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/icons/build-module/library/previous.js
/ * *
* WordPress dependencies
* /
const previous = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _previous = ( previous ) ;
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
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
/ * *
* WordPress dependencies
* /
2021-05-19 11:09:27 -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 wordpress = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2022-04-11 08:04:30 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "-2 -2 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-11 08:04:30 -04:00
d : "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _wordpress = ( wordpress ) ;
2021-05-19 11:09:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js
2019-10-15 11:37:08 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-07 07:48:27 -04:00
* External dependencies
2021-01-27 21:04:13 -05:00
* /
2020-01-08 06:57:23 -05:00
2023-09-26 10:23:26 -04:00
2021-05-07 07:48:27 -04:00
/ * *
* WordPress dependencies
* /
2020-01-08 06:57:23 -05:00
2021-01-27 21:04:13 -05:00
2021-05-19 11:09:27 -04:00
2021-11-08 09:29:21 -05:00
2021-05-07 07:48:27 -04:00
/ * *
* Internal dependencies
* /
2020-01-08 06:57:23 -05:00
2023-06-27 10:24:19 -04:00
function FullscreenModeClose ( {
showTooltip ,
icon ,
2024-02-09 13:22:22 -05:00
href ,
initialPost
2023-06-27 10:24:19 -04:00
} ) {
var _postType$labels$view ;
2021-05-19 11:09:27 -04:00
const {
isActive ,
isRequestingSiteIcon ,
postType ,
siteIconUrl
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2021-05-19 11:09:27 -04:00
const {
getCurrentPostType
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
const {
isFeatureActive
2022-04-11 08:04:30 -04:00
} = select ( store _store ) ;
2021-05-19 11:09:27 -04:00
const {
getEntityRecord ,
2021-11-08 09:29:21 -05:00
getPostType ,
isResolving
2022-04-11 08:04:30 -04:00
} = select ( external _wp _coreData _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
const siteData = getEntityRecord ( 'root' , '__unstableBase' , undefined ) || { } ;
2024-02-09 13:22:22 -05:00
const _postType = initialPost ? . type || getCurrentPostType ( ) ;
2021-05-19 11:09:27 -04:00
return {
isActive : isFeatureActive ( 'fullscreenMode' ) ,
2021-11-08 09:29:21 -05:00
isRequestingSiteIcon : isResolving ( 'getEntityRecord' , [ 'root' , '__unstableBase' , undefined ] ) ,
2024-02-09 13:22:22 -05:00
postType : getPostType ( _postType ) ,
2021-05-19 11:09:27 -04:00
siteIconUrl : siteData . site _icon _url
} ;
} , [ ] ) ;
2022-04-11 08:04:30 -04:00
const disableMotion = ( 0 , external _wp _compose _namespaceObject . useReducedMotion ) ( ) ;
2021-05-19 11:09:27 -04:00
if ( ! isActive || ! postType ) {
2021-05-07 07:48:27 -04:00
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
let buttonIcon = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Icon , {
2021-05-19 11:09:27 -04:00
size : "36px" ,
2022-04-11 08:04:30 -04:00
icon : library _wordpress
2021-05-19 11:09:27 -04:00
} ) ;
2021-11-08 09:29:21 -05:00
const effect = {
expand : {
2022-04-12 11:12:47 -04:00
scale : 1.25 ,
2021-11-08 09:29:21 -05:00
transition : {
type : 'tween' ,
2022-04-12 11:12:47 -04:00
duration : '0.3'
2021-11-08 09:29:21 -05:00
}
}
} ;
2021-05-19 11:09:27 -04:00
if ( siteIconUrl ) {
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
buttonIcon = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _unstableMotion . img , {
2021-11-08 09:29:21 -05:00
variants : ! disableMotion && effect ,
2022-04-11 08:04:30 -04:00
alt : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Site Icon' ) ,
2021-05-19 11:09:27 -04:00
className : "edit-post-fullscreen-mode-close_site-icon" ,
src : siteIconUrl
} ) ;
2021-05-07 07:48:27 -04:00
}
2021-05-19 11:09:27 -04:00
if ( isRequestingSiteIcon ) {
buttonIcon = null ;
2023-09-26 10:23:26 -04:00
}
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
// Override default icon if custom icon is provided via props.
2021-05-19 11:09:27 -04:00
if ( icon ) {
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
buttonIcon = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Icon , {
2021-05-19 11:09:27 -04:00
size : "36px" ,
icon : icon
} ) ;
}
2022-04-12 11:12:47 -04:00
const classes = classnames _default ( ) ( {
'edit-post-fullscreen-mode-close' : true ,
'has-icon' : siteIconUrl
} ) ;
2024-02-09 13:22:22 -05:00
const buttonHref = href !== null && href !== void 0 ? href : ( 0 , external _wp _url _namespaceObject . addQueryArgs ) ( 'edit.php' , {
post _type : postType . slug
} ) ;
const buttonLabel = ( _postType$labels$view = postType ? . labels ? . view _items ) !== null && _postType$labels$view !== void 0 ? _postType$labels$view : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Back' ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _unstableMotion . div , {
2021-11-08 09:29:21 -05:00
whileHover : "expand"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2022-04-12 11:12:47 -04:00
className : classes ,
2024-02-09 13:22:22 -05:00
href : buttonHref ,
label : buttonLabel ,
2021-05-19 11:09:27 -04:00
showTooltip : showTooltip
2021-11-08 09:29:21 -05:00
} , buttonIcon ) ) ;
2021-05-07 07:48:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const fullscreen _mode _close = ( FullscreenModeClose ) ;
2018-12-13 23:41:57 -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
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js
2021-05-21 06:14:23 -04:00
/ * *
* WordPress dependencies
* /
2021-11-08 09:29:21 -05:00
2023-09-26 10:23:26 -04:00
2021-06-25 11:52:22 -04:00
/ * *
* Internal dependencies
* /
2021-05-21 06:14:23 -04:00
/ * *
2021-06-25 11:52:22 -04:00
* Set of available mode options .
*
* @ type { Array }
2021-05-21 06:14:23 -04:00
* /
2021-06-25 11:52:22 -04:00
const MODES = [ {
value : 'visual' ,
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Visual editor' )
2021-06-25 11:52:22 -04:00
} , {
value : 'text' ,
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Code editor' )
2021-06-25 11:52:22 -04:00
} ] ;
function ModeSwitcher ( ) {
2021-05-21 06:14:23 -04:00
const {
2021-06-25 11:52:22 -04:00
shortcut ,
isRichEditingEnabled ,
isCodeEditingEnabled ,
mode
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => ( {
shortcut : select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getShortcutRepresentation ( 'core/edit-post/toggle-mode' ) ,
isRichEditingEnabled : select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) . richEditingEnabled ,
isCodeEditingEnabled : select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) . codeEditingEnabled ,
mode : select ( store _store ) . getEditorMode ( )
2021-06-25 11:52:22 -04:00
} ) , [ ] ) ;
2021-05-21 06:14:23 -04:00
const {
2021-06-25 11:52:22 -04:00
switchEditorMode
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
2023-09-26 10:23:26 -04:00
let selectedMode = mode ;
if ( ! isRichEditingEnabled && mode === 'visual' ) {
selectedMode = 'text' ;
}
if ( ! isCodeEditingEnabled && mode === 'text' ) {
selectedMode = 'visual' ;
2021-05-21 06:14:23 -04:00
}
2021-06-25 11:52:22 -04:00
const choices = MODES . map ( choice => {
2023-09-26 10:23:26 -04:00
if ( ! isCodeEditingEnabled && choice . value === 'text' ) {
choice = {
... choice ,
disabled : true
} ;
}
if ( ! isRichEditingEnabled && choice . value === 'visual' ) {
choice = {
... choice ,
disabled : true ,
info : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'You can enable the visual editor in your profile settings.' )
} ;
}
if ( choice . value !== selectedMode && ! choice . disabled ) {
return {
... choice ,
2021-06-25 11:52:22 -04:00
shortcut
} ;
2021-05-21 06:14:23 -04:00
}
2021-06-25 11:52:22 -04:00
return choice ;
} ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuGroup , {
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor' )
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItemsChoice , {
2021-06-25 11:52:22 -04:00
choices : choices ,
2023-09-26 10:23:26 -04:00
value : selectedMode ,
2021-06-25 11:52:22 -04:00
onSelect : switchEditorMode
} ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const mode _switcher = ( ModeSwitcher ) ;
2021-06-25 11:52:22 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/preferences-menu-item/index.js
2021-06-25 11:52:22 -04:00
/ * *
* WordPress dependencies
2021-06-15 11:30:24 -04:00
* /
2021-06-25 11:52:22 -04:00
2023-06-28 03:04:13 -04:00
2023-09-26 10:23:26 -04:00
2021-06-15 11:30:24 -04:00
/ * *
* Internal dependencies
* /
2021-06-25 11:52:22 -04:00
function PreferencesMenuItem ( ) {
2021-06-15 11:30:24 -04:00
const {
2021-06-25 11:52:22 -04:00
openModal
2023-06-28 03:04:13 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
2021-06-25 11:52:22 -04:00
onClick : ( ) => {
2023-06-28 03:04:13 -04:00
openModal ( PREFERENCES _MODAL _NAME ) ;
2021-06-25 11:52:22 -04:00
}
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Preferences' ) ) ;
2021-06-15 11:30:24 -04:00
}
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js
2021-06-15 11:30:24 -04:00
2021-06-25 11:52:22 -04:00
/ * *
* WordPress dependencies
* /
2021-05-19 11:09:27 -04:00
2021-06-25 11:52:22 -04:00
2023-02-07 02:04:52 -05:00
/ * *
* Internal dependencies
* /
2021-06-25 11:52:22 -04:00
function WritingMenu ( ) {
2023-02-07 02:04:52 -05:00
const {
set : setPreference
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _preferences _namespaceObject . store ) ;
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 {
2024-02-09 13:22:22 -05:00
toggleDistractionFree
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
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 turnOffDistractionFree = ( ) => {
setPreference ( 'core' , 'distractionFree' , false ) ;
} ;
2022-04-11 08:04:30 -04:00
const isLargeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' ) ;
2021-06-25 11:52:22 -04:00
if ( ! isLargeViewport ) {
return null ;
2021-05-19 11:09:27 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuGroup , {
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _x ) ( 'View' , 'noun' )
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _preferences _namespaceObject . PreferenceToggleMenuItem , {
scope : "core" ,
2022-04-12 11:12:47 -04:00
name : "fixedToolbar" ,
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
onToggle : turnOffDistractionFree ,
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Top toolbar' ) ,
info : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Access all block and document tools in a single place' ) ,
messageActivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Top toolbar activated' ) ,
messageDeactivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Top toolbar deactivated' )
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _preferences _namespaceObject . PreferenceToggleMenuItem , {
scope : "core" ,
name : "distractionFree" ,
2024-02-09 13:22:22 -05:00
handleToggling : false ,
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
onToggle : toggleDistractionFree ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Distraction free' ) ,
info : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Write with calmness' ) ,
messageActivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Distraction free mode activated' ) ,
messageDeactivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Distraction free mode deactivated' ) ,
shortcut : external _wp _keycodes _namespaceObject . displayShortcut . primaryShift ( '\\' )
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _preferences _namespaceObject . PreferenceToggleMenuItem , {
scope : "core" ,
2022-04-12 11:12:47 -04:00
name : "focusMode" ,
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Spotlight mode' ) ,
info : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Focus on one block at a time' ) ,
messageActivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Spotlight mode activated' ) ,
messageDeactivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Spotlight mode deactivated' )
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _preferences _namespaceObject . PreferenceToggleMenuItem , {
2021-11-08 09:29:21 -05:00
scope : "core/edit-post" ,
2022-04-12 11:12:47 -04:00
name : "fullscreenMode" ,
2022-04-11 08:04:30 -04:00
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Fullscreen mode' ) ,
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
info : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Show and hide the admin user interface' ) ,
2022-04-11 08:04:30 -04:00
messageActivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Fullscreen mode activated' ) ,
messageDeactivated : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Fullscreen mode deactivated' ) ,
shortcut : external _wp _keycodes _namespaceObject . displayShortcut . secondary ( 'f' )
2021-06-25 11:52:22 -04:00
} ) ) ;
2020-01-08 06:57:23 -05:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const writing _menu = ( WritingMenu ) ;
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/more-menu/index.js
2018-12-13 23:41:57 -05:00
2019-10-15 11:37:08 -04:00
/ * *
2021-01-27 21:04:13 -05:00
* WordPress dependencies
2019-10-15 11:37:08 -04:00
* /
2018-12-13 23:41:57 -05:00
2019-03-21 08:48:00 -04:00
2023-09-26 10:23:26 -04:00
2019-09-19 11:19:18 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Internal dependencies
2019-09-19 11:19:18 -04:00
* /
2019-03-21 08:48:00 -04:00
2019-09-19 11:19:18 -04:00
2019-03-21 08:48:00 -04:00
2021-01-27 21:04:13 -05:00
2023-06-27 10:24:19 -04:00
const MoreMenu = ( {
showIconLabels
} ) => {
2022-04-11 08:04:30 -04:00
const isLargeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'large' ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( MoreMenuDropdown , {
2021-06-25 11:52:22 -04:00
toggleProps : {
showTooltip : ! showIconLabels ,
2021-11-08 09:29:21 -05:00
... ( showIconLabels && {
variant : 'tertiary'
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
} ) ,
size : 'compact'
2021-06-25 11:52:22 -04:00
}
2023-06-27 10:24:19 -04:00
} , ( {
onClose
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , showIconLabels && ! isLargeViewport && ( 0 , external _React _namespaceObject . createElement ) ( pinned _items . Slot , {
2023-06-27 10:24:19 -04:00
className : showIconLabels && 'show-icon-labels' ,
scope : "core/edit-post"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( writing _menu , null ) , ( 0 , external _React _namespaceObject . createElement ) ( mode _switcher , null ) , ( 0 , external _React _namespaceObject . createElement ) ( action _item . Slot , {
2023-06-27 10:24:19 -04:00
name : "core/edit-post/plugin-more-menu" ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Plugins' ) ,
as : external _wp _components _namespaceObject . MenuGroup ,
fillProps : {
onClick : onClose
}
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( tools _more _menu _group . Slot , {
2023-06-27 10:24:19 -04:00
fillProps : {
2021-06-25 11:52:22 -04:00
onClose
2023-06-27 10:24:19 -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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuGroup , null , ( 0 , external _React _namespaceObject . createElement ) ( PreferencesMenuItem , null ) ) ) ) ;
2021-06-25 11:52:22 -04:00
} ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const more _menu = ( MoreMenu ) ;
2021-01-27 21:04:13 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js
2019-03-21 08:48:00 -04:00
2021-01-27 21:04:13 -05:00
/ * *
* WordPress dependencies
* /
2019-10-15 11:37:08 -04:00
2019-03-21 08:48:00 -04:00
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-07 07:48:27 -04:00
* Internal dependencies
2021-01-27 21:04:13 -05:00
* /
2023-06-27 10:24:19 -04:00
function PostPublishButtonOrToggle ( {
forceIsDirty ,
hasPublishAction ,
isBeingScheduled ,
isPending ,
isPublished ,
isPublishSidebarEnabled ,
isPublishSidebarOpened ,
isScheduled ,
togglePublishSidebar ,
setEntitiesSavedStatesCallback
} ) {
2021-06-25 11:52:22 -04:00
const IS _TOGGLE = 'toggle' ;
const IS _BUTTON = 'button' ;
2022-04-11 08:04:30 -04:00
const isSmallerThanMediumViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' , '<' ) ;
2021-06-25 11:52:22 -04:00
let component ;
2023-09-26 10:23:26 -04:00
2021-06-25 11:52:22 -04:00
/ * *
* Conditions to show a BUTTON ( publish directly ) or a TOGGLE ( open publish sidebar ) :
*
* 1 ) We want to show a BUTTON when the post status is at the _final stage _
2023-06-27 10:24:19 -04:00
* for a particular role ( see https : //wordpress.org/documentation/article/post-status/):
2021-06-25 11:52:22 -04:00
*
* - is published
* - is scheduled to be published
* - is pending and can ' t be published ( but only for viewports >= medium ) .
* Originally , we considered showing a button for pending posts that couldn ' t be published
* ( for example , for an author with the contributor role ) . Some languages can have
* long translations for "Submit for review" , so given the lack of UI real estate available
* we decided to take into account the viewport in that case .
* See : https : //github.com/WordPress/gutenberg/issues/10475
*
* 2 ) Then , in small viewports , we ' ll show a TOGGLE .
*
* 3 ) Finally , we ' ll use the publish sidebar status to decide :
*
* - if it is enabled , we show a TOGGLE
* - if it is disabled , we show a BUTTON
* /
if ( isPublished || isScheduled && isBeingScheduled || isPending && ! hasPublishAction && ! isSmallerThanMediumViewport ) {
component = IS _BUTTON ;
} else if ( isSmallerThanMediumViewport ) {
component = IS _TOGGLE ;
} else if ( isPublishSidebarEnabled ) {
component = IS _TOGGLE ;
} else {
component = IS _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
return ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostPublishButton , {
2021-06-25 11:52:22 -04:00
forceIsDirty : forceIsDirty ,
isOpen : isPublishSidebarOpened ,
isToggle : component === IS _TOGGLE ,
onToggle : togglePublishSidebar ,
setEntitiesSavedStatesCallback : setEntitiesSavedStatesCallback
} ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _publish _button _or _toggle = ( ( 0 , external _wp _compose _namespaceObject . compose ) ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( select => {
2023-06-27 10:24:19 -04:00
var _select$getCurrentPos ;
return {
hasPublishAction : ( _select$getCurrentPos = select ( external _wp _editor _namespaceObject . store ) . getCurrentPost ( ) ? . _links ? . [ 'wp:action-publish' ] ) !== null && _select$getCurrentPos !== void 0 ? _select$getCurrentPos : false ,
isBeingScheduled : select ( external _wp _editor _namespaceObject . store ) . isEditedPostBeingScheduled ( ) ,
isPending : select ( external _wp _editor _namespaceObject . store ) . isCurrentPostPending ( ) ,
isPublished : select ( external _wp _editor _namespaceObject . store ) . isCurrentPostPublished ( ) ,
isPublishSidebarEnabled : select ( external _wp _editor _namespaceObject . store ) . isPublishSidebarEnabled ( ) ,
isPublishSidebarOpened : select ( store _store ) . isPublishSidebarOpened ( ) ,
isScheduled : select ( external _wp _editor _namespaceObject . store ) . isCurrentPostScheduled ( )
} ;
} ) , ( 0 , external _wp _data _namespaceObject . withDispatch ) ( dispatch => {
2021-06-25 11:52:22 -04:00
const {
togglePublishSidebar
2022-04-11 08:04:30 -04:00
} = dispatch ( store _store ) ;
2021-06-25 11:52:22 -04:00
return {
togglePublishSidebar
} ;
} ) ) ( PostPublishButtonOrToggle ) ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/main-dashboard-button/index.js
2020-06-26 09:33:47 -04:00
/ * *
* WordPress dependencies
* /
2021-06-25 11:52:22 -04:00
const slotName = '__experimentalMainDashboardButton' ;
const {
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
Fill ,
2021-06-25 11:52:22 -04:00
Slot : MainDashboardButtonSlot
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( slotName ) ;
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 MainDashboardButton = Fill ;
2023-06-27 10:24:19 -04:00
const main _dashboard _button _Slot = ( {
children
} ) => {
2023-02-07 02:04:52 -05:00
const fills = ( 0 , external _wp _components _namespaceObject . _ _experimentalUseSlotFills ) ( slotName ) ;
const hasFills = Boolean ( fills && fills . length ) ;
2021-06-25 11:52:22 -04:00
if ( ! hasFills ) {
return 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
return ( 0 , external _React _namespaceObject . createElement ) ( MainDashboardButtonSlot , {
2021-06-25 11:52:22 -04:00
bubblesVirtually : true
} ) ;
} ;
MainDashboardButton . Slot = main _dashboard _button _Slot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const main _dashboard _button = ( MainDashboardButton ) ;
2019-10-15 11:37:08 -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/edit-post/build-module/components/header/index.js
2020-02-06 16:03:31 -05:00
2021-05-19 11:09:27 -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 dependencies
2021-05-19 11:09:27 -04:00
* /
2019-10-15 11:37:08 -04:00
2020-10-13 09:10:30 -04:00
2020-01-08 06:57:23 -05:00
/ * *
2021-01-27 21:04:13 -05:00
* WordPress dependencies
2020-01-08 06:57:23 -05:00
* /
2018-12-13 23:41:57 -05:00
2021-05-07 07:48:27 -04:00
2019-10-15 11:37:08 -04:00
2018-12-13 23:41:57 -05:00
2020-01-08 06:57:23 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-07 07:48:27 -04:00
* Internal dependencies
2021-01-27 21:04:13 -05:00
* /
2018-12-13 23:41:57 -05:00
2020-01-08 06:57:23 -05:00
2021-05-07 07:48:27 -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 {
DocumentTools ,
PostViewLink ,
PreviewDropdown
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2023-06-27 10:24:19 -04:00
const slideY = {
hidden : {
y : '-50px'
} ,
2023-09-26 10:23:26 -04:00
distractionFreeInactive : {
y : 0
} ,
hover : {
2023-06-27 10:24:19 -04:00
y : 0 ,
transition : {
type : 'tween' ,
delay : 0.2
}
}
} ;
const slideX = {
hidden : {
x : '-100%'
} ,
2023-09-26 10:23:26 -04:00
distractionFreeInactive : {
x : 0
} ,
2023-06-27 10:24:19 -04:00
hover : {
x : 0 ,
transition : {
type : 'tween' ,
delay : 0.2
}
}
} ;
function Header ( {
2024-02-09 13:22:22 -05:00
setEntitiesSavedStatesCallback ,
initialPost
2023-06-27 10:24:19 -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 isWideViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'large' ) ;
const isLargeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' ) ;
const blockToolbarRef = ( 0 , external _wp _element _namespaceObject . useRef ) ( ) ;
2021-05-19 11:09:27 -04:00
const {
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
isTextEditor ,
hasBlockSelection ,
2021-05-19 11:09:27 -04:00
hasActiveMetaboxes ,
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
hasFixedToolbar ,
2021-05-19 11:09:27 -04:00
isPublishSidebarOpened ,
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
showIconLabels ,
hasHistory
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
get : getPreference
} = select ( external _wp _preferences _namespaceObject . store ) ;
const {
getEditorMode
} = select ( store _store ) ;
return {
isTextEditor : getEditorMode ( ) === 'text' ,
hasBlockSelection : ! ! select ( external _wp _blockEditor _namespaceObject . store ) . getBlockSelectionStart ( ) ,
hasActiveMetaboxes : select ( store _store ) . hasMetaBoxes ( ) ,
2024-02-09 13:22:22 -05:00
hasHistory : ! ! select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( ) . onNavigateToPreviousEntityRecord ,
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
isPublishSidebarOpened : select ( store _store ) . isPublishSidebarOpened ( ) ,
hasFixedToolbar : getPreference ( 'core' , 'fixedToolbar' ) ,
showIconLabels : getPreference ( 'core' , 'showIconLabels' )
} ;
} , [ ] ) ;
const [ isBlockToolsCollapsed , setIsBlockToolsCollapsed ] = ( 0 , external _wp _element _namespaceObject . useState ) ( true ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
// If we have a new block selection, show the block tools
if ( hasBlockSelection ) {
setIsBlockToolsCollapsed ( false ) ;
}
} , [ hasBlockSelection ] ) ;
return ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
className : "edit-post-header"
} , ( 0 , external _React _namespaceObject . createElement ) ( main _dashboard _button . Slot , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _unstableMotion . div , {
variants : slideX ,
transition : {
2023-02-07 02:04:52 -05:00
type : 'tween' ,
delay : 0.8
}
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
} , ( 0 , external _React _namespaceObject . createElement ) ( fullscreen _mode _close , {
2024-02-09 13:22:22 -05:00
showTooltip : true ,
initialPost : initialPost
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
} ) ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _unstableMotion . div , {
2023-02-07 02:04:52 -05:00
variants : slideY ,
transition : {
type : 'tween' ,
delay : 0.8
} ,
2021-05-19 11:09:27 -04:00
className : "edit-post-header__toolbar"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( DocumentTools , {
disableBlockTools : isTextEditor
} ) , hasFixedToolbar && isLargeViewport && ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
className : classnames _default ( ) ( 'selected-block-tools-wrapper' , {
'is-collapsed' : isBlockToolsCollapsed
} )
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . BlockToolbar , {
hideDragHandle : true
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Popover . Slot , {
ref : blockToolbarRef ,
name : "block-toolbar"
} ) , hasBlockSelection && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
className : "edit-post-header__block-tools-toggle" ,
icon : isBlockToolsCollapsed ? library _next : library _previous ,
onClick : ( ) => {
setIsBlockToolsCollapsed ( collapsed => ! collapsed ) ;
} ,
label : isBlockToolsCollapsed ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Show block tools' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Hide block tools' )
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
className : classnames _default ( ) ( 'edit-post-header__center' , {
2024-01-31 07:59:56 -05:00
'is-collapsed' : hasHistory && hasBlockSelection && ! isBlockToolsCollapsed && hasFixedToolbar && isLargeViewport
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
} )
2024-01-31 07:59:56 -05:00
} , hasHistory && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . DocumentBar , null ) ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _unstableMotion . div , {
2023-02-07 02:04:52 -05:00
variants : slideY ,
transition : {
type : 'tween' ,
delay : 0.8
} ,
2021-05-19 11:09:27 -04:00
className : "edit-post-header__settings"
2023-09-26 10:23:26 -04:00
} , ! isPublishSidebarOpened &&
// This button isn't completely hidden by the publish sidebar.
2021-05-19 11:09:27 -04:00
// We can't hide the whole toolbar when the publish sidebar is open because
// we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
// We track that DOM node to return focus to the PostPublishButtonOrToggle
// when the publish sidebar has been closed.
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
( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSavedState , {
forceIsDirty : hasActiveMetaboxes
} ) , ( 0 , external _React _namespaceObject . createElement ) ( PreviewDropdown , {
forceIsAutosaveable : hasActiveMetaboxes
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostPreviewButton , {
className : "edit-post-header__post-preview-button" ,
2023-09-26 10:23:26 -04:00
forceIsAutosaveable : hasActiveMetaboxes
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( PostViewLink , null ) , ( 0 , external _React _namespaceObject . createElement ) ( post _publish _button _or _toggle , {
2021-05-19 11:09:27 -04:00
forceIsDirty : hasActiveMetaboxes ,
setEntitiesSavedStatesCallback : setEntitiesSavedStatesCallback
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
} ) , ( isWideViewport || ! showIconLabels ) && ( 0 , external _React _namespaceObject . createElement ) ( pinned _items . Slot , {
2021-05-19 11:09:27 -04:00
scope : "core/edit-post"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( more _menu , {
2021-05-19 11:09:27 -04:00
showIconLabels : showIconLabels
} ) ) ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const header = ( Header ) ;
2021-01-27 21:04:13 -05:00
2023-02-07 02:04:52 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
2018-12-17 22:14:52 -05:00
2019-10-15 11:37:08 -04:00
/ * *
* WordPress dependencies
* /
2019-03-07 04:09:59 -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 drawerLeft = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2023-02-07 02:04:52 -05:00
width : "24" ,
height : "24" ,
2022-04-11 08:04:30 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2022-04-11 08:04:30 -04:00
fillRule : "evenodd" ,
2023-02-07 02:04:52 -05:00
clipRule : "evenodd" ,
d : "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const drawer _left = ( drawerLeft ) ;
2023-02-07 02:04:52 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
/ * *
* WordPress 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
const drawerRight = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
2023-02-07 02:04:52 -05:00
width : "24" ,
height : "24" ,
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
2023-02-07 02:04:52 -05:00
fillRule : "evenodd" ,
clipRule : "evenodd" ,
d : "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
2022-04-11 08:04:30 -04:00
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const drawer _right = ( drawerRight ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js
2021-05-19 11:09:27 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2024-02-09 13:22:22 -05:00
2022-04-11 08:04:30 -04:00
/ * *
* Internal dependencies
2021-05-07 07:48:27 -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 {
Tabs
} = unlock ( external _wp _components _namespaceObject . privateApis ) ;
2024-02-09 13:22:22 -05:00
const SettingsHeader = ( _ , ref ) => {
2021-05-19 11:09:27 -04:00
const {
2024-01-31 07:59:56 -05:00
documentLabel
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
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 {
2024-01-31 07:59:56 -05:00
getPostTypeLabel
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
} = select ( external _wp _editor _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
return {
2021-11-08 09:29:21 -05:00
// translators: Default label for the Document sidebar tab, not selected.
2024-01-31 07:59:56 -05:00
documentLabel : getPostTypeLabel ( ) || ( 0 , external _wp _i18n _namespaceObject . _x ) ( 'Document' , 'noun' )
2021-05-19 11:09:27 -04:00
} ;
} , [ ] ) ;
2024-02-09 13:22:22 -05:00
return ( 0 , external _React _namespaceObject . createElement ) ( Tabs . TabList , {
ref : ref
} , ( 0 , external _React _namespaceObject . createElement ) ( Tabs . Tab , {
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
tabId : sidebars . document
2024-02-09 13:22:22 -05:00
// Used for focus management in the SettingsSidebar component.
,
"data-tab-id" : sidebars . document
2024-01-31 07:59:56 -05:00
} , documentLabel ) , ( 0 , external _React _namespaceObject . createElement ) ( Tabs . Tab , {
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
tabId : sidebars . block
2024-02-09 13:22:22 -05:00
// Used for focus management in the SettingsSidebar component.
,
"data-tab-id" : sidebars . 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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Block' ) ) ) ;
2021-05-19 11:09:27 -04:00
} ;
2024-02-09 13:22:22 -05:00
/* harmony default export */ const settings _header = ( ( 0 , external _wp _element _namespaceObject . forwardRef ) ( SettingsHeader ) ) ;
2021-05-07 07:48:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-visibility/index.js
2021-05-07 07:48:27 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-05-07 07:48:27 -04:00
2018-12-13 23:41:57 -05:00
2022-09-20 11:43:29 -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
* /
const {
PostPanelRow
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2021-05-19 11:09:27 -04:00
function PostVisibility ( ) {
2022-09-20 11:43:29 -04:00
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
2023-09-26 10:23:26 -04:00
const [ popoverAnchor , setPopoverAnchor ] = ( 0 , external _wp _element _namespaceObject . useState ) ( null ) ;
// Memoize popoverProps to avoid returning a new object every time.
2022-09-20 11:43:29 -04:00
const popoverProps = ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => ( {
// Anchor the popover to the middle of the entire row so that it doesn't
// move around when the label changes.
2023-02-07 02:04:52 -05:00
anchor : popoverAnchor ,
placement : 'bottom-end'
2022-09-20 11:43:29 -04:00
} ) , [ popoverAnchor ] ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostVisibilityCheck , {
2023-06-27 10:24:19 -04:00
render : ( {
canEdit
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( PostPanelRow , {
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Visibility' ) ,
ref : setPopoverAnchor
} , ! canEdit && ( 0 , external _React _namespaceObject . createElement ) ( "span" , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostVisibilityLabel , null ) ) , canEdit && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Dropdown , {
2023-06-27 10:24:19 -04:00
contentClassName : "edit-post-post-visibility__dialog" ,
popoverProps : popoverProps ,
focusOnMount : true ,
renderToggle : ( {
isOpen ,
onToggle
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( PostVisibilityToggle , {
2023-06-27 10:24:19 -04:00
isOpen : isOpen ,
onClick : onToggle
} ) ,
renderContent : ( {
onClose
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostVisibility , {
2023-06-27 10:24:19 -04:00
onClose : onClose
} )
} ) )
2021-05-19 11:09:27 -04:00
} ) ;
}
2023-06-27 10:24:19 -04:00
function PostVisibilityToggle ( {
isOpen ,
onClick
} ) {
2022-09-20 11:43:29 -04:00
const label = ( 0 , external _wp _editor _namespaceObject . usePostVisibilityLabel ) ( ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2024-02-09 13:22:22 -05:00
_ _next40pxDefaultSize : true ,
2022-09-20 11:43:29 -04:00
className : "edit-post-post-visibility__toggle" ,
variant : "tertiary" ,
2023-09-26 10:23:26 -04:00
"aria-expanded" : isOpen
// translators: %s: Current post visibility.
2022-09-20 11:43:29 -04:00
,
"aria-label" : ( 0 , external _wp _i18n _namespaceObject . sprintf ) ( ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Select visibility: %s' ) , label ) ,
onClick : onClick
} , label ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _visibility = ( PostVisibility ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-trash/index.js
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-07 07:48:27 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2018-12-17 22:14:52 -05:00
2021-05-19 11:09:27 -04:00
function PostTrash ( ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTrashCheck , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTrash , null ) ) ;
2021-05-19 11:09:27 -04:00
}
2021-05-07 07:48:27 -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/edit-post/build-module/components/sidebar/post-sticky/index.js
2020-10-13 09:10:30 -04:00
2021-05-07 07:48:27 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2021-05-07 07:48:27 -04:00
* /
2018-12-17 22:14:52 -05:00
2018-12-13 23:41:57 -05:00
2022-09-20 11:43:29 -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
2022-09-20 11:43:29 -04:00
* /
2018-12-13 23:41:57 -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 {
PostPanelRow : post _sticky _PostPanelRow
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2021-05-19 11:09:27 -04:00
function PostSticky ( ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostStickyCheck , null , ( 0 , external _React _namespaceObject . createElement ) ( post _sticky _PostPanelRow , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSticky , null ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _sticky = ( PostSticky ) ;
2021-05-19 11:09:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-slug/index.js
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
2018-12-17 22:14:52 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2018-12-17 22:14:52 -05:00
* /
2021-05-19 11:09:27 -04:00
function PostSlug ( ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSlugCheck , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelRow , {
2022-09-20 11:43:29 -04:00
className : "edit-post-post-slug"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSlug , null ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _slug = ( PostSlug ) ;
2018-12-17 22:14:52 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-format/index.js
2018-12-17 22:14:52 -05:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2018-12-17 22:14:52 -05:00
2018-12-13 23:41:57 -05:00
2021-05-19 11:09:27 -04:00
function PostFormat ( ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostFormatCheck , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelRow , {
2022-09-20 11:43:29 -04:00
className : "edit-post-post-format"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostFormat , null ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _format = ( PostFormat ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-pending-status/index.js
2021-05-07 07:48:27 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-05-07 07:48:27 -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
* /
const {
PostPanelRow : post _pending _status _PostPanelRow
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2021-05-19 11:09:27 -04:00
function PostPendingStatus ( ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostPendingStatusCheck , null , ( 0 , external _React _namespaceObject . createElement ) ( post _pending _status _PostPanelRow , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostPendingStatus , null ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const post _pending _status = ( PostPendingStatus ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js
2018-12-17 22:14:52 -05:00
2021-05-19 11:09:27 -04:00
/ * *
2022-09-20 11:43:29 -04:00
* Defines as extensibility slot for the Summary panel .
2021-05-19 11:09:27 -04:00
* /
2021-05-07 07:48:27 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-05-07 07:48:27 -04:00
2021-05-19 11:09:27 -04:00
const {
Fill : plugin _post _status _info _Fill ,
Slot : plugin _post _status _info _Slot
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'PluginPostStatusInfo' ) ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
2022-09-20 11:43:29 -04:00
* Renders a row in the Summary panel of the Document sidebar .
2021-05-19 11:09:27 -04:00
* It should be noted that this is named and implemented around the function it serves
* and not its location , which may change in future iterations .
*
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 { Object } props Component properties .
* @ param { string } [ props . className ] An optional class name added to the row .
* @ param { Element } props . children Children to be rendered .
2021-05-19 11:09:27 -04:00
*
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginPostStatusInfo = wp . editPost . PluginPostStatusInfo ;
*
* function MyPluginPostStatusInfo ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginPostStatusInfo ,
* {
* className : 'my-plugin-post-status-info' ,
* } ,
* _ _ ( 'My post status info' )
* )
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginPostStatusInfo } from '@wordpress/edit-post' ;
*
* const MyPluginPostStatusInfo = ( ) => (
* < PluginPostStatusInfo
* className = "my-plugin-post-status-info"
* >
* { _ _ ( 'My post status info' ) }
* < / P l u g i n P o s t S t a t u s I n f 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
* @ return { Component } The component to be rendered .
2021-05-19 11:09:27 -04:00
* /
2023-06-27 10:24:19 -04:00
const PluginPostStatusInfo = ( {
children ,
className
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( plugin _post _status _info _Fill , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelRow , {
2023-06-27 10:24:19 -04:00
className : className
} , children ) ) ;
2021-05-19 11:09:27 -04:00
PluginPostStatusInfo . Slot = plugin _post _status _info _Slot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _post _status _info = ( PluginPostStatusInfo ) ;
2018-12-13 23:41:57 -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
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js
2022-09-20 11:43:29 -04:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
2023-09-26 10:23:26 -04:00
2022-09-20 11:43:29 -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
* Module Constants
2022-09-20 11:43:29 -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 PANEL _NAME = 'post-status' ;
function PostStatus ( ) {
2022-09-20 11:43:29 -04:00
const {
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
isOpened ,
isRemoved
2022-09-20 11:43:29 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
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 use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
// not use isEditorPanelEnabled since this panel should not be disabled through the UI.
2022-09-20 11:43:29 -04:00
const {
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
isEditorPanelRemoved ,
isEditorPanelOpened
} = select ( external _wp _editor _namespaceObject . store ) ;
2022-09-20 11:43:29 -04:00
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
isRemoved : isEditorPanelRemoved ( PANEL _NAME ) ,
isOpened : isEditorPanelOpened ( PANEL _NAME )
2022-09-20 11:43:29 -04:00
} ;
} , [ ] ) ;
const {
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
toggleEditorPanelOpened
2022-09-20 11:43:29 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _editor _namespaceObject . store ) ;
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 ( isRemoved ) {
2022-09-20 11:43:29 -04:00
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
return ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelBody , {
2021-05-19 11:09:27 -04:00
className : "edit-post-post-status" ,
2022-09-20 11:43:29 -04:00
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Summary' ) ,
2021-01-27 21:04:13 -05:00
opened : isOpened ,
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
onToggle : ( ) => toggleEditorPanelOpened ( PANEL _NAME )
} , ( 0 , external _React _namespaceObject . createElement ) ( plugin _post _status _info . Slot , null , fills => ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( post _visibility , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSchedulePanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTemplatePanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostURLPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSyncStatus , null ) , ( 0 , external _React _namespaceObject . createElement ) ( post _sticky , null ) , ( 0 , external _React _namespaceObject . createElement ) ( post _pending _status , null ) , ( 0 , external _React _namespaceObject . createElement ) ( post _format , null ) , ( 0 , external _React _namespaceObject . createElement ) ( post _slug , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostAuthorPanel , null ) , fills , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . _ _experimentalHStack , {
2023-06-27 10:24:19 -04:00
style : {
marginTop : '16px'
} ,
2023-07-07 03:21:17 -04:00
spacing : 4 ,
wrap : true
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSwitchToDraftButton , null ) , ( 0 , external _React _namespaceObject . createElement ) ( PostTrash , null ) ) ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2020-01-08 06:57:23 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js
2020-06-26 09:33:47 -04:00
2020-01-08 06:57:23 -05:00
/ * *
* External dependencies
* /
2023-09-26 10:23:26 -04:00
2020-01-08 06:57:23 -05:00
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
/ * *
* Internal dependencies
* /
2020-06-26 09:33:47 -04:00
2020-01-08 06:57:23 -05:00
2021-11-08 09:29:21 -05:00
/ * *
* Render metabox area .
*
* @ param { Object } props Component props .
* @ param { string } props . location metabox location .
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 { Component } The component to be rendered .
2021-11-08 09:29:21 -05:00
* /
2023-06-27 10:24:19 -04:00
function MetaBoxesArea ( {
location
} ) {
2022-04-11 08:04:30 -04:00
const container = ( 0 , external _wp _element _namespaceObject . useRef ) ( null ) ;
const formRef = ( 0 , external _wp _element _namespaceObject . useRef ) ( null ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2021-11-08 09:29:21 -05:00
formRef . current = document . querySelector ( '.metabox-location-' + location ) ;
if ( formRef . current ) {
container . current . appendChild ( formRef . current ) ;
2021-01-27 21:04:13 -05:00
}
2021-11-08 09:29:21 -05:00
return ( ) => {
if ( formRef . current ) {
document . querySelector ( '#metaboxes' ) . appendChild ( formRef . current ) ;
}
} ;
} , [ location ] ) ;
2022-04-11 08:04:30 -04:00
const isSaving = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
return select ( store _store ) . isSavingMetaBoxes ( ) ;
2021-11-08 09:29:21 -05:00
} , [ ] ) ;
const classes = classnames _default ( ) ( 'edit-post-meta-boxes-area' , ` is- ${ location } ` , {
'is-loading' : isSaving
} ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-11-08 09:29:21 -05:00
className : classes
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
} , isSaving && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Spinner , null ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-11-08 09:29:21 -05:00
className : "edit-post-meta-boxes-area__container" ,
ref : container
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-11-08 09:29:21 -05:00
className : "edit-post-meta-boxes-area__clear"
} ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const meta _boxes _area = ( MetaBoxesArea ) ;
2020-06-26 09:33:47 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-box-visibility.js
2021-01-27 21:04:13 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2020-06-26 09:33:47 -04:00
2021-05-19 11:09:27 -04:00
2023-09-26 10:23:26 -04:00
2022-04-11 08:04:30 -04:00
class MetaBoxVisibility extends external _wp _element _namespaceObject . Component {
2021-05-19 11:09:27 -04:00
componentDidMount ( ) {
this . updateDOM ( ) ;
}
componentDidUpdate ( prevProps ) {
if ( this . props . isVisible !== prevProps . isVisible ) {
this . updateDOM ( ) ;
}
}
updateDOM ( ) {
const {
id ,
isVisible
} = this . props ;
const element = document . getElementById ( id ) ;
if ( ! element ) {
return ;
}
if ( isVisible ) {
element . classList . remove ( 'is-hidden' ) ;
} else {
element . classList . add ( 'is-hidden' ) ;
}
}
render ( ) {
return null ;
}
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const meta _box _visibility = ( ( 0 , external _wp _data _namespaceObject . withSelect ) ( ( select , {
2023-06-27 10:24:19 -04:00
id
} ) => ( {
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
isVisible : select ( external _wp _editor _namespaceObject . store ) . isEditorPanelEnabled ( ` meta-box- ${ id } ` )
2023-06-27 10:24:19 -04:00
} ) ) ( MetaBoxVisibility ) ) ;
2020-01-08 06:57:23 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js
2020-01-08 06:57:23 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
* /
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Internal dependencies
2020-01-08 06:57:23 -05:00
* /
2021-05-19 11:09:27 -04:00
2023-06-27 10:24:19 -04:00
function MetaBoxes ( {
location
} ) {
2022-04-11 08:04:30 -04:00
const registry = ( 0 , external _wp _data _namespaceObject . useRegistry ) ( ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
const {
metaBoxes ,
areMetaBoxesInitialized ,
isEditorReady
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
const {
_ _unstableIsEditorReady
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
const {
getMetaBoxesPerLocation ,
areMetaBoxesInitialized : _areMetaBoxesInitialized
2022-04-11 08:04:30 -04:00
} = select ( store _store ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
return {
metaBoxes : getMetaBoxesPerLocation ( location ) ,
areMetaBoxesInitialized : _areMetaBoxesInitialized ( ) ,
isEditorReady : _ _unstableIsEditorReady ( )
} ;
2023-09-26 10:23:26 -04:00
} , [ location ] ) ;
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 hasMetaBoxes = ! ! metaBoxes ? . length ;
2023-09-26 10:23:26 -04:00
// When editor is ready, initialize postboxes (wp core script) and metabox
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
// saving. This initializes all meta box locations, not just this specific
// one.
2022-04-11 08:04:30 -04:00
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
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 ( isEditorReady && hasMetaBoxes && ! areMetaBoxesInitialized ) {
2022-04-11 08:04:30 -04:00
registry . dispatch ( store _store ) . initializeMetaBoxes ( ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -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
} , [ isEditorReady , hasMetaBoxes , areMetaBoxesInitialized ] ) ;
Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`
Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/trunk@51719
git-svn-id: http://core.svn.wordpress.org/trunk@51325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 15:08:24 -04:00
if ( ! areMetaBoxesInitialized ) {
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
return ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( metaBoxes !== null && metaBoxes !== void 0 ? metaBoxes : [ ] ) . map ( ( {
2023-06-27 10:24:19 -04:00
id
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( meta _box _visibility , {
2023-06-27 10:24:19 -04:00
key : id ,
id : id
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
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( meta _boxes _area , {
2021-05-19 11:09:27 -04:00
location : location
} ) ) ;
}
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: external ["wp","warning"]
2024-01-31 07:59:56 -05:00
const external _wp _warning _namespaceObject = window [ "wp" ] [ "warning" ] ;
2023-09-26 10:23:26 -04:00
var external _wp _warning _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _wp _warning _namespaceObject ) ;
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js
/ * *
* WordPress 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
2022-04-11 08:04:30 -04:00
/ * *
* Internal dependencies
* /
const {
Fill : plugin _document _setting _panel _Fill ,
Slot : plugin _document _setting _panel _Slot
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'PluginDocumentSettingPanel' ) ;
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 {
EnablePluginDocumentSettingPanelOption
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2022-04-11 08:04:30 -04:00
/ * *
* Renders items below the Status & Availability panel in the Document Sidebar .
*
* @ param { Object } props Component properties .
2023-09-26 10:23:26 -04:00
* @ param { string } props . name Required . A machine - friendly name for the panel .
2022-04-11 08:04:30 -04:00
* @ param { string } [ props . className ] An optional class name added to the row .
* @ param { string } [ props . title ] The title of the panel
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
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 { Element } props . children Children to be rendered
2022-04-11 08:04:30 -04:00
*
* @ example
* ` ` ` js
* // Using ES5 syntax
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 el = React . createElement ;
2022-04-11 08:04:30 -04:00
* var _ _ = wp . i18n . _ _ ;
* var registerPlugin = wp . plugins . registerPlugin ;
* var PluginDocumentSettingPanel = wp . editPost . PluginDocumentSettingPanel ;
*
* function MyDocumentSettingPlugin ( ) {
* return el (
* PluginDocumentSettingPanel ,
* {
* className : 'my-document-setting-plugin' ,
* title : 'My Panel' ,
2023-09-26 10:23:26 -04:00
* name : 'my-panel' ,
2022-04-11 08:04:30 -04:00
* } ,
* _ _ ( 'My Document Setting Panel' )
* ) ;
* }
*
* registerPlugin ( 'my-document-setting-plugin' , {
* render : MyDocumentSettingPlugin
* } ) ;
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { registerPlugin } from '@wordpress/plugins' ;
* import { PluginDocumentSettingPanel } from '@wordpress/edit-post' ;
*
* const MyDocumentSettingTest = ( ) => (
2023-09-26 10:23:26 -04:00
* < PluginDocumentSettingPanel className = "my-document-setting-plugin" title = "My Panel" name = "my-panel" >
2022-04-11 08:04:30 -04:00
* < p > My Document Setting Panel < / p >
* < / P l u g i n D o c u m e n t S e t t i n g P a n e l >
* ) ;
*
* registerPlugin ( 'document-setting-test' , { render : MyDocumentSettingTest } ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2022-04-11 08:04:30 -04:00
* /
2023-09-26 10:23:26 -04:00
const PluginDocumentSettingPanel = ( {
name ,
className ,
title ,
icon ,
children
} ) => {
const {
name : pluginName
} = ( 0 , external _wp _plugins _namespaceObject . usePluginContext ) ( ) ;
const panelName = ` ${ pluginName } / ${ name } ` ;
const {
opened ,
isEnabled
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
isEditorPanelOpened ,
isEditorPanelEnabled
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
} = select ( external _wp _editor _namespaceObject . store ) ;
2023-09-26 10:23:26 -04:00
return {
opened : isEditorPanelOpened ( panelName ) ,
isEnabled : isEditorPanelEnabled ( panelName )
} ;
} , [ panelName ] ) ;
const {
toggleEditorPanelOpened
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
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _editor _namespaceObject . store ) ;
2023-09-26 10:23:26 -04:00
if ( undefined === name ) {
true ? external _wp _warning _default ( ) ( 'PluginDocumentSettingPanel requires a name property.' ) : 0 ;
2023-06-27 10:24:19 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( EnablePluginDocumentSettingPanelOption , {
2023-09-26 10:23:26 -04:00
label : title ,
panelName : panelName
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( plugin _document _setting _panel _Fill , null , isEnabled && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelBody , {
2023-09-26 10:23:26 -04:00
className : className ,
title : title ,
icon : icon ,
opened : opened ,
onToggle : ( ) => toggleEditorPanelOpened ( panelName )
} , children ) ) ) ;
} ;
2022-04-11 08:04:30 -04:00
PluginDocumentSettingPanel . Slot = plugin _document _setting _panel _Slot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _document _setting _panel = ( PluginDocumentSettingPanel ) ;
2021-05-19 11:09:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js
2019-10-15 11:37:08 -04:00
2019-09-19 11:19:18 -04:00
/ * *
2020-06-26 09:33:47 -04:00
* WordPress dependencies
2019-09-19 11:19:18 -04:00
* /
2018-12-17 22:14:52 -05:00
2021-05-19 11:09:27 -04:00
2021-11-08 09:29:21 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Renders a sidebar when activated . The contents within the ` PluginSidebar ` will appear as content within the sidebar .
* It also automatically renders a corresponding ` PluginSidebarMenuItem ` component when ` isPinnable ` flag is set to ` true ` .
* If you wish to display the sidebar , you can with use the ` PluginSidebarMoreMenuItem ` component or the ` wp.data.dispatch ` API :
2020-06-26 09:33:47 -04:00
*
2021-05-19 11:09:27 -04:00
* ` ` ` js
* wp . data . dispatch ( 'core/edit-post' ) . openGeneralSidebar ( 'plugin-name/sidebar-name' ) ;
* ` ` `
*
* @ see PluginSidebarMoreMenuItem
*
2021-11-08 09:29:21 -05:00
* @ param { Object } props Element props .
* @ param { string } props . name A string identifying the sidebar . Must be unique for every sidebar registered within the scope of your plugin .
* @ param { string } [ props . className ] An optional class name added to the sidebar body .
* @ param { string } props . title Title displayed at the top of the sidebar .
* @ param { boolean } [ props . isPinnable = true ] Whether to allow to pin sidebar to the toolbar . When set to ` true ` it also automatically renders a corresponding menu item .
2021-05-19 11:09:27 -04:00
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
2019-09-19 11:19:18 -04:00
*
2020-06-26 09:33:47 -04:00
* @ example
2019-10-15 11:37:08 -04:00
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
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 el = React . createElement ;
2021-05-19 11:09:27 -04:00
* var PanelBody = wp . components . PanelBody ;
* var PluginSidebar = wp . editPost . PluginSidebar ;
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 moreIcon = React . createElement ( 'svg' ) ; //... svg element.
2019-09-19 11:19:18 -04:00
*
2021-05-19 11:09:27 -04:00
* function MyPluginSidebar ( ) {
* return el (
* PluginSidebar ,
* {
* name : 'my-sidebar' ,
* title : 'My sidebar title' ,
* icon : moreIcon ,
* } ,
* el (
* PanelBody ,
* { } ,
* _ _ ( 'My sidebar content' )
* )
* ) ;
2019-10-15 11:37:08 -04:00
* }
* ` ` `
2019-09-19 11:19:18 -04:00
*
2020-06-26 09:33:47 -04:00
* @ example
2019-10-15 11:37:08 -04:00
* ` ` ` jsx
* // Using ESNext syntax
2020-06-26 09:33:47 -04:00
* import { _ _ } from '@wordpress/i18n' ;
2021-05-19 11:09:27 -04:00
* import { PanelBody } from '@wordpress/components' ;
* import { PluginSidebar } from '@wordpress/edit-post' ;
2020-06-26 09:33:47 -04:00
* import { more } from '@wordpress/icons' ;
2019-09-19 11:19:18 -04:00
*
2021-05-19 11:09:27 -04:00
* const MyPluginSidebar = ( ) => (
* < PluginSidebar
* name = "my-sidebar"
* title = "My sidebar title"
2020-06-26 09:33:47 -04:00
* icon = { more }
* >
2021-05-19 11:09:27 -04:00
* < PanelBody >
* { _ _ ( 'My sidebar content' ) }
* < / P a n e l B o d y >
* < / P l u g i n S i d e b a r >
2020-06-26 09:33:47 -04:00
* ) ;
2019-10-15 11:37:08 -04:00
* ` ` `
2021-01-27 21:04:13 -05:00
* /
2023-06-27 10:24:19 -04:00
function PluginSidebarEditPost ( {
className ,
... props
} ) {
2021-05-19 11:09:27 -04:00
const {
postTitle ,
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
shortcut
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2021-05-19 11:09:27 -04:00
return {
2022-04-11 08:04:30 -04:00
postTitle : select ( external _wp _editor _namespaceObject . store ) . getEditedPostAttribute ( 'title' ) ,
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
shortcut : select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getShortcutRepresentation ( 'core/edit-post/toggle-sidebar' )
2021-05-19 11:09:27 -04:00
} ;
2021-11-08 09:29:21 -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 ( 0 , external _React _namespaceObject . createElement ) ( complementary _area , {
2021-05-19 11:09:27 -04:00
panelClassName : className ,
className : "edit-post-sidebar" ,
2022-04-11 08:04:30 -04:00
smallScreenTitle : postTitle || ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( '(no title)' ) ,
2021-05-19 11:09:27 -04:00
scope : "core/edit-post" ,
toggleShortcut : shortcut ,
2023-06-27 10:24:19 -04:00
... props
} ) ;
2021-01-27 21:04:13 -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
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
/ * *
* WordPress dependencies
* /
/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
/ * *
* Return an SVG icon .
*
* @ param { IconProps } props icon is the SVG component to render
* size is a number specifiying the icon size in pixels
* Other props will be passed to wrapped SVG component
* @ param { import ( 'react' ) . ForwardedRef < HTMLElement > } ref The forwarded ref to the SVG element .
*
* @ return { JSX . Element } Icon component
* /
function Icon ( {
icon ,
size = 24 ,
... props
} , ref ) {
return ( 0 , external _wp _element _namespaceObject . cloneElement ) ( icon , {
width : size ,
height : size ,
... props ,
ref
} ) ;
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const icon = ( ( 0 , external _wp _element _namespaceObject . forwardRef ) ( Icon ) ) ;
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/icons/build-module/library/layout.js
/ * *
* WordPress dependencies
* /
const layout = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _layout = ( layout ) ;
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
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/template-summary/index.js
2019-10-15 11:37:08 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-02-02 00:17:13 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
function TemplateSummary ( ) {
2022-04-11 08:04:30 -04:00
const template = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2021-05-19 11:09:27 -04:00
const {
2024-01-31 07:59:56 -05:00
getCurrentPost
} = select ( external _wp _editor _namespaceObject . store ) ;
return getCurrentPost ( ) ;
2021-05-19 11:09:27 -04:00
} , [ ] ) ;
if ( ! template ) {
return null ;
2021-04-15 11:19:43 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelBody , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Flex , {
2021-11-08 09:29:21 -05:00
align : "flex-start" ,
gap : "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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . FlexItem , null , ( 0 , external _React _namespaceObject . createElement ) ( icon , {
2022-04-11 08:04:30 -04:00
icon : library _layout
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
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . FlexBlock , null , ( 0 , external _React _namespaceObject . createElement ) ( "h2" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-template-summary__title"
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
} , template ? . title || template ? . slug ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , null , template ? . description ) ) ) ) ;
2021-04-15 11:19:43 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const template _summary = ( TemplateSummary ) ;
2021-02-02 00:17:13 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js
2021-02-02 00:17:13 -05:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-02-02 00:17:13 -05:00
2020-06-26 09:33:47 -04:00
2023-02-07 02:04:52 -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
2021-05-19 11:09:27 -04:00
/ * *
* Internal dependencies
* /
2020-06-26 09:33:47 -04:00
2021-01-27 21:04:13 -05:00
2020-06-26 09:33:47 -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 {
Tabs : settings _sidebar _Tabs
} = unlock ( external _wp _components _namespaceObject . privateApis ) ;
2022-04-11 08:04:30 -04:00
const SIDEBAR _ACTIVE _BY _DEFAULT = external _wp _element _namespaceObject . Platform . select ( {
2021-05-19 11:09:27 -04:00
web : true ,
native : false
} ) ;
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 sidebars = {
document : 'edit-post/document' ,
block : 'edit-post/block'
} ;
const SidebarContent = ( {
sidebarName ,
keyboardShortcut ,
2024-01-31 07:59:56 -05:00
isEditingTemplate
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
} ) => {
2024-02-09 13:22:22 -05:00
const tabListRef = ( 0 , external _wp _element _namespaceObject . useRef ) ( 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
// Because `PluginSidebarEditPost` renders a `ComplementaryArea`, we
// need to forward the `Tabs` context so it can be passed through the
// underlying slot/fill.
const tabsContextValue = ( 0 , external _wp _element _namespaceObject . useContext ) ( settings _sidebar _Tabs . Context ) ;
2024-02-09 13:22:22 -05:00
// This effect addresses a race condition caused by tabbing from the last
// block in the editor into the settings sidebar. Without this effect, the
// selected tab and browser focus can become separated in an unexpected way
// (e.g the "block" tab is focused, but the "post" tab is selected).
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
const tabsElements = Array . from ( tabListRef . current ? . querySelectorAll ( '[role="tab"]' ) || [ ] ) ;
const selectedTabElement = tabsElements . find (
// We are purposefully using a custom `data-tab-id` attribute here
// because we don't want rely on any assumptions about `Tabs`
// component internals.
element => element . getAttribute ( 'data-tab-id' ) === sidebarName ) ;
const activeElement = selectedTabElement ? . ownerDocument . activeElement ;
const tabsHasFocus = tabsElements . some ( element => {
return activeElement && activeElement . id === element . id ;
} ) ;
if ( tabsHasFocus && selectedTabElement && selectedTabElement . id !== activeElement ? . id ) {
selectedTabElement ? . focus ( ) ;
}
} , [ sidebarName ] ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( PluginSidebarEditPost , {
identifier : sidebarName ,
header : ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar _Tabs . Context . Provider , {
value : tabsContextValue
2024-02-09 13:22:22 -05:00
} , ( 0 , external _React _namespaceObject . createElement ) ( settings _header , {
ref : tabListRef
} ) ) ,
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
closeLabel : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Close Settings' )
// This classname is added so we can apply a corrective negative
// margin to the panel.
// see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
,
className : "edit-post-sidebar__panel" ,
headerClassName : "edit-post-sidebar__panel-tabs"
/* translators: button label text should, if possible, be under 16 characters. */ ,
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Settings' ) ,
toggleShortcut : keyboardShortcut ,
icon : ( 0 , external _wp _i18n _namespaceObject . isRTL ) ( ) ? drawer _left : drawer _right ,
isActiveByDefault : SIDEBAR _ACTIVE _BY _DEFAULT
} , ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar _Tabs . Context . Provider , {
value : tabsContextValue
} , ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar _Tabs . TabPanel , {
tabId : sidebars . document ,
focusable : false
2024-01-31 07:59:56 -05:00
} , ! isEditingTemplate && ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( PostStatus , null ) , ( 0 , external _React _namespaceObject . createElement ) ( plugin _document _setting _panel . Slot , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostLastRevisionPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostTaxonomiesPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostFeaturedImagePanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostExcerptPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostDiscussionPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PageAttributesPanel , null ) , ( 0 , external _React _namespaceObject . createElement ) ( MetaBoxes , {
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
location : "side"
2024-01-31 07:59:56 -05:00
} ) ) , isEditingTemplate && ( 0 , external _React _namespaceObject . createElement ) ( template _summary , null ) ) , ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar _Tabs . TabPanel , {
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
tabId : sidebars . block ,
focusable : false
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . BlockInspector , null ) ) ) ) ;
} ;
2021-05-19 11:09:27 -04:00
const SettingsSidebar = ( ) => {
const {
sidebarName ,
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
isSettingsSidebarActive ,
2021-05-19 11:09:27 -04:00
keyboardShortcut ,
2024-01-31 07:59:56 -05:00
isEditingTemplate
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2021-05-19 11:09:27 -04:00
// The settings sidebar is used by the edit-post/document and edit-post/block sidebars.
// sidebarName represents the sidebar that is active or that should be active when the SettingsSidebar toggle button is pressed.
// If one of the two sidebars is active the component will contain the content of that sidebar.
2022-09-20 11:43:29 -04:00
// When neither of the two sidebars is active we can not simply return null, because the PluginSidebarEditPost
2021-05-19 11:09:27 -04:00
// component, besides being used to render the sidebar, also renders the toggle button. In that case sidebarName
// should contain the sidebar that will be active when the toggle button is pressed. If a block
// is selected, that should be edit-post/block otherwise it's edit-post/document.
2022-04-11 08:04:30 -04:00
let sidebar = select ( store ) . getActiveComplementaryArea ( store _store . 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
let isSettingsSidebar = true ;
if ( ! [ sidebars . document , sidebars . block ] . includes ( sidebar ) ) {
isSettingsSidebar = false ;
2022-04-11 08:04:30 -04:00
if ( select ( external _wp _blockEditor _namespaceObject . store ) . getBlockSelectionStart ( ) ) {
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
sidebar = sidebars . block ;
2021-05-19 11:09:27 -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
sidebar = sidebars . document ;
2021-05-19 11:09:27 -04:00
}
2022-04-11 08:04:30 -04:00
const shortcut = select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getShortcutRepresentation ( 'core/edit-post/toggle-sidebar' ) ;
2021-05-19 11:09:27 -04:00
return {
sidebarName : sidebar ,
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
isSettingsSidebarActive : isSettingsSidebar ,
2021-05-19 11:09:27 -04:00
keyboardShortcut : shortcut ,
2024-01-31 07:59:56 -05:00
isEditingTemplate : select ( external _wp _editor _namespaceObject . store ) . getCurrentPostType ( ) === 'wp_template'
2021-05-19 11:09:27 -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 {
openGeneralSidebar
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
const onTabSelect = ( 0 , external _wp _element _namespaceObject . useCallback ) ( newSelectedTabId => {
if ( ! ! newSelectedTabId ) {
openGeneralSidebar ( newSelectedTabId ) ;
}
} , [ openGeneralSidebar ] ) ;
return ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar _Tabs
// Due to how this component is controlled (via a value from the
// `interfaceStore`), when the sidebar closes the currently selected
// tab can't be found. This causes the component to continuously reset
// the selection to `null` in an infinite loop.Proactively setting
// the selected tab to `null` avoids that.
, {
selectedTabId : isSettingsSidebarActive ? sidebarName : null ,
2024-02-09 13:22:22 -05:00
onSelect : onTabSelect ,
selectOnMove : false
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
} , ( 0 , external _React _namespaceObject . createElement ) ( SidebarContent , {
sidebarName : sidebarName ,
keyboardShortcut : keyboardShortcut ,
2024-01-31 07:59:56 -05:00
isEditingTemplate : isEditingTemplate
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
} ) ) ;
2021-05-19 11:09:27 -04:00
} ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const settings _sidebar = ( SettingsSidebar ) ;
2021-05-19 11:09:27 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/image.js
2021-01-27 21:04:13 -05:00
2023-06-27 10:24:19 -04:00
function WelcomeGuideImage ( {
nonAnimatedSrc ,
animatedSrc
} ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( "picture" , {
2021-06-01 04:10:04 -04:00
className : "edit-post-welcome-guide__image"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( "source" , {
2021-06-01 04:10:04 -04:00
srcSet : nonAnimatedSrc ,
media : "(prefers-reduced-motion: reduce)"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( "img" , {
2021-06-01 04:10:04 -04:00
src : animatedSrc ,
width : "312" ,
height : "240" ,
alt : ""
} ) ) ;
}
2019-10-15 11:37:08 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/default.js
2019-10-15 11:37:08 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2021-01-27 21:04:13 -05:00
* /
2019-10-15 11:37:08 -04:00
2021-01-27 21:04:13 -05:00
2023-09-26 10:23:26 -04:00
2021-05-21 06:14:23 -04:00
/ * *
* Internal dependencies
* /
2018-12-17 22:14:52 -05:00
2019-10-15 11:37:08 -04:00
2021-05-21 06:14:23 -04:00
function WelcomeGuideDefault ( ) {
2021-05-19 11:09:27 -04:00
const {
toggleFeature
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Guide , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide" ,
2022-04-11 08:04:30 -04:00
contentLabel : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Welcome to the block editor' ) ,
finishButtonText : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Get started' ) ,
2021-05-19 11:09:27 -04:00
onFinish : ( ) => toggleFeature ( 'welcomeGuide' ) ,
pages : [ {
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
image : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideImage , {
2021-06-01 04:10:04 -04:00
nonAnimatedSrc : "https://s.w.org/images/block-editor/welcome-canvas.svg" ,
animatedSrc : "https://s.w.org/images/block-editor/welcome-canvas.gif"
} ) ,
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
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "h1" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__heading"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Welcome to the block editor' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__text"
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.' ) ) )
2021-05-19 11:09:27 -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
image : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideImage , {
2021-06-01 04:10:04 -04:00
nonAnimatedSrc : "https://s.w.org/images/block-editor/welcome-editor.svg" ,
animatedSrc : "https://s.w.org/images/block-editor/welcome-editor.gif"
} ) ,
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
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "h1" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__heading"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Make each block your own' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__text"
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.' ) ) )
2021-05-19 11:09:27 -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
image : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideImage , {
2021-06-01 04:10:04 -04:00
nonAnimatedSrc : "https://s.w.org/images/block-editor/welcome-library.svg" ,
animatedSrc : "https://s.w.org/images/block-editor/welcome-library.gif"
} ) ,
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
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "h1" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__heading"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Get to know the block library' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__text"
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _element _namespaceObject . createInterpolateElement ) ( ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'All of the blocks available to you live in the block library. You’ ll find it wherever you see the <InserterIconImage /> icon.' ) , {
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
InserterIconImage : ( 0 , external _React _namespaceObject . createElement ) ( "img" , {
2022-04-11 08:04:30 -04:00
alt : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'inserter' ) ,
2021-06-01 04:10:04 -04:00
src : "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
2021-05-19 11:09:27 -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
image : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideImage , {
2021-06-01 04:10:04 -04:00
nonAnimatedSrc : "https://s.w.org/images/block-editor/welcome-documentation.svg" ,
animatedSrc : "https://s.w.org/images/block-editor/welcome-documentation.gif"
} ) ,
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
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "h1" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__heading"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Learn how to use the block editor' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-welcome-guide__text"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'New to the block editor? Want to learn more about using it? ' ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . ExternalLink , {
2023-06-27 10:24:19 -04:00
href : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'https://wordpress.org/documentation/article/wordpress-block-editor/' )
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( "Here's a detailed guide." ) ) ) )
2021-05-19 11:09:27 -04:00
} ]
} ) ;
2021-01-27 21:04:13 -05:00
}
2019-10-15 11:37:08 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/template.js
2021-05-21 06:14:23 -04:00
/ * *
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2021-05-21 06:14:23 -04:00
/ * *
* Internal dependencies
* /
function WelcomeGuideTemplate ( ) {
const {
toggleFeature
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Guide , {
2022-04-12 11:12:47 -04:00
className : "edit-template-welcome-guide" ,
2022-04-11 08:04:30 -04:00
contentLabel : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Welcome to the template editor' ) ,
finishButtonText : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Get started' ) ,
2021-05-21 06:14:23 -04:00
onFinish : ( ) => toggleFeature ( 'welcomeGuideTemplate' ) ,
pages : [ {
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
image : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideImage , {
2021-06-01 04:10:04 -04:00
nonAnimatedSrc : "https://s.w.org/images/block-editor/welcome-template-editor.svg" ,
animatedSrc : "https://s.w.org/images/block-editor/welcome-template-editor.gif"
} ) ,
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
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( "h1" , {
2021-05-21 06:14:23 -04:00
className : "edit-post-welcome-guide__heading"
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
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Welcome to the template editor' ) ) , ( 0 , external _React _namespaceObject . createElement ) ( "p" , {
2021-05-21 06:14:23 -04:00
className : "edit-post-welcome-guide__text"
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.' ) ) )
2021-05-21 06:14:23 -04:00
} ]
} ) ;
}
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/index.js
2021-05-21 06:14:23 -04:00
/ * *
* WordPress 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
2021-05-21 06:14:23 -04:00
/ * *
* Internal dependencies
* /
function WelcomeGuide ( ) {
const {
isActive ,
2024-01-31 07:59:56 -05:00
isEditingTemplate
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2021-05-21 06:14:23 -04:00
const {
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
isFeatureActive
2022-04-11 08:04:30 -04:00
} = select ( store _store ) ;
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 {
2024-01-31 07:59:56 -05:00
getCurrentPostType
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
} = select ( external _wp _editor _namespaceObject . store ) ;
2024-01-31 07:59:56 -05:00
const _isEditingTemplate = getCurrentPostType ( ) === 'wp_template' ;
const feature = _isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide' ;
2021-05-21 06:14:23 -04:00
return {
isActive : isFeatureActive ( feature ) ,
2024-01-31 07:59:56 -05:00
isEditingTemplate : _isEditingTemplate
2021-05-21 06:14:23 -04:00
} ;
} , [ ] ) ;
if ( ! isActive ) {
return null ;
}
2024-01-31 07:59:56 -05:00
return isEditingTemplate ? ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideTemplate , null ) : ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuideDefault , null ) ;
2021-05-21 06:14:23 -04:00
}
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js
2020-01-08 06:57:23 -05:00
2019-09-19 11:19:18 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* WordPress dependencies
2019-09-19 11:19:18 -04:00
* /
2019-10-15 11:37:08 -04:00
2021-05-19 11:09:27 -04:00
const {
Fill : plugin _post _publish _panel _Fill ,
Slot : plugin _post _publish _panel _Slot
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'PluginPostPublishPanel' ) ;
2019-10-15 11:37:08 -04:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* Renders provided content to the post - publish panel in the publish flow
* ( side panel that opens after a user publishes the post ) .
2021-01-27 21:04:13 -05:00
*
2021-11-08 09:29:21 -05:00
* @ param { Object } props Component properties .
* @ param { string } [ props . className ] An optional class name added to the panel .
* @ param { string } [ props . title ] Title displayed at the top of the panel .
* @ param { boolean } [ props . initialOpen = false ] Whether to have the panel initially opened . When no title is provided it is always opened .
2021-05-19 11:09:27 -04:00
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
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 { Element } props . children Children to be rendered
2021-01-27 21:04:13 -05:00
*
2021-05-19 11:09:27 -04:00
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginPostPublishPanel = wp . editPost . PluginPostPublishPanel ;
*
* function MyPluginPostPublishPanel ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginPostPublishPanel ,
* {
* className : 'my-plugin-post-publish-panel' ,
* title : _ _ ( 'My panel title' ) ,
* initialOpen : true ,
* } ,
* _ _ ( 'My panel content' )
* ) ;
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginPostPublishPanel } from '@wordpress/edit-post' ;
*
* const MyPluginPostPublishPanel = ( ) => (
* < PluginPostPublishPanel
* className = "my-plugin-post-publish-panel"
* title = { _ _ ( 'My panel title' ) }
* initialOpen = { true }
* >
* { _ _ ( 'My panel content' ) }
* < / P l u g i n P o s t P u b l i s h P a n e l >
* ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2021-01-27 21:04:13 -05:00
* /
2023-09-26 10:23:26 -04:00
const PluginPostPublishPanel = ( {
children ,
className ,
title ,
initialOpen = false ,
icon
} ) => {
const {
icon : pluginIcon
} = ( 0 , external _wp _plugins _namespaceObject . usePluginContext ) ( ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( plugin _post _publish _panel _Fill , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelBody , {
2023-09-26 10:23:26 -04:00
className : className ,
initialOpen : initialOpen || ! title ,
title : title ,
icon : icon !== null && icon !== void 0 ? icon : pluginIcon
} , children ) ) ;
} ;
2021-05-19 11:09:27 -04:00
PluginPostPublishPanel . Slot = plugin _post _publish _panel _Slot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _post _publish _panel = ( PluginPostPublishPanel ) ;
2020-08-10 10:18:33 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js
2020-08-10 10:18:33 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2020-08-10 10:18:33 -04:00
2021-05-19 11:09:27 -04:00
const {
Fill : plugin _pre _publish _panel _Fill ,
Slot : plugin _pre _publish _panel _Slot
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'PluginPrePublishPanel' ) ;
2020-08-10 10:18:33 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Renders provided content to the pre - publish side panel in the publish flow
* ( side panel that opens when a user first pushes "Publish" from the main editor ) .
*
* @ param { Object } props Component props .
* @ param { string } [ props . className ] An optional class name added to the panel .
* @ param { string } [ props . title ] Title displayed at the top of the panel .
* @ param { boolean } [ props . initialOpen = false ] Whether to have the panel initially opened .
* When no title is provided it is always opened .
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/)
* icon slug string , or an SVG WP element , to be rendered when
* the sidebar is pinned to toolbar .
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 { Element } props . children Children to be rendered
2021-05-19 11:09:27 -04:00
*
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginPrePublishPanel = wp . editPost . PluginPrePublishPanel ;
*
* function MyPluginPrePublishPanel ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginPrePublishPanel ,
* {
* className : 'my-plugin-pre-publish-panel' ,
* title : _ _ ( 'My panel title' ) ,
* initialOpen : true ,
* } ,
* _ _ ( 'My panel content' )
* ) ;
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginPrePublishPanel } from '@wordpress/edit-post' ;
*
* const MyPluginPrePublishPanel = ( ) => (
* < PluginPrePublishPanel
* className = "my-plugin-pre-publish-panel"
* title = { _ _ ( 'My panel title' ) }
* initialOpen = { true }
* >
* { _ _ ( 'My panel content' ) }
* < / P l u g i n P r e P u b l i s h P a n e l >
* ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2020-08-10 10:18:33 -04:00
* /
2023-09-26 10:23:26 -04:00
const PluginPrePublishPanel = ( {
children ,
className ,
title ,
initialOpen = false ,
icon
} ) => {
const {
icon : pluginIcon
} = ( 0 , external _wp _plugins _namespaceObject . usePluginContext ) ( ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( plugin _pre _publish _panel _Fill , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . PanelBody , {
2023-09-26 10:23:26 -04:00
className : className ,
initialOpen : initialOpen || ! title ,
title : title ,
icon : icon !== null && icon !== void 0 ? icon : pluginIcon
} , children ) ) ;
} ;
2021-05-19 11:09:27 -04:00
PluginPrePublishPanel . Slot = plugin _pre _publish _panel _Slot ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _pre _publish _panel = ( PluginPrePublishPanel ) ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/actions-panel.js
2020-06-26 09:33:47 -04:00
2018-12-13 23:41:57 -05:00
/ * *
2018-12-17 22:14:52 -05:00
* WordPress dependencies
2018-12-13 23:41:57 -05:00
* /
2021-05-19 11:09:27 -04:00
2020-06-26 09:33:47 -04:00
/ * *
* Internal dependencies
* /
2018-12-13 23:41:57 -05:00
2021-05-19 11:09:27 -04:00
const {
Fill : actions _panel _Fill ,
Slot : actions _panel _Slot
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _components _namespaceObject . createSlotFill ) ( 'ActionsPanel' ) ;
const ActionsPanelFill = ( /* unused pure expression or super */ null && ( actions _panel _Fill ) ) ;
2023-06-27 10:24:19 -04:00
function ActionsPanel ( {
setEntitiesSavedStatesCallback ,
closeEntitiesSavedStates ,
isEntitiesSavedStatesOpen
} ) {
2021-05-19 11:09:27 -04:00
const {
closePublishSidebar ,
togglePublishSidebar
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
2021-05-19 11:09:27 -04:00
const {
publishSidebarOpened ,
hasActiveMetaboxes ,
hasNonPostEntityChanges
2023-09-26 10:23:26 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => ( {
publishSidebarOpened : select ( store _store ) . isPublishSidebarOpened ( ) ,
hasActiveMetaboxes : select ( store _store ) . hasMetaBoxes ( ) ,
hasNonPostEntityChanges : select ( external _wp _editor _namespaceObject . store ) . hasNonPostEntityChanges ( )
} ) , [ ] ) ;
const openEntitiesSavedStates = ( 0 , external _wp _element _namespaceObject . useCallback ) ( ( ) => setEntitiesSavedStatesCallback ( true ) , [ ] ) ;
2018-12-13 23:41:57 -05:00
2023-09-26 10:23:26 -04:00
// It is ok for these components to be unmounted when not in visual use.
// We don't want more than one present at a time, decide which to render.
2021-05-19 11:09:27 -04:00
let unmountableContent ;
if ( publishSidebarOpened ) {
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
unmountableContent = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostPublishPanel , {
2021-05-19 11:09:27 -04:00
onClose : closePublishSidebar ,
forceIsDirty : hasActiveMetaboxes ,
PrePublishExtension : plugin _pre _publish _panel . Slot ,
PostPublishExtension : plugin _post _publish _panel . Slot
} ) ;
} else if ( hasNonPostEntityChanges ) {
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
unmountableContent = ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-entities-saved-states-panel"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2021-11-08 09:29:21 -05:00
variant : "secondary" ,
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-entities-saved-states-panel-button" ,
onClick : openEntitiesSavedStates ,
"aria-expanded" : false
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open save panel' ) ) ) ;
2021-05-19 11:09:27 -04:00
} 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
unmountableContent = ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-publish-panel"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2021-11-08 09:29:21 -05:00
variant : "secondary" ,
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-publish-panel-button" ,
onClick : togglePublishSidebar ,
"aria-expanded" : false
2022-04-11 08:04:30 -04:00
} , ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open publish panel' ) ) ) ;
2023-09-26 10:23:26 -04:00
}
2018-12-13 23:41:57 -05:00
2023-09-26 10:23:26 -04:00
// Since EntitiesSavedStates controls its own panel, we can keep it
// always mounted to retain its own component state (such as checkboxes).
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 ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , isEntitiesSavedStatesOpen && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EntitiesSavedStates , {
2021-05-19 11:09:27 -04:00
close : closeEntitiesSavedStates
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( actions _panel _Slot , {
2021-05-19 11:09:27 -04:00
bubblesVirtually : true
} ) , ! isEntitiesSavedStatesOpen && unmountableContent ) ;
2021-01-27 21:04:13 -05:00
}
2020-06-26 09:33:47 -04:00
2022-04-12 11:12:47 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/start-page-options/index.js
/ * *
* WordPress dependencies
* /
2023-09-26 10:23:26 -04:00
2022-04-12 11:12:47 -04:00
/ * *
* Internal dependencies
* /
2022-09-20 11:43:29 -04:00
function useStartPatterns ( ) {
// A pattern is a start pattern if it includes 'core/post-content' in its blockTypes,
2023-09-26 10:23:26 -04:00
// and it has no postTypes declared and the current post type is page or if
2022-09-20 11:43:29 -04:00
// the current post type is part of the postTypes declared.
2022-04-12 11:12:47 -04:00
const {
2022-09-20 11:43:29 -04:00
blockPatternsWithPostContentBlockType ,
postType
2022-04-12 11:12:47 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
2023-02-07 02:04:52 -05:00
getPatternsByBlockTypes
2022-04-12 11:12:47 -04:00
} = select ( external _wp _blockEditor _namespaceObject . store ) ;
2022-09-20 11:43:29 -04:00
const {
getCurrentPostType
} = select ( external _wp _editor _namespaceObject . store ) ;
2022-04-12 11:12:47 -04:00
return {
2023-02-07 02:04:52 -05:00
blockPatternsWithPostContentBlockType : getPatternsByBlockTypes ( 'core/post-content' ) ,
2022-09-20 11:43:29 -04:00
postType : getCurrentPostType ( )
2022-04-12 11:12:47 -04:00
} ;
} , [ ] ) ;
2022-09-20 11:43:29 -04:00
return ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => {
// filter patterns without postTypes declared if the current postType is page
// or patterns that declare the current postType in its post type array.
return blockPatternsWithPostContentBlockType . filter ( pattern => {
return postType === 'page' && ! pattern . postTypes || Array . isArray ( pattern . postTypes ) && pattern . postTypes . includes ( postType ) ;
} ) ;
} , [ postType , blockPatternsWithPostContentBlockType ] ) ;
}
2023-06-27 10:24:19 -04:00
function PatternSelection ( {
2023-09-26 10:23:26 -04:00
blockPatterns ,
2023-06-27 10:24:19 -04:00
onChoosePattern
} ) {
2022-04-12 11:12:47 -04:00
const shownBlockPatterns = ( 0 , external _wp _compose _namespaceObject . useAsyncList ) ( blockPatterns ) ;
const {
resetEditorBlocks
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _editor _namespaceObject . store ) ;
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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . _ _experimentalBlockPatternsList , {
2022-04-12 11:12:47 -04:00
blockPatterns : blockPatterns ,
shownPatterns : shownBlockPatterns ,
onClickPattern : ( _pattern , blocks ) => {
resetEditorBlocks ( blocks ) ;
onChoosePattern ( ) ;
}
} ) ;
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 StartPageOptionsModal ( {
onClose
} ) {
const startPatterns = useStartPatterns ( ) ;
const hasStartPattern = startPatterns . length > 0 ;
if ( ! hasStartPattern ) {
return null ;
}
return ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Modal , {
className : "edit-post-start-page-options__modal" ,
title : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Choose a pattern' ) ,
isFullScreen : true ,
onRequestClose : onClose
} , ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
className : "edit-post-start-page-options__modal-content"
} , ( 0 , external _React _namespaceObject . createElement ) ( PatternSelection , {
blockPatterns : startPatterns ,
onChoosePattern : onClose
} ) ) ) ;
}
function StartPageOptions ( ) {
const [ isClosed , setIsClosed ] = ( 0 , external _wp _element _namespaceObject . useState ) ( false ) ;
const shouldEnableModal = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
isCleanNewPost ,
getRenderingMode
} = select ( external _wp _editor _namespaceObject . store ) ;
const {
isFeatureActive
} = select ( store _store ) ;
return getRenderingMode ( ) === 'post-only' && ! isFeatureActive ( 'welcomeGuide' ) && isCleanNewPost ( ) ;
} , [ ] ) ;
if ( ! shouldEnableModal || isClosed ) {
return null ;
}
return ( 0 , external _React _namespaceObject . createElement ) ( StartPageOptionsModal , {
onClose : ( ) => setIsClosed ( true )
} ) ;
}
; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
/ * *
* WordPress dependencies
* /
const blockDefault = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const block _default = ( blockDefault ) ;
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/icons/build-module/library/fullscreen.js
/ * *
* WordPress dependencies
* /
const fullscreen = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _fullscreen = ( fullscreen ) ;
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/icons/build-module/library/list-view.js
/ * *
* WordPress dependencies
* /
const listView = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
viewBox : "0 0 24 24" ,
xmlns : "http://www.w3.org/2000/svg"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const list _view = ( listView ) ;
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/icons/build-module/library/code.js
/ * *
* WordPress dependencies
* /
const code = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
viewBox : "0 0 24 24" ,
xmlns : "http://www.w3.org/2000/svg"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _code = ( code ) ;
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/icons/build-module/library/keyboard.js
/ * *
* WordPress dependencies
* /
const keyboard = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const library _keyboard = ( keyboard ) ;
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/icons/build-module/library/format-list-bullets.js
/ * *
* WordPress dependencies
* /
const formatListBullets = ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . SVG , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _primitives _namespaceObject . Path , {
d : "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
} ) ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const format _list _bullets = ( formatListBullets ) ;
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/edit-post/build-module/hooks/commands/use-common-commands.js
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function useCommonCommands ( ) {
const {
openGeneralSidebar ,
closeGeneralSidebar ,
switchEditorMode ,
toggleDistractionFree
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
const {
openModal
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store ) ;
const {
editorMode ,
activeSidebar ,
isListViewOpen ,
isFullscreen ,
isPublishSidebarEnabled ,
showBlockBreadcrumbs ,
isDistractionFree ,
isTopToolbar ,
isFocusMode
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
const {
get
} = select ( external _wp _preferences _namespaceObject . store ) ;
const {
getEditorMode
} = select ( store _store ) ;
const {
isListViewOpened
} = select ( external _wp _editor _namespaceObject . store ) ;
return {
activeSidebar : select ( store ) . getActiveComplementaryArea ( store _store . name ) ,
editorMode : getEditorMode ( ) ,
isListViewOpen : isListViewOpened ( ) ,
isPublishSidebarEnabled : select ( external _wp _editor _namespaceObject . store ) . isPublishSidebarEnabled ( ) ,
showBlockBreadcrumbs : get ( 'core' , 'showBlockBreadcrumbs' ) ,
isDistractionFree : get ( 'core' , 'distractionFree' ) ,
isFocusMode : get ( 'core' , 'focusMode' ) ,
isTopToolbar : get ( 'core' , 'fixedToolbar' ) ,
isFullscreen : get ( 'core/edit-post' , 'fullscreenMode' )
} ;
} , [ ] ) ;
const {
toggle
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _preferences _namespaceObject . store ) ;
const {
createInfoNotice
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _notices _namespaceObject . store ) ;
const {
_ _unstableSaveForPreview ,
setIsListViewOpened
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _editor _namespaceObject . store ) ;
const {
getCurrentPostId
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( external _wp _editor _namespaceObject . store ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/open-settings-sidebar' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle settings sidebar' ) ,
icon : ( 0 , external _wp _i18n _namespaceObject . isRTL ) ( ) ? drawer _left : drawer _right ,
callback : ( {
close
} ) => {
close ( ) ;
if ( activeSidebar === 'edit-post/document' ) {
closeGeneralSidebar ( ) ;
} else {
openGeneralSidebar ( 'edit-post/document' ) ;
}
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/open-block-inspector' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle block inspector' ) ,
icon : block _default ,
callback : ( {
close
} ) => {
close ( ) ;
if ( activeSidebar === 'edit-post/block' ) {
closeGeneralSidebar ( ) ;
} else {
openGeneralSidebar ( 'edit-post/block' ) ;
}
2022-04-12 11:12:47 -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
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-distraction-free' ,
label : isDistractionFree ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Exit Distraction Free' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Enter Distraction Free ' ) ,
callback : ( {
close
} ) => {
toggleDistractionFree ( ) ;
close ( ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-spotlight-mode' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle spotlight' ) ,
callback : ( {
close
} ) => {
toggle ( 'core' , 'focusMode' ) ;
close ( ) ;
createInfoNotice ( isFocusMode ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Spotlight off.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Spotlight on.' ) , {
id : 'core/edit-post/toggle-spotlight-mode/notice' ,
type : 'snackbar' ,
actions : [ {
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Undo' ) ,
onClick : ( ) => {
toggle ( 'core' , 'focusMode' ) ;
}
} ]
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-fullscreen-mode' ,
label : isFullscreen ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Exit fullscreen' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Enter fullscreen' ) ,
icon : library _fullscreen ,
callback : ( {
close
} ) => {
toggle ( 'core/edit-post' , 'fullscreenMode' ) ;
close ( ) ;
createInfoNotice ( isFullscreen ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Fullscreen off.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Fullscreen on.' ) , {
id : 'core/edit-post/toggle-fullscreen-mode/notice' ,
type : 'snackbar' ,
actions : [ {
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Undo' ) ,
onClick : ( ) => {
toggle ( 'core/edit-post' , 'fullscreenMode' ) ;
}
} ]
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-list-view' ,
label : isListViewOpen ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Close List View' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open List View' ) ,
icon : list _view ,
callback : ( {
close
} ) => {
setIsListViewOpened ( ! isListViewOpen ) ;
close ( ) ;
createInfoNotice ( isListViewOpen ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'List View off.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'List View on.' ) , {
id : 'core/edit-post/toggle-list-view/notice' ,
type : 'snackbar'
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-top-toolbar' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Toggle top toolbar' ) ,
callback : ( {
close
} ) => {
toggle ( 'core' , 'fixedToolbar' ) ;
if ( isDistractionFree ) {
toggleDistractionFree ( ) ;
}
close ( ) ;
createInfoNotice ( isTopToolbar ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Top toolbar off.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Top toolbar on.' ) , {
id : 'core/edit-post/toggle-top-toolbar/notice' ,
type : 'snackbar' ,
actions : [ {
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Undo' ) ,
onClick : ( ) => {
toggle ( 'core' , 'fixedToolbar' ) ;
}
} ]
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-code-editor' ,
label : editorMode === 'visual' ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open code editor' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Exit code editor' ) ,
icon : library _code ,
callback : ( {
close
} ) => {
switchEditorMode ( editorMode === 'visual' ? 'text' : 'visual' ) ;
close ( ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/open-preferences' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor preferences' ) ,
callback : ( ) => {
openModal ( PREFERENCES _MODAL _NAME ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/open-shortcut-help' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Keyboard shortcuts' ) ,
icon : library _keyboard ,
callback : ( ) => {
openModal ( KEYBOARD _SHORTCUT _HELP _MODAL _NAME ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-breadcrumbs' ,
label : showBlockBreadcrumbs ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Hide block breadcrumbs' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Show block breadcrumbs' ) ,
callback : ( {
close
} ) => {
toggle ( 'core' , 'showBlockBreadcrumbs' ) ;
close ( ) ;
createInfoNotice ( showBlockBreadcrumbs ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Breadcrumbs hidden.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Breadcrumbs visible.' ) , {
id : 'core/edit-post/toggle-breadcrumbs/notice' ,
type : 'snackbar'
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/toggle-publish-sidebar' ,
label : isPublishSidebarEnabled ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Disable pre-publish checks' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Enable pre-publish checks' ) ,
icon : format _list _bullets ,
callback : ( {
close
} ) => {
close ( ) ;
toggle ( 'core/edit-post' , 'isPublishSidebarEnabled' ) ;
createInfoNotice ( isPublishSidebarEnabled ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Pre-publish checks disabled.' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Pre-publish checks enabled.' ) , {
id : 'core/edit-post/publish-sidebar/notice' ,
type : 'snackbar'
} ) ;
}
} ) ;
( 0 , external _wp _commands _namespaceObject . useCommand ) ( {
name : 'core/preview-link' ,
label : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Preview in a new tab' ) ,
icon : library _external ,
callback : async ( {
close
} ) => {
close ( ) ;
const postId = getCurrentPostId ( ) ;
const link = await _ _unstableSaveForPreview ( ) ;
window . open ( link , ` wp-preview- ${ postId } ` ) ;
}
} ) ;
2023-09-26 10:23:26 -04:00
}
2022-04-12 11:12:47 -04:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
2020-02-10 17:33:27 -05:00
2019-09-19 11:19:18 -04:00
/ * *
2021-01-27 21:04:13 -05:00
* External dependencies
2019-09-19 11:19:18 -04:00
* /
2018-12-13 23:41:57 -05:00
2023-09-26 10:23:26 -04:00
2019-09-19 11:19:18 -04:00
/ * *
2021-01-27 21:04:13 -05:00
* WordPress dependencies
2019-09-19 11:19:18 -04:00
* /
2018-12-13 23:41:57 -05:00
2018-12-17 22:14:52 -05:00
2019-03-21 08:48:00 -04:00
2021-01-27 21:04:13 -05:00
2021-04-15 11:19:43 -04:00
2022-04-12 11:12:47 -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
2021-04-15 11:19:43 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Internal dependencies
2021-04-15 11:19:43 -04:00
* /
2021-05-21 06:14:23 -04:00
2023-07-25 04:40:23 -04:00
const {
getLayoutStyles
} = unlock ( external _wp _blockEditor _namespaceObject . privateApis ) ;
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 {
useCommands
} = unlock ( external _wp _coreCommands _namespaceObject . privateApis ) ;
const {
useCommandContext
} = unlock ( external _wp _commands _namespaceObject . privateApis ) ;
const {
InserterSidebar ,
ListViewSidebar
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2021-05-19 11:09:27 -04:00
const interfaceLabels = {
/* translators: accessibility text for the editor top bar landmark region. */
2022-04-11 08:04:30 -04:00
header : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor top bar' ) ,
2021-05-19 11:09:27 -04:00
/* translators: accessibility text for the editor content landmark region. */
2022-04-11 08:04:30 -04:00
body : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor content' ) ,
2021-05-19 11:09:27 -04:00
/* translators: accessibility text for the editor settings landmark region. */
2022-04-11 08:04:30 -04:00
sidebar : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor settings' ) ,
2021-05-19 11:09:27 -04:00
/* translators: accessibility text for the editor publish landmark region. */
2022-04-11 08:04:30 -04:00
actions : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor publish' ) ,
2021-05-19 11:09:27 -04:00
/* translators: accessibility text for the editor footer landmark region. */
2022-04-11 08:04:30 -04:00
footer : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Editor footer' )
2021-05-19 11:09:27 -04:00
} ;
2023-08-19 19:22:38 -04:00
function useEditorStyles ( ) {
const {
hasThemeStyleSupport ,
editorSettings
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => ( {
hasThemeStyleSupport : select ( store _store ) . isFeatureActive ( 'themeStyles' ) ,
editorSettings : select ( external _wp _editor _namespaceObject . store ) . getEditorSettings ( )
2023-09-26 10:23:26 -04:00
} ) , [ ] ) ;
2023-08-19 19:22:38 -04:00
2023-09-26 10:23:26 -04:00
// Compute the default styles.
2023-08-19 19:22:38 -04:00
return ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => {
var _editorSettings$style , _editorSettings$style2 ;
const presetStyles = ( _editorSettings$style = editorSettings . styles ? . filter ( style => style . _ _unstableType && style . _ _unstableType !== 'theme' ) ) !== null && _editorSettings$style !== void 0 ? _editorSettings$style : [ ] ;
2023-09-26 10:23:26 -04:00
const defaultEditorStyles = [ ... editorSettings . defaultEditorStyles , ... presetStyles ] ;
2023-08-19 19:22:38 -04:00
2023-09-26 10:23:26 -04:00
// Has theme styles if the theme supports them and if some styles were not preset styles (in which case they're theme styles).
const hasThemeStyles = hasThemeStyleSupport && presetStyles . length !== ( ( _editorSettings$style2 = editorSettings . styles ? . length ) !== null && _editorSettings$style2 !== void 0 ? _editorSettings$style2 : 0 ) ;
2023-08-19 19:22:38 -04:00
2023-09-26 10:23:26 -04:00
// If theme styles are not present or displayed, ensure that
// base layout styles are still present in the editor.
2023-08-19 19:22:38 -04:00
if ( ! editorSettings . disableLayoutStyles && ! hasThemeStyles ) {
defaultEditorStyles . push ( {
css : getLayoutStyles ( {
style : { } ,
selector : 'body' ,
hasBlockGapSupport : false ,
hasFallbackGapSupport : true ,
fallbackGapValue : '0.5em'
} )
} ) ;
}
return hasThemeStyles ? editorSettings . styles : defaultEditorStyles ;
} , [ editorSettings . defaultEditorStyles , editorSettings . disableLayoutStyles , editorSettings . styles , hasThemeStyleSupport ] ) ;
}
2024-02-09 13:22:22 -05:00
function Layout ( {
initialPost
} ) {
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
useCommands ( ) ;
useCommonCommands ( ) ;
2023-09-26 10:23:26 -04:00
( 0 , external _wp _blockEditor _namespaceObject . useBlockCommands ) ( ) ;
2022-04-11 08:04:30 -04:00
const isMobileViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' , '<' ) ;
const isHugeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'huge' , '>=' ) ;
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 isWideViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'large' ) ;
const isLargeViewport = ( 0 , external _wp _compose _namespaceObject . useViewportMatch ) ( 'medium' ) ;
2021-05-19 11:09:27 -04:00
const {
openGeneralSidebar ,
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
closeGeneralSidebar
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
2022-04-12 11:12:47 -04:00
const {
createErrorNotice
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _notices _namespaceObject . store ) ;
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 {
setIsInserterOpened
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( external _wp _editor _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
const {
mode ,
isFullscreenActive ,
isRichEditingEnabled ,
sidebarIsOpened ,
hasActiveMetaboxes ,
previousShortcut ,
nextShortcut ,
hasBlockSelected ,
isInserterOpened ,
2021-05-21 06:14:23 -04:00
isListViewOpened ,
2021-05-19 11:09:27 -04:00
showIconLabels ,
2023-03-09 08:55:07 -05:00
isDistractionFree ,
2021-06-01 04:10:04 -04:00
showBlockBreadcrumbs ,
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
showMetaBoxes ,
documentLabel ,
hasHistory
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
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 {
get
} = select ( external _wp _preferences _namespaceObject . store ) ;
2021-11-08 09:29:21 -05:00
const {
getEditorSettings ,
getPostTypeLabel
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
2021-11-08 09:29:21 -05:00
const editorSettings = getEditorSettings ( ) ;
const postTypeLabel = getPostTypeLabel ( ) ;
2021-05-19 11:09:27 -04:00
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
showMetaBoxes : select ( external _wp _editor _namespaceObject . store ) . getRenderingMode ( ) === 'post-only' ,
2022-04-11 08:04:30 -04:00
sidebarIsOpened : ! ! ( select ( store ) . getActiveComplementaryArea ( store _store . name ) || select ( store _store ) . isPublishSidebarOpened ( ) ) ,
isFullscreenActive : select ( store _store ) . isFeatureActive ( 'fullscreenMode' ) ,
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
isInserterOpened : select ( external _wp _editor _namespaceObject . store ) . isInserterOpened ( ) ,
isListViewOpened : select ( external _wp _editor _namespaceObject . store ) . isListViewOpened ( ) ,
2022-04-11 08:04:30 -04:00
mode : select ( store _store ) . getEditorMode ( ) ,
2021-05-19 11:09:27 -04:00
isRichEditingEnabled : editorSettings . richEditingEnabled ,
2022-04-11 08:04:30 -04:00
hasActiveMetaboxes : select ( store _store ) . hasMetaBoxes ( ) ,
previousShortcut : select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getAllShortcutKeyCombinations ( 'core/edit-post/previous-region' ) ,
nextShortcut : select ( external _wp _keyboardShortcuts _namespaceObject . store ) . getAllShortcutKeyCombinations ( 'core/edit-post/next-region' ) ,
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
showIconLabels : get ( 'core' , 'showIconLabels' ) ,
isDistractionFree : get ( 'core' , 'distractionFree' ) ,
showBlockBreadcrumbs : get ( 'core' , 'showBlockBreadcrumbs' ) ,
2021-11-08 09:29:21 -05:00
// translators: Default label for the Document in the Block Breadcrumb.
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
documentLabel : postTypeLabel || ( 0 , external _wp _i18n _namespaceObject . _x ) ( 'Document' , 'noun' ) ,
hasBlockSelected : ! ! select ( external _wp _blockEditor _namespaceObject . store ) . getBlockSelectionStart ( ) ,
2024-02-09 13:22:22 -05:00
hasHistory : ! ! getEditorSettings ( ) . onNavigateToPreviousEntityRecord
2021-05-19 11:09:27 -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
// Set the right context for the command palette
const commandContext = hasBlockSelected ? 'block-selection-edit' : 'post-editor-edit' ;
useCommandContext ( commandContext ) ;
2023-08-19 19:22:38 -04:00
const styles = useEditorStyles ( ) ;
2023-09-26 10:23:26 -04:00
const openSidebarPanel = ( ) => openGeneralSidebar ( hasBlockSelected ? 'edit-post/block' : 'edit-post/document' ) ;
2021-04-15 11:19:43 -04:00
2023-09-26 10:23:26 -04:00
// Inserter and Sidebars are mutually exclusive
2022-04-11 08:04:30 -04:00
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2021-05-19 11:09:27 -04:00
if ( sidebarIsOpened && ! isHugeViewport ) {
setIsInserterOpened ( false ) ;
}
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
} , [ isHugeViewport , setIsInserterOpened , sidebarIsOpened ] ) ;
2022-04-11 08:04:30 -04:00
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2021-05-19 11:09:27 -04:00
if ( isInserterOpened && ! isHugeViewport ) {
closeGeneralSidebar ( ) ;
}
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
} , [ closeGeneralSidebar , isInserterOpened , isHugeViewport ] ) ;
2021-04-15 11:19:43 -04:00
2023-09-26 10:23:26 -04:00
// Local state for save panel.
// Note 'truthy' callback implies an open panel.
2022-04-11 08:04:30 -04:00
const [ entitiesSavedStatesCallback , setEntitiesSavedStatesCallback ] = ( 0 , external _wp _element _namespaceObject . useState ) ( false ) ;
const closeEntitiesSavedStates = ( 0 , external _wp _element _namespaceObject . useCallback ) ( arg => {
2021-05-19 11:09:27 -04:00
if ( typeof entitiesSavedStatesCallback === 'function' ) {
entitiesSavedStatesCallback ( arg ) ;
}
setEntitiesSavedStatesCallback ( false ) ;
} , [ entitiesSavedStatesCallback ] ) ;
2023-09-26 10:23:26 -04:00
// We need to add the show-icon-labels class to the body element so it is applied to modals.
if ( showIconLabels ) {
document . body . classList . add ( 'show-icon-labels' ) ;
} else {
document . body . classList . remove ( 'show-icon-labels' ) ;
}
2023-02-21 08:09:42 -05:00
const className = classnames _default ( ) ( 'edit-post-layout' , 'is-mode-' + mode , {
'is-sidebar-opened' : sidebarIsOpened ,
'has-metaboxes' : hasActiveMetaboxes ,
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
'is-distraction-free' : isDistractionFree && isWideViewport ,
2023-02-21 08:09:42 -05:00
'is-entity-save-view-open' : ! ! entitiesSavedStatesCallback
} ) ;
2023-02-07 02:04:52 -05:00
const secondarySidebarLabel = isListViewOpened ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Document Overview' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Block Library' ) ;
2021-05-21 06:14:23 -04:00
const secondarySidebar = ( ) => {
if ( mode === 'visual' && isInserterOpened ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( InserterSidebar , null ) ;
2021-05-21 06:14:23 -04:00
}
if ( mode === 'visual' && isListViewOpened ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( ListViewSidebar , null ) ;
2021-05-21 06:14:23 -04:00
}
return null ;
} ;
2022-04-12 11:12:47 -04:00
function onPluginAreaError ( name ) {
2023-09-26 10:23:26 -04:00
createErrorNotice ( ( 0 , external _wp _i18n _namespaceObject . sprintf ) ( /* translators: %s: plugin name */
2022-04-12 11:12:47 -04:00
( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'The "%s" plugin has encountered an error and cannot be rendered.' ) , 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
return ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ( 0 , external _React _namespaceObject . createElement ) ( fullscreen _mode , {
2021-05-19 11:09:27 -04:00
isActive : isFullscreenActive
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( browser _url , {
hasHistory : hasHistory
} ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . UnsavedChangesWarning , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . AutosaveMonitor , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . LocalAutosaveMonitor , null ) , ( 0 , external _React _namespaceObject . createElement ) ( keyboard _shortcuts , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EditorKeyboardShortcutsRegister , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EditorKeyboardShortcuts , null ) , ( 0 , external _React _namespaceObject . createElement ) ( interface _skeleton , {
isDistractionFree : isDistractionFree && isWideViewport ,
2021-05-19 11:09:27 -04:00
className : className ,
2023-09-26 10:23:26 -04:00
labels : {
... interfaceLabels ,
2022-04-19 11:11:17 -04:00
secondarySidebar : secondarySidebarLabel
} ,
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
header : ( 0 , external _React _namespaceObject . createElement ) ( header , {
2024-02-09 13:22:22 -05:00
setEntitiesSavedStatesCallback : setEntitiesSavedStatesCallback ,
initialPost : initialPost
2021-05-19 11:09:27 -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
editorNotices : ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EditorNotices , null ) ,
2021-05-21 06:14:23 -04:00
secondarySidebar : secondarySidebar ( ) ,
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
sidebar : ( ! isMobileViewport || sidebarIsOpened ) && ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ! isMobileViewport && ! sidebarIsOpened && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-sidebar-panel"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . Button , {
2021-11-08 09:29:21 -05:00
variant : "secondary" ,
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__toggle-sidebar-panel-button" ,
onClick : openSidebarPanel ,
"aria-expanded" : false
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
} , hasBlockSelected ? ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open block settings' ) : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Open document settings' ) ) ) , ( 0 , external _React _namespaceObject . createElement ) ( complementary _area . Slot , {
2021-05-19 11:09:27 -04:00
scope : "core/edit-post"
} ) ) ,
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
notices : ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EditorSnackbars , null ) ,
content : ( 0 , external _React _namespaceObject . createElement ) ( external _React _namespaceObject . Fragment , null , ! isDistractionFree && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . EditorNotices , null ) , ( mode === 'text' || ! isRichEditingEnabled ) && ( 0 , external _React _namespaceObject . createElement ) ( TextEditor , null ) , ! isLargeViewport && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . BlockToolbar , {
hideDragHandle : true
} ) , isRichEditingEnabled && mode === 'visual' && ( 0 , external _React _namespaceObject . createElement ) ( VisualEditor , {
2021-05-19 11:09:27 -04:00
styles : styles
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
} ) , ! isDistractionFree && showMetaBoxes && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__metaboxes"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( MetaBoxes , {
2021-05-19 11:09:27 -04:00
location : "normal"
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( MetaBoxes , {
2021-05-19 11:09:27 -04:00
location : "advanced"
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
} ) ) , isMobileViewport && sidebarIsOpened && ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . ScrollLock , null ) ) ,
footer : ! isDistractionFree && ! isMobileViewport && showBlockBreadcrumbs && isRichEditingEnabled && mode === 'visual' && ( 0 , external _React _namespaceObject . createElement ) ( "div" , {
2021-05-19 11:09:27 -04:00
className : "edit-post-layout__footer"
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . BlockBreadcrumb , {
2021-11-08 09:29:21 -05:00
rootLabelText : documentLabel
} ) ) ,
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
actions : ( 0 , external _React _namespaceObject . createElement ) ( ActionsPanel , {
2021-05-19 11:09:27 -04:00
closeEntitiesSavedStates : closeEntitiesSavedStates ,
isEntitiesSavedStatesOpen : entitiesSavedStatesCallback ,
setEntitiesSavedStatesCallback : setEntitiesSavedStatesCallback
} ) ,
shortcuts : {
previous : previousShortcut ,
next : nextShortcut
}
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( EditPostPreferencesModal , null ) , ( 0 , external _React _namespaceObject . createElement ) ( keyboard _shortcut _help _modal , null ) , ( 0 , external _React _namespaceObject . createElement ) ( WelcomeGuide , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostSyncStatusModal , null ) , ( 0 , external _React _namespaceObject . createElement ) ( StartPageOptions , null ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _plugins _namespaceObject . PluginArea , {
2022-04-12 11:12:47 -04:00
onError : onPluginAreaError
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
} ) , ( 0 , external _React _namespaceObject . createElement ) ( settings _sidebar , null ) ) ;
2021-04-15 11:19:43 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const components _layout = ( Layout ) ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/listener-hooks.js
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2018-12-13 23:41:57 -05:00
2019-03-21 08:48:00 -04:00
2021-11-08 09:29:21 -05:00
2023-09-26 10:23:26 -04:00
2019-10-15 11:37:08 -04:00
/ * *
2021-05-19 11:09:27 -04:00
* Internal dependencies
2019-10-15 11:37:08 -04:00
* /
2018-12-13 23:41:57 -05:00
2021-01-27 21:04:13 -05:00
/ * *
2021-05-19 11:09:27 -04:00
* This listener hook monitors for block selection and triggers the appropriate
* sidebar state .
*
2021-11-08 09:29:21 -05:00
* @ param { number } postId The current post id .
2021-01-27 21:04:13 -05:00
* /
2021-05-19 11:09:27 -04:00
const useBlockSelectionListener = postId => {
const {
hasBlockSelection ,
isEditorSidebarOpened
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => ( {
hasBlockSelection : ! ! select ( external _wp _blockEditor _namespaceObject . store ) . getBlockSelectionStart ( ) ,
isEditorSidebarOpened : select ( constants _STORE _NAME ) . isEditorSidebarOpened ( )
2021-05-19 11:09:27 -04:00
} ) , [ postId ] ) ;
const {
openGeneralSidebar
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( constants _STORE _NAME ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2021-05-19 11:09:27 -04:00
if ( ! isEditorSidebarOpened ) {
return ;
}
if ( hasBlockSelection ) {
openGeneralSidebar ( 'edit-post/block' ) ;
} else {
openGeneralSidebar ( 'edit-post/document' ) ;
}
} , [ hasBlockSelection , isEditorSidebarOpened ] ) ;
} ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* This listener hook monitors any change in permalink and updates the view
* post link in the admin bar .
*
* @ param { number } postId
* /
const useUpdatePostLinkListener = postId => {
const {
newPermalink
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => ( {
newPermalink : select ( external _wp _editor _namespaceObject . store ) . getCurrentPost ( ) . link
2021-05-19 11:09:27 -04:00
} ) , [ postId ] ) ;
2022-04-11 08:04:30 -04:00
const nodeToUpdate = ( 0 , external _wp _element _namespaceObject . useRef ) ( ) ;
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
nodeToUpdate . current = document . querySelector ( VIEW _AS _PREVIEW _LINK _SELECTOR ) || document . querySelector ( VIEW _AS _LINK _SELECTOR ) ;
2021-05-19 11:09:27 -04:00
} , [ postId ] ) ;
2022-04-11 08:04:30 -04:00
( 0 , external _wp _element _namespaceObject . useEffect ) ( ( ) => {
2021-05-19 11:09:27 -04:00
if ( ! newPermalink || ! nodeToUpdate . current ) {
return ;
}
nodeToUpdate . current . setAttribute ( 'href' , newPermalink ) ;
} , [ newPermalink ] ) ;
} ;
2018-12-13 23:41:57 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/index.js
2021-05-19 11:09:27 -04:00
/ * *
* Internal dependencies
* /
2018-12-13 23:41:57 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -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 component used for initializing the editor and re - initializes
* when postId changes or on unmount .
*
* @ param { number } postId The id of the post .
* @ return { null } This is a data component so does not render any ui .
2023-06-28 03:04:13 -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 EditorInitialization ( {
postId
} ) {
useBlockSelectionListener ( postId ) ;
useUpdatePostLinkListener ( postId ) ;
return null ;
}
2023-06-28 03:04:13 -04:00
2024-02-09 13:22:22 -05:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/use-navigate-to-entity-record.js
2023-06-27 10:24:19 -04:00
/ * *
* WordPress 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
* A hook that records the 'entity' history in the post editor as a user
* navigates between editing a post and editing the post template or patterns .
*
* Implemented as a stack , so a little similar to the browser history API .
*
* Used to control displaying UI elements like the back button .
*
* @ param { number } initialPostId The post id of the post when the editor loaded .
* @ param { string } initialPostType The post type of the post when the editor loaded .
*
* @ return { Object } An object containing the ` currentPost ` variable and
2024-02-09 13:22:22 -05:00
* ` onNavigateToEntityRecord ` and ` onNavigateToPreviousEntityRecord ` functions .
2023-06-27 10:24:19 -04:00
* /
2024-02-09 13:22:22 -05:00
function useNavigateToEntityRecord ( initialPostId , initialPostType ) {
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 [ postHistory , dispatch ] = ( 0 , external _wp _element _namespaceObject . useReducer ) ( ( historyState , {
type ,
post
} ) => {
if ( type === 'push' ) {
return [ ... historyState , post ] ;
2023-06-27 10:24:19 -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 ( type === 'pop' ) {
// Try to leave one item in the history.
if ( historyState . length > 1 ) {
return historyState . slice ( 0 , - 1 ) ;
2023-06-27 10:24:19 -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 historyState ;
} , [ {
postId : initialPostId ,
postType : initialPostType
} ] ) ;
2024-02-09 13:22:22 -05:00
const initialPost = ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => {
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 {
2024-02-09 13:22:22 -05:00
type : initialPostType ,
id : initialPostId
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
} ;
2024-02-09 13:22:22 -05:00
} , [ initialPostType , initialPostId ] ) ;
const onNavigateToEntityRecord = ( 0 , external _wp _element _namespaceObject . useCallback ) ( params => {
dispatch ( {
type : 'push' ,
post : {
postId : params . postId ,
postType : params . postType
}
} ) ;
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
} , [ ] ) ;
2024-02-09 13:22:22 -05:00
const onNavigateToPreviousEntityRecord = ( 0 , external _wp _element _namespaceObject . useCallback ) ( ( ) => {
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
dispatch ( {
type : 'pop'
} ) ;
} , [ ] ) ;
const currentPost = postHistory [ postHistory . length - 1 ] ;
return {
currentPost ,
2024-02-09 13:22:22 -05:00
initialPost ,
onNavigateToEntityRecord ,
onNavigateToPreviousEntityRecord : postHistory . length > 1 ? onNavigateToPreviousEntityRecord : undefined
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-06-27 10:24:19 -04:00
}
2020-06-26 09:33:47 -04:00
2023-06-27 10:24:19 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/editor.js
2020-06-26 09:33:47 -04:00
2019-10-15 11:37:08 -04:00
/ * *
* WordPress dependencies
* /
2019-09-19 11:19:18 -04:00
2018-12-13 23:41:57 -05:00
2018-12-13 23:53:54 -05:00
2018-12-13 23:41:57 -05:00
2021-11-08 09:29:21 -05:00
2024-02-09 13:22:22 -05:00
2018-12-13 23:41:57 -05:00
/ * *
2019-10-15 11:37:08 -04:00
* Internal dependencies
2018-12-13 23:41:57 -05:00
* /
2023-02-07 02:04:52 -05:00
const {
ExperimentalEditorProvider
2023-02-14 10:44:36 -05:00
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2024-02-09 13:22:22 -05:00
const {
BlockRemovalWarningModal
} = unlock ( external _wp _blockEditor _namespaceObject . privateApis ) ;
// Prevent accidental removal of certain blocks, asking the user for
// confirmation.
const blockRemovalRules = {
'bindings/core/pattern-overrides' : ( 0 , external _wp _i18n _namespaceObject . _ _ ) ( 'Blocks from synced patterns that can have overriden content.' )
} ;
2023-06-27 10:24:19 -04:00
function Editor ( {
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
postId : initialPostId ,
postType : initialPostType ,
2023-06-27 10:24:19 -04:00
settings ,
initialEdits ,
... props
} ) {
2021-05-19 11:09:27 -04:00
const {
2024-02-09 13:22:22 -05:00
initialPost ,
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
currentPost ,
2024-02-09 13:22:22 -05:00
onNavigateToEntityRecord ,
onNavigateToPreviousEntityRecord
} = useNavigateToEntityRecord ( initialPostId , initialPostType ) ;
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 {
2022-09-20 11:43:29 -04:00
hasInlineToolbar ,
2021-05-19 11:09:27 -04:00
post ,
preferredStyleVariations ,
template
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useSelect ) ( select => {
2023-06-27 10:24:19 -04:00
var _getPostType$viewable ;
2021-05-19 11:09:27 -04:00
const {
isFeatureActive ,
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
getEditedPostTemplate
2022-04-11 08:04:30 -04:00
} = select ( store _store ) ;
2021-05-19 11:09:27 -04:00
const {
getEntityRecord ,
getPostType ,
2022-09-20 11:43:29 -04:00
canUser
2022-04-11 08:04:30 -04:00
} = select ( external _wp _coreData _namespaceObject . store ) ;
2021-05-19 11:09:27 -04:00
const {
getEditorSettings
2022-04-11 08:04:30 -04:00
} = select ( external _wp _editor _namespaceObject . store ) ;
2024-01-31 07:59:56 -05:00
const postObject = getEntityRecord ( 'postType' , currentPost . postType , currentPost . postId ) ;
2021-05-19 11:09:27 -04:00
const supportsTemplateMode = getEditorSettings ( ) . supportsTemplateMode ;
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 isViewable = ( _getPostType$viewable = getPostType ( currentPost . postType ) ? . viewable ) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false ;
2022-09-20 11:43:29 -04:00
const canEditTemplate = canUser ( 'create' , 'templates' ) ;
2021-01-27 21:04:13 -05:00
return {
2022-09-20 11:43:29 -04:00
hasInlineToolbar : isFeatureActive ( 'inlineToolbar' ) ,
2022-04-12 11:12:47 -04:00
preferredStyleVariations : select ( external _wp _preferences _namespaceObject . store ) . get ( 'core/edit-post' , 'preferredStyleVariations' ) ,
2024-01-31 07:59:56 -05:00
template : supportsTemplateMode && isViewable && canEditTemplate && currentPost . postType !== 'wp_template' ? getEditedPostTemplate ( ) : null ,
2021-05-19 11:09:27 -04:00
post : postObject
2021-01-27 21:04:13 -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
} , [ currentPost . postType , currentPost . postId ] ) ;
2021-05-19 11:09:27 -04:00
const {
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
updatePreferredStyleVariations
2022-04-11 08:04:30 -04:00
} = ( 0 , external _wp _data _namespaceObject . useDispatch ) ( store _store ) ;
2024-01-31 07:59:56 -05:00
const defaultRenderingMode = currentPost . postType === 'wp_template' ? 'all' : 'post-only' ;
2024-02-09 13:22:22 -05:00
const editorSettings = ( 0 , external _wp _element _namespaceObject . useMemo ) ( ( ) => ( {
... settings ,
onNavigateToEntityRecord ,
onNavigateToPreviousEntityRecord ,
defaultRenderingMode ,
_ _experimentalPreferredStyleVariations : {
value : preferredStyleVariations ,
onChange : updatePreferredStyleVariations
} ,
hasInlineToolbar
} ) , [ settings , hasInlineToolbar , preferredStyleVariations , updatePreferredStyleVariations , onNavigateToEntityRecord , onNavigateToPreviousEntityRecord , defaultRenderingMode ] ) ;
2021-05-19 11:09:27 -04:00
if ( ! post ) {
return null ;
2021-01-27 21:04:13 -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 ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . SlotFillProvider , null , ( 0 , external _React _namespaceObject . createElement ) ( ExperimentalEditorProvider , {
2021-05-19 11:09:27 -04:00
settings : editorSettings ,
post : post ,
initialEdits : initialEdits ,
useSubRegistry : false ,
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
_ _unstableTemplate : template ,
2023-06-27 10:24:19 -04:00
... props
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
} , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . ErrorBoundary , null , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _commands _namespaceObject . CommandMenu , null ) , ( 0 , external _React _namespaceObject . createElement ) ( EditorInitialization , {
postId : currentPost . postId
2024-02-09 13:22:22 -05:00
} ) , ( 0 , external _React _namespaceObject . createElement ) ( components _layout , {
initialPost : initialPost
} ) , ( 0 , external _React _namespaceObject . createElement ) ( BlockRemovalWarningModal , {
rules : blockRemovalRules
} ) ) , ( 0 , external _React _namespaceObject . createElement ) ( external _wp _editor _namespaceObject . PostLockedModal , null ) ) ) ;
2021-05-19 11:09:27 -04:00
}
2024-01-31 07:59:56 -05:00
/* harmony default export */ const editor = ( Editor ) ;
2018-12-13 23:53:54 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js
2018-12-13 23:53:54 -05:00
2020-01-22 17:06:21 -05:00
/ * *
2021-01-27 21:04:13 -05:00
* WordPress dependencies
2020-01-22 17:06:21 -05:00
* /
2018-12-13 23:53:54 -05:00
2022-09-20 11:43:29 -04:00
const isEverySelectedBlockAllowed = ( selected , allowed ) => selected . filter ( id => ! allowed . includes ( id ) ) . length === 0 ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Plugins may want to add an item to the menu either for every block
* or only for the specific ones provided in the ` allowedBlocks ` component property .
*
* If there are multiple blocks selected the item will be rendered if every block
* is of one allowed type ( not necessarily the same ) .
*
* @ param { string [ ] } selectedBlocks Array containing the names of the blocks selected
2021-11-08 09:29:21 -05:00
* @ param { string [ ] } allowedBlocks Array containing the names of the blocks allowed
2021-05-19 11:09:27 -04:00
* @ return { boolean } Whether the item will be rendered or not .
* /
const shouldRenderItem = ( selectedBlocks , allowedBlocks ) => ! Array . isArray ( allowedBlocks ) || isEverySelectedBlockAllowed ( selectedBlocks , allowedBlocks ) ;
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Renders a new item in the block settings menu .
*
* @ param { Object } props Component props .
* @ param { Array } [ props . allowedBlocks ] An array containing a list of block names for which the item should be shown . If not present , it 'll be rendered for any block. If multiple blocks are selected, it' ll be shown if and only if all of them are in the allowed list .
* @ param { WPBlockTypeIconRender } [ props . icon ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
* @ param { string } props . label The menu item text .
* @ param { Function } props . onClick Callback function to be executed when the user click the menu item .
* @ param { boolean } [ props . small ] Whether to render the label or not .
* @ param { string } [ props . role ] The ARIA role for the menu item .
*
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginBlockSettingsMenuItem = wp . editPost . PluginBlockSettingsMenuItem ;
*
* function doOnClick ( ) {
* // To be called when the user clicks the menu item.
* }
*
* function MyPluginBlockSettingsMenuItem ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginBlockSettingsMenuItem ,
* {
* allowedBlocks : [ 'core/paragraph' ] ,
* icon : 'dashicon-name' ,
* label : _ _ ( 'Menu item text' ) ,
* onClick : doOnClick ,
* }
* ) ;
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginBlockSettingsMenuItem } from '@wordpress/edit-post' ;
*
* const doOnClick = ( ) => {
* // To be called when the user clicks the menu item.
* } ;
*
* const MyPluginBlockSettingsMenuItem = ( ) => (
* < PluginBlockSettingsMenuItem
* allowedBlocks = { [ 'core/paragraph' ] }
* icon = 'dashicon-name'
* label = { _ _ ( 'Menu item text' ) }
* onClick = { doOnClick } / >
* ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2021-05-19 11:09:27 -04:00
* /
2023-06-27 10:24:19 -04:00
const PluginBlockSettingsMenuItem = ( {
allowedBlocks ,
icon ,
label ,
onClick ,
small ,
role
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
} ) => ( 0 , external _React _namespaceObject . createElement ) ( external _wp _blockEditor _namespaceObject . BlockSettingsMenuControls , null , ( {
2023-06-27 10:24:19 -04:00
selectedBlocks ,
onClose
} ) => {
if ( ! shouldRenderItem ( selectedBlocks , allowedBlocks ) ) {
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
return ( 0 , external _React _namespaceObject . createElement ) ( external _wp _components _namespaceObject . MenuItem , {
2023-06-27 10:24:19 -04:00
onClick : ( 0 , external _wp _compose _namespaceObject . compose ) ( onClick , onClose ) ,
icon : icon ,
label : small ? label : undefined ,
role : role
} , ! small && label ) ;
} ) ;
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _block _settings _menu _item = ( PluginBlockSettingsMenuItem ) ;
2020-01-22 17:06:21 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-more-menu-item/index.js
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
2022-04-12 11:12:47 -04:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Renders a menu item in ` Plugins ` group in ` More Menu ` drop down , and can be used to as a button or link depending on the props provided .
* The text within the component appears as the menu item label .
*
2021-11-08 09:29:21 -05:00
* @ param { Object } props Component properties .
* @ param { string } [ props . href ] When ` href ` is provided then the menu item is represented as an anchor rather than button . It corresponds to the ` href ` attribute of the anchor .
2021-05-19 11:09:27 -04:00
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
2021-11-08 09:29:21 -05:00
* @ param { Function } [ props . onClick = noop ] The callback function to be executed when the user clicks the menu item .
2022-04-12 11:12:47 -04:00
* @ param { ... * } [ props . other ] Any additional props are passed through to the underlying [ MenuItem ] ( https : //github.com/WordPress/gutenberg/tree/HEAD/packages/components/src/menu-item/README.md) component.
2021-05-19 11:09:27 -04:00
*
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginMoreMenuItem = wp . editPost . PluginMoreMenuItem ;
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 moreIcon = React . createElement ( 'svg' ) ; //... svg element.
2021-05-19 11:09:27 -04:00
*
* function onButtonClick ( ) {
* alert ( 'Button clicked.' ) ;
* }
*
* function MyButtonMoreMenuItem ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginMoreMenuItem ,
* {
* icon : moreIcon ,
* onClick : onButtonClick ,
* } ,
* _ _ ( 'My button title' )
* ) ;
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginMoreMenuItem } from '@wordpress/edit-post' ;
* import { more } from '@wordpress/icons' ;
*
* function onButtonClick ( ) {
* alert ( 'Button clicked.' ) ;
* }
*
* const MyButtonMoreMenuItem = ( ) => (
* < PluginMoreMenuItem
* icon = { more }
* onClick = { onButtonClick }
* >
* { _ _ ( 'My button title' ) }
* < / P l u g i n M o r e M e n u I t e m >
* ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2021-05-19 11:09:27 -04:00
* /
2024-01-31 07:59:56 -05:00
/* harmony default export */ const plugin _more _menu _item = ( ( 0 , external _wp _compose _namespaceObject . compose ) ( ( 0 , external _wp _plugins _namespaceObject . withPluginContext ) ( ( context , ownProps ) => {
2022-04-12 11:12:47 -04:00
var _ownProps$as ;
2021-05-19 11:09:27 -04:00
return {
2022-04-12 11:12:47 -04:00
as : ( _ownProps$as = ownProps . as ) !== null && _ownProps$as !== void 0 ? _ownProps$as : external _wp _components _namespaceObject . MenuItem ,
2021-05-19 11:09:27 -04:00
icon : ownProps . icon || context . icon ,
name : 'core/edit-post/plugin-more-menu'
} ;
2022-04-11 08:04:30 -04:00
} ) ) ( action _item ) ) ;
2020-01-22 17:06:21 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js
2021-01-27 21:04:13 -05:00
2021-05-19 11:09:27 -04:00
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
2023-09-26 10:23:26 -04:00
2021-05-19 11:09:27 -04:00
/ * *
* Renders a menu item in ` Plugins ` group in ` More Menu ` drop down ,
* and can be used to activate the corresponding ` PluginSidebar ` component .
* The text within the component appears as the menu item label .
*
2021-11-08 09:29:21 -05:00
* @ param { Object } props Component props .
* @ param { string } props . target A string identifying the target sidebar you wish to be activated by this menu item . Must be the same as the ` name ` prop you have given to that sidebar .
2021-05-19 11:09:27 -04:00
* @ param { WPBlockTypeIconRender } [ props . icon = inherits from the plugin ] The [ Dashicon ] ( https : //developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
*
* @ example
* ` ` ` js
* // Using ES5 syntax
* var _ _ = wp . i18n . _ _ ;
* var PluginSidebarMoreMenuItem = wp . editPost . PluginSidebarMoreMenuItem ;
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 moreIcon = React . createElement ( 'svg' ) ; //... svg element.
2021-05-19 11:09:27 -04:00
*
* function MySidebarMoreMenuItem ( ) {
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 React . createElement (
2021-05-19 11:09:27 -04:00
* PluginSidebarMoreMenuItem ,
* {
* target : 'my-sidebar' ,
2022-04-11 08:04:30 -04:00
* icon : moreIcon ,
* } ,
* _ _ ( 'My sidebar title' )
* )
* }
* ` ` `
*
* @ example
* ` ` ` jsx
* // Using ESNext syntax
* import { _ _ } from '@wordpress/i18n' ;
* import { PluginSidebarMoreMenuItem } from '@wordpress/edit-post' ;
* import { more } from '@wordpress/icons' ;
*
* const MySidebarMoreMenuItem = ( ) => (
* < PluginSidebarMoreMenuItem
* target = "my-sidebar"
* icon = { more }
* >
* { _ _ ( 'My sidebar title' ) }
* < / P l u g i n S i d e b a r M o r e M e n u I t e m >
* ) ;
* ` ` `
*
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 { Component } The component to be rendered .
2022-04-11 08:04:30 -04:00
* /
2021-05-20 08:20:04 -04:00
2022-04-11 08:04:30 -04:00
function PluginSidebarMoreMenuItem ( props ) {
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 ( 0 , external _React _namespaceObject . createElement ) ( ComplementaryAreaMoreMenuItem
2023-09-26 10:23:26 -04:00
// Menu item is marked with unstable prop for backward compatibility.
2022-04-11 08:04:30 -04:00
// @see https://github.com/WordPress/gutenberg/issues/14457
2023-06-27 10:24:19 -04:00
, {
2022-04-11 08:04:30 -04:00
_ _unstableExplicitMenuItem : true ,
2023-06-27 10:24:19 -04:00
scope : "core/edit-post" ,
... props
} ) ;
2022-04-11 08:04:30 -04:00
}
2019-03-07 04:09:59 -05:00
2022-04-11 08:04:30 -04:00
; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/index.js
2019-03-07 04:09:59 -05:00
2022-04-11 08:04:30 -04:00
/ * *
* WordPress dependencies
* /
2019-03-07 04:09:59 -05:00
2023-02-07 02:04:52 -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
2021-05-20 08:20:04 -04:00
/ * *
2022-04-11 08:04:30 -04:00
* Internal dependencies
2021-05-20 08:20:04 -04:00
* /
2019-03-07 04:09:59 -05:00
2018-12-13 23:41:57 -05:00
2019-10-15 11:37:08 -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 {
PluginPostExcerpt : _ _experimentalPluginPostExcerpt
} = unlock ( external _wp _editor _namespaceObject . privateApis ) ;
2020-03-10 10:53:18 -04:00
2022-04-11 08:04:30 -04:00
/ * *
* Initializes and returns an instance of Editor .
*
* @ param { string } id Unique identifier for editor instance .
* @ param { string } postType Post type of the post to edit .
* @ param { Object } postId ID of the post to edit .
* @ param { ? Object } settings Editor settings object .
* @ param { Object } initialEdits Programmatic edits to apply initially , to be
* considered as non - user - initiated ( bypass for
* unsaved changes prompt ) .
* /
function initializeEditor ( id , postType , postId , settings , initialEdits ) {
const target = document . getElementById ( id ) ;
2023-02-07 02:04:52 -05:00
const root = ( 0 , external _wp _element _namespaceObject . createRoot ) ( target ) ;
2022-04-12 11:12:47 -04:00
( 0 , external _wp _data _namespaceObject . dispatch ) ( external _wp _preferences _namespaceObject . store ) . setDefaults ( 'core/edit-post' , {
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
fullscreenMode : true ,
isPublishSidebarEnabled : true ,
preferredStyleVariations : { } ,
themeStyles : true ,
welcomeGuide : true ,
welcomeGuideTemplate : true
} ) ;
( 0 , external _wp _data _namespaceObject . dispatch ) ( external _wp _preferences _namespaceObject . store ) . setDefaults ( 'core' , {
allowRightClickOverrides : true ,
2022-04-12 11:12:47 -04:00
editorMode : 'visual' ,
2022-04-11 08:04:30 -04:00
fixedToolbar : false ,
2022-04-12 11:12:47 -04:00
hiddenBlockTypes : [ ] ,
inactivePanels : [ ] ,
openPanels : [ 'post-status' ] ,
showBlockBreadcrumbs : true ,
2022-04-11 08:04:30 -04:00
showIconLabels : false ,
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
showListViewByDefault : false
2022-04-11 08:04:30 -04:00
} ) ;
2023-09-26 10:23:26 -04:00
( 0 , external _wp _data _namespaceObject . dispatch ) ( external _wp _blocks _namespaceObject . store ) . reapplyBlockTypeFilters ( ) ;
2019-09-19 11:19:18 -04:00
2023-09-26 10:23:26 -04:00
// Check if the block list view should be open by default.
2023-07-25 04:40:23 -04:00
// If `distractionFree` mode is enabled, the block list view should not be open.
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 ( ( 0 , external _wp _data _namespaceObject . select ) ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'showListViewByDefault' ) && ! ( 0 , external _wp _data _namespaceObject . select ) ( external _wp _preferences _namespaceObject . store ) . get ( 'core' , 'distractionFree' ) ) {
( 0 , external _wp _data _namespaceObject . dispatch ) ( external _wp _editor _namespaceObject . store ) . setIsListViewOpened ( true ) ;
2022-09-20 11:43:29 -04:00
}
2022-04-11 08:04:30 -04:00
( 0 , external _wp _blockLibrary _namespaceObject . registerCoreBlocks ) ( ) ;
2023-02-07 02:04:52 -05:00
( 0 , external _wp _widgets _namespaceObject . registerLegacyWidgetBlock ) ( {
inserter : false
} ) ;
2023-03-07 10:31:49 -05:00
( 0 , external _wp _widgets _namespaceObject . registerWidgetGroupBlock ) ( {
inserter : false
} ) ;
2022-10-04 11:06:52 -04:00
if ( false ) { }
2023-09-26 10:23:26 -04:00
2022-10-04 11:06:52 -04:00
/ *
* Prevent adding template part in the post editor .
* Only add the filter when the post editor is initialized , not imported .
* Also only add the filter ( s ) after registerCoreBlocks ( )
* so that common filters in the block library are not overwritten .
* /
( 0 , external _wp _hooks _namespaceObject . addFilter ) ( 'blockEditor.__unstableCanInsertBlockType' , 'removeTemplatePartsFromInserter' , ( canInsert , blockType ) => {
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 ( ( 0 , external _wp _data _namespaceObject . select ) ( external _wp _editor _namespaceObject . store ) . getRenderingMode ( ) === 'post-only' && blockType . name === 'core/template-part' ) {
2022-10-04 11:06:52 -04:00
return false ;
}
2023-06-27 10:24:19 -04:00
return canInsert ;
} ) ;
2023-09-26 10:23:26 -04:00
2023-06-27 10:24:19 -04:00
/ *
* Prevent adding post content block ( except in query block ) in the post editor .
* Only add the filter when the post editor is initialized , not imported .
* Also only add the filter ( s ) after registerCoreBlocks ( )
* so that common filters in the block library are not overwritten .
* /
( 0 , external _wp _hooks _namespaceObject . addFilter ) ( 'blockEditor.__unstableCanInsertBlockType' , 'removePostContentFromInserter' , ( canInsert , blockType , rootClientId , {
getBlockParentsByBlockName
} ) => {
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 ( ( 0 , external _wp _data _namespaceObject . select ) ( external _wp _editor _namespaceObject . store ) . getRenderingMode ( ) === 'post-only' && blockType . name === 'core/post-content' ) {
2023-06-27 10:24:19 -04:00
return getBlockParentsByBlockName ( rootClientId , 'core/query' ) . length > 0 ;
}
2022-10-04 11:06:52 -04:00
return canInsert ;
2023-09-26 10:23:26 -04:00
} ) ;
2020-01-22 17:06:21 -05:00
2023-09-26 10:23:26 -04:00
// Show a console log warning if the browser is not in Standards rendering mode.
2022-04-11 08:04:30 -04:00
const documentMode = document . compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks' ;
if ( documentMode !== 'Standards' ) {
// eslint-disable-next-line no-console
console . warn ( "Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins." ) ;
2023-09-26 10:23:26 -04:00
}
// This is a temporary fix for a couple of issues specific to Webkit on iOS.
2022-04-11 08:04:30 -04:00
// Without this hack the browser scrolls the mobile toolbar off-screen.
// Once supported in Safari we can replace this in favor of preventScroll.
// For details see issue #18632 and PR #18686
// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.
// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.
2021-05-20 08:20:04 -04:00
2022-04-11 08:04:30 -04:00
const isIphone = window . navigator . userAgent . indexOf ( 'iPhone' ) !== - 1 ;
if ( isIphone ) {
window . addEventListener ( 'scroll' , event => {
const editorScrollContainer = document . getElementsByClassName ( 'interface-interface-skeleton__body' ) [ 0 ] ;
if ( event . target === document ) {
// Scroll element into view by scrolling the editor container by the same amount
// that Mobile Safari tried to scroll the html element upwards.
if ( window . scrollY > 100 ) {
editorScrollContainer . scrollTop = editorScrollContainer . scrollTop + window . scrollY ;
2023-09-26 10:23:26 -04:00
}
// Undo unwanted scroll on html element, but only in the visual editor.
2022-04-11 08:04:30 -04:00
if ( document . getElementsByClassName ( 'is-mode-visual' ) [ 0 ] ) {
window . scrollTo ( 0 , 0 ) ;
}
}
} ) ;
2023-09-26 10:23:26 -04:00
}
2021-05-20 08:20:04 -04:00
2023-09-26 10:23:26 -04:00
// Prevent the default browser action for files dropped outside of dropzones.
2022-09-20 11:43:29 -04:00
window . addEventListener ( 'dragover' , e => e . preventDefault ( ) , false ) ;
window . addEventListener ( 'drop' , e => e . preventDefault ( ) , false ) ;
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
root . render ( ( 0 , external _React _namespaceObject . createElement ) ( editor , {
2022-04-11 08:04:30 -04:00
settings : settings ,
postId : postId ,
postType : postType ,
initialEdits : initialEdits
2023-02-07 02:04:52 -05:00
} ) ) ;
return root ;
}
2023-09-26 10:23:26 -04:00
2023-02-07 02:04:52 -05:00
/ * *
* Used to reinitialize the editor after an error . Now it ' s a deprecated noop function .
* /
function reinitializeEditor ( ) {
external _wp _deprecated _default ( ) ( 'wp.editPost.reinitializeEditor' , {
since : '6.2' ,
version : '6.3'
} ) ;
2022-04-11 08:04:30 -04:00
}
2020-02-06 16:03:31 -05:00
2021-05-20 08:20:04 -04:00
2020-02-06 16:03:31 -05:00
2021-05-20 08:20:04 -04:00
2020-07-07 10:43:35 -04:00
2018-12-13 23:41:57 -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
2024-01-31 07:59:56 -05:00
} ) ( ) ;
2022-04-11 08:04:30 -04:00
( window . wp = window . wp || { } ) . editPost = _ _webpack _exports _ _ ;
/******/ } ) ( )
;