diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1d898d92aab66f..41811f7fd0fffb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -129,14 +129,14 @@ /packages/env @noahtallen # PHP -/lib @timothybjacobs @spacedmonkey -/lib/global-styles.php @timothybjabocs @spacedmonkey @oandregal -/lib/theme.json @timothybjabocs @spacedmonkey @oandregal -/lib/theme-i18n.json @timothybjabocs @spacedmonkey @oandregal -/lib/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @oandregal -/lib/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @oandregal -/lib/full-site-editing @janw-me -/phpunit/class-wp-theme-json-test.php @oandregal +/lib @timothybjacobs @spacedmonkey +/lib/global-styles.php @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/theme.json @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/theme-i18n.json @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php @timothybjabocs @spacedmonkey @oandregal +/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php @timothybjabocs @spacedmonkey @oandregal +/lib/full-site-editing @janw-me +/phpunit/class-wp-theme-json-test.php @oandregal # Web App /packages/admin-manifest @ellatrix diff --git a/changelog.txt b/changelog.txt index 00eac97c122b0c..8a8ad800535256 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,308 @@ == Changelog == += 12.1.0-rc.1 = + + + +### Enhancements + +#### Components +- Add `__unstable-large` size variant on `InputControl` `SelectControl` `UnitControl`. ([35646](https://github.com/WordPress/gutenberg/pull/35646)) +- Font Size Picker: Allow non-integers as simple CSS values and in hints. ([36636](https://github.com/WordPress/gutenberg/pull/36636)) +- Improve `vertical` and RTL support for `Divider`. ([36579](https://github.com/WordPress/gutenberg/pull/36579)) +- ItemGroup: Experimenting with chevron icon. ([36654](https://github.com/WordPress/gutenberg/pull/36654)) +- Toggle Group Control: Add tooltip. ([36726](https://github.com/WordPress/gutenberg/pull/36726)) +- `Modal`: Add `__experimentalHideHeader` prop, wrap in `forwardref`. ([36831](https://github.com/WordPress/gutenberg/pull/36831)) +- `ZStack`: Support RTL layouts when applying `offset`. ([36769](https://github.com/WordPress/gutenberg/pull/36769)) + +#### Site Editor +- Add icons to navigation sidebar items. ([36893](https://github.com/WordPress/gutenberg/pull/36893)) +- Allow editing custom template title. ([36933](https://github.com/WordPress/gutenberg/pull/36933)) +- Only render the site editor canvas when the global styles are ready. ([36643](https://github.com/WordPress/gutenberg/pull/36643)) +- Remove extra border radius. ([37022](https://github.com/WordPress/gutenberg/pull/37022)) +- Show theme, plugin or author in Added By column with appropriate icon or avatar. ([36763](https://github.com/WordPress/gutenberg/pull/36763)) +- Update navigation sidebar responsiveness. ([36638](https://github.com/WordPress/gutenberg/pull/36638)) + +#### Global Styles +- Borders: Switch to ToolsPanel for displaying UI. ([33743](https://github.com/WordPress/gutenberg/pull/33743)) +- Custom color palette: Add default color name. ([36940](https://github.com/WordPress/gutenberg/pull/36940)) +- Polish unset color indicator. ([36994](https://github.com/WordPress/gutenberg/pull/36994)) + +#### Block Editor +- Always show the block appender when its parent is selected. ([36656](https://github.com/WordPress/gutenberg/pull/36656)) +- Insertion point bar: Hide onBlur and onMouseLeave. ([36798](https://github.com/WordPress/gutenberg/pull/36798)) +- Writing Flow: Double escape unselects all blocks. ([36945](https://github.com/WordPress/gutenberg/pull/36945)) + +#### Block Library +- Add spacing attributes to comment author avatar. ([36322](https://github.com/WordPress/gutenberg/pull/36322)) +- Only show submenu options and Show arrow button when relevant. ([36826](https://github.com/WordPress/gutenberg/pull/36826)) + + +### Bug Fixes + +- Dependency Extraction Webpack Plugin: Make the plugin work when using `optimizations.runtimeChunk = 'single'`. ([26214](https://github.com/WordPress/gutenberg/pull/26214)) +- Fix document typo. ([36776](https://github.com/WordPress/gutenberg/pull/36776)) +- Prevent CleanWebpackPlugin webpack plugin from deleting webpack assets. ([35986](https://github.com/WordPress/gutenberg/pull/35986)) +- Try: Hide the columns inserter in pattern previews. ([36626](https://github.com/WordPress/gutenberg/pull/36626)) +- Update theme.json version. ([36917](https://github.com/WordPress/gutenberg/pull/36917)) + +#### Block Library +- Add page list to navigation direct insert conditions. ([36591](https://github.com/WordPress/gutenberg/pull/36591)) +- Cover: Fix undo trap. ([36807](https://github.com/WordPress/gutenberg/pull/36807)) +- Fix Nav block editing wrong entity on creation of new Menu. ([36880](https://github.com/WordPress/gutenberg/pull/36880)) +- Fix Nav block fallback DB query to match on full block grammar start tag. ([36854](https://github.com/WordPress/gutenberg/pull/36854)) +- Fix icon scaling. ([36948](https://github.com/WordPress/gutenberg/pull/36948)) +- Fix non existent menu handling in nav block. ([36507](https://github.com/WordPress/gutenberg/pull/36507)) +- Fix page list missing button styles when set to open on click. ([36601](https://github.com/WordPress/gutenberg/pull/36601)) +- Fix template part slug generation when creating through the block placeholder. ([36764](https://github.com/WordPress/gutenberg/pull/36764)) +- Gallery v1: Allow clicks within replace media placeholder state. ([36804](https://github.com/WordPress/gutenberg/pull/36804)) +- Gallery: Fix stuck image size options loader. ([36806](https://github.com/WordPress/gutenberg/pull/36806)) +- Include cascading properties in Navigation deprecation. ([36432](https://github.com/WordPress/gutenberg/pull/36432)) +- Navigation: Scale submenu icon. ([36714](https://github.com/WordPress/gutenberg/pull/36714)) +- Navigation: Try removing absorb toolbar prop. ([36990](https://github.com/WordPress/gutenberg/pull/36990)) +- Post Featured Image: Add the "Reset" button. ([36572](https://github.com/WordPress/gutenberg/pull/36572)) +- [Post Title]: Fix render error when setting Page to homepage. ([36786](https://github.com/WordPress/gutenberg/pull/36786)) +- [Query Pagination Next/Previous]: Remove text and link color support. ([36954](https://github.com/WordPress/gutenberg/pull/36954)) + +#### Site Editor +- Stabilize export endpoint. ([36559](https://github.com/WordPress/gutenberg/pull/36559)) +- Templat list fallback to slug. ([36947](https://github.com/WordPress/gutenberg/pull/36947)) +- Templates Controller: Add missing 'is_custom' prop. ([36911](https://github.com/WordPress/gutenberg/pull/36911)) +- Update hrefs to not specifically refer to themes.php?page=gutenberg-edit-site. ([36705](https://github.com/WordPress/gutenberg/pull/36705)) +- Validate the postType query argument. ([36706](https://github.com/WordPress/gutenberg/pull/36706)) + +#### Components +- Color Picker: Re-instate debounce and controlled value to fix issue with gradient picker. ([36941](https://github.com/WordPress/gutenberg/pull/36941)) +- ColorPicker: Replace hardcoded "blue" with theme color. ([36153](https://github.com/WordPress/gutenberg/pull/36153)) +- Tools Panel: Fix race conditions caused by conditionally displayed ToolsPanelItems. ([36588](https://github.com/WordPress/gutenberg/pull/36588)) +- `DateTimePicker`: Set PM hours correctly. ([36878](https://github.com/WordPress/gutenberg/pull/36878)) + +#### Themes +- Block Templates: Fix PHP notices on WP 5.8. ([36964](https://github.com/WordPress/gutenberg/pull/36964)) +- Don't try and render unstable location if Nav block has ID. ([36863](https://github.com/WordPress/gutenberg/pull/36863)) +- Fix duotone first render in Safari. ([36754](https://github.com/WordPress/gutenberg/pull/36754)) + +#### Accessibility +- Add accessible labelling to submenu buttons. ([36631](https://github.com/WordPress/gutenberg/pull/36631)) +- Add aria-current="page" to active navigation item. ([36946](https://github.com/WordPress/gutenberg/pull/36946)) +- Fix site editor region navigation. ([36709](https://github.com/WordPress/gutenberg/pull/36709)) + +#### Block Editor +- Fix wordbreak for URLs. ([36993](https://github.com/WordPress/gutenberg/pull/36993)) +- Writing Flow Multi-select: Ensure post title content editable after multi-select. ([36843](https://github.com/WordPress/gutenberg/pull/36843)) + +#### Full Site Editing +- Highlight "Site" in the navigation panel. ([36762](https://github.com/WordPress/gutenberg/pull/36762)) +- Show all templates and template parts on the site editor list screens. ([36761](https://github.com/WordPress/gutenberg/pull/36761)) + +#### Design Tools +- Border panel: Update to display multiple palette origins. ([36753](https://github.com/WordPress/gutenberg/pull/36753)) +- Cover: Move BoxControlVisualizer in the markup to make it visible. ([36635](https://github.com/WordPress/gutenberg/pull/36635)) + +#### Icons +- [Icons]: Fix Comment Author Name icon. ([36738](https://github.com/WordPress/gutenberg/pull/36738)) +- [Icons]: Fix property names for Comment Author Avatar icon. ([36737](https://github.com/WordPress/gutenberg/pull/36737)) + +#### Block Variations +- Block Styles: Check for existence of scroll container. ([37010](https://github.com/WordPress/gutenberg/pull/37010)) + +#### Style Variations +- Block Styles: Add a separating margin to the default picker. ([36976](https://github.com/WordPress/gutenberg/pull/36976)) + +#### Testing +- Fix: Failing PHPUnit test. ([36931](https://github.com/WordPress/gutenberg/pull/36931)) + +#### Widgets Editor +- Add CSS fix for 33580. ([36759](https://github.com/WordPress/gutenberg/pull/36759)) + +#### Post Editor +- Multi-entity save: Only set site entity to pending if really saving. ([36573](https://github.com/WordPress/gutenberg/pull/36573)) + +#### Global Styles +- Make the core color palette opt-in for themes with not `theme.json`. ([36496](https://github.com/WordPress/gutenberg/pull/36496)) + +#### Data Layer +- Data: Update types and fix type error. ([36190](https://github.com/WordPress/gutenberg/pull/36190)) + + +### Performance + +#### Block Library +- Improve performance of wp_navigation lookup.. ([36891](https://github.com/WordPress/gutenberg/pull/36891)) + + +### Experiments + +#### Global Styles +- Add elements support to the typography panel in global styles. ([36718](https://github.com/WordPress/gutenberg/pull/36718)) +- Add: Border indication to global styles colors. ([36959](https://github.com/WordPress/gutenberg/pull/36959)) +- Add: Corners to custom color picker popover. ([37015](https://github.com/WordPress/gutenberg/pull/37015)) +- Add: Gradient palette editor. ([36820](https://github.com/WordPress/gutenberg/pull/36820)) +- Add: Missing margin to the color picker clear button. ([37016](https://github.com/WordPress/gutenberg/pull/37016)) +- Add: Transparency support on global styles colors. ([36840](https://github.com/WordPress/gutenberg/pull/36840)) +- Add: Uneditable duotone palette on the palette gradient panel. ([36920](https://github.com/WordPress/gutenberg/pull/36920)) +- Call "palettes" and not "color palettes" on panel label. ([36921](https://github.com/WordPress/gutenberg/pull/36921)) +- Color Picker: Improve border, padding, and box shadow styles. ([36963](https://github.com/WordPress/gutenberg/pull/36963)) +- Color UI component: Reorder palettes and update names (core by defaults, user by custom). ([36622](https://github.com/WordPress/gutenberg/pull/36622)) +- Fix: Apply by slug on all origins. ([36841](https://github.com/WordPress/gutenberg/pull/36841)) +- Fix: Color palette is not being stored. ([36817](https://github.com/WordPress/gutenberg/pull/36817)) +- Fix: Custom color picker popover position. ([36965](https://github.com/WordPress/gutenberg/pull/36965)) +- Fix: Theme colors cannot override defaults. ([36811](https://github.com/WordPress/gutenberg/pull/36811)) +- GlobalStyles sidebar: Do not show default palette if theme opts-out. ([36639](https://github.com/WordPress/gutenberg/pull/36639)) +- Make links plural in global styles. ([36819](https://github.com/WordPress/gutenberg/pull/36819)) +- Make user able to change all color palette origins. ([36674](https://github.com/WordPress/gutenberg/pull/36674)) +- Rename `core` origin key to `default` for presets. ([36645](https://github.com/WordPress/gutenberg/pull/36645)) +- Update function names for the public global styles API functions. ([36907](https://github.com/WordPress/gutenberg/pull/36907)) +- Update: Global Styes: Count all color palette origins on the palette counter. ([36922](https://github.com/WordPress/gutenberg/pull/36922)) +- Update: Rename user preset origin to custom. ([36748](https://github.com/WordPress/gutenberg/pull/36748)) +- theme.json: Add `appearanceTools` flag to opt-in into appearance UI controls. ([36646](https://github.com/WordPress/gutenberg/pull/36646)) + +#### Block Library +- Allow filtering of Nav block fallback. ([36850](https://github.com/WordPress/gutenberg/pull/36850)) +- Deprecate navigation areas. ([36727](https://github.com/WordPress/gutenberg/pull/36727)) +- Implement suitable fallback for Nav block on front end of site when no menu selected. ([36724](https://github.com/WordPress/gutenberg/pull/36724)) +- Navigation: Fix space-between. ([36441](https://github.com/WordPress/gutenberg/pull/36441)) +- Remove navigationArea context. ([36981](https://github.com/WordPress/gutenberg/pull/36981)) +- Remove unstable max pages attribute from Nav block. ([36877](https://github.com/WordPress/gutenberg/pull/36877)) +- Rename navigationMenuId to ref. ([36739](https://github.com/WordPress/gutenberg/pull/36739)) +- Render empty Nav block if no fallback block can be utilised. ([36849](https://github.com/WordPress/gutenberg/pull/36849)) +- Try always generating navigation post title. ([36760](https://github.com/WordPress/gutenberg/pull/36760)) +- Use first non-empty Nav post as primary fallback for Nav block. ([36740](https://github.com/WordPress/gutenberg/pull/36740)) + +#### Full Site Editing +- Add success and error snackbars to the templates list page. ([36808](https://github.com/WordPress/gutenberg/pull/36808)) +- Add templates list page for site editor. ([36379](https://github.com/WordPress/gutenberg/pull/36379)) +- Implement "Add New" for templates list in Site Editor. ([36592](https://github.com/WordPress/gutenberg/pull/36592)) +- Remove block template resolution unit tests. ([36855](https://github.com/WordPress/gutenberg/pull/36855)) +- Remove the Styles link in Site Editor. ([36637](https://github.com/WordPress/gutenberg/pull/36637)) +- Update and align template descriptions. ([36000](https://github.com/WordPress/gutenberg/pull/36000)) +- [REST] Restore the missing double slash in the ID received by /templates. ([36881](https://github.com/WordPress/gutenberg/pull/36881)) + +#### Accessibility +- Use table layout in templates list screen. ([36707](https://github.com/WordPress/gutenberg/pull/36707)) + + +### Documentation + +- Add brief information about blockGap to the theme.json how-to guide. ([36558](https://github.com/WordPress/gutenberg/pull/36558)) +- Add placeholder in URLInput documentation. ([36799](https://github.com/WordPress/gutenberg/pull/36799)) +- Block Supports: Update block supports documentation after typography reshaping. ([36894](https://github.com/WordPress/gutenberg/pull/36894)) +- Docs: Alphabetize the How to Guides section. ([35904](https://github.com/WordPress/gutenberg/pull/35904)) +- Docs: Fix broken link to @wordpress/stylelint-config. ([36936](https://github.com/WordPress/gutenberg/pull/36936)) +- Docs: Improvements on `Create a Block Tutorial` from `Block Editor handbook`. ([36553](https://github.com/WordPress/gutenberg/pull/36553)) +- Docs: Update history.md with description of the page. ([36888](https://github.com/WordPress/gutenberg/pull/36888)) +- Update Getting Started with info to stay informed. ([36498](https://github.com/WordPress/gutenberg/pull/36498)) +- Update Pattern block category and add documentation. ([36144](https://github.com/WordPress/gutenberg/pull/36144)) +- Various inline docblock corrections. ([36793](https://github.com/WordPress/gutenberg/pull/36793)) + +#### Components +- ToolsPanel: Update panel readme and stories. ([36557](https://github.com/WordPress/gutenberg/pull/36557)) + + +### Code Quality + +- Blocks: Refactor generator-based actions to thunks. ([36468](https://github.com/WordPress/gutenberg/pull/36468)) +- Remove useless bubblesVirtually prop from BlockInspector. ([37024](https://github.com/WordPress/gutenberg/pull/37024)) + +#### Global Styles +- Move Global Styles code to `lib/compat/wordpress-5.9` folder. ([36978](https://github.com/WordPress/gutenberg/pull/36978)) +- Rename `gutenberg_` to `wp_` for some functions that land in WordPress 5.9. ([36913](https://github.com/WordPress/gutenberg/pull/36913)) +- Update global styles public API. ([36610](https://github.com/WordPress/gutenberg/pull/36610)) +- Update the `WP_Theme_JSON_Gutenberg` class to be like the core one. ([36973](https://github.com/WordPress/gutenberg/pull/36973)) +- Update the `WP_Theme_JSON_Resolver_Gutenberg` class to be like the core one. ([36974](https://github.com/WordPress/gutenberg/pull/36974)) +- `theme.json`: Sort keys alphabetically. ([36968](https://github.com/WordPress/gutenberg/pull/36968)) + +#### Block Library +- Navigation: Remove outdated separate "Home" link styles. ([36608](https://github.com/WordPress/gutenberg/pull/36608)) +- Post Featured Image: Remove withNotices HOC. ([36596](https://github.com/WordPress/gutenberg/pull/36596)) +- [Comment Author Avatar]: Remove extraneous color link support flag. ([36956](https://github.com/WordPress/gutenberg/pull/36956)) + +#### Post Editor +- [Edit Post]: Remove EditPostSettings context provider. ([36949](https://github.com/WordPress/gutenberg/pull/36949)) + + +### Tools + +- Add ajlende to JSON Schema codeowners. ([36580](https://github.com/WordPress/gutenberg/pull/36580)) +- Report dependencies externalized with Dependency Extraction Plugin. ([35106](https://github.com/WordPress/gutenberg/pull/35106)) +- Update CODEOWNERS for @mkaz and documentation cleanup. ([36581](https://github.com/WordPress/gutenberg/pull/36581)) +- Update mkaz codeowner on schemas. ([36686](https://github.com/WordPress/gutenberg/pull/36686)) + +#### Testing +- Reorganize end-to-end tests folders and files. ([36734](https://github.com/WordPress/gutenberg/pull/36734)) +- Scripts: Upgrade Puppeteer to v11. ([36040](https://github.com/WordPress/gutenberg/pull/36040)) +- Update template controller unit test now that author support is in WP core. ([36987](https://github.com/WordPress/gutenberg/pull/36987)) +- end-to-end Tests: Fix failing image end-to-end test by waiting for required element. ([36982](https://github.com/WordPress/gutenberg/pull/36982)) + + +### Security + +#### Block Library +- [ Comment Author Avatar Block ] - Escape styles attribute. ([36988](https://github.com/WordPress/gutenberg/pull/36988)) + + +### Various + +- Add button text when no colors found. ([36684](https://github.com/WordPress/gutenberg/pull/36684)) +- Add origin and author to template rest api. ([36896](https://github.com/WordPress/gutenberg/pull/36896)) +- Change .nvmrc and documentation for Node.js version (LTS to 14.18.1). ([36744](https://github.com/WordPress/gutenberg/pull/36744)) +- Clarify i18n context for PostTemplateActions's "New" label. ([36679](https://github.com/WordPress/gutenberg/pull/36679)) +- Mobile - Preformatted block - Fix showing the default background color. ([36883](https://github.com/WordPress/gutenberg/pull/36883)) +- Mobile - RichText - Fixes an issue where the font size value won't update. ([36621](https://github.com/WordPress/gutenberg/pull/36621)) +- Revert erroneous native editor package version bumps. ([36633](https://github.com/WordPress/gutenberg/pull/36633)) +- Schemas: Allow custom blocks in theme.json styles. ([36411](https://github.com/WordPress/gutenberg/pull/36411)) +- Site Editor: Sync export API. ([36908](https://github.com/WordPress/gutenberg/pull/36908)) +- Update: Migrate global styles user database data on the rest endpoint. ([36747](https://github.com/WordPress/gutenberg/pull/36747)) + +#### Site Editor +- Add 'Clear customizations' button to template list page. ([36802](https://github.com/WordPress/gutenberg/pull/36802)) +- Make Reusable blocks available in the Site Editor. ([36511](https://github.com/WordPress/gutenberg/pull/36511)) +- Remove color, spacing, and layout options for Template Part block. ([36571](https://github.com/WordPress/gutenberg/pull/36571)) +- Set the
- { __( - 'Updating to the new format adds the ability to use custom links or styles on individual images in the gallery, and makes it easier to add or move them around.' - ) } -
- -