diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 2773fa8ea7581a..2832c860de002a 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -12,7 +12,7 @@
# Blocks
/packages/block-library @Soean @ajitbohra @talldan
-/packages/block-library/src/gallery @mkevins @pinarol
+/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
diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml
index 7a7a69a14d564c..840e49a55ee078 100644
--- a/.github/workflows/rnmobile-ios-runner.yml
+++ b/.github/workflows/rnmobile-ios-runner.yml
@@ -30,7 +30,7 @@ jobs:
- name: Restore build cache
uses: actions/cache@v2
with:
- path: packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app
+ path: packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/gutenberg.app
key: ${{ runner.os }}-ios-build-${{ hashFiles('ios-checksums.txt') }}
- name: Restore pods cache
@@ -55,13 +55,13 @@ jobs:
run: sudo xcode-select --switch /Applications/Xcode_11.4.1.app
- name: Build (if needed)
- run: test -e packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app/GutenbergDemo || SKIP_BUNDLING=true npm run native test:e2e:build-app:ios
+ run: test -e packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/gutenberg.app/gutenberg || SKIP_BUNDLING=true npm run native test:e2e:build-app:ios
- name: Run iOS Device Tests
run: TEST_RN_PLATFORM=ios npm run native device-tests:local ${{ matrix.native-test-name }}
- name: Prepare build cache
- run: rm packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app/main.jsbundle
+ run: rm packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/gutenberg.app/main.jsbundle
- uses: actions/upload-artifact@v2
if: always()
diff --git a/changelog.txt b/changelog.txt
index 3ac19d9866268a..9bc39db2a4630f 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,168 @@
== Changelog ==
+= 9.1.0 =
+
+### Features
+
+- Add "open in new tab" feature to Social Links Block. ([25468](https://github.com/WordPress/gutenberg/pull/25468))
+- Add Image Size control to the Media & Text block. ([24795](https://github.com/WordPress/gutenberg/pull/24795))
+
+### Enhancements
+
+- Inserter: Add block pattern category selection. ([24954](https://github.com/WordPress/gutenberg/pull/24954))
+- Reduce minimum height to 1px for the Spacer block. ([25528](https://github.com/WordPress/gutenberg/pull/25528))
+- Show the Fullscreen keyboard shortcut. ([25395](https://github.com/WordPress/gutenberg/pull/25395))
+- Improve the Audio block shortcode transform to account for all sources. ([25114](https://github.com/WordPress/gutenberg/pull/25114))
+- Code block: Allow HTML editing & rich text content. ([24689](https://github.com/WordPress/gutenberg/pull/24689))
+- Remove appender from unselected Buttons and Social Icons block. ([25518](https://github.com/WordPress/gutenberg/pull/25518))
+- Widgets Screen:
+ - Register legacy widgets as block variations. ([24905](https://github.com/WordPress/gutenberg/pull/24905))
+ - Use the default block list appender for the widget areas. ([25635](https://github.com/WordPress/gutenberg/pull/25635))
+ - Add titles to Legacy Widgets. ([25638](https://github.com/WordPress/gutenberg/pull/25638))
+- Buttons block: Lighten editor DOM. ([23222](https://github.com/WordPress/gutenberg/pull/23222))
+- Copy: Reword block settings menu item labels. ([22955](https://github.com/WordPress/gutenberg/pull/22955))
+- Add a tooltip to the Drag & Drop handle. ([25606](https://github.com/WordPress/gutenberg/pull/25606)) ([25614](https://github.com/WordPress/gutenberg/pull/25614))
+- A11y:
+ - Add aria-haspopup property to the BlockNavigation component. ([25605](https://github.com/WordPress/gutenberg/pull/25605))
+ - Add aria-haspopup property to the TableOfContents component. ([25603](https://github.com/WordPress/gutenberg/pull/25603))
+ - Add aria-haspopup to the ToolSelector. ([25600](https://github.com/WordPress/gutenberg/pull/25600))
+ - Add aria-haspopup to the MediaReplaceFlow button. ([25597](https://github.com/WordPress/gutenberg/pull/25597))
+ - Add aria-haspopup attribute to CustomGradientBar component. ([25571](https://github.com/WordPress/gutenberg/pull/25571))
+ - Add aria-haspopup to CircularOptionPicker component. ([25564](https://github.com/WordPress/gutenberg/pull/25564))
+ - Add aria-describedby to featured-image button. ([24888](https://github.com/WordPress/gutenberg/pull/24888))
+- Don't show heading ancestor blocks in Document Outline. ([25599](https://github.com/WordPress/gutenberg/pull/25599))
+- Support the default link config for the Gallery and Image blocks (`image_default_link_type`). ([25578](https://github.com/WordPress/gutenberg/pull/25578)) ([25582](https://github.com/WordPress/gutenberg/pull/25582))
+- Social Icons Block: Let icons wrap. ([25334](https://github.com/WordPress/gutenberg/pull/25334))
+
+### New APIs
+
+- Add new ComboboxControl. ([25442](https://github.com/WordPress/gutenberg/pull/25442))
+- Data Controls: Add new syncSelect control. ([25336](https://github.com/WordPress/gutenberg/pull/25336))
+- DateTimePicker: Add support for highlighting days. ([22032](https://github.com/WordPress/gutenberg/pull/22032))
+
+### Bug Fixes
+
+- Widgets Screen:
+ - Auto expand the last selected widget area when opening the inserter. ([25669](https://github.com/WordPress/gutenberg/pull/25669))
+ - Ensure all widgets are properly initialized when they're added, do not unmount widgets once they're mounted. ([25645](https://github.com/WordPress/gutenberg/pull/25645))
+ - Fix Legacy widget block previews and use iFrames. ([25443](https://github.com/WordPress/gutenberg/pull/25443)) ([14643](https://github.com/WordPress/gutenberg/pull/14643))
+ - Report save errors. ([25408](https://github.com/WordPress/gutenberg/pull/25408))
+ - Fix global inserter. ([24908](https://github.com/WordPress/gutenberg/pull/24908))
+- Fix RangeControl direct entry in input field. ([25609](https://github.com/WordPress/gutenberg/pull/25609))
+- A11y:
+ - Fix the color contrast in the code editor. ([25593](https://github.com/WordPress/gutenberg/pull/25593))
+ - Fix Publish sidebar Cancel button not usable through screen readers. ([25441](https://github.com/WordPress/gutenberg/pull/25441))
+ - Fix keyboard navigation on the Image block toolbar. ([25127](https://github.com/WordPress/gutenberg/pull/25127))
+ - More block: Use an actual placeholder for input text. ([23836](https://github.com/WordPress/gutenberg/pull/23836))
+- Fix nested container smart margins. ([25527](https://github.com/WordPress/gutenberg/pull/25527))
+- Fix add_filter instead of apply_filters. ([25512](https://github.com/WordPress/gutenberg/pull/25512))
+- Fix the WordPress embed preview in the editor. ([25370](https://github.com/WordPress/gutenberg/pull/25370))
+- Remove Embed block aspect ratio classes on url change. ([25295](https://github.com/WordPress/gutenberg/pull/25295))
+- Remove duplicate help item. ([25283](https://github.com/WordPress/gutenberg/pull/25283))
+- Fix Block Directory author average rating formating. ([24732](https://github.com/WordPress/gutenberg/pull/24732))
+- @wordpress/api-fetch:
+ - Fix preloading middleware referencing stale data. ([25550](https://github.com/WordPress/gutenberg/pull/25550))
+ - Check nonce header value before skipping adding it. ([25458](https://github.com/WordPress/gutenberg/pull/25458))
+- Use esc_html instead of esc_attr in the Archives block. ([25476](https://github.com/WordPress/gutenberg/pull/25476))
+- Fix Canceling Drag and Drop using ESC key. ([25317](https://github.com/WordPress/gutenberg/pull/25317))
+- Cover block: Add explilcit box-sizing style. ([25115](https://github.com/WordPress/gutenberg/pull/25115))
+- Use a ComboboxControl for the post author selector to fix loading issues for sites with a big number of authors. ([23237](https://github.com/WordPress/gutenberg/pull/23237))
+
+### Performance
+
+- Avoid relying on DOM events to measure the loading time. ([25288](https://github.com/WordPress/gutenberg/pull/25288))
+
+### Experiments
+
+- Site Editor Screen:
+ - Fix wrong close label in the block inspector. ([25424](https://github.com/WordPress/gutenberg/pull/25424))
+ - Add basic template information to editor header. ([25320](https://github.com/WordPress/gutenberg/pull/25320))
+ - Fix the footer styling. ([25152](https://github.com/WordPress/gutenberg/pull/25152))
+ - Add a reset button to global styles sidebar. ([25426](https://github.com/WordPress/gutenberg/pull/25426))
+ - Show document subtext if template part child is selected. ([25544](https://github.com/WordPress/gutenberg/pull/25544))
+ - Add navigation panel. ([25506](https://github.com/WordPress/gutenberg/pull/25506))
+ - Fix site base URL. ([25409](https://github.com/WordPress/gutenberg/pull/25409))
+- Post and Site Blocks:
+ - Add link option in PostTitle block. ([25341](https://github.com/WordPress/gutenberg/pull/25341)) ([25397](https://github.com/WordPress/gutenberg/pull/25397))
+ - Register the Site Logo block using `register_block_type_from_metadata`. ([25289](https://github.com/WordPress/gutenberg/pull/25289))
+- Themes and global styles:
+ - Support defining colors and gradients config from theme.json. ([25419](https://github.com/WordPress/gutenberg/pull/25419))
+ - Support defining font sizes config from theme.json. ([25516](https://github.com/WordPress/gutenberg/pull/25516))
+ - Support custom units on theme.json. ([25217](https://github.com/WordPress/gutenberg/pull/25217))
+ - Add separate support keys for color and background color. ([25314](https://github.com/WordPress/gutenberg/pull/25314))
+ - Allow themes to enqueue custom CSS variables via theme.json. ([25446](https://github.com/WordPress/gutenberg/pull/25446)) ([25619](https://github.com/WordPress/gutenberg/pull/25619))
+ - Refactor theme.json format. ([25301](https://github.com/WordPress/gutenberg/pull/25301)) ([25407](https://github.com/WordPress/gutenberg/pull/25407))
+ - Update theme json documentation to account for latest changes. ([25369](https://github.com/WordPress/gutenberg/pull/25369))
+- Block API: Introduce useBlockWrapperProps hook to use light block DOM in the editor. ([23034](https://github.com/WordPress/gutenberg/pull/23034)) ([25679](https://github.com/WordPress/gutenberg/pull/25679)) ([25554](https://github.com/WordPress/gutenberg/pull/25554)) ([25515](https://github.com/WordPress/gutenberg/pull/25515))
+- Navigation block and screen:
+ - Handle block menu items. ([24846](https://github.com/WordPress/gutenberg/pull/24846))
+ - Avoid auto-focusing Navigation block in Navigation screen. ([25592](https://github.com/WordPress/gutenberg/pull/25592))
+ - Change the block description. ([25531](https://github.com/WordPress/gutenberg/pull/25531)) ([25555](https://github.com/WordPress/gutenberg/pull/25555))
+ - Allow Social Links within Navigation Block. ([25357](https://github.com/WordPress/gutenberg/pull/25357))
+ - Wrap navigation editing features with filters. ([25329](https://github.com/WordPress/gutenberg/pull/25329))
+ - Add move markers to list view. ([25205](https://github.com/WordPress/gutenberg/pull/25205))
+- Iterating on the Navigation Component ([25608](https://github.com/WordPress/gutenberg/pull/25608)) ([25495](https://github.com/WordPress/gutenberg/pull/25495)) ([25572](https://github.com/WordPress/gutenberg/pull/25572)) ([25540](https://github.com/WordPress/gutenberg/pull/25540)) ([25520](https://github.com/WordPress/gutenberg/pull/25520)) ([25507](https://github.com/WordPress/gutenberg/pull/25507)) ([25367](https://github.com/WordPress/gutenberg/pull/25367)) ([25364](https://github.com/WordPress/gutenberg/pull/25364)) ([25340](https://github.com/WordPress/gutenberg/pull/25340)) ([25327](https://github.com/WordPress/gutenberg/pull/25327)) ([25281](https://github.com/WordPress/gutenberg/pull/25281)) ([25280](https://github.com/WordPress/gutenberg/pull/25280))
+
+
+### Documentation
+
+- Add a data format and flow architecture document. ([25299](https://github.com/WordPress/gutenberg/pull/25299))
+- @wordpress/env: Add documentation for inspecting the docker compose file. ([25666](https://github.com/WordPress/gutenberg/pull/25666))
+- Add new block supports page to the handbook. ([25647](https://github.com/WordPress/gutenberg/pull/25647))
+- Block Directory: Add developer documentation. ([25591](https://github.com/WordPress/gutenberg/pull/25591))
+- Move custom-fields note to the 'Register Meta Field' documentation. ([25584](https://github.com/WordPress/gutenberg/pull/25584))
+- Add Block Editor Components documentation:
+ - Warning ([25574](https://github.com/WordPress/gutenberg/pull/25574))
+ - FontSizePicker ([25568](https://github.com/WordPress/gutenberg/pull/25568))
+ - UnitControl ([25565](https://github.com/WordPress/gutenberg/pull/25565))
+ - CopyHandler ([25342](https://github.com/WordPress/gutenberg/pull/25342))
+ - MultiSelection ([25306](https://github.com/WordPress/gutenberg/pull/25306))
+ - LineHeightControl ([25303](https://github.com/WordPress/gutenberg/pull/25303))
+ - BlockAlignmentToolbar ([25212](https://github.com/WordPress/gutenberg/pull/25212))
+ - AlignmentToolbar ([25210](https://github.com/WordPress/gutenberg/pull/25210))
+ - BlockFormatControls ([25573](https://github.com/WordPress/gutenberg/pull/25573))
+- Add Caveats section for MAMP. ([25444](https://github.com/WordPress/gutenberg/pull/25444))
+- Add FormTokenField story. ([25439](https://github.com/WordPress/gutenberg/pull/25439))
+- Improve documentation for the data registry control and selector creators. ([25335](https://github.com/WordPress/gutenberg/pull/25335))
+- Update git workflow documentation. ([25164](https://github.com/WordPress/gutenberg/pull/25164))
+- Refresh the Getting Started guide. ([25090](https://github.com/WordPress/gutenberg/pull/25090))
+- Update JavaScript troubleshooting guide. ([24105](https://github.com/WordPress/gutenberg/pull/24105))
+- Enhance the Block Context documentation. ([25272](https://github.com/WordPress/gutenberg/pull/25272))
+- Typos: ([25359](https://github.com/WordPress/gutenberg/pull/25359)) ([25653](https://github.com/WordPress/gutenberg/pull/25653))
+
+### Code Quality
+
+- Update the Dashicon component to rely on the font that ships with WordPress. ([20003](https://github.com/WordPress/gutenberg/pull/20003))
+- Add new $gray-200 SASS variable and use for skeleton borders. ([25491](https://github.com/WordPress/gutenberg/pull/25491))
+- Block Editor: Remove empty module focus-detector. ([25561](https://github.com/WordPress/gutenberg/pull/25561))
+- Image block: Avoid remounting to focus caption. ([25493](https://github.com/WordPress/gutenberg/pull/25493))
+- Add explicit boxSizing style to Placeholder component. ([25463](https://github.com/WordPress/gutenberg/pull/25463))
+- Remove classic block code used to support WP 4.9. ([25365](https://github.com/WordPress/gutenberg/pull/25365))
+- Add RichText value type definition. ([25363](https://github.com/WordPress/gutenberg/pull/25363))
+- Avoid global DOM dependencies. ([25332](https://github.com/WordPress/gutenberg/pull/25332))
+- Use controls from the Data Controls package instead of local ones. ([25235](https://github.com/WordPress/gutenberg/pull/25235))
+- RichText: Simplify withFormatTypes as hook. ([23145](https://github.com/WordPress/gutenberg/pull/23145))
+- Video block: Use hooks. ([25513](https://github.com/WordPress/gutenberg/pull/25513))
+- Remove wp_area custom post type. ([25497](https://github.com/WordPress/gutenberg/pull/25497))
+- Post Featured Image: Remove redundant condition. ([25490](https://github.com/WordPress/gutenberg/pull/25490))
+- Move legacy-widget block over to edit-widgets package. ([25371](https://github.com/WordPress/gutenberg/pull/25371)) ([25404](https://github.com/WordPress/gutenberg/pull/25404))
+- Don't use percent units for line-height. ([25398](https://github.com/WordPress/gutenberg/pull/25398))
+- Change wording and names to not include "whitelist". ([25396](https://github.com/WordPress/gutenberg/pull/25396))
+- Don't discard all promises results when one of them rejects. ([25302](https://github.com/WordPress/gutenberg/pull/25302))
+- Block Directory: Switch to `blocks.registerBlockType` filter. ([25264](https://github.com/WordPress/gutenberg/pull/25264))
+- Fix some javascript warnings. ([24996](https://github.com/WordPress/gutenberg/pull/24996))
+
+### Various
+
+- Remove the Block-based widgets editor from the customizer. ([25626](https://github.com/WordPress/gutenberg/pull/25626))
+- Cover block: Remove default position (center/center) className from rendering. ([25346](https://github.com/WordPress/gutenberg/pull/25346))
+- Fix the default label position in SelectControl. ([25427](https://github.com/WordPress/gutenberg/pull/25427))
+- DropdownMenu tooltip default to true. ([25391](https://github.com/WordPress/gutenberg/pull/25391))
+- Pass block pattern name when using replaceBlocks and insertBlocks. ([25165](https://github.com/WordPress/gutenberg/pull/25165)). ([25433](https://github.com/WordPress/gutenberg/pull/25433))
+- Babel Preset: Update Babel version to 7.11.x. ([25351](https://github.com/WordPress/gutenberg/pull/25351))
+- InputControl: Remove floating label variant. ([25308](https://github.com/WordPress/gutenberg/pull/25308))
+
+
= 9.0.0 =
### Features
diff --git a/docs/contributors/git-workflow.md b/docs/contributors/git-workflow.md
index 3acfd27a36f0c8..0894945e8a2850 100644
--- a/docs/contributors/git-workflow.md
+++ b/docs/contributors/git-workflow.md
@@ -51,7 +51,7 @@ git switch -c update/my-branch
**Step 4**: Make the code changes. Build, confirm, and test your change thoroughly. See [coding guidelines](/docs/contributors/coding-guidelines.md) and [testing overview](/docs/contributors/testing-overview.md) for guidance.
-**Step 5**: Commit your change with a [good commmit message](https://make.wordpress.org/core/handbook/best-practices/commit-messages/). This will commit your change to your local copy of the repository.
+**Step 5**: Commit your change with a [good commit message](https://make.wordpress.org/core/handbook/best-practices/commit-messages/). This will commit your change to your local copy of the repository.
```bash
git commit -m "Your Good Commit Message" path/to/FILE
diff --git a/docs/designers-developers/developers/block-api/README.md b/docs/designers-developers/developers/block-api/README.md
index a388e05d9f76c7..dd8c6468882935 100644
--- a/docs/designers-developers/developers/block-api/README.md
+++ b/docs/designers-developers/developers/block-api/README.md
@@ -8,6 +8,7 @@ The following sections will walk you through the existing block APIs:
- [Edit and Save](/docs/designers-developers/developers/block-api/block-edit-save.md)
- [Attributes](/docs/designers-developers/developers/block-api/block-attributes.md)
- [Deprecated blocks](/docs/designers-developers/developers/block-api/block-deprecation.md)
+- [Supports](/docs/designers-developers/developers/block-api/block-supports.md)
- [Transformations](/docs/designers-developers/developers/block-api/block-transforms.md)
- [Templates](/docs/designers-developers/developers/block-api/block-templates.md)
- [Annotations](/docs/designers-developers/developers/block-api/block-annotations.md)
diff --git a/docs/designers-developers/developers/block-api/block-metadata.md b/docs/designers-developers/developers/block-api/block-metadata.md
index 4613b3f2fa96ee..24d1468121ba29 100644
--- a/docs/designers-developers/developers/block-api/block-metadata.md
+++ b/docs/designers-developers/developers/block-api/block-metadata.md
@@ -11,6 +11,7 @@ To register a new block type using metadata that can be shared between codebase
```json
{
+ "apiVersion": 2,
"name": "my-plugin/notice",
"title": "Notice",
"category": "text",
@@ -32,7 +33,6 @@ To register a new block type using metadata that can be shared between codebase
"usesContext": [ "groupId" ],
"supports": {
"align": true,
- "lightBlockWrapper": true
},
"styles": [
{ "name": "default", "label": "Default", "isDefault": true },
@@ -255,9 +255,7 @@ See [the block context documentation](/docs/designers-developers/developers/bloc
- Property: `supports`
- Default: `{}`
-It contains as set of options to control features used in the editor.
-
-See the [the supports documentation](/docs/designers-developers/developers/block-api/block-registration.md#supports-optional) for more details.
+It contains as set of options to control features used in the editor. See the [the supports documentation](/docs/designers-developers/developers/block-api/block-supports.md) for more details.
### Style Variations
diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md
index e6987e1cfed369..711ca1acef0c38 100644
--- a/docs/designers-developers/developers/block-api/block-registration.md
+++ b/docs/designers-developers/developers/block-api/block-registration.md
@@ -270,6 +270,12 @@ variations: [
],
```
+#### supports (optional)
+
+- ***Type:*** `Object`
+
+Supports contains as set of options to control features used in the editor. See the [the supports documentation](/docs/designers-developers/developers/block-api/block-supports.md) for more details.
+
#### transforms (optional)
- **Type:** `Object`
@@ -289,103 +295,6 @@ Setting `parent` lets a block require that it is only available when nested with
parent: [ 'core/columns' ],
```
-#### supports (optional)
-
-_Some [block supports](#supports-optional) — for example, `anchor` or `className` — apply their attributes by adding additional props on the element returned by `save`. This will work automatically for default HTML tag elements (`div`, etc). However, if the return value of your `save` is a custom component element, you will need to ensure that your custom component handles these props in order for the attributes to be persisted._
-
-- **Type:** `Object`
-
-Optional block extended support features. The following options are supported:
-
-- `align` (default `false`): This property adds block controls which allow to change block's alignment. _Important: It doesn't work with dynamic blocks yet._
-
-```js
-// Add the support for block's alignment (left, center, right, wide, full).
-align: true,
-// Pick which alignment options to display.
-align: [ 'left', 'right', 'full' ],
-```
-
-When supports align is used the block attributes definition is extended to include an align attribute with a string type.
-By default, no alignment is assigned to the block.
-The block can apply a default alignment by specifying its own align attribute with a default e.g.:
-
-```
-attributes: {
- ...
- align: {
- type: 'string',
- default: 'right'
- },
- ...
-}
-```
-
-- `alignWide` (default `true`): This property allows to enable [wide alignment](/docs/designers-developers/developers/themes/theme-support.md#wide-alignment) for your theme. To disable this behavior for a single block, set this flag to `false`.
-
-```js
-// Remove the support for wide alignment.
-alignWide: false,
-```
-
-- `defaultStylePicker` (default `true`): When the style picker is shown, a dropdown is displayed so the user can select a default style for this block type. If you prefer not to show the dropdown, set this property to `false`.
-
-```js
-// Remove the Default Style picker.
-defaultStylePicker: false,
-```
-
-
-- `anchor` (default `false`): Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link.
-
-```js
-// Add the support for an anchor link.
-anchor: true,
-```
-
-- `customClassName` (default `true`): This property adds a field to define a custom className for the block's wrapper.
-
-```js
-// Remove the support for the custom className.
-customClassName: false,
-```
-
-- `className` (default `true`): By default, the class `.wp-block-your-block-name` is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If for whatever reason a class is not desired on the markup, this functionality can be disabled.
-
-```js
-// Remove the support for the generated className.
-className: false,
-```
-
-- `html` (default `true`): By default, a block's markup can be edited individually. To disable this behavior, set `html` to `false`.
-
-```js
-// Remove support for an HTML mode.
-html: false,
-```
-
-- `inserter` (default `true`): By default, all blocks will appear in the inserter. To hide a block so that it can only be inserted programmatically, set `inserter` to `false`.
-
-```js
-// Hide this block from the inserter.
-inserter: false,
-```
-
-- `multiple` (default `true`): A non-multiple block can be inserted into each post, one time only. For example, the built-in 'More' block cannot be inserted again if it already exists in the post being edited. A non-multiple block's icon is automatically dimmed (unclickable) to prevent multiple instances.
-
-```js
-// Use the block just once per post
-multiple: false,
-```
-
-- `reusable` (default `true`): A block may want to disable the ability of being converted into a reusable block.
- By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.
-
-```js
-// Don't allow the block to be converted into a reusable block.
-reusable: false,
-```
-
## Block Collections
## `registerBlockCollection`
diff --git a/docs/designers-developers/developers/block-api/block-supports.md b/docs/designers-developers/developers/block-api/block-supports.md
new file mode 100644
index 00000000000000..d0e459257d933b
--- /dev/null
+++ b/docs/designers-developers/developers/block-api/block-supports.md
@@ -0,0 +1,165 @@
+# Block Supports
+
+Block Supports is the API that allows a block to declare features used in the editor.
+
+Some block supports — for example, `anchor` or `className` — apply their attributes by adding additional props on the element returned by `save`. This will work automatically for default HTML tag elements (`div`, etc). However, if the return value of your `save` is a custom component element, you will need to ensure that your custom component handles these props in order for the attributes to be persisted.
+
+## anchor
+
+- Type: `boolean`
+- Default value: `false`
+
+Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link.
+
+```js
+// Declare support for anchor links.
+supports: {
+ anchor: true
+}
+```
+
+## align
+
+- Type: `boolean` or `array`
+- Default value: `false`
+
+This property adds block controls which allow to change block's alignment. _Important: It doesn't work with dynamic blocks yet._
+
+```js
+supports: {
+ // Declare support for block's alignment.
+ // This adds support for all the options:
+ // left, center, right, wide, and full.
+ align: true
+}
+```
+
+```js
+supports: {
+ // Declare support for specific alignment options.
+ align: [ 'left', 'right', 'full' ]
+}
+```
+
+When the block declares support for `align`, the attributes definition is extended to include an align attribute with a `string` type. By default, no alignment is assigned. The block can apply a default alignment by specifying its own `align` attribute with a default e.g.:
+
+```js
+attributes: {
+ align: {
+ type: 'string',
+ default: 'right'
+ }
+}
+```
+
+## alignWide
+
+- Type: `boolean`
+- Default value: `true`
+
+This property allows to enable [wide alignment](/docs/designers-developers/developers/themes/theme-support.md#wide-alignment) for your theme. To disable this behavior for a single block, set this flag to `false`.
+
+```js
+supports: {
+ // Remove the support for wide alignment.
+ alignWide: false
+}
+```
+
+## className
+
+- Type: `boolean`
+- Default value: `true`
+
+By default, the class `.wp-block-your-block-name` is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If, for whatever reason, a class is not desired on the markup, this functionality can be disabled.
+
+```js
+supports: {
+ // Remove the support for the generated className.
+ className: false
+}
+```
+
+## customClassName
+
+- Type: `boolean`
+- Default value: `true`
+
+This property adds a field to define a custom className for the block's wrapper.
+
+```js
+supports: {
+ // Remove the support for the custom className.
+ customClassName: false
+}
+```
+
+## defaultStylePicker
+
+- Type: `boolean`
+- Default value: `true`
+
+When the style picker is shown, a dropdown is displayed so the user can select a default style for this block type. If you prefer not to show the dropdown, set this property to `false`.
+
+```js
+supports: {
+ // Remove the Default Style picker.
+ defaultStylePicker: false
+}
+```
+
+## html
+
+- Type: `boolean`
+- Default value: `true`
+
+By default, a block's markup can be edited individually. To disable this behavior, set `html` to `false`.
+
+```js
+supports: {
+ // Remove support for an HTML mode.
+ html: false
+}
+```
+
+## inserter
+
+- Type: `boolean`
+- Default value: `true`
+
+By default, all blocks will appear in the inserter. To hide a block so that it can only be inserted programmatically, set `inserter` to `false`.
+
+```js
+supports: {
+ // Hide this block from the inserter.
+ inserter: false
+}
+```
+
+## multiple
+
+- Type: `boolean`
+- Default value: `true`
+
+A non-multiple block can be inserted into each post, one time only. For example, the built-in 'More' block cannot be inserted again if it already exists in the post being edited. A non-multiple block's icon is automatically dimmed (unclickable) to prevent multiple instances.
+
+```js
+supports: {
+ // Use the block just once per post
+ multiple: false
+}
+```
+
+## reusable
+
+- Type: `boolean`
+- Default value: `true`
+
+A block may want to disable the ability of being converted into a reusable block. By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.
+
+```js
+supports: {
+ // Don't allow the block to be converted into a reusable block.
+ reusable: false
+}
+```
diff --git a/docs/designers-developers/developers/themes/block-based-themes.md b/docs/designers-developers/developers/themes/block-based-themes.md
index 4889a36580bd48..03f4f278b9a256 100644
--- a/docs/designers-developers/developers/themes/block-based-themes.md
+++ b/docs/designers-developers/developers/themes/block-based-themes.md
@@ -17,6 +17,7 @@ A very simple block-based theme is structured like so:
```
theme
|__ style.css
+|__ experimental-theme.json
|__ functions.php
|__ block-templates
|__ index.html
@@ -30,7 +31,7 @@ theme
|__ ...
```
-The difference with existing WordPress themes is that the different templates in the template hierarchy, and template parts, are block templates instead of php files.
+The difference with existing WordPress themes is that the different templates in the template hierarchy, and template parts, are block templates instead of php files. In addition, this example includes an [`experimental-theme.json`](/docs/designers-developers/developers/themes/theme-json.md) file for some styles.
## What is a block template?
@@ -111,17 +112,21 @@ As we're still early in the process, the number of blocks specifically dedicated
- Post Title
- Post Content
- Post Author
+- Post Comment
+- Post Comment Author
+- Post Comment Date
- Post Comments
-- Post CommentsCount
-- Post CommentsForm
+- Post Comments Count
+- Post Comments Form
- Post Date
- Post Excerpt
- Post Featured Image
+- Post Hierarchical Terms
- Post Tags
## Styling
-One of the most important aspects of themes (if not the most important) is the styling. While initially you'll be able to provide styles and enqueue them using the same hooks themes have always used, this is an area that is still [being explored](https://github.com/WordPress/gutenberg/issues/9534).
+One of the most important aspects of themes (if not the most important) is the styling. While initially you'll be able to provide styles and enqueue them using the same hooks themes have always used, the [Global Styles](/docs/designers-developers/developers/themes/theme-json.md) effort will provide a scaffolding for adding many theme styles in the future.
## Resources
diff --git a/docs/designers-developers/developers/tutorials/block-based-themes/README.md b/docs/designers-developers/developers/tutorials/block-based-themes/README.md
index 820403bdbc656a..6d819840ac8987 100644
--- a/docs/designers-developers/developers/tutorials/block-based-themes/README.md
+++ b/docs/designers-developers/developers/tutorials/block-based-themes/README.md
@@ -238,9 +238,10 @@ Add the following global presets to the experimental-theme.json file:
"slug": "large",
"value": "2.5"
}
- ],
- },
- },
+ ]
+ }
+ }
+}
```
This code generates the following variables:
diff --git a/docs/designers-developers/developers/tutorials/create-block/wp-plugin.md b/docs/designers-developers/developers/tutorials/create-block/wp-plugin.md
index 8a1eaf87ff53f3..e97313bddf6fb6 100644
--- a/docs/designers-developers/developers/tutorials/create-block/wp-plugin.md
+++ b/docs/designers-developers/developers/tutorials/create-block/wp-plugin.md
@@ -55,7 +55,7 @@ Let's confirm the plugin is loaded and working.
wp-env start
```
-This will start your local WordPress site and use the current directory as your plugin directory. In your browser, go to https://localhost:8888/wp-admin/ and login, the default username is "admin" and password is "password", no quotes.
+This will start your local WordPress site and use the current directory as your plugin directory. In your browser, go to http://localhost:8888/wp-admin/ and login, the default username is "admin" and password is "password", no quotes.
### Confirm Plugin Installed
diff --git a/docs/manifest.json b/docs/manifest.json
index c51b32e20f9442..4983d6c4b34804 100644
--- a/docs/manifest.json
+++ b/docs/manifest.json
@@ -119,6 +119,12 @@
"markdown_source": "../docs/designers-developers/developers/block-api/block-deprecation.md",
"parent": "block-api"
},
+ {
+ "title": "Block Supports",
+ "slug": "block-supports",
+ "markdown_source": "../docs/designers-developers/developers/block-api/block-supports.md",
+ "parent": "block-api"
+ },
{
"title": "Block Transforms",
"slug": "block-transforms",
diff --git a/docs/toc.json b/docs/toc.json
index 47dfa25425ceb3..7013a98ccc2ca6 100644
--- a/docs/toc.json
+++ b/docs/toc.json
@@ -21,6 +21,7 @@
{ "docs/designers-developers/developers/block-api/block-attributes.md": [] },
{ "docs/designers-developers/developers/block-api/block-context.md": [] },
{ "docs/designers-developers/developers/block-api/block-deprecation.md": [] },
+ { "docs/designers-developers/developers/block-api/block-supports.md": [] },
{ "docs/designers-developers/developers/block-api/block-transforms.md": [] },
{ "docs/designers-developers/developers/block-api/block-templates.md": [] },
{ "docs/designers-developers/developers/block-api/block-patterns.md": [] },
diff --git a/gutenberg.php b/gutenberg.php
index 2cda8621d0e063..4cf9aacec6ce6a 100644
--- a/gutenberg.php
+++ b/gutenberg.php
@@ -5,7 +5,7 @@
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
* Requires at least: 5.3
* Requires PHP: 5.6
- * Version: 9.0.0
+ * Version: 9.1.0
* Author: Gutenberg Team
* Text Domain: gutenberg
*
diff --git a/lib/block-supports/colors.php b/lib/block-supports/colors.php
index 8649b14d6d6095..b0bb4e1e22ada9 100644
--- a/lib/block-supports/colors.php
+++ b/lib/block-supports/colors.php
@@ -13,7 +13,7 @@
function gutenberg_register_colors_support( $block_type ) {
$color_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
- $color_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalColor' ), false );
+ $color_support = gutenberg_experimental_get( $block_type->supports, array( 'color' ), false );
}
$has_text_colors_support = true === $color_support || ( is_array( $color_support ) && gutenberg_experimental_get( $color_support, array( 'text' ), true ) );
$has_background_colors_support = true === $color_support || ( is_array( $color_support ) && gutenberg_experimental_get( $color_support, array( 'background' ), true ) );
@@ -60,10 +60,10 @@ function gutenberg_register_colors_support( $block_type ) {
* @return array Colors CSS classes and inline styles.
*/
function gutenberg_apply_colors_support( $attributes, $block_attributes, $block_type ) {
- $color_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalColor' ), false );
+ $color_support = gutenberg_experimental_get( $block_type->supports, array( 'color' ), false );
$has_text_colors_support = true === $color_support || ( is_array( $color_support ) && gutenberg_experimental_get( $color_support, array( 'text' ), true ) );
$has_background_colors_support = true === $color_support || ( is_array( $color_support ) && gutenberg_experimental_get( $color_support, array( 'background' ), true ) );
- $has_link_colors_support = gutenberg_experimental_get( $color_support, array( 'linkColor' ), false );
+ $has_link_colors_support = gutenberg_experimental_get( $color_support, array( 'link' ), false );
$has_gradients_support = gutenberg_experimental_get( $color_support, array( 'gradients' ), false );
// Text Colors.
diff --git a/lib/block-supports/typography.php b/lib/block-supports/typography.php
index 083a6ee477b900..ef33c3249ade17 100644
--- a/lib/block-supports/typography.php
+++ b/lib/block-supports/typography.php
@@ -13,12 +13,12 @@
function gutenberg_register_typography_support( $block_type ) {
$has_font_size_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
- $has_font_size_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalFontSize' ), false );
+ $has_font_size_support = gutenberg_experimental_get( $block_type->supports, array( 'fontSize' ), false );
}
$has_line_height_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
- $has_line_height_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalLineHeight' ), false );
+ $has_line_height_support = gutenberg_experimental_get( $block_type->supports, array( 'lineHeight' ), false );
}
if ( ! $block_type->attributes ) {
@@ -51,12 +51,12 @@ function gutenberg_register_typography_support( $block_type ) {
function gutenberg_apply_typography_support( $attributes, $block_attributes, $block_type ) {
$has_font_size_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
- $has_font_size_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalFontSize' ), false );
+ $has_font_size_support = gutenberg_experimental_get( $block_type->supports, array( 'fontSize' ), false );
}
$has_line_height_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
- $has_line_height_support = gutenberg_experimental_get( $block_type->supports, array( '__experimentalLineHeight' ), false );
+ $has_line_height_support = gutenberg_experimental_get( $block_type->supports, array( 'lineHeight' ), false );
}
// Font Size.
diff --git a/lib/blocks.php b/lib/blocks.php
index 0aa7c62e725b9d..a35f6a659bd294 100644
--- a/lib/blocks.php
+++ b/lib/blocks.php
@@ -45,7 +45,6 @@ function gutenberg_reregister_core_block_types() {
'text-columns',
'verse',
'video',
- 'widget-area',
),
'block_names' => array_merge(
array(
@@ -96,9 +95,11 @@ function gutenberg_reregister_core_block_types() {
dirname( __FILE__ ) . '/../build/edit-widgets/blocks/' => array(
'block_folders' => array(
'legacy-widget',
+ 'widget-area',
),
'block_names' => array(
'legacy-widget.php' => 'core/legacy-widget',
+ 'widget-area.php' => 'core/widget-area',
),
),
);
diff --git a/lib/class-wp-customize-widget-blocks-control.php b/lib/class-wp-customize-widget-blocks-control.php
deleted file mode 100644
index e92fef67c1577d..00000000000000
--- a/lib/class-wp-customize-widget-blocks-control.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
- link(); ?>
- />
- 350,
);
parent::__construct( 'block', __( 'Block', 'gutenberg' ), $widget_ops, $control_ops );
+ add_action( 'is_wide_widget_in_customizer', array( $this, 'set_is_wide_widget_in_customizer' ), 10, 2 );
}
/**
* Outputs the content for the current Block widget instance.
*
+ * @param array $args Display arguments including 'before_title', 'after_title',
+ * 'before_widget', and 'after_widget'.
+ * @param array $instance Settings for the current Block widget instance.
+ *
* @since 4.8.1
*
* @global WP_Post $post Global post object.
- *
- * @param array $args Display arguments including 'before_title', 'after_title',
- * 'before_widget', and 'after_widget'.
- * @param array $instance Settings for the current Block widget instance.
*/
public function widget( $args, $instance ) {
+ echo $args['before_widget'];
echo do_blocks( $instance['content'] );
+ echo $args['after_widget'];
}
/**
* Handles updating settings for the current Block widget instance.
*
- * @since 4.8.1
- *
* @param array $new_instance New settings for this instance as input by the user via
* WP_Widget::form().
* @param array $old_instance Old settings for this instance.
+ *
* @return array Settings to save or bool false to cancel saving.
+ * @since 4.8.1
*/
public function update( $new_instance, $old_instance ) {
$instance = array_merge( $this->default_instance, $old_instance );
$instance['content'] = $new_instance['content'];
+
return $instance;
}
/**
* Outputs the Block widget settings form.
*
- * @see WP_Widget_Custom_HTML::render_control_template_scripts()
- *
* @param array $instance Current instance.
+ *
+ * @see WP_Widget_Custom_HTML::render_control_template_scripts()
*/
public function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->default_instance );
echo do_blocks( $instance['content'] );
+ $textarea_id = $this->get_field_id( 'content' );
?>
-
+
+
+
add_setting(
- 'gutenberg_widget_blocks',
- array(
- 'default' => '{}',
- 'type' => 'gutenberg_widget_blocks',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage',
- 'sanitize_callback' => 'gutenberg_customize_sanitize',
- )
- );
-
- if ( gutenberg_use_widgets_block_editor() ) {
- $wp_customize->add_section(
- 'gutenberg_widget_blocks',
- array( 'title' => __( 'Widget Blocks', 'gutenberg' ) )
- );
- $wp_customize->add_control(
- new WP_Customize_Widget_Blocks_Control(
- $wp_customize,
- 'gutenberg_widget_blocks',
- array(
- 'section' => 'gutenberg_widget_blocks',
- 'settings' => 'gutenberg_widget_blocks',
- )
- )
- );
- }
-}
-add_action( 'customize_register', 'gutenberg_customize_register' );
-
-/**
- * Removes the core 'Widgets' panel from the Customizer if block based widgets are enabled.
- *
- * @param array $components Core Customizer components list.
- * @return array (Maybe) modified components list.
- */
-function gutenberg_remove_widgets_panel( $components ) {
- if ( ! gutenberg_use_widgets_block_editor() ) {
- return $components;
- }
-
- $i = array_search( 'widgets', $components, true );
- if ( false !== $i ) {
- unset( $components[ $i ] );
- }
- return $components;
-}
-add_filter( 'customize_loaded_components', 'gutenberg_remove_widgets_panel' );
-
-/**
- * Filters the Customizer widget settings arguments.
- * This is needed because the Customizer registers settings for the raw registered widgets, without going through the `sidebars_widgets` filter.
- * The `WP_Customize_Widgets` class expects sidebars to have an array of widgets registered, not a post ID.
- * This results in the value passed to `sanitize_js_callback` being `null` and throwing an error.
- *
- * TODO: Figure out why core is not running the `sidebars_widgets` filter for the relevant part of the code.
- * Then, either fix it or change this filter to parse the post IDs and then pass them to the original `sanitize_js_callback`.
- *
- * @param array $args Array of Customizer setting arguments.
- * @param string $id Widget setting ID.
- * @return array Maybe modified array of Customizer setting arguments.
- */
-function filter_widget_customizer_setting_args( $args, $id = null ) {
- // Posts won't have a settings ID like widgets. We can use that to remove the sanitization callback.
- if ( ! isset( $id ) ) {
- unset( $args['sanitize_js_callback'] );
- }
-
- return $args;
-}
-add_filter( 'widget_customizer_setting_args', 'filter_widget_customizer_setting_args' );
diff --git a/lib/edit-site-page.php b/lib/edit-site-page.php
index 689e628c6eeae7..83089981f59756 100644
--- a/lib/edit-site-page.php
+++ b/lib/edit-site-page.php
@@ -131,6 +131,7 @@ function gutenberg_edit_site_init( $hook ) {
'isRTL' => is_rtl(),
'maxUploadFileSize' => $max_upload_size,
'siteUrl' => site_url(),
+ 'postsPerPage' => get_option( 'posts_per_page' ),
);
$settings['styles'] = gutenberg_get_editor_styles();
diff --git a/lib/global-styles.php b/lib/global-styles.php
index 1fbdf36f00d95c..e4ec344af7738e 100644
--- a/lib/global-styles.php
+++ b/lib/global-styles.php
@@ -417,12 +417,12 @@ function gutenberg_experimental_global_styles_get_style_property() {
*/
function gutenberg_experimental_global_styles_get_support_keys() {
return array(
- '--wp--style--color--link' => array( '__experimentalColor', 'linkColor' ),
- 'background' => array( '__experimentalColor', 'gradients' ),
- 'backgroundColor' => array( '__experimentalColor' ),
- 'color' => array( '__experimentalColor' ),
- 'fontSize' => array( '__experimentalFontSize' ),
- 'lineHeight' => array( '__experimentalLineHeight' ),
+ '--wp--style--color--link' => array( 'color', 'linkColor' ),
+ 'background' => array( 'color', 'gradients' ),
+ 'backgroundColor' => array( 'color' ),
+ 'color' => array( 'color' ),
+ 'fontSize' => array( 'fontSize' ),
+ 'lineHeight' => array( 'lineHeight' ),
);
}
@@ -484,8 +484,8 @@ function gutenberg_experimental_global_styles_get_block_data() {
array(
'supports' => array(
'__experimentalSelector' => ':root',
- '__experimentalFontSize' => true,
- '__experimentalColor' => array(
+ 'fontSize' => true,
+ 'color' => array(
'linkColor' => true,
'gradients' => true,
),
diff --git a/lib/load.php b/lib/load.php
index 540539f56ba59a..435941c323d0dc 100644
--- a/lib/load.php
+++ b/lib/load.php
@@ -113,7 +113,6 @@ function gutenberg_is_experiment_enabled( $name ) {
require dirname( __FILE__ ) . '/navigation.php';
require dirname( __FILE__ ) . '/navigation-page.php';
require dirname( __FILE__ ) . '/experiments-page.php';
-require dirname( __FILE__ ) . '/customizer.php';
require dirname( __FILE__ ) . '/global-styles.php';
require dirname( __FILE__ ) . '/block-supports/index.php';
require dirname( __FILE__ ) . '/block-supports/align.php';
diff --git a/lib/widgets-page.php b/lib/widgets-page.php
index 4a12f51e550e31..f620d27865b68a 100644
--- a/lib/widgets-page.php
+++ b/lib/widgets-page.php
@@ -9,20 +9,12 @@
* The main entry point for the Gutenberg widgets page.
*
* @since 5.2.0
- *
- * @param string $page The page name the function is being called for, `'gutenberg_customizer'` for the Customizer.
*/
-function the_gutenberg_widgets( $page = 'appearance_page_gutenberg-widgets' ) {
+function the_gutenberg_widgets() {
?>