@wordpress/block-library 6.0.8 → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/navigation-area/edit.js +5 -0
- package/build/navigation-area/edit.js.map +1 -1
- package/build-module/index.js +2 -2
- package/build-module/index.js.map +1 -1
- package/build-module/navigation-area/edit.js +4 -0
- package/build-module/navigation-area/edit.js.map +1 -1
- package/build-style/navigation/style-rtl.css +7 -2
- package/build-style/navigation/style.css +7 -2
- package/build-style/style-rtl.css +7 -2
- package/build-style/style.css +7 -2
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/navigation/style.scss +10 -3
- package/src/navigation-area/edit.js +5 -0
- package/src/navigation-area/index.php +1 -0
- package/src/page-list/index.php +4 -4
package/build/index.js
CHANGED
|
@@ -223,7 +223,7 @@ const __experimentalGetCoreBlocks = () => [// Common blocks are grouped at the t
|
|
|
223
223
|
// in various contexts — like the inserter and auto-complete components.
|
|
224
224
|
paragraph, image, heading, gallery, list, quote, // Register all remaining core blocks.
|
|
225
225
|
archives, audio, button, buttons, calendar, categories, window.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context
|
|
226
|
-
code, column, columns, cover, embed, file, group, html, latestComments, latestPosts, logInOut, mediaText, missing, more, navigation,
|
|
226
|
+
code, column, columns, cover, embed, file, group, html, latestComments, latestPosts, logInOut, mediaText, missing, more, navigation, navigationLink, navigationSubmenu, nextpage, pageList, pattern, postAuthor, postComments, postContent, postDate, postExcerpt, postFeaturedImage, postNavigationLink, postTemplate, postTerms, postTitle, preformatted, pullquote, query, queryPagination, queryPaginationNext, queryPaginationNumbers, queryPaginationPrevious, queryTitle, reusableBlock, rss, search, separator, shortcode, siteLogo, siteTagline, siteTitle, socialLink, socialLinks, spacer, table, // tableOfContents,
|
|
227
227
|
tagCloud, templatePart, termDescription, textColumns, verse, video];
|
|
228
228
|
/**
|
|
229
229
|
* Function to register core blocks provided by the block editor.
|
|
@@ -274,7 +274,7 @@ const __experimentalRegisterExperimentalCoreBlocks = process.env.GUTENBERG_PHASE
|
|
|
274
274
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
275
275
|
[// Experimental blocks.
|
|
276
276
|
homeLink, // Full Site Editing blocks.
|
|
277
|
-
...(enableFSEBlocks ? [commentAuthorAvatar, commentAuthorName, commentContent, commentDate, commentEditLink, commentReplyLink, commentTemplate, commentsQueryLoop, postComment, postCommentsCount, postCommentsForm, postCommentsLink] : [])].forEach(registerBlock);
|
|
277
|
+
...(enableFSEBlocks ? [commentAuthorAvatar, commentAuthorName, commentContent, commentDate, commentEditLink, commentReplyLink, commentTemplate, commentsQueryLoop, navigationArea, postComment, postCommentsCount, postCommentsForm, postCommentsLink] : [])].forEach(registerBlock);
|
|
278
278
|
} : undefined;
|
|
279
279
|
|
|
280
280
|
exports.__experimentalRegisterExperimentalCoreBlocks = __experimentalRegisterExperimentalCoreBlocks;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/index.js"],"names":["registerBlock","block","metadata","settings","name","__experimentalGetCoreBlocks","paragraph","image","heading","gallery","list","quote","archives","audio","button","buttons","calendar","categories","window","wp","oldEditor","classic","code","column","columns","cover","embed","file","group","html","latestComments","latestPosts","logInOut","mediaText","missing","more","navigation","navigationArea","navigationLink","navigationSubmenu","nextpage","pageList","pattern","postAuthor","postComments","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTitle","preformatted","pullquote","query","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","reusableBlock","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tagCloud","templatePart","termDescription","textColumns","verse","video","registerCoreBlocks","blocks","forEach","__experimentalRegisterExperimentalCoreBlocks","process","env","GUTENBERG_PHASE","enableFSEBlocks","homeLink","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsQueryLoop","postComment","postCommentsCount","postCommentsForm","postCommentsLink","undefined"],"mappings":";;;;;;;AAGA;;AAWA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAjGA;AACA;AACA;;AASA;AACA;AACA;AA8EA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,aAAa,GAAKC,KAAF,IAAa;AAClC,MAAK,CAAEA,KAAP,EAAe;AACd;AACA;;AACD,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,QAAZ;AAAsBC,IAAAA;AAAtB,MAA+BH,KAArC;AACA,iCAAmB;AAAEG,IAAAA,IAAF;AAAQ,OAAGF;AAAX,GAAnB,EAA0CC,QAA1C;AACA,CAND;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACO,MAAME,2BAA2B,GAAG,MAAM,CAChD;AACA;AACAC,SAHgD,EAIhDC,KAJgD,EAKhDC,OALgD,EAMhDC,OANgD,EAOhDC,IAPgD,EAQhDC,KARgD,EAUhD;AACAC,QAXgD,EAYhDC,KAZgD,EAahDC,MAbgD,EAchDC,OAdgD,EAehDC,QAfg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kB,GAAG,YAE7B;AAAA,MADJC,MACI,uEADK3E,2BAA2B,EAChC;AACJ2E,EAAAA,MAAM,CAACC,OAAP,CAAgBjF,aAAhB;AAEA,mCAAqBM,SAAS,CAACF,IAA/B;;AACA,MAAKc,MAAM,CAACC,EAAP,IAAaD,MAAM,CAACC,EAAP,CAAUC,SAA5B,EAAwC;AACvC,+CAA+BC,OAAO,CAACjB,IAAvC;AACA;;AACD,8CAAgC8B,OAAO,CAAC9B,IAAxC;AACA,oCAAsBwB,KAAK,CAACxB,IAA5B;AACA,CAXM;AAaP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AACO,MAAM8E,4CAA4C,GACxDC,OAAO,CAACC,GAAR,CAAYC,eAAZ,KAAgC,CAAhC,GACG,YAAgC;AAAA,MAA9B;AAAEC,IAAAA;AAAF,GAA8B,uEAAR,EAAQ;AAChC,GACC;AACAC,EAAAA,QAFD,EAIC;AACA,MAAKD,eAAe,GACjB,CACAE,mBADA,EAEAC,iBAFA,EAGAC,cAHA,EAIAC,WAJA,EAKAC,eALA,EAMAC,gBANA,EAOAC,eAPA,EAQAC,iBARA,EASAC,WATA,EAUAC,iBAVA,EAWAC,gBAXA,EAYAC,gBAZA,CADiB,GAejB,EAfH,CALD,EAqBElB,OArBF,CAqBWjF,aArBX;AAsBC,CAxBJ,GAyBGoG,SA1BG","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsQueryLoop from './comments-query-loop';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationArea from './navigation-area';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postComment from './post-comment';\nimport * as postComments from './post-comments';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\n// import * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n *\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tregisterBlockType( { name, ...metadata }, settings );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () => [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tarchives,\n\taudio,\n\tbutton,\n\tbuttons,\n\tcalendar,\n\tcategories,\n\twindow.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context\n\tcode,\n\tcolumn,\n\tcolumns,\n\tcover,\n\tembed,\n\tfile,\n\tgroup,\n\thtml,\n\tlatestComments,\n\tlatestPosts,\n\tlogInOut,\n\tmediaText,\n\tmissing,\n\tmore,\n\tnavigation,\n\tnavigationArea,\n\tnavigationLink,\n\tnavigationSubmenu,\n\tnextpage,\n\tpageList,\n\tpattern,\n\tpostAuthor,\n\tpostComments,\n\tpostContent,\n\tpostDate,\n\tpostExcerpt,\n\tpostFeaturedImage,\n\tpostNavigationLink,\n\tpostTemplate,\n\tpostTerms,\n\tpostTitle,\n\tpreformatted,\n\tpullquote,\n\tquery,\n\tqueryPagination,\n\tqueryPaginationNext,\n\tqueryPaginationNumbers,\n\tqueryPaginationPrevious,\n\tqueryTitle,\n\treusableBlock,\n\trss,\n\tsearch,\n\tseparator,\n\tshortcode,\n\tsiteLogo,\n\tsiteTagline,\n\tsiteTitle,\n\tsocialLink,\n\tsocialLinks,\n\tspacer,\n\ttable,\n\t// tableOfContents,\n\ttagCloud,\n\ttemplatePart,\n\ttermDescription,\n\ttextColumns,\n\tverse,\n\tvideo,\n];\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( registerBlock );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif ( window.wp && window.wp.oldEditor ) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks =\n\tprocess.env.GUTENBERG_PHASE === 2\n\t\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\t\t[\n\t\t\t\t\t// Experimental blocks.\n\t\t\t\t\thomeLink,\n\n\t\t\t\t\t// Full Site Editing blocks.\n\t\t\t\t\t...( enableFSEBlocks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\tcommentAuthorAvatar,\n\t\t\t\t\t\t\t\tcommentAuthorName,\n\t\t\t\t\t\t\t\tcommentContent,\n\t\t\t\t\t\t\t\tcommentDate,\n\t\t\t\t\t\t\t\tcommentEditLink,\n\t\t\t\t\t\t\t\tcommentReplyLink,\n\t\t\t\t\t\t\t\tcommentTemplate,\n\t\t\t\t\t\t\t\tcommentsQueryLoop,\n\t\t\t\t\t\t\t\tpostComment,\n\t\t\t\t\t\t\t\tpostCommentsCount,\n\t\t\t\t\t\t\t\tpostCommentsForm,\n\t\t\t\t\t\t\t\tpostCommentsLink,\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: [] ),\n\t\t\t\t].forEach( registerBlock );\n\t\t }\n\t\t: undefined;\n"]}
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/index.js"],"names":["registerBlock","block","metadata","settings","name","__experimentalGetCoreBlocks","paragraph","image","heading","gallery","list","quote","archives","audio","button","buttons","calendar","categories","window","wp","oldEditor","classic","code","column","columns","cover","embed","file","group","html","latestComments","latestPosts","logInOut","mediaText","missing","more","navigation","navigationLink","navigationSubmenu","nextpage","pageList","pattern","postAuthor","postComments","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTitle","preformatted","pullquote","query","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","reusableBlock","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tagCloud","templatePart","termDescription","textColumns","verse","video","registerCoreBlocks","blocks","forEach","__experimentalRegisterExperimentalCoreBlocks","process","env","GUTENBERG_PHASE","enableFSEBlocks","homeLink","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsQueryLoop","navigationArea","postComment","postCommentsCount","postCommentsForm","postCommentsLink","undefined"],"mappings":";;;;;;;AAGA;;AAWA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;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;AACO,MAAM6E,4CAA4C,GACxDC,OAAO,CAACC,GAAR,CAAYC,eAAZ,KAAgC,CAAhC,GACG,YAAgC;AAAA,MAA9B;AAAEC,IAAAA;AAAF,GAA8B,uEAAR,EAAQ;AAChC,GACC;AACAC,EAAAA,QAFD,EAIC;AACA,MAAKD,eAAe,GACjB,CACAE,mBADA,EAEAC,iBAFA,EAGAC,cAHA,EAIAC,WAJA,EAKAC,eALA,EAMAC,gBANA,EAOAC,eAPA,EAQAC,iBARA,EASAC,cATA,EAUAC,WAVA,EAWAC,iBAXA,EAYAC,gBAZA,EAaAC,gBAbA,CADiB,GAgBjB,EAhBH,CALD,EAsBEnB,OAtBF,CAsBWhF,aAtBX;AAuBC,CAzBJ,GA0BGoG,SA3BG","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsQueryLoop from './comments-query-loop';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationArea from './navigation-area';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postComment from './post-comment';\nimport * as postComments from './post-comments';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\n// import * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n *\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tregisterBlockType( { name, ...metadata }, settings );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () => [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tarchives,\n\taudio,\n\tbutton,\n\tbuttons,\n\tcalendar,\n\tcategories,\n\twindow.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context\n\tcode,\n\tcolumn,\n\tcolumns,\n\tcover,\n\tembed,\n\tfile,\n\tgroup,\n\thtml,\n\tlatestComments,\n\tlatestPosts,\n\tlogInOut,\n\tmediaText,\n\tmissing,\n\tmore,\n\tnavigation,\n\tnavigationLink,\n\tnavigationSubmenu,\n\tnextpage,\n\tpageList,\n\tpattern,\n\tpostAuthor,\n\tpostComments,\n\tpostContent,\n\tpostDate,\n\tpostExcerpt,\n\tpostFeaturedImage,\n\tpostNavigationLink,\n\tpostTemplate,\n\tpostTerms,\n\tpostTitle,\n\tpreformatted,\n\tpullquote,\n\tquery,\n\tqueryPagination,\n\tqueryPaginationNext,\n\tqueryPaginationNumbers,\n\tqueryPaginationPrevious,\n\tqueryTitle,\n\treusableBlock,\n\trss,\n\tsearch,\n\tseparator,\n\tshortcode,\n\tsiteLogo,\n\tsiteTagline,\n\tsiteTitle,\n\tsocialLink,\n\tsocialLinks,\n\tspacer,\n\ttable,\n\t// tableOfContents,\n\ttagCloud,\n\ttemplatePart,\n\ttermDescription,\n\ttextColumns,\n\tverse,\n\tvideo,\n];\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( registerBlock );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif ( window.wp && window.wp.oldEditor ) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks =\n\tprocess.env.GUTENBERG_PHASE === 2\n\t\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\t\t[\n\t\t\t\t\t// Experimental blocks.\n\t\t\t\t\thomeLink,\n\n\t\t\t\t\t// Full Site Editing blocks.\n\t\t\t\t\t...( enableFSEBlocks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\tcommentAuthorAvatar,\n\t\t\t\t\t\t\t\tcommentAuthorName,\n\t\t\t\t\t\t\t\tcommentContent,\n\t\t\t\t\t\t\t\tcommentDate,\n\t\t\t\t\t\t\t\tcommentEditLink,\n\t\t\t\t\t\t\t\tcommentReplyLink,\n\t\t\t\t\t\t\t\tcommentTemplate,\n\t\t\t\t\t\t\t\tcommentsQueryLoop,\n\t\t\t\t\t\t\t\tnavigationArea,\n\t\t\t\t\t\t\t\tpostComment,\n\t\t\t\t\t\t\t\tpostCommentsCount,\n\t\t\t\t\t\t\t\tpostCommentsForm,\n\t\t\t\t\t\t\t\tpostCommentsLink,\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: [] ),\n\t\t\t\t].forEach( registerBlock );\n\t\t }\n\t\t: undefined;\n"]}
|
|
@@ -11,6 +11,8 @@ var _element = require("@wordpress/element");
|
|
|
11
11
|
|
|
12
12
|
var _i18n = require("@wordpress/i18n");
|
|
13
13
|
|
|
14
|
+
var _deprecated = _interopRequireDefault(require("@wordpress/deprecated"));
|
|
15
|
+
|
|
14
16
|
var _coreData = require("@wordpress/core-data");
|
|
15
17
|
|
|
16
18
|
var _components = require("@wordpress/components");
|
|
@@ -62,6 +64,9 @@ function NavigationAreaBlock(_ref) {
|
|
|
62
64
|
value: name
|
|
63
65
|
};
|
|
64
66
|
}), [navigationAreas]);
|
|
67
|
+
(0, _deprecated.default)('wp.blockLibrary.NavigationArea', {
|
|
68
|
+
since: '5.9'
|
|
69
|
+
});
|
|
65
70
|
return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_blockEditor.BlockControls, null, (0, _element.createElement)(_components.ToolbarGroup, null, (0, _element.createElement)(_components.ToolbarDropdownMenu, {
|
|
66
71
|
label: (0, _i18n.__)('Select Area'),
|
|
67
72
|
text: (0, _i18n.__)('Select Area'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/navigation-area/edit.js"],"names":["NavigationAreaBlock","attributes","setAttributes","area","navigationAreas","hasResolvedNavigationAreas","select","getEntityRecords","hasFinishedResolution","coreStore","navigationMenuId","length","undefined","choices","map","name","description","label","value","onClose","selectedArea"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/navigation-area/edit.js"],"names":["NavigationAreaBlock","attributes","setAttributes","area","navigationAreas","hasResolvedNavigationAreas","select","getEntityRecords","hasFinishedResolution","coreStore","navigationMenuId","length","undefined","choices","map","name","description","label","value","since","onClose","selectedArea"],"mappings":";;;;;;;;;AAcA;;AAXA;;AACA;;AACA;;AACA;;AASA;;AACA;;AAKA;;AACA;;AAtBA;AACA;AACA;;AAgBA;AACA;AACA;AAIA,SAASA,mBAAT,OAA8D;AAAA,MAAhC;AAAEC,IAAAA,UAAF;AAAcC,IAAAA;AAAd,GAAgC;AAC7D,QAAM;AAAEC,IAAAA;AAAF,MAAWF,UAAjB;AAEA,QAAM;AAA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AA,IAAI,EAAEkB;AAAR,SAAF,CAAb;AACAD,QAAAA,OAAO;AACP,OALF;AAMC,MAAA,OAAO,EAAGP;AANX,MADD,CADC;AAAA,GALH,CADD,CADD,CADD,EAuBC,4BAAC,8BAAD,QACC,4BAAC,qBAAD;AAAW,IAAA,KAAK,EAAG,cAAI,SAAJ;AAAnB,KACC,4BAAC,yBAAD;AACC,IAAA,KAAK,EAAG,cAAI,MAAJ,CADT;AAEC,IAAA,KAAK,EAAGV,IAFT,CAGC;AAHD;AAIC,IAAA,QAAQ,EAAKe,KAAF,IACVhB,aAAa,CAAE;AACdC,MAAAA,IAAI,EAAEe;AADQ,KAAF,CALf;AASC,IAAA,OAAO,EAAGL;AATX,IADD,CADD,CAvBD,EAsCG,CAAER,0BAAF,IAAgC,4BAAC,2BAAD;AAAoB,IAAA,SAAS;AAA7B,IAtCnC,EAwCE;AACA;AACAA,EAAAA,0BAA0B,IACzB,4BAAC,oBAAD;AAAa,IAAA,gBAAgB,EAAGK;AAAhC,IA3CH,CADD;AAiDA;;eAEcV,mB","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport deprecated from '@wordpress/deprecated';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tMenuGroup,\n\tMenuItemsChoice,\n\tPanelBody,\n\tSelectControl,\n\tToolbarDropdownMenu,\n\tToolbarGroup,\n} from '@wordpress/components';\nimport { useMemo } from '@wordpress/element';\nimport { BlockControls, InspectorControls } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport InnerBlocks from './inner-blocks';\nimport PlaceholderPreview from '../navigation/edit/placeholder/placeholder-preview';\n\nfunction NavigationAreaBlock( { attributes, setAttributes } ) {\n\tconst { area } = attributes;\n\n\tconst { navigationAreas, hasResolvedNavigationAreas } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords, hasFinishedResolution } = select(\n\t\t\t\tcoreStore\n\t\t\t);\n\t\t\treturn {\n\t\t\t\tnavigationAreas: getEntityRecords( 'root', 'navigationArea' ),\n\t\t\t\thasResolvedNavigationAreas: hasFinishedResolution(\n\t\t\t\t\t'getEntityRecords',\n\t\t\t\t\t[ 'root', 'navigationArea' ]\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t);\n\tconst navigationMenuId = navigationAreas?.length\n\t\t? navigationAreas[ area ]\n\t\t: undefined;\n\n\tconst choices = useMemo(\n\t\t() =>\n\t\t\tnavigationAreas?.map( ( { name, description } ) => ( {\n\t\t\t\tlabel: description,\n\t\t\t\tvalue: name,\n\t\t\t} ) ),\n\t\t[ navigationAreas ]\n\t);\n\n\tdeprecated( 'wp.blockLibrary.NavigationArea', {\n\t\tsince: '5.9',\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t<BlockControls>\n\t\t\t\t<ToolbarGroup>\n\t\t\t\t\t<ToolbarDropdownMenu\n\t\t\t\t\t\tlabel={ __( 'Select Area' ) }\n\t\t\t\t\t\ttext={ __( 'Select Area' ) }\n\t\t\t\t\t\ticon={ null }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\t\t\tvalue={ area }\n\t\t\t\t\t\t\t\t\tonSelect={ ( selectedArea ) => {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { area: selectedArea } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tchoices={ choices }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</ToolbarDropdownMenu>\n\t\t\t\t</ToolbarGroup>\n\t\t\t</BlockControls>\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody title={ __( 'Options' ) }>\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={ _x( 'Area' ) }\n\t\t\t\t\t\tvalue={ area }\n\t\t\t\t\t\t// `undefined` is required for the preload attribute to be unset.\n\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tarea: value,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t\toptions={ choices }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t\t{ ! hasResolvedNavigationAreas && <PlaceholderPreview isLoading /> }\n\t\t\t{\n\t\t\t\t// Render inner blocks only when navigationMenuId is known so\n\t\t\t\t// that inner blocks template is correct from the start.\n\t\t\t\thasResolvedNavigationAreas && (\n\t\t\t\t\t<InnerBlocks navigationMenuId={ navigationMenuId } />\n\t\t\t\t)\n\t\t\t}\n\t\t</>\n\t);\n}\n\nexport default NavigationAreaBlock;\n"]}
|
package/build-module/index.js
CHANGED
|
@@ -128,7 +128,7 @@ export const __experimentalGetCoreBlocks = () => [// Common blocks are grouped a
|
|
|
128
128
|
// in various contexts — like the inserter and auto-complete components.
|
|
129
129
|
paragraph, image, heading, gallery, list, quote, // Register all remaining core blocks.
|
|
130
130
|
archives, audio, button, buttons, calendar, categories, window.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context
|
|
131
|
-
code, column, columns, cover, embed, file, group, html, latestComments, latestPosts, logInOut, mediaText, missing, more, navigation,
|
|
131
|
+
code, column, columns, cover, embed, file, group, html, latestComments, latestPosts, logInOut, mediaText, missing, more, navigation, navigationLink, navigationSubmenu, nextpage, pageList, pattern, postAuthor, postComments, postContent, postDate, postExcerpt, postFeaturedImage, postNavigationLink, postTemplate, postTerms, postTitle, preformatted, pullquote, query, queryPagination, queryPaginationNext, queryPaginationNumbers, queryPaginationPrevious, queryTitle, reusableBlock, rss, search, separator, shortcode, siteLogo, siteTagline, siteTitle, socialLink, socialLinks, spacer, table, // tableOfContents,
|
|
132
132
|
tagCloud, templatePart, termDescription, textColumns, verse, video];
|
|
133
133
|
/**
|
|
134
134
|
* Function to register core blocks provided by the block editor.
|
|
@@ -173,6 +173,6 @@ export const __experimentalRegisterExperimentalCoreBlocks = process.env.GUTENBER
|
|
|
173
173
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
174
174
|
[// Experimental blocks.
|
|
175
175
|
homeLink, // Full Site Editing blocks.
|
|
176
|
-
...(enableFSEBlocks ? [commentAuthorAvatar, commentAuthorName, commentContent, commentDate, commentEditLink, commentReplyLink, commentTemplate, commentsQueryLoop, postComment, postCommentsCount, postCommentsForm, postCommentsLink] : [])].forEach(registerBlock);
|
|
176
|
+
...(enableFSEBlocks ? [commentAuthorAvatar, commentAuthorName, commentContent, commentDate, commentEditLink, commentReplyLink, commentTemplate, commentsQueryLoop, navigationArea, postComment, postCommentsCount, postCommentsForm, postCommentsLink] : [])].forEach(registerBlock);
|
|
177
177
|
} : undefined;
|
|
178
178
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/index.js"],"names":["registerBlockType","setDefaultBlockName","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","archives","audio","button","buttons","calendar","categories","classic","code","column","columns","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsQueryLoop","cover","embed","file","gallery","group","heading","homeLink","html","image","latestComments","latestPosts","list","logInOut","mediaText","missing","more","navigation","navigationArea","navigationLink","navigationSubmenu","nextpage","pattern","pageList","paragraph","postAuthor","postComment","postComments","postCommentsCount","postCommentsForm","postCommentsLink","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTitle","preformatted","pullquote","query","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","quote","reusableBlock","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tagCloud","templatePart","termDescription","textColumns","verse","video","registerBlock","block","metadata","settings","name","__experimentalGetCoreBlocks","window","wp","oldEditor","registerCoreBlocks","blocks","forEach","__experimentalRegisterExperimentalCoreBlocks","process","env","GUTENBERG_PHASE","enableFSEBlocks","undefined"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,iBADD,EAECC,mBAFD,EAGCC,6BAHD,EAICC,8BAJD,EAKCC,oBALD,QAMO,mBANP;AAQA;AACA;AACA;;AACA,OAAO,KAAKC,QAAZ,MAA0B,YAA1B;AACA,OAAO,KAAKC,KAAZ,MAAuB,SAAvB;AACA,OAAO,KAAKC,MAAZ,MAAwB,UAAxB;AACA,OAAO,KAAKC,OAAZ,MAAyB,WAAzB;AACA,OAAO,KAAKC,QAAZ,MAA0B,YAA1B;AACA,OAAO,KAAKC,UAAZ,MAA4B,cAA5B;AACA,OAAO,KAAKC,OAAZ,MAAyB,YAAzB;AACA,OAAO,KAAKC,IAAZ,MAAsB,QAAtB;AACA,OAAO,KAAKC,MAAZ,MAAwB,UAAxB;AACA,OAAO,KAAKC,OAAZ,MAAyB,WAAzB;AACA,OAAO,KAAKC,mBAAZ,MAAqC,yBAArC;AACA,OAAO,KAAKC,iBAAZ,MAAmC,uBAAnC;AACA,OAAO,KAAKC,cAAZ,MAAgC,mBAAhC;AACA,OAAO,KAAKC,WAAZ,MAA6B,gBAA7B;AACA,OAAO,KAAKC,eAAZ,MAAiC,qBAAjC;AACA,OAAO,KAAKC,gBAAZ,MAAkC,sBAAlC;AACA,OAAO,KAAKC,eAAZ,MAAiC,oBAAjC;AACA,OAAO,KAAKC,iBAAZ,MAAmC,uBAAnC;AACA,OAAO,KAAKC,KAAZ,MAAuB,SAAvB;AACA,OAAO,KAAKC,KAAZ,MAAuB,SAAvB;AACA,OAAO,KAAKC,IAAZ,MAAsB,QAAtB;AACA,OAAO,KAAKC,OAAZ,MAAyB,WAAzB;AACA,OAAO,KAAKC,KAAZ,MAAuB,SAAvB;AACA,OAAO,KAAKC,OAAZ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A,EAEAC,iBAFA,EAGAC,cAHA,EAIAC,WAJA,EAKAC,eALA,EAMAC,gBANA,EAOAC,eAPA,EAQAC,iBARA,EASA0B,WATA,EAUAE,iBAVA,EAWAC,gBAXA,EAYAC,gBAZA,CADiB,GAejB,EAfH,CALD,EAqBE+C,OArBF,CAqBWX,aArBX;AAsBC,CAxBJ,GAyBGiB,SA1BG","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsQueryLoop from './comments-query-loop';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationArea from './navigation-area';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postComment from './post-comment';\nimport * as postComments from './post-comments';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\n// import * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n *\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tregisterBlockType( { name, ...metadata }, settings );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () => [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tarchives,\n\taudio,\n\tbutton,\n\tbuttons,\n\tcalendar,\n\tcategories,\n\twindow.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context\n\tcode,\n\tcolumn,\n\tcolumns,\n\tcover,\n\tembed,\n\tfile,\n\tgroup,\n\thtml,\n\tlatestComments,\n\tlatestPosts,\n\tlogInOut,\n\tmediaText,\n\tmissing,\n\tmore,\n\tnavigation,\n\tnavigationArea,\n\tnavigationLink,\n\tnavigationSubmenu,\n\tnextpage,\n\tpageList,\n\tpattern,\n\tpostAuthor,\n\tpostComments,\n\tpostContent,\n\tpostDate,\n\tpostExcerpt,\n\tpostFeaturedImage,\n\tpostNavigationLink,\n\tpostTemplate,\n\tpostTerms,\n\tpostTitle,\n\tpreformatted,\n\tpullquote,\n\tquery,\n\tqueryPagination,\n\tqueryPaginationNext,\n\tqueryPaginationNumbers,\n\tqueryPaginationPrevious,\n\tqueryTitle,\n\treusableBlock,\n\trss,\n\tsearch,\n\tseparator,\n\tshortcode,\n\tsiteLogo,\n\tsiteTagline,\n\tsiteTitle,\n\tsocialLink,\n\tsocialLinks,\n\tspacer,\n\ttable,\n\t// tableOfContents,\n\ttagCloud,\n\ttemplatePart,\n\ttermDescription,\n\ttextColumns,\n\tverse,\n\tvideo,\n];\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( registerBlock );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif ( window.wp && window.wp.oldEditor ) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks =\n\tprocess.env.GUTENBERG_PHASE === 2\n\t\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\t\t[\n\t\t\t\t\t// Experimental blocks.\n\t\t\t\t\thomeLink,\n\n\t\t\t\t\t// Full Site Editing blocks.\n\t\t\t\t\t...( enableFSEBlocks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\tcommentAuthorAvatar,\n\t\t\t\t\t\t\t\tcommentAuthorName,\n\t\t\t\t\t\t\t\tcommentContent,\n\t\t\t\t\t\t\t\tcommentDate,\n\t\t\t\t\t\t\t\tcommentEditLink,\n\t\t\t\t\t\t\t\tcommentReplyLink,\n\t\t\t\t\t\t\t\tcommentTemplate,\n\t\t\t\t\t\t\t\tcommentsQueryLoop,\n\t\t\t\t\t\t\t\tpostComment,\n\t\t\t\t\t\t\t\tpostCommentsCount,\n\t\t\t\t\t\t\t\tpostCommentsForm,\n\t\t\t\t\t\t\t\tpostCommentsLink,\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: [] ),\n\t\t\t\t].forEach( registerBlock );\n\t\t }\n\t\t: undefined;\n"]}
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/index.js"],"names":["registerBlockType","setDefaultBlockName","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","archives","audio","button","buttons","calendar","categories","classic","code","column","columns","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsQueryLoop","cover","embed","file","gallery","group","heading","homeLink","html","image","latestComments","latestPosts","list","logInOut","mediaText","missing","more","navigation","navigationArea","navigationLink","navigationSubmenu","nextpage","pattern","pageList","paragraph","postAuthor","postComment","postComments","postCommentsCount","postCommentsForm","postCommentsLink","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTitle","preformatted","pullquote","query","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","quote","reusableBlock","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tagCloud","templatePart","termDescription","textColumns","verse","video","registerBlock","block","metadata","settings","name","__experimentalGetCoreBlocks","window","wp","oldEditor","registerCoreBlocks","blocks","forEach","__experimentalRegisterExperimentalCoreBlocks","process","env","GUTENBERG_PHASE","enableFSEBlocks","undefined"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,iBADD,EAECC,mBAFD,EAGCC,6BAHD,EAICC,8BAJD,EAKCC,oBALD,QAMO,mBANP;AAQA;AACA;AACA;;AACA,OAAO,KAAKC,QAAZ,MAA0B,YAA1B;AACA,OAAO,KAAKC,KAAZ,MAAuB,SAAvB;AACA,OAAO,KAAKC,MAAZ,MAAwB,UAAxB;AACA,OAAO,KAAKC,OAAZ,MAAyB,WAAzB;AACA,OAAO,KAAKC,QAAZ,MAA0B,YAA1B;AACA,OAAO,KAAKC,UAAZ,MAA4B,cAA5B;AACA,OAAO,KAAKC,OAAZ,MAAyB,YAAzB;AACA,OAAO,KAAKC,IAAZ,MAAsB,QAAtB;AACA,OAAO,KAAKC,MAAZ,MAAwB,UAAxB;AACA,OAAO,KAAKC,OAAZ,MAAyB,WAAzB;AACA,OAAO,KAAKC,mBAAZ,MAAqC,yBAArC;AACA,OAAO,KAAKC,iBAAZ,MAAmC,uBAAnC;AACA,OAAO,KAAKC,cAAZ,MAAgC,mBAAhC;AACA,OAAO,KAAKC,WAAZ,MAA6B,gBAA7B;AACA,OAAO,KAAKC,eAAZ,MAAiC,qBAAjC;AACA,OAAO,KAAKC,gBAAZ,MAAkC,sBAAlC;AACA,OAAO,KAAKC,eAAZ,MAAiC,oBAAjC;AACA,OAAO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ACA;AACA;AACA;;AACA,OAAO,MAAMQ,4CAA4C,GACxDC,OAAO,CAACC,GAAR,CAAYC,eAAZ,KAAgC,CAAhC,GACG,YAAgC;AAAA,MAA9B;AAAEC,IAAAA;AAAF,GAA8B,uEAAR,EAAQ;AAChC,GACC;AACA3E,EAAAA,QAFD,EAIC;AACA,MAAK2E,eAAe,GACjB,CACAzF,mBADA,EAEAC,iBAFA,EAGAC,cAHA,EAIAC,WAJA,EAKAC,eALA,EAMAC,gBANA,EAOAC,eAPA,EAQAC,iBARA,EASAkB,cATA,EAUAQ,WAVA,EAWAE,iBAXA,EAYAC,gBAZA,EAaAC,gBAbA,CADiB,GAgBjB,EAhBH,CALD,EAsBE+C,OAtBF,CAsBWX,aAtBX;AAuBC,CAzBJ,GA0BGiB,SA3BG","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsQueryLoop from './comments-query-loop';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationArea from './navigation-area';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postComment from './post-comment';\nimport * as postComments from './post-comments';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\n// import * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n *\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tregisterBlockType( { name, ...metadata }, settings );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () => [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tarchives,\n\taudio,\n\tbutton,\n\tbuttons,\n\tcalendar,\n\tcategories,\n\twindow.wp && window.wp.oldEditor ? classic : null, // Only add the classic block in WP Context\n\tcode,\n\tcolumn,\n\tcolumns,\n\tcover,\n\tembed,\n\tfile,\n\tgroup,\n\thtml,\n\tlatestComments,\n\tlatestPosts,\n\tlogInOut,\n\tmediaText,\n\tmissing,\n\tmore,\n\tnavigation,\n\tnavigationLink,\n\tnavigationSubmenu,\n\tnextpage,\n\tpageList,\n\tpattern,\n\tpostAuthor,\n\tpostComments,\n\tpostContent,\n\tpostDate,\n\tpostExcerpt,\n\tpostFeaturedImage,\n\tpostNavigationLink,\n\tpostTemplate,\n\tpostTerms,\n\tpostTitle,\n\tpreformatted,\n\tpullquote,\n\tquery,\n\tqueryPagination,\n\tqueryPaginationNext,\n\tqueryPaginationNumbers,\n\tqueryPaginationPrevious,\n\tqueryTitle,\n\treusableBlock,\n\trss,\n\tsearch,\n\tseparator,\n\tshortcode,\n\tsiteLogo,\n\tsiteTagline,\n\tsiteTitle,\n\tsocialLink,\n\tsocialLinks,\n\tspacer,\n\ttable,\n\t// tableOfContents,\n\ttagCloud,\n\ttemplatePart,\n\ttermDescription,\n\ttextColumns,\n\tverse,\n\tvideo,\n];\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( registerBlock );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif ( window.wp && window.wp.oldEditor ) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks =\n\tprocess.env.GUTENBERG_PHASE === 2\n\t\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\t\t[\n\t\t\t\t\t// Experimental blocks.\n\t\t\t\t\thomeLink,\n\n\t\t\t\t\t// Full Site Editing blocks.\n\t\t\t\t\t...( enableFSEBlocks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\tcommentAuthorAvatar,\n\t\t\t\t\t\t\t\tcommentAuthorName,\n\t\t\t\t\t\t\t\tcommentContent,\n\t\t\t\t\t\t\t\tcommentDate,\n\t\t\t\t\t\t\t\tcommentEditLink,\n\t\t\t\t\t\t\t\tcommentReplyLink,\n\t\t\t\t\t\t\t\tcommentTemplate,\n\t\t\t\t\t\t\t\tcommentsQueryLoop,\n\t\t\t\t\t\t\t\tnavigationArea,\n\t\t\t\t\t\t\t\tpostComment,\n\t\t\t\t\t\t\t\tpostCommentsCount,\n\t\t\t\t\t\t\t\tpostCommentsForm,\n\t\t\t\t\t\t\t\tpostCommentsLink,\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: [] ),\n\t\t\t\t].forEach( registerBlock );\n\t\t }\n\t\t: undefined;\n"]}
|
|
@@ -4,6 +4,7 @@ import { createElement, Fragment } from "@wordpress/element";
|
|
|
4
4
|
* WordPress dependencies
|
|
5
5
|
*/
|
|
6
6
|
import { __, _x } from '@wordpress/i18n';
|
|
7
|
+
import deprecated from '@wordpress/deprecated';
|
|
7
8
|
import { store as coreStore } from '@wordpress/core-data';
|
|
8
9
|
import { MenuGroup, MenuItemsChoice, PanelBody, SelectControl, ToolbarDropdownMenu, ToolbarGroup } from '@wordpress/components';
|
|
9
10
|
import { useMemo } from '@wordpress/element';
|
|
@@ -48,6 +49,9 @@ function NavigationAreaBlock(_ref) {
|
|
|
48
49
|
value: name
|
|
49
50
|
};
|
|
50
51
|
}), [navigationAreas]);
|
|
52
|
+
deprecated('wp.blockLibrary.NavigationArea', {
|
|
53
|
+
since: '5.9'
|
|
54
|
+
});
|
|
51
55
|
return createElement(Fragment, null, createElement(BlockControls, null, createElement(ToolbarGroup, null, createElement(ToolbarDropdownMenu, {
|
|
52
56
|
label: __('Select Area'),
|
|
53
57
|
text: __('Select Area'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/navigation-area/edit.js"],"names":["__","_x","store","coreStore","MenuGroup","MenuItemsChoice","PanelBody","SelectControl","ToolbarDropdownMenu","ToolbarGroup","useMemo","BlockControls","InspectorControls","useSelect","InnerBlocks","PlaceholderPreview","NavigationAreaBlock","attributes","setAttributes","area","navigationAreas","hasResolvedNavigationAreas","select","getEntityRecords","hasFinishedResolution","navigationMenuId","length","undefined","choices","map","name","description","label","value","onClose","selectedArea"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,EAAT,EAAaC,EAAb,QAAuB,iBAAvB;AACA,SAASC,KAAK,IAAIC,SAAlB,QAAmC,sBAAnC;AACA,SACCC,SADD,EAECC,eAFD,EAGCC,SAHD,EAICC,aAJD,EAKCC,mBALD,EAMCC,YAND,QAOO,uBAPP;AAQA,SAASC,OAAT,QAAwB,oBAAxB;AACA,SAASC,aAAT,EAAwBC,iBAAxB,QAAiD,yBAAjD;AACA,SAASC,SAAT,QAA0B,iBAA1B;AAEA;AACA;AACA;;AACA,OAAOC,WAAP,MAAwB,gBAAxB;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;;AAEA,SAASC,mBAAT,OAA8D;AAAA,MAAhC;AAAEC,IAAAA,UAAF;AAAcC,IAAAA;AAAd,GAAgC;AAC7D,QAAM;AAAEC,IAAAA;AAAF,MAAWF,UAAjB;AAEA,QAAM;AAAEG,IAAAA,eAAF;AAAmBC,IAAAA;AAAnB,MAAkDR,SAAS,CAC9DS,MAAF,IAAc;AACb,UAAM;AAAEC,MAAAA,gBAAF;AAAoBC,MAAAA;AAApB,QAA8CF,MAAM,CACzDnB,SADyD,CAA1D;AAGA,WAAO;AACNiB,MAAAA,eAAe,EAAEG,gBAAgB,CAAE,MAAF,EAAU,gBAAV,CAD3B;AAENF,MAAAA,0BAA0B,EAAEG,qBAAqB,CAChD,kBADgD,EAEhD,CAAE,MAAF,EAAU,gBAAV,CAFgD;AAF3C,KAAP;AAOA,GAZ+D,CAAjE;AAcA,QAAMC,gBAAgB,GAAGL,eAAe,SAAf,IAAAA,eAAe,WAAf,IAAAA,eAAe,CAAEM,MAAjB,GACtBN,eAAe,CAAED,IAAF,CADO,GAEtBQ,SAFH;AAIA,QAAMC,OAAO,GAAGlB,OAAO,CACtB,MACCU,eADD,aACCA,eADD,uBACCA,eAAe,CAAES,GAAjB,CAAsB;AAAA,QAAE;AAAEC,MAAAA,IAAF;AAAQC,MAAAA;AAAR,KAAF;AAAA,WAA+B;AACpDC,MAAAA,KAAK,EAAED,WAD6C;AAEpDE,MAAAA,KAAK,EAAEH;AAF6C,KAA/B;AAAA,GAAtB,CAFqB,EAMtB,CAAEV,eAAF,CANsB,CAAvB;
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/navigation-area/edit.js"],"names":["__","_x","deprecated","store","coreStore","MenuGroup","MenuItemsChoice","PanelBody","SelectControl","ToolbarDropdownMenu","ToolbarGroup","useMemo","BlockControls","InspectorControls","useSelect","InnerBlocks","PlaceholderPreview","NavigationAreaBlock","attributes","setAttributes","area","navigationAreas","hasResolvedNavigationAreas","select","getEntityRecords","hasFinishedResolution","navigationMenuId","length","undefined","choices","map","name","description","label","value","since","onClose","selectedArea"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,EAAT,EAAaC,EAAb,QAAuB,iBAAvB;AACA,OAAOC,UAAP,MAAuB,uBAAvB;AACA,SAASC,KAAK,IAAIC,SAAlB,QAAmC,sBAAnC;AACA,SACCC,SADD,EAECC,eAFD,EAGCC,SAHD,EAICC,aAJD,EAKCC,mBALD,EAMCC,YAND,QAOO,uBAPP;AAQA,SAASC,OAAT,QAAwB,oBAAxB;AACA,SAASC,aAAT,EAAwBC,iBAAxB,QAAiD,yBAAjD;AACA,SAASC,SAAT,QAA0B,iBAA1B;AAEA;AACA;AACA;;AACA,OAAOC,WAAP,MAAwB,gBAAxB;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;;AAEA,SAASC,mBAAT,OAA8D;AAAA,MAAhC;AAAEC,IAAAA,UAAF;AAAcC,IAAAA;AAAd,GAAgC;AAC7D,QAAM;AAAEC,IAAAA;AAAF,MAAWF,UAAjB;AAEA,QAAM;AAAEG,IAAAA,eAAF;AAAmBC,IAAAA;AAAnB,MAAkDR,SAAS,CAC9DS,MAAF,IAAc;AACb,UAAM;AAAEC,MAAAA,gBAAF;AAAoBC,MAAAA;AAApB,QAA8CF,MAAM,CACzDnB,SADyD,CAA1D;AAGA,WAAO;AACNiB,MAAAA,eAAe,EAAEG,gBAAgB,CAAE,MAAF,EAAU,gBAAV,CAD3B;AAENF,MAAAA,0BAA0B,EAAEG,qBAAqB,CAChD,kBADgD,EAEhD,CAAE,MAAF,EAAU,gBAAV,CAFgD;AAF3C,KAAP;AAOA,GAZ+D,CAAjE;AAcA,QAAMC,gBAAgB,GAAGL,eAAe,SAAf,IAAAA,eAAe,WAAf,IAAAA,eAAe,CAAEM,MAAjB,GACtBN,eAAe,CAAED,IAAF,CADO,GAEtBQ,SAFH;AAIA,QAAM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CG,CAAEP,0BAAF,IAAgC,cAAC,kBAAD;AAAoB,IAAA,SAAS;AAA7B,IAtCnC,EAwCE;AACA;AACAA,EAAAA,0BAA0B,IACzB,cAAC,WAAD;AAAa,IAAA,gBAAgB,EAAGI;AAAhC,IA3CH,CADD;AAiDA;;AAED,eAAeT,mBAAf","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport deprecated from '@wordpress/deprecated';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tMenuGroup,\n\tMenuItemsChoice,\n\tPanelBody,\n\tSelectControl,\n\tToolbarDropdownMenu,\n\tToolbarGroup,\n} from '@wordpress/components';\nimport { useMemo } from '@wordpress/element';\nimport { BlockControls, InspectorControls } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport InnerBlocks from './inner-blocks';\nimport PlaceholderPreview from '../navigation/edit/placeholder/placeholder-preview';\n\nfunction NavigationAreaBlock( { attributes, setAttributes } ) {\n\tconst { area } = attributes;\n\n\tconst { navigationAreas, hasResolvedNavigationAreas } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords, hasFinishedResolution } = select(\n\t\t\t\tcoreStore\n\t\t\t);\n\t\t\treturn {\n\t\t\t\tnavigationAreas: getEntityRecords( 'root', 'navigationArea' ),\n\t\t\t\thasResolvedNavigationAreas: hasFinishedResolution(\n\t\t\t\t\t'getEntityRecords',\n\t\t\t\t\t[ 'root', 'navigationArea' ]\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t);\n\tconst navigationMenuId = navigationAreas?.length\n\t\t? navigationAreas[ area ]\n\t\t: undefined;\n\n\tconst choices = useMemo(\n\t\t() =>\n\t\t\tnavigationAreas?.map( ( { name, description } ) => ( {\n\t\t\t\tlabel: description,\n\t\t\t\tvalue: name,\n\t\t\t} ) ),\n\t\t[ navigationAreas ]\n\t);\n\n\tdeprecated( 'wp.blockLibrary.NavigationArea', {\n\t\tsince: '5.9',\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t<BlockControls>\n\t\t\t\t<ToolbarGroup>\n\t\t\t\t\t<ToolbarDropdownMenu\n\t\t\t\t\t\tlabel={ __( 'Select Area' ) }\n\t\t\t\t\t\ttext={ __( 'Select Area' ) }\n\t\t\t\t\t\ticon={ null }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\t\t\tvalue={ area }\n\t\t\t\t\t\t\t\t\tonSelect={ ( selectedArea ) => {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { area: selectedArea } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tchoices={ choices }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</ToolbarDropdownMenu>\n\t\t\t\t</ToolbarGroup>\n\t\t\t</BlockControls>\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody title={ __( 'Options' ) }>\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={ _x( 'Area' ) }\n\t\t\t\t\t\tvalue={ area }\n\t\t\t\t\t\t// `undefined` is required for the preload attribute to be unset.\n\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tarea: value,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t\toptions={ choices }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t\t{ ! hasResolvedNavigationAreas && <PlaceholderPreview isLoading /> }\n\t\t\t{\n\t\t\t\t// Render inner blocks only when navigationMenuId is known so\n\t\t\t\t// that inner blocks template is correct from the start.\n\t\t\t\thasResolvedNavigationAreas && (\n\t\t\t\t\t<InnerBlocks navigationMenuId={ navigationMenuId } />\n\t\t\t\t)\n\t\t\t}\n\t\t</>\n\t);\n}\n\nexport default NavigationAreaBlock;\n"]}
|
|
@@ -119,17 +119,22 @@
|
|
|
119
119
|
}
|
|
120
120
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
121
121
|
align-self: center;
|
|
122
|
-
height: inherit;
|
|
123
122
|
line-height: 0;
|
|
124
|
-
|
|
123
|
+
display: inline-block;
|
|
124
|
+
vertical-align: middle;
|
|
125
125
|
padding: 0;
|
|
126
126
|
background-color: inherit;
|
|
127
127
|
color: currentColor;
|
|
128
128
|
border: none;
|
|
129
|
+
margin-right: 0.25em;
|
|
130
|
+
width: 0.6em;
|
|
131
|
+
height: 0.6em;
|
|
129
132
|
}
|
|
130
133
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
131
134
|
display: inline-block;
|
|
132
135
|
stroke: currentColor;
|
|
136
|
+
width: inherit;
|
|
137
|
+
height: inherit;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
|
|
@@ -119,17 +119,22 @@
|
|
|
119
119
|
}
|
|
120
120
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
121
121
|
align-self: center;
|
|
122
|
-
height: inherit;
|
|
123
122
|
line-height: 0;
|
|
124
|
-
|
|
123
|
+
display: inline-block;
|
|
124
|
+
vertical-align: middle;
|
|
125
125
|
padding: 0;
|
|
126
126
|
background-color: inherit;
|
|
127
127
|
color: currentColor;
|
|
128
128
|
border: none;
|
|
129
|
+
margin-left: 0.25em;
|
|
130
|
+
width: 0.6em;
|
|
131
|
+
height: 0.6em;
|
|
129
132
|
}
|
|
130
133
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
131
134
|
display: inline-block;
|
|
132
135
|
stroke: currentColor;
|
|
136
|
+
width: inherit;
|
|
137
|
+
height: inherit;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
|
|
@@ -1531,17 +1531,22 @@ ul.has-background {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
1533
1533
|
align-self: center;
|
|
1534
|
-
height: inherit;
|
|
1535
1534
|
line-height: 0;
|
|
1536
|
-
|
|
1535
|
+
display: inline-block;
|
|
1536
|
+
vertical-align: middle;
|
|
1537
1537
|
padding: 0;
|
|
1538
1538
|
background-color: inherit;
|
|
1539
1539
|
color: currentColor;
|
|
1540
1540
|
border: none;
|
|
1541
|
+
margin-right: 0.25em;
|
|
1542
|
+
width: 0.6em;
|
|
1543
|
+
height: 0.6em;
|
|
1541
1544
|
}
|
|
1542
1545
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
1543
1546
|
display: inline-block;
|
|
1544
1547
|
stroke: currentColor;
|
|
1548
|
+
width: inherit;
|
|
1549
|
+
height: inherit;
|
|
1545
1550
|
}
|
|
1546
1551
|
|
|
1547
1552
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
|
package/build-style/style.css
CHANGED
|
@@ -1553,17 +1553,22 @@ ul.has-background {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
1555
1555
|
align-self: center;
|
|
1556
|
-
height: inherit;
|
|
1557
1556
|
line-height: 0;
|
|
1558
|
-
|
|
1557
|
+
display: inline-block;
|
|
1558
|
+
vertical-align: middle;
|
|
1559
1559
|
padding: 0;
|
|
1560
1560
|
background-color: inherit;
|
|
1561
1561
|
color: currentColor;
|
|
1562
1562
|
border: none;
|
|
1563
|
+
margin-left: 0.25em;
|
|
1564
|
+
width: 0.6em;
|
|
1565
|
+
height: 0.6em;
|
|
1563
1566
|
}
|
|
1564
1567
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
1565
1568
|
display: inline-block;
|
|
1566
1569
|
stroke: currentColor;
|
|
1570
|
+
width: inherit;
|
|
1571
|
+
height: inherit;
|
|
1567
1572
|
}
|
|
1568
1573
|
|
|
1569
1574
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@wordpress/api-fetch": "^5.2.6",
|
|
38
38
|
"@wordpress/autop": "^3.2.3",
|
|
39
39
|
"@wordpress/blob": "^3.2.2",
|
|
40
|
-
"@wordpress/block-editor": "^8.0.
|
|
40
|
+
"@wordpress/block-editor": "^8.0.5",
|
|
41
41
|
"@wordpress/blocks": "^11.1.4",
|
|
42
|
-
"@wordpress/components": "^19.0.
|
|
42
|
+
"@wordpress/components": "^19.0.5",
|
|
43
43
|
"@wordpress/compose": "^5.0.6",
|
|
44
44
|
"@wordpress/core-data": "^4.0.7",
|
|
45
45
|
"@wordpress/data": "^6.1.4",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@wordpress/html-entities": "^3.2.3",
|
|
53
53
|
"@wordpress/i18n": "^4.2.4",
|
|
54
54
|
"@wordpress/icons": "^6.1.1",
|
|
55
|
-
"@wordpress/interface": "^4.1.
|
|
55
|
+
"@wordpress/interface": "^4.1.7",
|
|
56
56
|
"@wordpress/is-shallow-equal": "^4.2.1",
|
|
57
57
|
"@wordpress/keycodes": "^3.2.4",
|
|
58
58
|
"@wordpress/notices": "^3.2.7",
|
|
59
59
|
"@wordpress/primitives": "^3.0.4",
|
|
60
|
-
"@wordpress/reusable-blocks": "^3.0.
|
|
60
|
+
"@wordpress/reusable-blocks": "^3.0.11",
|
|
61
61
|
"@wordpress/rich-text": "^5.0.6",
|
|
62
|
-
"@wordpress/server-side-render": "^3.0.
|
|
62
|
+
"@wordpress/server-side-render": "^3.0.9",
|
|
63
63
|
"@wordpress/url": "^3.3.1",
|
|
64
64
|
"@wordpress/viewport": "^4.0.6",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "518e7a279a0f596612232c55c83a351460f8816d"
|
|
77
77
|
}
|
package/src/index.js
CHANGED
|
@@ -154,7 +154,6 @@ export const __experimentalGetCoreBlocks = () => [
|
|
|
154
154
|
missing,
|
|
155
155
|
more,
|
|
156
156
|
navigation,
|
|
157
|
-
navigationArea,
|
|
158
157
|
navigationLink,
|
|
159
158
|
navigationSubmenu,
|
|
160
159
|
nextpage,
|
|
@@ -253,6 +252,7 @@ export const __experimentalRegisterExperimentalCoreBlocks =
|
|
|
253
252
|
commentReplyLink,
|
|
254
253
|
commentTemplate,
|
|
255
254
|
commentsQueryLoop,
|
|
255
|
+
navigationArea,
|
|
256
256
|
postComment,
|
|
257
257
|
postCommentsCount,
|
|
258
258
|
postCommentsForm,
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
|
|
79
79
|
// Submenu indicator.
|
|
80
80
|
.wp-block-navigation__submenu-icon {
|
|
81
|
-
align-self: center;
|
|
82
|
-
height: inherit;
|
|
81
|
+
align-self: center; // This one affects nested submenu indicators.
|
|
83
82
|
line-height: 0;
|
|
84
|
-
|
|
83
|
+
display: inline-block;
|
|
84
|
+
vertical-align: middle;
|
|
85
85
|
|
|
86
86
|
// Affect the button as well.
|
|
87
87
|
padding: 0;
|
|
@@ -89,9 +89,16 @@
|
|
|
89
89
|
color: currentColor;
|
|
90
90
|
border: none;
|
|
91
91
|
|
|
92
|
+
// Scale to font size.
|
|
93
|
+
margin-left: 0.25em;
|
|
94
|
+
width: 0.6em;
|
|
95
|
+
height: 0.6em;
|
|
96
|
+
|
|
92
97
|
svg {
|
|
93
98
|
display: inline-block;
|
|
94
99
|
stroke: currentColor;
|
|
100
|
+
width: inherit;
|
|
101
|
+
height: inherit;
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __, _x } from '@wordpress/i18n';
|
|
5
|
+
import deprecated from '@wordpress/deprecated';
|
|
5
6
|
import { store as coreStore } from '@wordpress/core-data';
|
|
6
7
|
import {
|
|
7
8
|
MenuGroup,
|
|
@@ -51,6 +52,10 @@ function NavigationAreaBlock( { attributes, setAttributes } ) {
|
|
|
51
52
|
[ navigationAreas ]
|
|
52
53
|
);
|
|
53
54
|
|
|
55
|
+
deprecated( 'wp.blockLibrary.NavigationArea', {
|
|
56
|
+
since: '5.9',
|
|
57
|
+
} );
|
|
58
|
+
|
|
54
59
|
return (
|
|
55
60
|
<>
|
|
56
61
|
<BlockControls>
|
package/src/page-list/index.php
CHANGED
|
@@ -34,7 +34,7 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
|
|
|
34
34
|
|
|
35
35
|
if ( $has_named_text_color ) {
|
|
36
36
|
// Add the color class.
|
|
37
|
-
$colors['css_classes'][] = sprintf( 'has-%s-color',
|
|
37
|
+
$colors['css_classes'][] = sprintf( 'has-%s-color', _wp_to_kebab_case( $context['textColor'] ) );
|
|
38
38
|
} elseif ( $has_picked_text_color ) {
|
|
39
39
|
$colors['inline_styles'] .= sprintf( 'color: %s;', $context['customTextColor'] );
|
|
40
40
|
} elseif ( $has_custom_text_color ) {
|
|
@@ -55,7 +55,7 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
|
|
|
55
55
|
|
|
56
56
|
if ( $has_named_background_color ) {
|
|
57
57
|
// Add the background-color class.
|
|
58
|
-
$colors['css_classes'][] = sprintf( 'has-%s-background-color',
|
|
58
|
+
$colors['css_classes'][] = sprintf( 'has-%s-background-color', _wp_to_kebab_case( $context['backgroundColor'] ) );
|
|
59
59
|
} elseif ( $has_picked_background_color ) {
|
|
60
60
|
$colors['inline_styles'] .= sprintf( 'background-color: %s;', $context['customBackgroundColor'] );
|
|
61
61
|
} elseif ( $has_custom_background_color ) {
|
|
@@ -74,7 +74,7 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
|
|
|
74
74
|
|
|
75
75
|
// Give overlay colors priority, fall back to Navigation block colors, then global styles.
|
|
76
76
|
if ( $has_named_overlay_text_color ) {
|
|
77
|
-
$colors['overlay_css_classes'][] = sprintf( 'has-%s-color',
|
|
77
|
+
$colors['overlay_css_classes'][] = sprintf( 'has-%s-color', _wp_to_kebab_case( $context['overlayTextColor'] ) );
|
|
78
78
|
} elseif ( $has_picked_overlay_text_color ) {
|
|
79
79
|
$colors['overlay_inline_styles'] .= sprintf( 'color: %s;', $context['customOverlayTextColor'] );
|
|
80
80
|
}
|
|
@@ -89,7 +89,7 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
if ( $has_named_overlay_background_color ) {
|
|
92
|
-
$colors['overlay_css_classes'][] = sprintf( 'has-%s-background-color',
|
|
92
|
+
$colors['overlay_css_classes'][] = sprintf( 'has-%s-background-color', _wp_to_kebab_case( $context['overlayBackgroundColor'] ) );
|
|
93
93
|
} elseif ( $has_picked_overlay_background_color ) {
|
|
94
94
|
$colors['overlay_inline_styles'] .= sprintf( 'background-color: %s;', $context['customOverlayBackgroundColor'] );
|
|
95
95
|
}
|