mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editor: Update @wordpress packages for 6.2 Beta 5.
Updates the `@wordpress` packages to include the following changes: - Add border radius to off canvas navigation menu items - Remove border from quick inserter child elements - Show variant patterns even if there are no patterns for the Query Loop block - Order initial block items in Navigation with PrivateInserter - Update: Add descriptions to all panels in the Site Editor's dark side - Fix typo in template parts description - Fix: Browse mode descriptions margin - Fix: Show creation popover on empty page links in the navigation sidebar - Make sure the directly inserted block in the Nav block is a Page link - Fix browser history when synchronising state with urls - Navigation Sidebar: Change the logic about which navigation gets selected for the sidebar - Fixes extra UI in navigation block inspector - Renames parent selection boolean param and improves docs - Widget Importer: Fix Widget Group block imports - Don't add Post Content layout styles to title in the post editor - Site editor: Add hover animation to site editor canvas - Prevent the saving button from showing when renaming templates - Navigation Block: Fix big spinner - Navigation: Don't save the level of the link in an attribute - Focus 1st parent block on block remove, if no previous block is available - Navigation: Performance: improve params in `block_core_navigation_get_most_recently_published_navigation()` - Navigation Block inspector: fix link UI popover opening on links that have a url - Fix for `WP_Theme_JSON_Resolver::get_merged_data()` - Site Editor: Add page details when viewing a specific page. - Fix site editor sidebar scrollbars - Fix: Custom link UI does appears outside canvas on the sidebar navigation - Fix: Make navigation page list load its items on navigation sidebar References: * [d14fea64bdGutenberg's commit for publishing the packages] * [dbe47a5e8fGutenberg's commit for `blocks/navigation-link.php` and `blocks/navigation-submenu.php`] * [ea74a306e5Gutenberg's commit for `blocks/navigation.php`] Follow-up to [55441], [55440]. Props ntsekouras, mamaduka, gziolo, costdev, hellofromTonya. See #57471. git-svn-id: https://develop.svn.wordpress.org/trunk@55475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11bad65695
commit
a028958dd6
124
package-lock.json
generated
124
package-lock.json
generated
@ -4043,21 +4043,21 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-directory": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-4.3.6.tgz",
|
||||
"integrity": "sha512-Y7HTQXzGlKUreH4+RVz8uGfCrPb+E15OPt2clpJpSXgDIcxH/bx+/eZInR4wVYZjIgkLYZRLxz2+G2zOYGAcsQ==",
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-4.3.7.tgz",
|
||||
"integrity": "sha512-9/1QWbn7zEhXMWXPaEP9TJa6XvBsD+JK/gvpbsdTXHs3tKPiFo7HNPn/Vz11id/rKcHGs3CkqaHNgYXXhEWjKA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
"@wordpress/core-data": "^6.3.3",
|
||||
"@wordpress/data": "^8.3.3",
|
||||
"@wordpress/edit-post": "^7.3.6",
|
||||
"@wordpress/editor": "^13.3.6",
|
||||
"@wordpress/edit-post": "^7.3.7",
|
||||
"@wordpress/editor": "^13.3.7",
|
||||
"@wordpress/element": "^5.3.2",
|
||||
"@wordpress/hooks": "^3.26.1",
|
||||
"@wordpress/html-entities": "^3.26.1",
|
||||
@ -4070,9 +4070,9 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-editor": {
|
||||
"version": "11.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-11.3.6.tgz",
|
||||
"integrity": "sha512-3tkCk7EqaUOn7ePmLcigHj6hTq6ydx6MVIzW4RGII8rsPw7DzeS5HTXhj8xtM450HOvyhRKeXLZGlYJ9JXwrzw==",
|
||||
"version": "11.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-11.3.7.tgz",
|
||||
"integrity": "sha512-X0OERVhcyWzf7H9qz+t+Vei0/hS+qFntIixd9JCjkkP7ACSGkaRCMuImLc7066uRkqBmVScj5VmoQ/Me8qqEMA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@react-spring/web": "^9.4.5",
|
||||
@ -4121,16 +4121,16 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-library": {
|
||||
"version": "8.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-8.3.6.tgz",
|
||||
"integrity": "sha512-NAzRu5ILCrY2aO93AeO9AGJyFHBTcOp4cwM/+jAeJ/Y2WOiZBV9J/8p4d+GaNTkVu7CAwyPf1OqLUChzsJPp3Q==",
|
||||
"version": "8.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-8.3.7.tgz",
|
||||
"integrity": "sha512-go41vgL5416yuC5fuQIx2ZNn2UOT4h/rAowPFOfsif6I3UtKn40xmEQ5u4rBAKICpxdnDnPRs7GlV8zvXioMBQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/autop": "^3.26.1",
|
||||
"@wordpress/blob": "^3.26.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
@ -4149,7 +4149,7 @@
|
||||
"@wordpress/notices": "^3.26.3",
|
||||
"@wordpress/primitives": "^3.24.2",
|
||||
"@wordpress/private-apis": "^0.8.1",
|
||||
"@wordpress/reusable-blocks": "^4.3.6",
|
||||
"@wordpress/reusable-blocks": "^4.3.7",
|
||||
"@wordpress/rich-text": "^6.3.3",
|
||||
"@wordpress/server-side-render": "^4.3.5",
|
||||
"@wordpress/url": "^3.27.1",
|
||||
@ -4343,13 +4343,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/customize-widgets": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-4.3.6.tgz",
|
||||
"integrity": "sha512-lZzC+UvqifyOmN8u3cef90Yjx0/I7XI7zdkaHTeL7DHiGwjikeRiMCZ4W07hN44gvOejrTGgFpiTsljWDbvUeA==",
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-4.3.7.tgz",
|
||||
"integrity": "sha512-TQR/za6WD0HQJr+k/q9Uvv22hHZJ413TT+lha23Iiy+n8GYi8RRxO8YD34F+cG25M1ZpDlSwzfoV6bpxkWq/Tw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-library": "^8.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/block-library": "^8.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
@ -4367,7 +4367,7 @@
|
||||
"@wordpress/media-utils": "^4.17.2",
|
||||
"@wordpress/preferences": "^3.3.5",
|
||||
"@wordpress/private-apis": "^0.8.1",
|
||||
"@wordpress/widgets": "^3.3.6",
|
||||
"@wordpress/widgets": "^3.3.7",
|
||||
"classnames": "^2.3.1",
|
||||
"fast-deep-equal": "^3.1.3"
|
||||
}
|
||||
@ -4496,22 +4496,22 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-post": {
|
||||
"version": "7.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-7.3.6.tgz",
|
||||
"integrity": "sha512-ywX3xfKdtnuOg2SPcLsFGHGtbnX9NPZ7EvLu4vVR8W1DE0WU6D71LyauxW8B0qiPoM9RQtKLXGlSyJKhcOUQUw==",
|
||||
"version": "7.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-7.3.7.tgz",
|
||||
"integrity": "sha512-SdK6A6YpA7St8VVzFmnQ5/5u0Gnc2z3P5SvCEs9kwTuQuCGZkwa9MnzzC/lQoxYEN8hbIbWu/LEHmsXG8Uk/Yg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-library": "^8.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/block-library": "^8.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
"@wordpress/core-data": "^6.3.3",
|
||||
"@wordpress/data": "^8.3.3",
|
||||
"@wordpress/deprecated": "^3.26.1",
|
||||
"@wordpress/editor": "^13.3.6",
|
||||
"@wordpress/editor": "^13.3.7",
|
||||
"@wordpress/element": "^5.3.2",
|
||||
"@wordpress/hooks": "^3.26.1",
|
||||
"@wordpress/i18n": "^4.26.1",
|
||||
@ -4527,7 +4527,7 @@
|
||||
"@wordpress/url": "^3.27.1",
|
||||
"@wordpress/viewport": "^5.3.3",
|
||||
"@wordpress/warning": "^2.26.1",
|
||||
"@wordpress/widgets": "^3.3.6",
|
||||
"@wordpress/widgets": "^3.3.7",
|
||||
"classnames": "^2.3.1",
|
||||
"lodash": "^4.17.21",
|
||||
"memize": "^1.1.0",
|
||||
@ -4535,22 +4535,22 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-site": {
|
||||
"version": "5.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-5.3.6.tgz",
|
||||
"integrity": "sha512-6xGYKlW47mCxCU60mmfvrUDRV+nggoasxligzS+BePTXhZVnVj6Aa2S6Xzc8BM3buITtGPB8dno/4yYm3hVeEw==",
|
||||
"version": "5.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-5.3.7.tgz",
|
||||
"integrity": "sha512-/uBlahmE4mYxLSBQoFIrf7QmgDHojbo8BTI44CuJdS7L2V94ivaVgBr4ohrz1/QmciQMiEKFnH9Vc6Jw3RXH1g==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-library": "^8.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/block-library": "^8.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
"@wordpress/core-data": "^6.3.3",
|
||||
"@wordpress/data": "^8.3.3",
|
||||
"@wordpress/deprecated": "^3.26.1",
|
||||
"@wordpress/editor": "^13.3.6",
|
||||
"@wordpress/editor": "^13.3.7",
|
||||
"@wordpress/element": "^5.3.2",
|
||||
"@wordpress/hooks": "^3.26.1",
|
||||
"@wordpress/html-entities": "^3.26.1",
|
||||
@ -4564,11 +4564,11 @@
|
||||
"@wordpress/plugins": "^5.3.3",
|
||||
"@wordpress/preferences": "^3.3.5",
|
||||
"@wordpress/private-apis": "^0.8.1",
|
||||
"@wordpress/reusable-blocks": "^4.3.6",
|
||||
"@wordpress/reusable-blocks": "^4.3.7",
|
||||
"@wordpress/style-engine": "^1.9.1",
|
||||
"@wordpress/url": "^3.27.1",
|
||||
"@wordpress/viewport": "^5.3.3",
|
||||
"@wordpress/widgets": "^3.3.6",
|
||||
"@wordpress/widgets": "^3.3.7",
|
||||
"classnames": "^2.3.1",
|
||||
"colord": "^2.9.2",
|
||||
"downloadjs": "^1.4.7",
|
||||
@ -4581,14 +4581,14 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-widgets": {
|
||||
"version": "5.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-5.3.6.tgz",
|
||||
"integrity": "sha512-iw1Xg4Z5q7uLctKvMAH4y4a4wX0YFLHbRf1oykNCfDIuzDThr/5d5jqrrqlXwXwrJQD3QlVxYl9R9/vc/evocQ==",
|
||||
"version": "5.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-5.3.7.tgz",
|
||||
"integrity": "sha512-ZTPcd8ZxFZv6Nvz2ET73XAPT05d6rCt1G3Br86Ab+acIkK8GTzP1hcHbk0fy3mPt5Rnbaaiv0kts2ZdTsQhTvQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-library": "^8.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/block-library": "^8.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
@ -4608,22 +4608,22 @@
|
||||
"@wordpress/plugins": "^5.3.3",
|
||||
"@wordpress/preferences": "^3.3.5",
|
||||
"@wordpress/private-apis": "^0.8.1",
|
||||
"@wordpress/reusable-blocks": "^4.3.6",
|
||||
"@wordpress/reusable-blocks": "^4.3.7",
|
||||
"@wordpress/url": "^3.27.1",
|
||||
"@wordpress/widgets": "^3.3.6",
|
||||
"@wordpress/widgets": "^3.3.7",
|
||||
"classnames": "^2.3.1"
|
||||
}
|
||||
},
|
||||
"@wordpress/editor": {
|
||||
"version": "13.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-13.3.6.tgz",
|
||||
"integrity": "sha512-yu4NM82X/uSho6eYKTs9VE0qYhz/IIL7VQ3XjK5RMLRkCdgAns6PVdTFa/CwcSHVNfJ/p5QQ0Suu4heJTGeALQ==",
|
||||
"version": "13.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-13.3.7.tgz",
|
||||
"integrity": "sha512-536/ii6HoVSqHklOC2XQLecrmKsf0zTYXk+ZRrScDeksDdxi6SgXTXXqV8/IRlvJemGXWH3WkPwHS/7DGvaMTw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/blob": "^3.26.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
@ -4643,7 +4643,7 @@
|
||||
"@wordpress/notices": "^3.26.3",
|
||||
"@wordpress/preferences": "^3.3.5",
|
||||
"@wordpress/private-apis": "^0.8.1",
|
||||
"@wordpress/reusable-blocks": "^4.3.6",
|
||||
"@wordpress/reusable-blocks": "^4.3.7",
|
||||
"@wordpress/rich-text": "^6.3.3",
|
||||
"@wordpress/server-side-render": "^4.3.5",
|
||||
"@wordpress/url": "^3.27.1",
|
||||
@ -4724,13 +4724,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/format-library": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-4.3.6.tgz",
|
||||
"integrity": "sha512-PdfSg3GRPhGQcw9savKK+qWfEAdlW5TZltgJD9u8N0wYmOLX4o9q50evFqohxhqGOEaJdSz4QACBkHlVluXC5A==",
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-4.3.7.tgz",
|
||||
"integrity": "sha512-dAHjAHSQppvNkME+vZ6cdBXd5KC9767X7k5O61At8yndwhrZdPDFW7lePUjZTdSqs2sILUFb+zLznftIWoADJw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.26.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
"@wordpress/data": "^8.3.3",
|
||||
@ -5007,11 +5007,11 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/reusable-blocks": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-4.3.6.tgz",
|
||||
"integrity": "sha512-P2TTdIAsXntgGLF/eVtzwtGBNqLDhRAu1DPRO/6coIXOd5InhSgzVhX0/irPEhPaJIeWq4z9LuBaJsv24AE/qA==",
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-4.3.7.tgz",
|
||||
"integrity": "sha512-0AxMPK4vtVNGOO/p1cC/tW2dsp8Wr6m2tAvhBR4Gnyu/fYC08loc3T5TWTjW4CpiCeIZM0WtpJsXtTQb8OpqTw==",
|
||||
"requires": {
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/core-data": "^6.3.3",
|
||||
@ -5434,13 +5434,13 @@
|
||||
"integrity": "sha512-vKfxXh7a+BcZxq+1TQbHeLPA40PsrdQh6HVNy4fQd50bAb7lse7D9K36/E8EsHEgknlTemwzmHCV78Q+fBFhBg=="
|
||||
},
|
||||
"@wordpress/widgets": {
|
||||
"version": "3.3.6",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-3.3.6.tgz",
|
||||
"integrity": "sha512-BZ6kvsglmWPcL3NhiBlQXncFL0WJ39FrJ7e06fcMtyavL1pcAogFQXysv3IIB/0tzjNq0mNhoLZxIiBO/DlgHA==",
|
||||
"version": "3.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-3.3.7.tgz",
|
||||
"integrity": "sha512-STwbJUwt6qBWX+6/lqVm/88HYtJNY8fvwLSTZR+HKpzdZ6CgnIRuFRDjQW1LIXVhNkhbtskVwYXlHhvo3otZIg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^6.23.1",
|
||||
"@wordpress/block-editor": "^11.3.6",
|
||||
"@wordpress/block-editor": "^11.3.7",
|
||||
"@wordpress/blocks": "^12.3.3",
|
||||
"@wordpress/components": "^23.3.5",
|
||||
"@wordpress/compose": "^6.3.3",
|
||||
@ -21413,9 +21413,9 @@
|
||||
}
|
||||
},
|
||||
"react-easy-crop": {
|
||||
"version": "4.7.3",
|
||||
"resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-4.7.3.tgz",
|
||||
"integrity": "sha512-+LUQyKKAo10a28Q7whEDKs+mrGMctTDYDCT29++VYk3KKPivp/hPWWfZDrFebBOiezhGljFoi+bApH7DsVk2rg==",
|
||||
"version": "4.7.4",
|
||||
"resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-4.7.4.tgz",
|
||||
"integrity": "sha512-oDi1375Jo/zuPUvo3oauxnNbfy8L4wsbmHD1KB2vT55fdgu+q8/K0w/rDWzy9jz4jfQ94Q9+3Yu366sDDFVmiA==",
|
||||
"requires": {
|
||||
"normalize-wheel": "^1.0.1",
|
||||
"tslib": "2.0.1"
|
||||
|
||||
22
package.json
22
package.json
@ -82,28 +82,28 @@
|
||||
"@wordpress/api-fetch": "6.23.1",
|
||||
"@wordpress/autop": "3.26.1",
|
||||
"@wordpress/blob": "3.26.1",
|
||||
"@wordpress/block-directory": "4.3.6",
|
||||
"@wordpress/block-editor": "11.3.6",
|
||||
"@wordpress/block-library": "8.3.6",
|
||||
"@wordpress/block-directory": "4.3.7",
|
||||
"@wordpress/block-editor": "11.3.7",
|
||||
"@wordpress/block-library": "8.3.7",
|
||||
"@wordpress/block-serialization-default-parser": "4.26.1",
|
||||
"@wordpress/blocks": "12.3.3",
|
||||
"@wordpress/components": "23.3.5",
|
||||
"@wordpress/compose": "6.3.3",
|
||||
"@wordpress/core-data": "6.3.3",
|
||||
"@wordpress/customize-widgets": "4.3.6",
|
||||
"@wordpress/customize-widgets": "4.3.7",
|
||||
"@wordpress/data": "8.3.3",
|
||||
"@wordpress/data-controls": "2.26.3",
|
||||
"@wordpress/date": "4.26.2",
|
||||
"@wordpress/deprecated": "3.26.1",
|
||||
"@wordpress/dom": "3.26.1",
|
||||
"@wordpress/dom-ready": "3.26.1",
|
||||
"@wordpress/edit-post": "7.3.6",
|
||||
"@wordpress/edit-site": "5.3.6",
|
||||
"@wordpress/edit-widgets": "5.3.6",
|
||||
"@wordpress/editor": "13.3.6",
|
||||
"@wordpress/edit-post": "7.3.7",
|
||||
"@wordpress/edit-site": "5.3.7",
|
||||
"@wordpress/edit-widgets": "5.3.7",
|
||||
"@wordpress/editor": "13.3.7",
|
||||
"@wordpress/element": "5.3.2",
|
||||
"@wordpress/escape-html": "2.26.1",
|
||||
"@wordpress/format-library": "4.3.6",
|
||||
"@wordpress/format-library": "4.3.7",
|
||||
"@wordpress/hooks": "3.26.1",
|
||||
"@wordpress/html-entities": "3.26.1",
|
||||
"@wordpress/i18n": "4.26.1",
|
||||
@ -123,7 +123,7 @@
|
||||
"@wordpress/priority-queue": "2.26.1",
|
||||
"@wordpress/private-apis": "0.8.1",
|
||||
"@wordpress/redux-routine": "4.26.1",
|
||||
"@wordpress/reusable-blocks": "4.3.6",
|
||||
"@wordpress/reusable-blocks": "4.3.7",
|
||||
"@wordpress/rich-text": "6.3.3",
|
||||
"@wordpress/server-side-render": "4.3.5",
|
||||
"@wordpress/shortcode": "3.26.1",
|
||||
@ -132,7 +132,7 @@
|
||||
"@wordpress/url": "3.27.1",
|
||||
"@wordpress/viewport": "5.3.3",
|
||||
"@wordpress/warning": "2.26.1",
|
||||
"@wordpress/widgets": "3.3.6",
|
||||
"@wordpress/widgets": "3.3.7",
|
||||
"@wordpress/wordcount": "3.26.1",
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.11",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -9,18 +9,17 @@
|
||||
* Build an array with CSS classes and inline styles defining the colors
|
||||
* which will be applied to the navigation markup in the front-end.
|
||||
*
|
||||
* @param array $context Navigation block context.
|
||||
* @param array $attributes Block attributes.
|
||||
* @param array $context Navigation block context.
|
||||
* @param array $attributes Block attributes.
|
||||
* @param bool $is_sub_menu Whether the link is part of a sub-menu.
|
||||
* @return array Colors CSS classes and inline styles.
|
||||
*/
|
||||
function block_core_navigation_link_build_css_colors( $context, $attributes ) {
|
||||
function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
|
||||
$colors = array(
|
||||
'css_classes' => array(),
|
||||
'inline_styles' => '',
|
||||
);
|
||||
|
||||
$is_sub_menu = isset( $attributes['isTopLevelLink'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;
|
||||
|
||||
// Text color.
|
||||
$named_text_color = null;
|
||||
$custom_text_color = null;
|
||||
|
||||
@ -9,18 +9,17 @@
|
||||
* Build an array with CSS classes and inline styles defining the colors
|
||||
* which will be applied to the navigation markup in the front-end.
|
||||
*
|
||||
* @param array $context Navigation block context.
|
||||
* @param array $attributes Block attributes.
|
||||
* @param array $context Navigation block context.
|
||||
* @param array $attributes Block attributes.
|
||||
* @param bool $is_sub_menu Whether the block is a sub-menu.
|
||||
* @return array Colors CSS classes and inline styles.
|
||||
*/
|
||||
function block_core_navigation_submenu_build_css_colors( $context, $attributes ) {
|
||||
function block_core_navigation_submenu_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
|
||||
$colors = array(
|
||||
'css_classes' => array(),
|
||||
'inline_styles' => '',
|
||||
);
|
||||
|
||||
$is_sub_menu = isset( $attributes['isTopLevelItem'] ) ? ( ! $attributes['isTopLevelItem'] ) : false;
|
||||
|
||||
// Text color.
|
||||
$named_text_color = null;
|
||||
$custom_text_color = null;
|
||||
@ -250,6 +249,15 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
||||
}
|
||||
|
||||
if ( $has_submenu ) {
|
||||
$colors = block_core_navigation_submenu_build_css_colors( $block->context, $attributes, $has_submenu );
|
||||
$classes = array_merge(
|
||||
array( 'wp-block-navigation__submenu-container' ),
|
||||
$colors['css_classes']
|
||||
);
|
||||
$css_classes = trim( implode( ' ', $classes ) );
|
||||
|
||||
$style_attribute = $colors['inline_styles'];
|
||||
|
||||
$inner_blocks_html = '';
|
||||
foreach ( $block->inner_blocks as $inner_block ) {
|
||||
$inner_blocks_html .= $inner_block->render();
|
||||
@ -263,10 +271,19 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
||||
$html = $tag_processor->get_updated_html();
|
||||
}
|
||||
|
||||
$wrapper_attributes = get_block_wrapper_attributes(
|
||||
array(
|
||||
'class' => $css_classes,
|
||||
'style' => $style_attribute,
|
||||
)
|
||||
);
|
||||
|
||||
$html .= sprintf(
|
||||
'<ul class="wp-block-navigation__submenu-container">%s</ul>',
|
||||
'<ul %s>%s</ul>',
|
||||
$wrapper_attributes,
|
||||
$inner_blocks_html
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$html .= '</li>';
|
||||
|
||||
@ -373,12 +373,14 @@ function block_core_navigation_get_most_recently_published_navigation() {
|
||||
|
||||
// Default to the most recently created menu.
|
||||
$parsed_args = array(
|
||||
'post_type' => 'wp_navigation',
|
||||
'no_found_rows' => true,
|
||||
'order' => 'DESC',
|
||||
'orderby' => 'date',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => 1, // get only the most recent.
|
||||
'post_type' => 'wp_navigation',
|
||||
'no_found_rows' => true,
|
||||
'update_post_meta_cache' => false,
|
||||
'update_post_term_cache' => false,
|
||||
'order' => 'DESC',
|
||||
'orderby' => 'date',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => 1, // get only the most recent.
|
||||
);
|
||||
|
||||
$navigation_post = new WP_Query( $parsed_args );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user