Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] trunk from WordPress:trunk #97

Merged
merged 3,469 commits into from
Jan 18, 2024
Merged

[pull] trunk from WordPress:trunk #97

merged 3,469 commits into from
Jan 18, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented May 18, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

glendaviesnz and others added 28 commits January 3, 2024 08:13
* Move synced patterns global editing to focus mode in editor

* Add back padding to focus mode and notice to indicate global nature of changes

* Update experiment wording

* Move the edit mode function to the editor package

* Change label on edit button

* Remove `pattern-only` mode

* Revert more pattern-only mode code

* Another revert

* Add basic routing to post editor

* Add document bar and padding

* Fix initialisation of post id and post type

* Only show header bar and padding if edit mode is set to focused

* refine check for edit mode

* Remove routing

* Switch to a simple postHistory array for switching back from pattern editing

* move postHistory to a ref

* Move history settings into hook

* refine history stack slightly

* Refactor `usePostHistory` to keep all history in a single array. Use useReducer.

* fix edit post specific classname

* Fix iframe classes

* Editing in focus mode - pass onSelectPost as editor setting

* Minor tidy ups

* Move from onSelectPost to getPostLinkProps and add new hook in site editor instead of trying to reuse useLink

* Fixes from code review

* Another fix from review

* Add optional state param to call to history.push

* Remove code duplication in usePostLinkProps hook

* make sure block editing mode set to default when going to edit original

* Tidy up edit mode assignment

* Don't adjust the url if moving to focused mode of entity from post

* Change how updating of url is bypassed when switching to focused mode editing

---------

Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
…#57449)

* Block Library: Remove store subscriptions from Audio and Video blocks

* Fix typos
…7422)

* Migrate 'block editor keyboard shortcuts' e2e tests to Playwright
* Remove old test files

Co-authored-by: Alvi Tazwar <55917380+alvitazwar@users.noreply.github.com>
…e editor iframe, but the editor canvas container, e.g., style book (#57503)
* Dataviews: Add some client side data handling utils

* rename params `items->data`

* small fix

* reset the page number when the category changes

* fix passed text fields

* change the whole view when we change category id
…56790)

In the Template Part block, set the `$template_part_file_path` variable (for use by the `render_block_core_template_part_file` and `render_block_core_template_part_none` filters).
* Snackbar: Fix icon positioning

* Update story

* Update changelog

* Avoid pixel values
* Migrate editing-widgets to Playwright

* Fix tests

* Code review

* Fix the legacy widget issue in test
* Use onChange instead of onClick when possible

* Use actual radio item component for field operators, layout type, and page size radios

* Use actual radio item component for sorting radios, tweaking radio names and values
* NavigatorProvider: Exclude size value from contain CSS rule

* Update changelog
* Update `AztectInputState` unit tests to use focus/blur functions

* Add unit tests to check canceling blur events
* DuotonePicker: Fix top margin when no duotone options

* Update changelog

---------

Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com>
* Add drag cursor to draggable list items

* Use more specific classes

* Remove :hover and show pointer on the expander
* Gallery Block: Add random order setting

* Regenerate fixtures

* Update variable name

* Update packages/block-library/src/gallery/index.php

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>

---------

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
* Move the patterns tab after the blocks tab in the inserter menu

* Remove left-over 'prioritizePatterns'

* Update spacing in tab.js
gonzomir and others added 29 commits January 16, 2024 14:14
* Add gettext content when translating 'Header'.

* Oops, add import for _x().
* Allow only strings for wp-text

* Update changelog

* Update with suggested commit, add try-catch and toString

* Update tests, prevent [object Object]

* Apply suggestion to preven duplicate evaluate calls

* Change changelog

---------

Co-authored-by: Luis Herranz <luisherranz@gmail.com>
…support of trac 59969 (#56952)

* call variation through callback so it's only loaded when needed.

* move gutenberg_add_hooked_blocks from 6.4 to 6.5

* cs fixes

* fix version number

* revert some code

* adapting to variation_calback

* B/C for plugin

* cs fixes

* cs fixes

* cs fixes

* shims to support block variation changes for WP < 6.5

* EOL for PHPCS
…iewport widths are equal (#57866)

* When the same value is provided for min and max viewport widths in the fluid typography config, do not calculate fluid typography values and return null. We could provide a fallback from the default values in gutenberg_get_typography_font_size_value() but I think it might be better to bypass returning clamp values altogether because fundamentally, the input is wrong.

* Comment
* Allow heading and button in Pattern Overrides

* Allow url for button
* Add a control to reset pattern overrides

* Address code reviews

* Don't render reset button when there is no binding blocks

* Set the `__experimentalIsFocusable` prop on the Reset to original toolbar button so that it maintains focus

---------

Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
…ntOnly editing mode (#57906)

* Remove text align control for paragraphs and buttons in contentOnly editing mode

* Remove heading level and text align on content only mode heading blocks

* Add a react native edit file for the heading block that does not use useBlockEditingMode
* Add image block support for pattern overrides

* Hide the crop controls in content only mode

* Revert "Hide the crop controls in content only mode"

This reverts commit 2cf4c3c.
…57156)

Co-authored-by: Carolina Nymark <hi@themesbycarolina.com>
#57718)

* Fix visual indication of switch to default template in the post editor

* fix logic for request template resolution

* fix template resolution in site editor

* add e2e test
…leton pattern (#57742)

* Move bindings logic to Block Bindings class

* Remove erroneous echo statement that was breaking UI

* Fix error in registering block bindings sources

* Add missing return statement

* Add docblocks

* Remove obsolete file

* Fix docblock

* Sync register_source docblock

* Remove erroneous subpackage declaration

* Update package name

* Fix gutenberg package declarations

* Remove extraneous comments

* Move allowed_blocks property to filter function

* Update description of Block Bindings class

* Address PHPCS spacing issue

* Rename function call and call using string in filter
#57892)

* BlockSwitcher: Defer transform calculations until the Dropdown is open

* address feedback

* fix e2e tests

* add a test, fix a test

* address feedback
…` dependencies (#57891)

* Update preact, preact-signals, and deepsignal versions

* Update changelog

* Revert removal of role in wp-bind processing
Updates from WordPress/wordpress-develop at 54a09a7ec99c59b8e640bd5aacebfdbf03bb02cc

 - WordPress/wordpress-develop#5535
   Adds support for H1 - H6 elements in the HTML Processor.

 - WordPress/wordpress-develop#5725
   Pause the Tag Processor when reaching the end of the document
   inside an incomplete syntax element.

 - Incorporates linting changes from "TODO:" to "todo".

 - WordPress/wordpress-develop#5762
   Handles the "all other tags" rules in IN BODY insertion mode.

 - WordPress/wordpress-develop#5539
   Adds support for list elements in the HTML Processor.

This patch adds the blanket exclusion from the HTML API compatability
layer after they were removed and started blocking updates from Core.

The PHP files in the compatability layer are merged and maintained in
the Core repo and all changes or updates need to happen first in Core
and then be brought over to Gutenberg as built files. From Gutenberg's
perspective they are no different than NPM packages.

Co-authored-by: Anton Vlasenko <43744263+anton-vlasenko@users.noreply.github.com>
Co-authored-by: Bernie Reiter <96308+ockham@users.noreply.github.com>
…n the soon to be removed block bindings global (#57912)
* Templates

* Remove commeent

* Proportions

* lint offense

---------

Co-authored-by: ntsekouras <ntsekouras@outlook.com>
* CustomSelect: adjust renderSelectedValue to fix sizing

* Revert "CustomSelect: adjust renderSelectedValue to fix sizing"

This reverts commit 924ce00a894d820a7213412cdec9dbaa6a6cf7d0.

* Update based on PR feedback

* Update changelog
@pull pull bot merged commit 142725a into MaxMood96:trunk Jan 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet