Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: WordPress/gutenberg
base: v10.0.0
head repository: WordPress/gutenberg
compare: v10.7.0
This comparison is big! We’re only showing the most recent 250 commits
Commits on May 07, 2021
* Release script: Update react-native-editor version to 1.52.0

* Release script: Update with changes from 'npm run core preios'

* Updating react-native-editor change log

* Release script: Update react-native-editor version to 1.52.1

* Release script: Update with changes from 'npm run core preios'

* Moves hermes and react-native mirror to S3 (#31441)

* Update release notes

Co-authored-by: Cameron Voell <cameronvoell@gmail.com>
Co-authored-by: Oguz Kocer <oguzkocer@users.noreply.github.com>
Co-authored-by: David Calhoun <438664+dcalhoun@users.noreply.github.com>
Commits on May 08, 2021
* Post Comments: Add some basic CSS to the post comments block
Preparatory work for putting all rich text behaviours into a single ref callback hook.
* First pass at docs for the Widgets Block Editor

* Update toc.json

* adds a few rewrodings in an attempt to make the upgrade more central and the wording more consistent and less verbose

* updated manifest with heading changes

Co-authored-by: Andrei Draganescu <github@andreidraganescu.info>
)

* Clear selected block when focusing on element outside the editor

* Add comments

* Add tests

* Fix lint errors
* Block popover: move scroll handling to block tools

* Adjust tests
Commits on May 10, 2021
* Update components to use 'useMenuEntityProp' for convenience
* Rich text: extract internal delete handling

* Use stored record
…ync (#31602)

* Ensure post_tag case is covered in both implementations

* Bring implementation into line with Nav block implementation
…31055)

* Add dedicated Block Styles page under Block API directory
* fix(visual-editor): change cursor of block-styles to pointer

* fix(block-styles): change cursor of block-styles to pointer
Co-authored-by: jasmussen <joen@automattic.com>
…act as implementation detail for the block editor) (#31664)

* Rich text: extract caret-in-format handling

* Don't reset active formats on refocus

* Add e2e test
…tterns list (#31640)

 The fixed background doesn't work in this context and not really needed here so switches to scrolling instead

Co-authored-by: Glen Davies <glen.davies@a8c.com>
Commits on May 11, 2021
 - @wordpress/e2e-tests@2.1.5
 - @wordpress/scripts@15.0.1
* fix core-block-patterns support on GB

* return early

* do not register any GB patterns

Co-authored-by: ntsekouras <ntsekouras@outlook.com>
…g/theme. (#31520)

* updated base results

* update search results

* add comment

* add default value for area prop

* Update packages/block-library/src/template-part/edit/selection/template-part-previews.js

Co-authored-by: Dávid Szabó <david.szabo97@gmail.com>

* show all variations by default for general/uncategorized case

Co-authored-by: Dávid Szabó <david.szabo97@gmail.com>
* Rich text: fix native block implementation

* Omit native props for web version

* Extract common utils
* Use column gap for button blocks

* Update style.scss
* add support for unit step per unit type

* remove default step value from CSS_UNITS const

* add react native support

* missed step on native RangeCell
add comments

* allow props to override unit steps

* Update packages/components/src/unit-control/index.js

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>

* updates from review ->
remove setting default first unit
tidy code + comments

* Use capitals in comments

* Use block commments instead of single line

* Apply suggestions from code review

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>
Commits on May 12, 2021
* Fix checks to display spacing support controls
* Create EmbedWrapper component to replace divs on native

* Create native EmbedLoading component

* Create native EmbedPlacholder component

* Create native EmbedLoading component

* Do not show any Embed variations on native

* Enable Embed block in dev mode

* Add Embed block to initial html example

* implemented embed-placeholder

* removed onSubmit until it is required by the bottom sheet logic.

* Utilized platform specific mechanisms to determine the placeholder label

* Changed the accessibilityHint to link to match the design specifications

* removed embed wrapper.

* added flex : 1 to resolve shrinking.

* removed embed test html that came from the other base branch

* removed files from the base branch and removed unneeded lines and edits.

* adding missing end of source newline.

* The EmbedPlaceholder now receives focus.

* Added flex : 1 to the native useBlockProps & passed focus to placeholder

Co-authored-by: Ceyhun Ozugur <ceyhunozugur@gmail.com>
)

* Add enableCaching param in fetch request

* Add enableCaching to native demo project

* Add unit test for shouldEnableCaching

* Update react-native-editor changelog
* Position parent button perfectly above switcher.

* Fix positioning of horizontal switcher icon.
…31661)

* typo

* Delete color() function

* Use the COLORS map directly, instead of the colors() function

* changelog

* Remove changelog entry
* Implement responsive navigation menu

Gives the user the option to have the Navigation Block show up behind a
button on smaller screens.
This menu can be controlled with the keyboard.

* only hide closing button if menu is closed

Make sure that the button does not disappear when resizing the viewport
while the menu is open.

* make sure frontend.js is only being loaded once

* Fix issues with open modal.

* make sure scripts are only loaded once

* Add a focus z index so focus isn't cropped.

* Fix ariaHidden

* Fix color issue.

* Fix safari issue.

* only enqueue frontend script if needed

Needed when:
- Responsive navigation is on.
- Script hasn't been loaded already.

Also, only attempt to load the file if it exists. This only really guards against
potential build problems, as in theory it should never be absent.

* use isResponsive instead of responsiveNavigation

* Fix modal id

* Update package-lock, move deps to correct place

* Fix aria-hidden label in the editor

* Set responsiveness off by default

* Add missing aria attributes

* update e2e fixture

* remove unnecessary context declaration

* remove file existence check

* Tests responsiveness on preview page

Also add function to turn responsiveness on.

* Refactor server side render of nav menu

Early return if responsiveness is off.

* Make sure toggle button labels are translatable

* Only render open button if menu is closed

* Remove duplicate CSS from rebase.

* Fix focus cropping issue.

* Simplify overlay style.

* Fix for page list.

* Remove a few todos.

* Fix overlay on desktop breakpoints style, and focus styles.

* Small transparency fix.

* keep parameter order consistency

* Address feedback

* Update packages/block-library/src/navigation/frontend.js

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>

* remove no-longer needed css rules

* edit redundant callback definition

Co-authored-by: jasmussen <joen@automattic.com>
Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>
…31646)

* Remove config utility function in favour of using the values directly

* changelog

* Remove changelog entry

Co-authored-by: Ella van Durpe <wp@iseulde.com>
The block template resolution algorithm is quite complex, as it has to cover quite a lot of different possible cases resulting from various combinations of
- WP's "old" template hierarchy (including custom page templates, and child themes)
- block templates.

Things become especially complex when there are e.g. "oldschool" PHP templates with higher specificity than the available block templates; or when a child theme has a PHP template with equal specificity as the parent theme's corresponding block template.

For more discussion on this, see #31399. Examples of previous iterations that sought to refine the algorithms' behavior include #29026, #30599, #31123, and #31336. This PR's goal is to eventually cover all of those cases.
* Refactor isContainerRelated to not depends on a whitelist

* Refactor to use hasFullWidthSupport and hasParentFullWidthSupport

* Removed unsed innerContainers.
In `gutenberg_override_query_template()`, we used to allow for a missing `$templates` argument (in which case it defaulted to an empty array), which was previously needed (when we were calling `gutenberg_override_query_template()` from another callsite that couldn't provide the template hierarchy as an argument). However, we don't need to allow for that case anymore, as `gutenberg_override_query_template()` is only ever called through the [`{type}_template` filter](https://developer.wordpress.org/reference/hooks/type_template/), which always includes a `$templates` argument.
Commits on May 13, 2021
* Add transform for group block to cover block.

- Copies inner blocks.
- Uses existing background color or gradient if it's available. Otherwise, defaults to a white background to avoid prompt for image/color.

* Only offer Group to Cover transform when Group has a background.

* Updated comment + Use `createBlocksFromInnerBlocksTemplate`.

* Pass `innerBlocks` directly to `createBlock`.
* disabled featured image banner on iOS.

* Added CHANGELOG entry.

* check if the featured image id is undefined before performing operation
The template loader logic has grown a bit convoluted due to the recent addition of the concept of hybrid themes (i.e. both PHP and block templates allowed in one theme) and subsequent bug fixes (some of them related to child themes, others to custom page templates). #31498 had added unit test coverage to (hopefully!) cover exemplary cases from all those categories.

This allows us to more confidently simplify (and later, if needed, further extend) the template loader algorithm.

The core idea for simplifcation in this PR is as follows: 

`gutenberg_override_query_template( $template, $type, $templates)` is fed the results of Core's own template resolution algorithm. It provides a list of candidate `$templates` (e.g. `array( 'page-home.php', 'page-123.php', 'page.php' )`), and, if a matching template PHP file could be found in the current theme (including child and parent themes), that file's path in `$template` (e.g. `/var/www/html/wp-content/themes/test-theme/page-123.php`).

This means when attempting to find a block template, we iterate over `$templates`, but we cut off at the entry corresponding to our fallback PHP template (in the example case, we only pass `array( 'page-home.php', 'page-123.php' )` to `gutenberg_resolve_template` (the function that retrieves block templates)), since we're only interested to find block template counterparts for those candidate slugs (which have higher or equal specificity as our fallback PHP template), but not in any matches with lower specificity (e.g. `/var/www/html/wp-content/themes/test-theme/block-templates/page.html`).

The new logic is further explained in code comments.
#31606)

* Ensure post_tag case is covered in both implementations

* Prepare Navigation block conversion functions to become canonical

I had a change of direction

* Remove additional dependency and cenralise all mapping logic

* Update return signature to match what will be required in Editor

* Duplcate Block mapping utils and apply to Navigation Editor

* Convert tests to menuItemsToBlocks

* Add duplicate tests in Navigation block

* Mock out createBlock in tests to avoid requiring block data across packages
* Add e2e tests for unsaved changes warning
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Commits on May 14, 2021
* Release script: Update react-native-editor version to 1.52.0

* Release script: Update with changes from 'npm run core preios'

* Updating react-native-editor change log

* Release script: Update react-native-editor version to 1.52.1

* Release script: Update with changes from 'npm run core preios'

* Moves hermes and react-native mirror to S3 (#31441)

* Update release notes

* Release script: Update react-native-editor version to 1.52.2

* Release script: Update with changes from 'npm run core preios'

* [RNMobile] Disable featured image banner on iOS (#31681)

* disabled featured image banner on iOS.

* Added CHANGELOG entry.

* check if the featured image id is undefined before performing operation

* updated CHANGELOG with beta fix.

Co-authored-by: Cameron Voell <cameronvoell@gmail.com>
Co-authored-by: Carlos Garcia <fluiddot@gmail.com>
Co-authored-by: Oguz Kocer <oguzkocer@users.noreply.github.com>
Co-authored-by: David Calhoun <438664+dcalhoun@users.noreply.github.com>
* fix to  color picker

* Use onChange callback directly

* Update rich-text e2e test

Co-authored-by: Mitchell Austin <mr.fye@oneandthesame.net>
Unless it's set by the theme or the user, so themes without theme.json can introduce its own fallback mechanism.
* Adjust to count numbers as words

* Put back the missing range
* Add custom header to BottomSheet

* SegmentedControl mobile component exported

* Add Reusable blocks to inserter menu with tabs

* Add native version of inserter-list-item

* Add mobile version of block-types-list component

* Add getWidth to mobile version of inserter-list-item component

* Add blocks-tab mobile version to inserter component

* Add reusable-blocks-tab mobile version to inserter component

* Inserter menu mobile version refactor to use new tabs

* Lint fixes in inserter menu components

* README of block-types-list component updated with mobile changes

* modal prefix removed from inserter-list-item style names

* blocks-tab renamed to block-types-tab in inserter menu

* add block-types-tab UI test

* Add reusable-blocks-tab UI test

* Remove unused import from block types list

* Change key calculation for block types list component

Block name's field was being used which is not unique so it has been changed to id field.

* Fix style format issue in inserter list item

* Add header prop to BottomSheet

* Add header height to max height calculation

* Move inserter search form to bottom sheet header

* Update BlockTypesList to functional component

* Add use clipboard block hook

* Use block types list in search results

* Remove inserter list item native files

* Cleanup inserter native styles

* Update platform specific styles

* Fix styles import

* Update android input

* Replace search icone with Gridicon

* Remove touchable highlight component

It wasn't doing much

* Refactor input form

* Clean up style generation

* Rename input container class

* Fix input container active styling

* Update input button styles

* Fix input button on Android

* Fix iOS active search styles

* Tighten up iOS input buttons

* Align items in icon button

* Use elevation for input shadow

* Updates for dark mode

* Fix icon fill color

* Clean up styles

* Fix key calculation in BlockTypesList

* Add block-editor store definition in ReusableBlocksTab

* Limit the number of lines of block title

* Add inserter tabs component

* Add inserter tabs in inserter menu

* Add search focus to inserter menu

* Unify keyboard listeners in bottom sheet component

Additionally a layout animation has been added to fix potential visual glitches.

* Update useClipboardBlock hook

* Add visual improvements to inserter menu

* Set maximum items per page of reusable blocks

* Add new color scheme hook

* Refactor style generation

* Fix style selectors

* Fix fill color on icons

* Refactor native inserter tabs

The tab animation is now done in the container instead of its children.

* Add layout animations in inserter menu

The layout animations will be triggered when the search value changes (only on iOS because Android this type of animations don't work properly).

* Add layout animation fixes in bottom sheet

* Increase max listeners on iOS to prevent warning

* Add root client id to search results

* Hide tabs when is not main inserter

* Force layout calculation on block types list mount

* Improve inserter menu layout animations for Android

* Add layout animations to bottom sheet component

* Update keyboard layout animation

* Add keyboard show/hide callbacks to bottom sheet

* Remove search form height

This value that was being used for calculating the padding bottom of the search results view is no longer needed.

* Prevent multiple layout animations on Android

* Use keyboard events instead focus for display tabs

* Enable layout animation of empty search for Android

* Update block-types-list README

* Add last scroll events to inserter tabs

The last scroll events are used to notify upstream when the current tab of the inserter menu has changed. This is a workaround for the bottom-sheet component to manage multiple scrollable children.

* Fix block types tab unit test

* Add landscape mode support in inserter tabs

* Revert "Merge branch 'update/inserter-block-search' into rnmobile/add/2575-reusable-blocks-inserter"

This reverts commit 4df39cd, reversing
changes made to 575c58f.

# Conflicts:
#	packages/block-editor/src/components/inserter/search-form.native.js
#	packages/block-editor/src/components/inserter/style.native.scss

* Revert "Add search focus to inserter menu"

This reverts commit cadfaa6.

# Conflicts:
#	packages/block-editor/src/components/inserter/menu.native.js
#	packages/block-editor/src/components/inserter/search-form.native.js

* Revert "Increase max listeners on iOS to prevent warning"

This reverts commit 110a513.

* Limit layout animation to header changes in bottom sheet

* Enable reusable tab when inserting in inner blocks

* Remove hasReusableBlocks from inserter menu

* Apply BEM naming to block types list styles

* Rename block types tab to match web version

* Move tabs container style to a constant

* Rename block types tab function to match web version

* Rename import of block types list in inserter unit tests

* Move bottom-sheet keyboard handlers to constants

* Update inserter tabs to use wrapper width for animations

* Include safe area inset on the block types list

* Update react-native-editor changelog

Co-authored-by: jhnstn <jason@readysetandco.com>
 - @wordpress/a11y@3.0.0
 - @wordpress/annotations@2.0.0
 - @wordpress/api-fetch@5.0.0
 - @wordpress/autop@3.0.0
 - @wordpress/babel-plugin-import-jsx-pragma@3.0.4
 - @wordpress/babel-plugin-makepot@4.1.3
 - @wordpress/babel-preset-default@6.0.0
 - @wordpress/base-styles@3.4.4
 - @wordpress/blob@3.0.0
 - @wordpress/block-directory@2.0.0
 - @wordpress/block-editor@6.0.0
 - @wordpress/block-library@3.0.0
 - @wordpress/block-serialization-default-parser@4.0.0
 - @wordpress/block-serialization-spec-parser@4.0.0
 - @wordpress/blocks@9.0.0
 - @wordpress/browserslist-config@4.0.0
 - @wordpress/components@14.0.0
 - @wordpress/compose@4.0.0
 - @wordpress/core-data@3.0.0
 - @wordpress/create-block-tutorial-template@1.2.2
 - @wordpress/create-block@2.3.1
 - @wordpress/custom-templated-path-webpack-plugin@2.0.4
 - @wordpress/data-controls@2.0.0
 - @wordpress/data@5.0.0
 - @wordpress/date@4.0.0
 - @wordpress/dependency-extraction-webpack-plugin@3.1.3
 - @wordpress/deprecated@3.0.0
 - @wordpress/docgen@1.17.1
 - @wordpress/dom-ready@3.0.0
 - @wordpress/dom@3.0.0
 - @wordpress/e2e-test-utils@5.1.4
 - @wordpress/e2e-tests@2.1.6
 - @wordpress/edit-post@4.0.0
 - @wordpress/edit-site@2.0.0
 - @wordpress/edit-widgets@2.0.0
 - @wordpress/editor@10.0.0
 - @wordpress/element@3.0.0
 - @wordpress/env@4.0.4
 - @wordpress/escape-html@2.0.0
 - @wordpress/eslint-plugin@9.0.5
 - @wordpress/format-library@2.0.0
 - @wordpress/hooks@3.0.0
 - @wordpress/html-entities@3.0.0
 - @wordpress/i18n@4.0.0
 - @wordpress/icons@3.0.0
 - @wordpress/interface@3.0.0
 - @wordpress/is-shallow-equal@4.0.0
 - @wordpress/jest-console@4.0.4
 - @wordpress/jest-preset-default@7.0.4
 - @wordpress/jest-puppeteer-axe@3.0.4
 - @wordpress/keyboard-shortcuts@2.0.0
 - @wordpress/keycodes@3.0.0
 - @wordpress/lazy-import@1.2.4
 - @wordpress/library-export-default-webpack-plugin@2.0.4
 - @wordpress/list-reusable-blocks@2.0.0
 - @wordpress/media-utils@2.0.0
 - @wordpress/notices@3.0.0
 - @wordpress/npm-package-json-lint-config@4.0.4
 - @wordpress/nux@4.0.0
 - @wordpress/plugins@3.0.0
 - @wordpress/postcss-plugins-preset@3.0.1
 - @wordpress/postcss-themes@4.0.1
 - @wordpress/prettier-config@1.0.4
 - @wordpress/primitives@2.0.0
 - @wordpress/priority-queue@2.0.0
 - @wordpress/project-management-automation@1.12.4
 - @wordpress/react-i18n@2.0.0
 - @wordpress/redux-routine@4.0.0
 - @wordpress/reusable-blocks@2.0.0
 - @wordpress/rich-text@4.0.0
 - @wordpress/scripts@16.0.0
 - @wordpress/server-side-render@2.0.0
 - @wordpress/shortcode@3.0.0
 - @wordpress/stylelint-config@19.0.4
 - @wordpress/token-list@2.0.0
 - @wordpress/url@3.0.0
 - @wordpress/viewport@3.0.0
 - @wordpress/warning@2.0.0
 - @wordpress/widgets@1.0.0
 - @wordpress/wordcount@3.0.0
)

* Moving managing data for Navigation entities into hook

* Refactor to individual hooks for pages and menus entities

* Refactor menuItem to seperate entity

* Perf optimise with empty dep array on useSelect

* Move has* into the select

* Tidy up menu items from menus hook

* Fix error caused by moving has* within the useSelect
…31689)

* [Automated Testing]: Increase test coverage for pattern transforms

* Update packages/block-editor/src/store/test/selectors.js

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>

Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>
Currently, patterns show up in the inserter even if they contain a block that's not on the allowed blocks list. Blocks aren't checked recursively in the patterns, only top level blocks. Even though they show up, we can't insert them since the blocks are disallowed. This PR checks recursively for disallowed blocks.
…31795)

* Uses screen as a reference for calculating height
…#31448)

This PR patches the package by checking whether the container is an iframe window. In that case it scrolls the scrollingElement instead of the window. We can't scroll the iframe window because it's an iframe so the typical window.scrollTo() doesn't work.
* try ensuring block is registered first?

* initially register variations on server side, patch isActive and icons in JS

* format php

* use yoda conditions, i must

* fix import

* document side effect

* actually document it...

* add fallback variations

* add inserter scope
* use names and icons for the variation

* update copy and button labels

* add area to dep array

* Copy

* update casing in e2e test selectors

* update casing

Co-authored-by: James Koster <james@jameskoster.co.uk>
Commits on May 15, 2021
…ve input (#31301)

* [Block Library - Query]: Allow term addition from user case-insensitive input

* fix typo
Commits on May 17, 2021
)

This prevents a false positive when the box control checks whether it has any unlinked values defined.
* Try: Allow space between on page list.

* Update packages/block-library/src/page-list/editor.scss

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>

* remove changes that weren't part of the original PR

* Add line that wasn't part of the PR

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
* Remove experimental flag

* Remove in tests
* Move the Inserter sidebar in its own file

* Add the new list view state

* Add the list view sidebar

* Bring changes to the e2e tests

* Fix incorrect class name

* Add missing dependencies array

* Fix shortcuts

* On select block, move caret to the end of its text

* Fix e2e test

* Fix incorrect action prop

* update edit-post-layout references

* fix e2e tests

Co-authored-by: ntsekouras <ntsekouras@outlook.com>
Our SVN plugin upload workflow currently clears the `Stable tag:` field in `readme.txt` when preparing the plugin for upload to SVN. 

This commit fixes the issue by using `awk` rather than `grep` + a RegEx. Another advantage of the new solution is that it can be easily tested on a non-bash shell (e.g. on macOS).
* Release script: Update react-native-editor version to 1.53.0

* Release script: Update with changes from 'npm run core preios'

* Update changelog to reflect release

Co-authored-by: Amanda Riu <amanda.riu@automattic.com>
* Enable justification for burger menu.

* Apply justification to burger.

* Fix right justification bleed into overlay menu.
Commits on May 18, 2021
* Make the block toolbar sticky and add some styles for the editor topbar

* Set top position

* Update z-indices and responsive margins

* Remove sticky positioning from topbar
#31778)

* Add color support to individual column block
* Add padding support to the individual column block, remove CSS rule

Co-authored-by: Andrew Serong <andrewserong@users.noreply.github.com>
…rt (#30885)

* added the help behavior to the cell component of the bottomsheet.

* Passed the autoplay help prop to ToggleControl. Changed the order.

* Added CHANGELOG entry for cell help change..

* Used platform specific help behavior for video block.

* Put Audio block's autoplay setting at the top of the panel.

* Utilized sizing from SCSS Variables instead of hardcoding values.

* Added PR number to the CHANGELOG entry.

* added platform specific styling for cellHelpLabel

* Made autoplay label consistent across web and mobile.

* added help support to cell's accessibility capabilities.

* added help support to switch cell accessibility capabilities

* utilised cellProps.help instead of help so the props are passed down
* replace string literals with store definitions in block-editor

* revert native files changes
* Replace string literals with store definitions in block-library

* revert changes to native files
* Remove launch.json file from version control

* Add example launch.json file
Switches the quick start to use the same `gutenpride` app name used later in the tutorial.
* Add get title to missing block

The block's title is now only translated when is gets registered, for unsupported blocks since they're not registered, title has be explicitly translated.

* Update react-native-editor changelog
Commits on May 19, 2021
* Implement basic features framework

* Implement top toolbar mode

* Persist preferences

* Implement keyboard shortcut help modal and help option

* Implement keep caret inside block option

* Fix shortcut for keyboard shortcut modal

* Remove showIconLabels

* Remove hidden block types

* Add missing import for more menu styles

* Replace edit-post references with edit-widgets

* Hide undo redo and block navigation on mobile viewports

* Switch to isMedium viewport
* Remove widget screen empty link in admin

* On admin, check if the widget screen menu link exists in the admin bar

* Update lib/init.php

Co-authored-by: Koen Van den Wijngaert <koen@neok.be>

Co-authored-by: Koen Van den Wijngaert <koen@neok.be>
* Widgets: Add Welcome Guide component

* Widgets: Show different Welcome Guide message when all widgets are block widgets

* Widgets: Hook Welcome Guide up to welcomeGuide feature

* Disable welcome guide in Widgets E2E tests
* Add basic more menu framework

* Hook up top toolbar and contain caret inside blocks preferences to editor settings

* Introduce keyboard shortcut modal

* Fix modal styles

* Add shortcut for modal itself

* Tidy up bottom margin when top toolbar is active

* Toolbar adjustments

* Update package lock
* Widgets Customizer: Add Welcome component

* Widgets Customizer: Show different message when new user and area contains entirely blocks

* Widgets Customizer: Rename Welcome to WelcomeGuide and hook it up to welcomeGuide setting

* Disable welcome guide in Widgets Customizer E2E tests

* Adjust line heights and margins in Customizer WelcomeGuide
* Add info on how to connect to the MySQL database

* Tweaks to make steps clearer

* Refinements
* Add undo redo and debounce

* Style the undo redo button

* Bail out updates if the next widgets are the same

* Add debounce

* Add missing keyboard shortcuts

* Fix styling
Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
Co-authored-by: Carolina Nymark <hi@themesbycarolina.com>
…le (#31524)

Co-authored-by: André <nosolosw@users.noreply.github.com> (+3 squashed commits)
Co-authored-by: Riad Benguella <benguella@gmail.com>
Co-authored-by: ntsekouras <ntsekouras@outlook.com>
…t as option. (#31720)

* filter out current entity, apply message where necessary

* hide replace button when no options exist

* ensure boolean for enableSelection

* reverse params on createTemplatePartId function

* refactor group title translation to helper function, re-add fallback we should never see

* make new button primary when the only button

* contextual instructions based on options

* fix test

* fix other test
Commits on May 20, 2021
…32016)

* Replace the Cancel workflow with native GitHub Action functionality.

Recently, GitHub introduced the `concurrency` option for ensuring that only a single job or workflow using the same concurrency group will run at a time.

Currently, there is a Cancel workflow in the repo that aims to accomplish the same thing. However, when a backlog exists, the Cancel workflow for each commit does not run until its turn in the queue is reached. This can result in the backlog ballooning.

The `concurrency` option in GitHub Actions runs a check when a workflow is queued, skipping the need to wait for an available runner to cancel old workflows.
* Use 'get_menu_locations' method for the menu location links.
* Adds unit tests.
* Move Sidebar into a separate directory.
* Moves settings from InspectorControl into the Sidebar.
* Fixes selector for e2e tests.
* Wrap "no menu locations" message in the panel body.
* Use two sidebar "system."
* Incorporate tabs in the sidebar.
* Fix condition for global styles on mobile

* Set mobile context if theme has support
… local Browserslist configuration (#31898)

* Babel Preset Default: Configure @babel/preset-env preset to respect a local Browserslist configuration

* Replace nullish coalescing operator

* Rename variable for clarity

* Update browserslist to 4.16.6

* Clean up package-lock.json

* Update caniuse-lite

* Fix prettier issue

* Update changelog for scripts too
…nt is empty (#31997)

* Post content block: apply the_content filter before checking if content is empty

* Simplify duplicate logic
* Actually hide submenus when they are not toggled.

* Submenus shouldn't take space unless they're actually open.

* Fix for page list.
Looks like the intention was to write `package` instead of `packages` here.
Commits on May 22, 2021
 - @wordpress/a11y@3.1.0
 - @wordpress/annotations@2.1.0
 - @wordpress/api-fetch@5.1.0
 - @wordpress/autop@3.1.0
 - @wordpress/babel-preset-default@6.1.0
 - @wordpress/base-styles@3.5.0
 - @wordpress/blob@3.1.0
 - @wordpress/block-directory@2.1.0
 - @wordpress/block-editor@6.1.0
 - @wordpress/block-library@3.1.0
 - @wordpress/block-serialization-default-parser@4.1.0
 - @wordpress/block-serialization-spec-parser@4.1.0
 - @wordpress/blocks@9.1.0
 - @wordpress/components@14.1.0
 - @wordpress/compose@4.1.0
 - @wordpress/core-data@3.1.0
 - @wordpress/data-controls@2.1.0
 - @wordpress/data@5.1.0
 - @wordpress/date@4.1.0
 - @wordpress/deprecated@3.1.0
 - @wordpress/dom-ready@3.1.0
 - @wordpress/dom@3.1.0
 - @wordpress/e2e-test-utils@5.2.0
 - @wordpress/e2e-tests@2.2.0
 - @wordpress/edit-post@4.1.0
 - @wordpress/edit-site@2.1.0
 - @wordpress/edit-widgets@2.1.0
 - @wordpress/editor@10.1.0
 - @wordpress/element@3.1.0
 - @wordpress/escape-html@2.1.0
 - @wordpress/format-library@2.1.0
 - @wordpress/hooks@3.1.0
 - @wordpress/html-entities@3.1.0
 - @wordpress/i18n@4.1.0
 - @wordpress/icons@4.0.0
 - @wordpress/interface@3.1.0
 - @wordpress/is-shallow-equal@4.1.0
 - @wordpress/keyboard-shortcuts@2.1.0
 - @wordpress/keycodes@3.1.0
 - @wordpress/list-reusable-blocks@2.1.0
 - @wordpress/media-utils@2.1.0
 - @wordpress/notices@3.1.0
 - @wordpress/nux@4.1.0
 - @wordpress/plugins@3.1.0
 - @wordpress/postcss-plugins-preset@3.1.0
 - @wordpress/primitives@2.1.0
 - @wordpress/priority-queue@2.1.0
 - @wordpress/react-i18n@2.1.0
 - @wordpress/redux-routine@4.1.0
 - @wordpress/reusable-blocks@2.1.0
 - @wordpress/rich-text@4.1.0
 - @wordpress/scripts@16.1.0
 - @wordpress/server-side-render@2.1.0
 - @wordpress/shortcode@3.1.0
 - @wordpress/token-list@2.1.0
 - @wordpress/url@3.1.0
 - @wordpress/viewport@3.1.0
 - @wordpress/warning@2.1.0
 - @wordpress/widgets@1.1.0
 - @wordpress/wordcount@3.1.0
…31279)

* Babel Preset Default: Add polyfill for WordPress built from core-js

* Address feedback from code review
Commits on May 24, 2021
 - @wordpress/block-directory@2.1.1
 - @wordpress/block-library@3.2.0
 - @wordpress/customize-widgets@1.0.0
 - @wordpress/e2e-tests@2.2.1
 - @wordpress/edit-navigation@1.9.0
 - @wordpress/edit-post@4.1.1
 - @wordpress/edit-site@2.1.1
 - @wordpress/edit-widgets@2.1.1
 - @wordpress/react-native-editor@1.53.1
* Plugin: Update block editor settings to work with context

* Update block-editor.php
Commits on May 25, 2021
Co-authored-by: ntsekouras <ntsekouras@outlook.com>
 - @wordpress/block-directory@2.1.2
 - @wordpress/block-library@3.2.1
 - @wordpress/core-data@3.1.1
 - @wordpress/customize-widgets@1.0.1
 - @wordpress/edit-navigation@1.9.1
 - @wordpress/edit-post@4.1.2
 - @wordpress/edit-site@2.1.2
 - @wordpress/edit-widgets@2.1.2
 - @wordpress/editor@10.1.1
 - @wordpress/react-native-editor@1.53.2
 - @wordpress/reusable-blocks@2.1.1
 - @wordpress/widgets@1.1.1
Commits on May 26, 2021
…32055)

* Update graphic

* Update graphic

* add svg for reduced movement preferences

* Update the animation
…#32176)

Including the Widgets editor and template mode.

Co-authored-by: Riad Benguella <benguella@gmail.com>
Co-authored-by: Kai Hao <kevin830726@gmail.com>
Co-authored-by: André <andres.maneiro@automattic.com>
Co-authored-by: ntsekouras <ntsekouras@outlook.com>
Co-authored-by: Bernie Reiter <ockham@raz.or.at>
Co-authored-by: Ella van Durpe <4710635+ellatrix@users.noreply.github.com>
Showing 3,751 changed files with 173,639 additions and 114,700 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -13,13 +13,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.{gradle,java,kt}]
indent_style = space

@@ -28,6 +28,7 @@ const developmentFiles = [
'**/benchmark/**/*.js',
'**/@(__mocks__|__tests__|test)/**/*.js',
'**/@(storybook|stories)/**/*.js',
'packages/babel-preset-default/bin/**/*.js',
];

// All files from packages that have types provided with TypeScript.
@@ -89,6 +90,11 @@ module.exports = {
message:
'Please use `combineReducers` from `@wordpress/data` instead.',
},
{
name: 'puppeteer-testing-library',
message:
'`puppeteer-testing-library` is still experimental.',
},
],
},
],
@@ -163,6 +169,7 @@ module.exports = {
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/named': 'off',
'@wordpress/data-no-store-string-literals': 'off',
},
},
{
@@ -176,7 +183,6 @@ module.exports = {
'error',
{
forbid: [
[ 'button', 'Button' ],
[ 'circle', 'Circle' ],
[ 'g', 'G' ],
[ 'path', 'Path' ],
@@ -205,7 +211,7 @@ module.exports = {
},
},
{
files: [ 'bin/**/*.js' ],
files: [ 'bin/**/*.js', 'packages/env/**' ],
rules: {
'no-console': 'off',
},
@@ -15,7 +15,12 @@
/packages/block-library/src/gallery @mkevins
/packages/block-library/src/social-links @mkaz
/packages/block-library/src/social-link @mkaz
/packages/block-library/src/image @ajlende

# Duotone
/lib/block-supports/duotone.php @ajlende
/packages/block-editor/src/components/duotone-control @ajlende
/packages/block-editor/src/hooks/duotone.js @ajlende
/packages/components/src/duotone-picker @ajlende

# Editor
/packages/annotations @atimmer
@@ -37,7 +42,7 @@
/packages/edit-widgets @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726

# Navigation
/packages/edit-navigation @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726
/packages/edit-navigation @draganescu @talldan @noisysocks @tellthemachines @adamziel @kevin940726 @getdave

# Full Site Editing
/packages/edit-site
@@ -46,25 +51,27 @@
/bin @ntwb @nerrad @ajitbohra
/bin/api-docs @ntwb @nerrad @ajitbohra @nosolosw
/docs/tool @chrisvanpatten @ajitbohra @nosolosw
/packages/babel-plugin-import-jsx-pragma @gziolo @ntwb @nerrad @ajitbohra
/packages/babel-plugin-import-jsx-pragma @ntwb @nerrad @ajitbohra
/packages/babel-plugin-makepot @ntwb @nerrad @ajitbohra
/packages/babel-preset-default @gziolo @ntwb @nerrad @ajitbohra
/packages/browserslist-config @gziolo @ntwb @nerrad @ajitbohra
/packages/browserslist-config @ntwb @nerrad @ajitbohra
/packages/create-block @gziolo @mkaz
/packages/create-block-tutorial-template @gziolo
/packages/custom-templated-path-webpack-plugin @ntwb @nerrad @ajitbohra
/packages/dependency-extraction-webpack-plugin @gziolo
/packages/docgen @nosolosw
/packages/e2e-test-utils @gziolo @ntwb @nerrad @ajitbohra
/packages/e2e-test-utils @ntwb @nerrad @ajitbohra
/packages/e2e-tests @ntwb @nerrad @ajitbohra
/packages/eslint-plugin @gziolo @ntwb @nerrad @ajitbohra
/packages/jest-console @gziolo @ntwb @nerrad @ajitbohra
/packages/jest-preset-default @gziolo @ntwb @nerrad @ajitbohra
/packages/jest-puppeteer-axe @gziolo @ntwb @nerrad @ajitbohra
/packages/library-export-default-webpack-plugin @gziolo @ntwb @nerrad @ajitbohra
/packages/library-export-default-webpack-plugin @ntwb @nerrad @ajitbohra
/packages/npm-package-json-lint-config @gziolo @ntwb @nerrad @ajitbohra
/packages/postcss-themes @ntwb @nerrad @ajitbohra
/packages/scripts @gziolo @ntwb @nerrad @ajitbohra
/packages/dependency-extraction-webpack-plugin @gziolo
/packages/prettier-config @ntwb @gziolo
/packages/scripts @gziolo @ntwb @nerrad @ajitbohra
/packages/stylelint-config @ntwb

# UI Components
/packages/components @ajitbohra @jaymanpandya @chrisvanpatten
@@ -97,7 +104,7 @@
/packages/keyboard-shortcuts

# Extensibility
/packages/hooks @gziolo @adamsilverstein
/packages/hooks @adamsilverstein
/packages/plugins @gziolo @adamsilverstein

# Rich Text
@@ -106,7 +113,7 @@
/packages/block-editor/src/components/rich-text @ellatrix @cameronvoell @guarani

# Project Management
/.github @mapk @karmatosed
/.github
/packages/project-management-automation

# wp-env
@@ -116,8 +123,8 @@
/lib @timothybjacobs @spacedmonkey
/lib/global-styles.php @timothybjabocs @spacedmonkey @nosolosw
/lib/experimental-default-theme.json @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json.php @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-resolver.php @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @nosolosw
/phpunit/class-wp-theme-json-test.php @nosolosw

# Native (Unowned)
@@ -1,7 +1,7 @@
---
name: Bug report (Mobile)
about: Report a bug with the mobile app version of Gutenberg
labels: Mobile App Android/iOS
labels: Mobile App - i.e. Android or iOS

---

@@ -1,11 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: General help request
url: https://wordpress.org/support/forum/how-to-and-troubleshooting/
about: For general help requests, create a new topic in the Fixing WordPress support forum
- name: Technical help request
url: https://wordpress.org/support/forum/wp-advanced/
about: For more technical help requests, create a new topic in the Developing with WordPress Forum
- name: Development help request
url: https://wordpress.stackexchange.com/
about: For questions about WordPress development, ask a question in the WordPress Development Stack Exchange
- name: General help request
url: https://wordpress.org/support/forum/how-to-and-troubleshooting/
about: For general help requests, create a new topic in the Fixing WordPress support forum
- name: Technical help request
url: https://wordpress.org/support/forum/wp-advanced/
about: For more technical help requests, create a new topic in the Developing with WordPress Forum
- name: Development help request
url: https://wordpress.stackexchange.com/
about: For questions about WordPress development, ask a question in the WordPress Development Stack Exchange
@@ -1,5 +1,7 @@
<!-- Learn the overall process and best practices for pull requests at https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/repository-management.md#pull-requests. -->

<!-- Gutenberg's license is in the process of updating to be dual-licensed under the GPL and MPL. As part of that transition, all new contributions are dual-licensed. For more information, see: https://github.com/WordPress/gutenberg/blob/trunk/LICENSE.md -->

## Description
<!-- Please describe what you have changed or added -->

@@ -20,6 +22,7 @@
- [ ] My code is tested.
- [ ] My code follows the WordPress code style. <!-- Check code: `npm run lint`, Guidelines: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/javascript/ -->
- [ ] My code follows the accessibility standards. <!-- Guidelines: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/accessibility/ -->
- [ ] I've tested my changes with keyboard and screen readers. <!-- Instructions: https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/accessibility-testing.md -->
- [ ] My code has proper inline documentation. <!-- Guidelines: https://developer.wordpress.org/coding-standards/inline-documentation-standards/javascript/ -->
- [ ] I've included developer documentation if appropriate. <!-- Handbook: https://developer.wordpress.org/block-editor/ -->
- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR. <!-- React Native mobile Gutenberg guidelines: https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/native-mobile.md -->
- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR (please manually search all `*.native.js` files for terms that need renaming or removal). <!-- React Native mobile Gutenberg guidelines: https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/code/native-mobile.md -->

No commit comments for this range