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 #67

Merged
merged 338 commits into from
Jun 29, 2024
Merged

[pull] trunk from WordPress:trunk #67

merged 338 commits into from
Jun 29, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented Jun 6, 2024

See Commits and Changes for more details.


Created by pull[bot]

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

Copy link

github-actions bot commented Jun 6, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @gutenbergplugin.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: gutenbergplugin.

Co-authored-by: jasmussen <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: amitraj2203 <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: narenin <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: sirreal <[email protected]>
Co-authored-by: joemcgill <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: up1512001 <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: jorgefilipecosta <[email protected]>
Co-authored-by: geriux <[email protected]>
Co-authored-by: gigitux <[email protected]>
Co-authored-by: scruffian <[email protected]>
Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: aaronware <[email protected]>
Co-authored-by: noisysocks <[email protected]>
Co-authored-by: oandregal <[email protected]>
Co-authored-by: ajlende <[email protected]>
Co-authored-by: akasunil <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: aatanasovdev <[email protected]>
Co-authored-by: artemiomorales <[email protected]>
Co-authored-by: saulyz <[email protected]>
Co-authored-by: matiasbenedetto <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@pull pull bot added the ⤵️ pull label Jun 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core.
  • Labels found: ⤵️ pull.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

jasmussen and others added 27 commits June 10, 2024 11:30
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: vcanales <[email protected]>
…ations (#62399)

Co-authored-by: gziolo <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: ockham <[email protected]>
…62360)

* Fix big canvas in the post editor when editing patterns

* Avoid adding multiple padding rules

* Revert "Avoid adding multiple padding rules"

This reverts commit 91edeb9.

* Revert "Fix big canvas in the post editor when editing patterns"

This reverts commit 37326a9.

* Ensure `useEditorStyles` recomputes whenever the postType changes

* Fix mutation of `editorSettings.styles` resulting in editor styles incorrectly persisting and being duplicated

----

Co-authored-by: talldan <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: bgardner <[email protected]>
…en both are same (#61819)

* Add removeProtocol function to URL package

* Fix redundant link preview display when link text includes protocol in LinkControl.

* Changed regex for stripDomainPrefixes to handle all protocols

* Add unit tests for stripDomainPrefixes function

* Refactor URL filtering logic

* Change variable name

* Moved filterTitleForDisplay outside of component

* Adds test cases for the updated regex

* Fix typos and remove redundant tests for filterURLForDisplay

* Fix isUrlRedundant check in LinkPreview component

* Add test case for empty or falsy URL in filterURLForDisplay function

Co-authored-by: amitraj2203 <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: tyxla <[email protected]>
* Ensure the Edit template context menu is shown in the post editor/site editor pages by checking only for a templateId.
Previously it was only shown for pages and there was no check if the user can edit template.
Show a not-very-pretty dialogue box where a user cannot edit a template.

* Check for an entity before showing the canUser message.

* Rename variable
Move canUser fallback component beneath existing entity check block

* Use existing component but disable the edit button and update the copy

* Check for content blocks

* Use `getContentLockingParent`

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ellatrix <[email protected]>
#62313)

* Decode the page title when creating a new page from the Site Editor > Pages
* Decode the page title when a page is duplicated from the Data Views
* Decode the page title when you duplicate an item in the Edit Site > Editor component
* Decode the page title when a page or post is duplicated from the block editor
* Add ´@wordpress/html-entities´ to the edit post package.

Co-authored-by: carolinan <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: oandregal <[email protected]>
Co-authored-by: annezazu <[email protected]>
…ckground-panel.js (#62440)

* Fixed : Disambiguate 'Cover' translatable string in the context of background-panel.js

* Added context for Contain and Tile

* Implemented the suggestions


Co-authored-by: narenin <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: audrasjb <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: mcsf <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: sirreal <[email protected]>
Co-authored-by: WunderBart <[email protected]>
Co-authored-by: up1512001 <[email protected]>
The `get_theme_json` method was actually added in v18.5.0, not  18.3.0. This corrects the docblock reference.

Co-authored-by: joemcgill <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: ellatrix <[email protected]>
* Fix showing double icons for connected blocks in pattern editor

* Fix post-meta

* Unify the experience

* Rename the component
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: mcsf <[email protected]>
Co-authored-by: colorful-tones <[email protected]>
* List View: Fix home and end key behaviour in very long lists

* Update e2e test

Co-authored-by: andrewserong <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: ellatrix <[email protected]>
* Adds "Time Ago" option to SelectControl of DateFormatPicker

* Update post-date block to have "Time ago" format

* Use 'human-diff' as format for relative dates

* Add support for relative dates to Comment Date block

* Always use a somewhat recent example date

---------

Co-authored-by: amitraj2203 <[email protected]>
Co-authored-by: noisysocks <[email protected]>
Co-authored-by: ramonjd <[email protected]>
…k styles (#62495)

Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: oandregal <[email protected]>
* Unify DataViews Patterns Header Title & Subtitle

* Don't wrap text

* Apply same logic to Pages, Templates

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jasmussen <[email protected]>
westonruter and others added 29 commits June 27, 2024 08:01
Co-authored-by: westonruter <[email protected]>
Co-authored-by: ockham <[email protected]>
Co-authored-by: ellatrix <[email protected]>
…2896)

* Remove the const `TOOLSPANEL_DROPDOWNMENU_PROPS` in favour of a hook that returns different popover props depending on the viewport width

* Remove offset completely

* Add to block support panels

* Replace in block library.

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: youknowriad <[email protected]>
…S is generated (#62768)

* Render styles after the variation style overrides have been saved to stage.
Getting closer. But the overrides in state need to be merged with incoming revision styles.

* For every current override, update the variation CSS with the incoming config from the revision.

* Rename hook
Destructure in hook so the consumer doesn't have to clone
Only send the override overrides to EditorStyles that need to be overridden.

* Fetching overrides in the hook

* Feedback suggestions from review:
add overrides to dep array in Editor Styles
rename hook

* Return getBlockStyles from the useSelect callback

* Refactor so we don't have to change the EditorStyles props
Register revision overrides with useStyleOverride

* Adding some explanatory comments
Add rudimentary E2E test covering block style partials, applying them, updating them and viewing styles revisions.

* Removed unused style fixture

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: ellatrix <[email protected]>
)

When a `core/group` block has only one variation available, skip the placeholder step and select the variation.

Co-authored-by: costasovo <[email protected]>
Co-authored-by: ockham <[email protected]>
* Fix issue of HTML entities rendering in command menu

* Update link to API in block-editor README.md

* Undo previous changes

* Fix issue of HTML entities rendering in command menu

* Add @wordpress/html-entities dependency in packages/core-commands
* Add minimum width to select popover

* CHANGELOG

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
…es (#62828)

* Remove only supported attributes

* Try alternative approach

* Update comment

* Return early while editing the original pattern

* Move conditional inside conditional

* Add missing check

* Go back to running always bindings

* Use block context to detect presence of parent pattern for overrides (#62861)

* Use block context to detect presence of parent pattern

* Regenerate fixtures

* Update image block to use context for checking a parent pattern block exists

* Rename context to `pattern/overrides` to be consistent with php code

* Move pattern overrides context shim to pattern overrides hooks

* Remove shim

Co-authored-by: talldan <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>

* Reduce diff

* Change array order

---------

Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
- Change 'color' to 'colors' in destructured parameter of example code
- Update ensures the example code accurately demonstrates correct usage

Co-authored-by: byeongin <[email protected]>

Unlinked contributors: [email protected].
Co-authored-by: desrosj <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jorgefilipecosta <[email protected]>
Co-authored-by: sirreal <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: luisherranz <[email protected]>
Co-authored-by: oandregal <[email protected]>
* Recommend kebab-case in wp-class and remove outdated info about callback args

* Trigger actions again

Co-authored-by: luisherranz <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
* Add vertical indicator animation.

* Remove style overrides from preferences menu in the block editor.

Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: jasmussen <[email protected]>
…al styles (#62915)

* Add blockName to the overrides array so getBlockName() can be called in the useSelect store subscription callback

* Update e2e test to wait for save button between styles updates

* Revert selector name

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: amitraj2203 <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: ndiego <[email protected]>
…tions or links (#62948)

Co-authored-by: talldan <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
…cumentations (#62945)

* Fix typo to be preposition, not verb

* Reformat to fit comment on one line

---------

Unlinked contributors: [email protected].

Co-authored-by: t-hamano <[email protected]>
* Fix triple scrollbars in post editor

* Restore flex of VisualEditor when metaboxes are present

Co-authored-by: stokesman <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Update braces dependency

This does not remove all the problematic braces versions due to a transitive dependency on braces v2

* Update platform-docs package-lock

* Update webpack-dev-middleware

* Update ws

* Dedupe platform-docs packages

* Update platform-docs braces

* Update platoform-docs express

* Update platform-docs follow-redirects

* Dedupe package-lock

* Upgrade undici

* Upgrade @adobe/css-tools

* Upgrade ejs

* Upgrade postcss

* Upgrade node-fetch

* Update snapshots

Some version hashes have changed

* Update zod

* Dedupe

* Dedupe

Co-authored-by: sirreal <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
* fix unit control select disabled state

* adding changelog entry

* adding 'bug fixes' subtitle to readme addition

Co-authored-by: Lena Morita <[email protected]>

* lowe specifity to avoid override :focus styles

Co-authored-by: Lena Morita <[email protected]>

* removing redundant css

---------


Co-authored-by: matiasbenedetto <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: oandregal <[email protected]>
…es. (#62942)

* Split animation logic into multiple separate composable utilities.

* JSDoc tweak.

Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: ciampo <[email protected]>
@pull pull bot merged commit 0ea6751 into carstingaxion:trunk Jun 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment