diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0ef842b5a800d..573cddbf99847 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -20,4 +20,4 @@ - [ ] My code follows the accessibility standards. - [ ] My code has proper inline documentation. - [ ] I've included developer documentation if appropriate. -- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR. . +- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR. diff --git a/changelog.txt b/changelog.txt index 6f7485ebae45d..f6f5f2ff1b935 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,140 @@ == Changelog == += 7.4.0-rc.1 = + +## Enhancements + +- Add background color support to Columns block [#17813](https://github.com/WordPress/gutenberg/pull/17813) +- Added shippedProposals [#19065](https://github.com/WordPress/gutenberg/pull/19065) πŸ‘ @devdivdev +- Navigation Block: Add submenu chevron w/ setting [#19601](https://github.com/WordPress/gutenberg/pull/19601) +- Navigation: set item ID [#18641](https://github.com/WordPress/gutenberg/pull/18641) +- Select Parent Navigation Block after clicking "Create from all top-level pages" [#19817](https://github.com/WordPress/gutenberg/pull/19817) +- Try/group block custom text color [#19181](https://github.com/WordPress/gutenberg/pull/19181) +- Update: Readme.txt Link to changelog instead of adding it inline [#19761](https://github.com/WordPress/gutenberg/pull/19761) + +## Bug Fixes + +- Block Editor: Handle LinkControl submission via form handler [#19651](https://github.com/WordPress/gutenberg/pull/19651) +- Block Editor: Link Control: Use URL as link when title empty [#19739](https://github.com/WordPress/gutenberg/pull/19739) +- Block Editor: LinkControl: Prevent focus loss in edit mode toggle [#19931](https://github.com/WordPress/gutenberg/pull/19931) +- Block Editor: LinkControl: Resolve error when undefined value, "view" state [#19856](https://github.com/WordPress/gutenberg/pull/19856) +- Block Library: Handle Popover onClose for LinkControl [#19885](https://github.com/WordPress/gutenberg/pull/19885) +- Block Library: Stop gallery images from creating undo levels as they load. [#19937](https://github.com/WordPress/gutenberg/pull/19937) +- Components: FontSizePicker: Adjust Select Button sizing [#19479](https://github.com/WordPress/gutenberg/pull/19479) +- Create block: Code quality improvements for the block scaffolding [#19867](https://github.com/WordPress/gutenberg/pull/19867) +- Editor: Remove post title escaping [#19955](https://github.com/WordPress/gutenberg/pull/19955) +- Embed: Fix failure placeholder alignment/sizing [#19673](https://github.com/WordPress/gutenberg/pull/19673) +- Fix RTL styling for Media Text block [#18764](https://github.com/WordPress/gutenberg/pull/18764) +- Fix panel header styles [#19842](https://github.com/WordPress/gutenberg/pull/19842) πŸ‘ @adekbadek +- Fix: Admin menu collapses for 960px width but editor doesn't [#19970](https://github.com/WordPress/gutenberg/pull/19970) +- Fix: Color Gradients component was not able to handle only gradient picking [#19925](https://github.com/WordPress/gutenberg/pull/19925) +- Fix: Crash when creating a hierarchical post without title [#19936](https://github.com/WordPress/gutenberg/pull/19936) +- Fix: Media & Text: "Crop image to fill entire column" resets on image change [#19765](https://github.com/WordPress/gutenberg/pull/19765) +- Multi selection: fix intermittent e2e failure [#19865](https://github.com/WordPress/gutenberg/pull/19865) +- Popover: clean up requestAnimationFrame [#19771](https://github.com/WordPress/gutenberg/pull/19771) +- Popover: fix typo in removing event listener [#19978](https://github.com/WordPress/gutenberg/pull/19978) +- Project Management: Fix pull request merge automation errors [#19768](https://github.com/WordPress/gutenberg/pull/19768) +- Project Management: Run pull request automation on closed [#19742](https://github.com/WordPress/gutenberg/pull/19742) +- Rich text: enable if multi selection is aborted [#19839](https://github.com/WordPress/gutenberg/pull/19839) +- Use Select: Fix render queue. [#19286](https://github.com/WordPress/gutenberg/pull/19286) +- Use require.resolve() instead of in @wordpress/jest-preset-default [#19957](https://github.com/WordPress/gutenberg/pull/19957) +- [RNMobile] Adjust vertical margins in InnerBlock [#19960](https://github.com/WordPress/gutenberg/pull/19960) +- [RNMobile] change order of composing style in SVG primitive [#19927](https://github.com/WordPress/gutenberg/pull/19927) +- [RNMobile] fix show appender and separator in Group block [#19908](https://github.com/WordPress/gutenberg/pull/19908) + +## Documentation + +- Add docs for LocalAutosaveMonitor and \_\_experimentalUpdateLocalAutosaveInterval [#19915](https://github.com/WordPress/gutenberg/pull/19915) +- Add markdownlint script to lint docs markup [#19855](https://github.com/WordPress/gutenberg/pull/19855) +- Added changelog entry for @wordpress/jest-preset-default [#19958](https://github.com/WordPress/gutenberg/pull/19958) +- Docs: Add details for format-js to @wordpress/scripts package [#19946](https://github.com/WordPress/gutenberg/pull/19946) +- Organize Contributors Guide [#19853](https://github.com/WordPress/gutenberg/pull/19853) +- fix typo "Th" to "The" [#19833](https://github.com/WordPress/gutenberg/pull/19833) πŸ‘ @nekomajin +- Storybook: Add Placeholder component story [#19734](https://github.com/WordPress/gutenberg/pull/19734) +- Update component to components in CONTRIBUTING.md [#19914](https://github.com/WordPress/gutenberg/pull/19914) + +## Various + +- Bump @babel/preset-env to 7.8.3 (Optional Chaining!) [#19831](https://github.com/WordPress/gutenberg/pull/19831) πŸ‘ @sainthkh +- Build Tooling: Build: Include block.json files in the build output [#19786](https://github.com/WordPress/gutenberg/pull/19786) +- Build Tooling: Bundle the icons package instead of using it as an external [#19809](https://github.com/WordPress/gutenberg/pull/19809) +- Code Quality: Add Prettier formatting script [#18048](https://github.com/WordPress/gutenberg/pull/18048) +- Code Quality: Add WordPress primitives package [#19781](https://github.com/WordPress/gutenberg/pull/19781) +- Code Quality: Block Editor: LinkControl: Align documentation with current behavior [#19736](https://github.com/WordPress/gutenberg/pull/19736) +- Code Quality: Block Editor: Refactor ObserveTyping as function component [#19881](https://github.com/WordPress/gutenberg/pull/19881) +- Code Quality: Block editor: move is-navigate-mode class to WritingFlow [#19868](https://github.com/WordPress/gutenberg/pull/19868) +- Code Quality: Block: use context to provide selected element [#19782](https://github.com/WordPress/gutenberg/pull/19782) +- Code Quality: Blocks: Rename patterns to variations in the Block API [#19966](https://github.com/WordPress/gutenberg/pull/19966) +- Code Quality: Eslint Plugin: Lint code formatting. [#19963](https://github.com/WordPress/gutenberg/pull/19963) +- Code Quality: Eslint: set line width to 80 [#19992](https://github.com/WordPress/gutenberg/pull/19992) +- Code Quality: Move Alignment, movers and trash icons to the icons package [#19944](https://github.com/WordPress/gutenberg/pull/19944) +- Code Quality: Move a dozen of block icons to the icons package [#19808](https://github.com/WordPress/gutenberg/pull/19808) +- Code Quality: Move more block SVGs to the icons package [#19834](https://github.com/WordPress/gutenberg/pull/19834) +- Code Quality: Move more block icons to the icons library [#19862](https://github.com/WordPress/gutenberg/pull/19862) +- Code Quality: Move more block icons to the icons package [#19838](https://github.com/WordPress/gutenberg/pull/19838) +- Code Quality: Move the insert dashicon to the icons package [#19943](https://github.com/WordPress/gutenberg/pull/19943) +- Code Quality: Multi-select: don't focus first selected block [#19762](https://github.com/WordPress/gutenberg/pull/19762) +- Code Quality: Paragraph block: remove min-height [#19835](https://github.com/WordPress/gutenberg/pull/19835) +- Code Quality: Paragraph block: remove unnecessary CSS after shortcuts removal [#19821](https://github.com/WordPress/gutenberg/pull/19821) +- Code Quality: Remove dead is-hovered selectors [#19870](https://github.com/WordPress/gutenberg/pull/19870) +- Code Quality: Remove editor dependency from the block library [#16160](https://github.com/WordPress/gutenberg/pull/16160) +- Code Quality: Remove unnecessary import from playground [#19893](https://github.com/WordPress/gutenberg/pull/19893) πŸ‘ @costasovo +- Code Quality: Replace all occurences of the yes dashicon with the check icon from the icons package [#19926](https://github.com/WordPress/gutenberg/pull/19926) +- Code Quality: RichText: try using hooks for wrapper component [#19095](https://github.com/WordPress/gutenberg/pull/19095) +- Code Quality: Try the link control in the link format [#19462](https://github.com/WordPress/gutenberg/pull/19462) +- Code Quality: Update: Removed editor store usage from native mobile block editor inserter [#18794](https://github.com/WordPress/gutenberg/pull/18794) +- Copy: Apply sentence case formatting to PanelBody titles [#19901](https://github.com/WordPress/gutenberg/pull/19901) +- Experimental: RichText API: Limit "prefix" transformations to Paragraph blocks [#19727](https://github.com/WordPress/gutenberg/pull/19727) +- Feature: Packages: New create-block package for block scaffolding [#19773](https://github.com/WordPress/gutenberg/pull/19773) +- Project Management: Project management: Add step that updates CHANGELOG files before npm releases [#19764](https://github.com/WordPress/gutenberg/pull/19764) +- Regression: Block editor: Alt+F10 shouldn't scroll to top [#19896](https://github.com/WordPress/gutenberg/pull/19896) +- Regression: Multi-selection: fix clearing with side click [#19787](https://github.com/WordPress/gutenberg/pull/19787) +- Regression: Update hover and focus selectors for Move to Trash to ensure the link is always red [#19974](https://github.com/WordPress/gutenberg/pull/19974) πŸ‘ @andrewserong +- Task: Add AnglePicker Component; Add useDragging hook [#19637](https://github.com/WordPress/gutenberg/pull/19637) +- Task: Add: Global styles css variables generation mechanism [#19883](https://github.com/WordPress/gutenberg/pull/19883) +- Task: Introduce Icons package [#17055](https://github.com/WordPress/gutenberg/pull/17055) +- Technical Prototype: Blocks: Match blocks in the inserter using keywords from patterns [#19243](https://github.com/WordPress/gutenberg/pull/19243) +- Various: Add a prop to RichText native to allow configuration of selection/caret color [#19635](https://github.com/WordPress/gutenberg/pull/19635) +- Various: Add mobile code owners for gallery block [#19829](https://github.com/WordPress/gutenberg/pull/19829) +- Various: Add/post documentation for apiFetch [#19759](https://github.com/WordPress/gutenberg/pull/19759) +- Various: Added conditions and new translation strings for BlockMover [#19757](https://github.com/WordPress/gutenberg/pull/19757) +- Various: Block Directory: Refactor the reducer by breaking out the block management actions into their own reducer. [#19330](https://github.com/WordPress/gutenberg/pull/19330) πŸ‘ @StevenDufresne +- Various: Block Editor: Link Control: Initialize inputValue state from value [#19737](https://github.com/WordPress/gutenberg/pull/19737) +- Various: Clarify when isEligible function is called [#19899](https://github.com/WordPress/gutenberg/pull/19899) πŸ‘ @bfintal +- Various: Components: Apply width-based modifier classes to Placeholder only when width is known [#19825](https://github.com/WordPress/gutenberg/pull/19825) +- Various: Core-data: do not publish outdated state to subscribers during updates [#19752](https://github.com/WordPress/gutenberg/pull/19752) πŸ‘ @alshakero +- Various: Disable Autocomplete in shortcode block [#19848](https://github.com/WordPress/gutenberg/pull/19848) πŸ‘ @chipsnyder +- Various: Do advanced rendering by hooking into render_block for navigation block [#19991](https://github.com/WordPress/gutenberg/pull/19991) +- Various: Do not use the deprecated package editor for InnerBlocks component [#19869](https://github.com/WordPress/gutenberg/pull/19869) πŸ‘ @Mahjouba91 +- Various: Expose @wordpress/icons to react-native [#19810](https://github.com/WordPress/gutenberg/pull/19810) +- Various: Fix card component sub-component example code [#19802](https://github.com/WordPress/gutenberg/pull/19802) πŸ‘ @ediamin +- Various: Fix, update, and sort _rc_ `hasProjectFile` filenames [#19994](https://github.com/WordPress/gutenberg/pull/19994) +- Various: Framework: Fix server-registered fixtures script [#19884](https://github.com/WordPress/gutenberg/pull/19884) +- Various: Innerblock Templates Docs Link Typo Issue Fixed [#19813](https://github.com/WordPress/gutenberg/pull/19813) πŸ‘ @delowardev +- Various: Lib: Limit `pre_render_block` extension. [#19989](https://github.com/WordPress/gutenberg/pull/19989) +- Various: Makes appenders visible only for the current selection [#19598](https://github.com/WordPress/gutenberg/pull/19598) +- Various: Navigation Block: Move the Link Settings panel [#19917](https://github.com/WordPress/gutenberg/pull/19917) +- Various: Navigation: Improve UX on adding links [#19686](https://github.com/WordPress/gutenberg/pull/19686) +- Various: Navigation: Manage navigation link appender visibility [#19846](https://github.com/WordPress/gutenberg/pull/19846) +- Various: Rich text: remove is-selected class [#19822](https://github.com/WordPress/gutenberg/pull/19822) +- Various: Shortcode Design Review [#19852](https://github.com/WordPress/gutenberg/pull/19852) πŸ‘ @chipsnyder +- Various: Style improvements for template previews [#19763](https://github.com/WordPress/gutenberg/pull/19763) +- Various: Testing: Use deterministic selectors for incremented IDs [#19844](https://github.com/WordPress/gutenberg/pull/19844) +- Various: Update Primitives README.md [#19876](https://github.com/WordPress/gutenberg/pull/19876) +- Various: [Mobile] Disable gallery size options on mobile in v1.21.0 [#19828](https://github.com/WordPress/gutenberg/pull/19828) +- Various: [Mobile] Fix gallery upload sync [#19941](https://github.com/WordPress/gutenberg/pull/19941) +- Various: [RNMobile] Add media edit icon to image block [#19723](https://github.com/WordPress/gutenberg/pull/19723) πŸ‘ @leandroalonso +- Various: [RNMobile] Correct isMobile condition in nested Media&Text [#19778](https://github.com/WordPress/gutenberg/pull/19778) +- Various: [RNMobile] Fix crash on list block controls [#19818](https://github.com/WordPress/gutenberg/pull/19818) +- Various: [RNMobile] Fix image preview with small image size selected [#19247](https://github.com/WordPress/gutenberg/pull/19247) +- Various: [RNMobile] Long-press on inserter to show options for "add above" and "add below" [#18791](https://github.com/WordPress/gutenberg/pull/18791) πŸ‘ @ceyhun +- Various: [RNMobile] Release v1.21.0 to master [#19854](https://github.com/WordPress/gutenberg/pull/19854) +- Various: [RNMobile] Revert change to fix Action Sheet [#19934](https://github.com/WordPress/gutenberg/pull/19934) πŸ‘ @leandroalonso +- Various: [RNMobile] Show the media edit icon only if the block is selected [#19961](https://github.com/WordPress/gutenberg/pull/19961) πŸ‘ @leandroalonso +- Various: [RNmobile] Upgrade to RN 0.61.5 [#19369](https://github.com/WordPress/gutenberg/pull/19369) + + + = 7.3.0 = diff --git a/docs/designers-developers/developers/data/data-core-block-editor.md b/docs/designers-developers/developers/data/data-core-block-editor.md index 10d031d436d50..588b1f27e3249 100644 --- a/docs/designers-developers/developers/data/data-core-block-editor.md +++ b/docs/designers-developers/developers/data/data-core-block-editor.md @@ -203,6 +203,23 @@ _Returns_ - `Array`: ClientIDs of the parent blocks. +# **getBlockParentsByBlockName** + +Given a block client ID and a block name, +returns the list of all its parents from top to bottom, +filtered by the given name. + +_Parameters_ + +- _state_ `Object`: Editor state. +- _clientId_ `string`: Block from which to find root client ID. +- _blockName_ `string`: Block name to filter. +- _ascending_ `boolean`: Order results from bottom to top (true) or top to bottom (false). + +_Returns_ + +- `Array`: ClientIDs of the parent blocks. + # **getBlockRootClientId** Given a block client ID, returns the root block from which the block is diff --git a/gutenberg.php b/gutenberg.php index 24b06d606747f..597e9672299ca 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -3,7 +3,7 @@ * Plugin Name: Gutenberg * Plugin URI: https://github.com/WordPress/gutenberg * Description: Printing since 1440. This is the development plugin for the new block editor in core. - * Version: 7.3.0 + * Version: 7.4.0-rc.1 * Author: Gutenberg Team * Text Domain: gutenberg * diff --git a/lib/compat.php b/lib/compat.php index cb85b3e3c72d7..99405ecaa5867 100644 --- a/lib/compat.php +++ b/lib/compat.php @@ -31,54 +31,49 @@ function gutenberg_safe_style_css_column_flex_basis( $attr ) { add_filter( 'safe_style_css', 'gutenberg_safe_style_css_column_flex_basis' ); /** - * Shim that hooks into `pre_render_block` so as to override `render_block` - * with a function that passes `render_callback` the block object as the - * argument. + * Adds a polyfill for the WHATWG URL in environments which do not support it. + * The intention in how this action is handled is under the assumption that this + * code would eventually be placed at `wp_default_packages_vendor`, which is + * called as a result of `wp_default_packages` via the `wp_default_scripts`. * - * @see https://core.trac.wordpress.org/ticket/48104 + * This can be removed when plugin support requires WordPress 5.4.0+. * - * @param string $pre_render The pre-rendered content. Default null. - * @param array $block The block being rendered. + * @see https://core.trac.wordpress.org/ticket/49360 + * @see https://developer.mozilla.org/en-US/docs/Web/API/URL/URL + * @see https://developer.wordpress.org/reference/functions/wp_default_packages_vendor/ * - * @return string String of rendered HTML. + * @since 7.3.0 + * + * @param WP_Scripts $scripts WP_Scripts object. */ -function gutenberg_provide_render_callback_with_block_object( $pre_render, $block ) { - global $post; - if ( 'core/navigation' !== $block['blockName'] ) { - return $pre_render; - } - - $source_block = $block; - - /** This filter is documented in src/wp-includes/blocks.php */ - $block = apply_filters( 'render_block_data', $block, $source_block ); - - $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); - $is_dynamic = $block['blockName'] && null !== $block_type && $block_type->is_dynamic(); - $block_content = ''; - $index = 0; - - foreach ( $block['innerContent'] as $chunk ) { - $block_content .= is_string( $chunk ) ? $chunk : render_block( $block['innerBlocks'][ $index++ ] ); +function gutenberg_add_url_polyfill( $scripts ) { + // Only register polyfill if not already registered. This prevents handling + // in an environment where core has updated to manage the polyfill. This + // depends on the action being handled after default script registration. + $is_polyfill_script_registered = (bool) $scripts->query( 'wp-polyfill-url', 'registered' ); + if ( $is_polyfill_script_registered ) { + return; } - if ( ! is_array( $block['attrs'] ) ) { - $block['attrs'] = array(); - } - - if ( $is_dynamic ) { - $global_post = $post; - - $prepared_attributes = $block_type->prepare_attributes_for_render( $block['attrs'] ); - $block_content = (string) call_user_func( $block_type->render_callback, $prepared_attributes, $block_content, $block ); - - $post = $global_post; - } + gutenberg_register_vendor_script( + $scripts, + 'wp-polyfill-url', + 'https://unpkg.com/polyfill-library@3.26.0-0/polyfills/URL/polyfill.js', + array(), + '3.26.0-0' + ); - /** This filter is documented in src/wp-includes/blocks.php */ - return apply_filters( 'render_block', $block_content, $block ); + did_action( 'init' ) && $scripts->add_inline_script( + 'wp-polyfill', + wp_get_script_polyfill( + $scripts, + array( + '\'URL\' in window' => 'wp-polyfill-url', + ) + ) + ); } -add_filter( 'pre_render_block', 'gutenberg_provide_render_callback_with_block_object', 10, 2 ); +add_action( 'wp_default_scripts', 'gutenberg_add_url_polyfill', 20 ); /** * Sets the current post for usage in template blocks. diff --git a/package-lock.json b/package-lock.json index 1d5a493bf8e4e..7f375d237a929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gutenberg", - "version": "7.3.0", + "version": "7.4.0-rc.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -10123,6 +10123,7 @@ "@wordpress/icons": "file:packages/icons", "@wordpress/is-shallow-equal": "file:packages/is-shallow-equal", "@wordpress/keycodes": "file:packages/keycodes", + "@wordpress/primitives": "file:packages/primitives", "@wordpress/rich-text": "file:packages/rich-text", "@wordpress/server-side-render": "file:packages/server-side-render", "@wordpress/url": "file:packages/url", @@ -10520,6 +10521,7 @@ "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-hooks": "^1.6.1", "globals": "^12.0.0", + "prettier": "npm:wp-prettier@1.19.1", "requireindex": "^1.2.0" } }, diff --git a/package.json b/package.json index 38f2036891596..081362bb0a2b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gutenberg", - "version": "7.3.0", + "version": "7.4.0-rc.1", "private": true, "description": "A new WordPress editor experience.", "author": "The WordPress Contributors", diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 20efdcbe2c69b..3f2dc80ae2090 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/a11y", - "version": "2.6.0", + "version": "2.7.0", "description": "Accessibility (a11y) utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/annotations/package.json b/packages/annotations/package.json index f2440087022d8..dffff978d8667 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/annotations", - "version": "1.10.0", + "version": "1.11.0", "description": "Annotate content in the Gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index 8bf265119dab4..9040c5a1591a9 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/api-fetch", - "version": "3.9.0", + "version": "3.10.0", "description": "Utility to make WordPress REST API requests.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/autop/package.json b/packages/autop/package.json index dab9b1330e4f6..9a4f5d7fbaaac 100644 --- a/packages/autop/package.json +++ b/packages/autop/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/autop", - "version": "2.5.1", + "version": "2.6.0", "description": "WordPress's automatic paragraph functions `autop` and `removep`.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json index 7de33046158ac..dc1f364e6b9bc 100644 --- a/packages/babel-plugin-import-jsx-pragma/package.json +++ b/packages/babel-plugin-import-jsx-pragma/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-import-jsx-pragma", - "version": "2.4.0", + "version": "2.5.0", "description": "Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Transform plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json index 1db4205d3b36f..2219269afd4b6 100644 --- a/packages/babel-plugin-makepot/package.json +++ b/packages/babel-plugin-makepot/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-makepot", - "version": "3.3.0", + "version": "3.4.0", "description": "WordPress Babel internationalization (i18n) plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-preset-default/CHANGELOG.md b/packages/babel-preset-default/CHANGELOG.md index 03a4a6fe228cc..16bd181f83a30 100644 --- a/packages/babel-preset-default/CHANGELOG.md +++ b/packages/babel-preset-default/CHANGELOG.md @@ -1,5 +1,7 @@ ## Master +## 4.10.0 (2020-02-04) + ### New Feature - The bundled `@babel/core` dependency has been updated from requiring `^7.4.4` to requiring `^7.8.3`. All other Babel plugins were updated to the latest version. `@babel/preset-env` has now ESMAScript 2020 support enabled by default (see [Highlights](https://babeljs.io/blog/2020/01/11/7.8.0#highlights)). diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json index b27ce490af91b..9661558f620a4 100644 --- a/packages/babel-preset-default/package.json +++ b/packages/babel-preset-default/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-preset-default", - "version": "4.9.0", + "version": "4.10.0", "description": "Default Babel preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/base-styles/_colors.scss b/packages/base-styles/_colors.scss index 2a8b07f79364c..d6fd0e2b968ce 100644 --- a/packages/base-styles/_colors.scss +++ b/packages/base-styles/_colors.scss @@ -89,3 +89,14 @@ $blue-medium-focus-dark: #fff; $alert-yellow: #f0b849; $alert-red: #d94f4f; $alert-green: #4ab866; + +// Navigation. +$light-style-sub-menu-background-color: #fff; +$light-style-sub-menu-border-color: #ddd; +$light-style-sub-menu-text-color: #111; +$light-style-sub-menu-text-color-hover: #333; + +$dark-style-sub-menu-background-color: #333; +$dark-style-sub-menu-border-color: #111; +$dark-style-sub-menu-text-color: #fff; +$dark-style-sub-menu-text-color-hover: #eee; diff --git a/packages/base-styles/package.json b/packages/base-styles/package.json index 0c47cd8b3ac82..ef05584ee46ea 100644 --- a/packages/base-styles/package.json +++ b/packages/base-styles/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/base-styles", - "version": "1.2.0", + "version": "1.3.0", "description": "Base SCSS utilities and variables for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/blob/package.json b/packages/blob/package.json index a64f8bf3f7fd7..86a19462a1e21 100644 --- a/packages/blob/package.json +++ b/packages/blob/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/blob", - "version": "2.6.0", + "version": "2.7.0", "description": "Blob utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json index bfe40f6669b51..e4a605d09bafe 100644 --- a/packages/block-directory/package.json +++ b/packages/block-directory/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-directory", - "version": "1.3.0", + "version": "1.4.0", "description": "Extend editor with block directory features to search, download and install blocks.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index 49b4e4fd8fa59..e7780f68a3e25 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-editor", - "version": "3.5.0", + "version": "3.6.0", "description": "Generic block editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-editor/src/components/block-mover/index.js b/packages/block-editor/src/components/block-mover/index.js index 7e29326458fd1..1a7290b10dcb0 100644 --- a/packages/block-editor/src/components/block-mover/index.js +++ b/packages/block-editor/src/components/block-mover/index.js @@ -59,6 +59,7 @@ export class BlockMover extends Component { instanceId, isHidden, rootClientId, + hideDragHandle, } = this.props; const { isFocused } = this.state; const blocksCount = castArray( clientIds ).length; @@ -122,21 +123,23 @@ export class BlockMover extends Component { onBlur={ this.onBlur } /> - - { ( { onDraggableStart, onDraggableEnd } ) => ( -