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

Fix unexpected unlocking control in block toolbar for templae blocks #67120

Closed
wants to merge 214 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
958a8a2
Bump plugin version to 19.3.0-rc.1
gutenbergplugin Sep 19, 2024
637a745
Update Changelog for 19.3.0-rc.1
gutenbergplugin Sep 19, 2024
320f84a
Update changelog files
gutenbergplugin Sep 19, 2024
7a86c1b
chore(release): publish
gutenbergplugin Sep 19, 2024
cf707c1
chore(release): publish
gutenbergplugin Sep 19, 2024
76af44f
Revert "Make `wordpress/fields` a private package (#65269)" (#65477)
noisysocks Sep 19, 2024
41c3dae
chore(release): publish
gutenbergplugin Sep 19, 2024
2d3a8bd
Swap position of the Pre-publish checks buttons. (#65317)
afercia Sep 19, 2024
b53abc2
Babel preset: Add missing files to package (#65481)
sirreal Sep 19, 2024
fa1a0d6
Interactivity API: Add `getServerState()` and `getServerContext()` (#…
DAreRodz Sep 19, 2024
3686e92
chore(release): publish
gutenbergplugin Sep 19, 2024
80df28e
Search block: reset size correctly when clearing unit control (#65468)
ciampo Sep 19, 2024
1df4bb0
Make sections contentOnly in Zoom Out (#65396)
getdave Sep 19, 2024
33ede7b
Hide block transforms in contentOnly mode for non-content blocks (#65…
getdave Sep 19, 2024
a784d78
Command Palette: "Add new page" within the site editor creates new pa…
ramonjd Sep 20, 2024
0237d6e
Handle zoom out when changing device preview (#65444)
draganescu Sep 19, 2024
4baca3e
Block Bindings: Remove key fallback in bindings get values and rely o…
SantosGuillamot Sep 20, 2024
8488c64
Script Modules: Centralize registration (#65460)
sirreal Sep 20, 2024
2cce429
useToolsPanel: calculate menuItems in layout effect to avoid painting…
jsnajdr Sep 20, 2024
a51babc
Revert "useToolsPanel: calculate menuItems in layout effect to avoid …
youknowriad Sep 20, 2024
3215aa5
Query Loop: Remove is_singular() check and fix test (#65483)
mikachan Sep 20, 2024
b6229a4
Command Palette: Fix "Add new page" command for hybrid theme (#65534)
t-hamano Sep 20, 2024
a851bd2
Fix grid layout padding on small screens (#64878)
jameskoster Sep 20, 2024
e4df8fd
DEWP: Handle cyclical module dependencies (#65291)
michalczaplinski Sep 19, 2024
969c3a5
Components: Cleanup unused ToggleGroupControl config values (#65456)
tyxla Sep 19, 2024
c4b7319
Decouple "zoom/scaling the canvas" from zoom out mode (without mode r…
getdave Sep 20, 2024
9e45522
Make the Settings panel toggle button show its keyboard shortcut in i…
afercia Sep 19, 2024
d87b39b
Fix `useResizeObserver` bugs (#65389)
DaniGuardiola Sep 19, 2024
eae0c80
Fix: Button: Replace remaining 40px default size violation [Edit Site…
hbhalodia Sep 19, 2024
51204ac
chore(release): publish
gutenbergplugin Sep 23, 2024
33b287a
Connected blocks, add backdrop-color. (#65233)
jasmussen Sep 24, 2024
44e4896
Block Bindings: Fix passing bindings context to `canUserEditValue` (#…
SantosGuillamot Sep 24, 2024
360c6c8
Don't show tooltip in zoom out toggle button when showIconLabels is t…
t-hamano Sep 24, 2024
0080898
Block Bindings: Prioritize existing placeholder over bindingsPlacehol…
zaguiini Sep 24, 2024
b26e274
useToolsPanel: calculate derived state in reducer to prevent too many…
jsnajdr Sep 24, 2024
6584230
Only use `canUserEditValue` when `setValues` is defined (#65566)
SantosGuillamot Sep 24, 2024
bc3af46
Navigator: fix isInitial logic (#65527)
ciampo Sep 24, 2024
1cae307
Revert "DataViews Sidebar: Display item count on DataViews sidebar" (…
ramonjd Sep 24, 2024
4081b90
Query loop format controls: Fix JavaScript error (#65551)
carolinan Sep 25, 2024
592d717
Block Bindings: Unify logic in `getPostMetaFields` function (#65462)
SantosGuillamot Sep 25, 2024
31de263
Only pass context included in `usesContext` from block bindings (#65618)
SantosGuillamot Sep 25, 2024
5237aac
Zoom out: Reset zoom out level when device type is changed (#65652)
t-hamano Sep 25, 2024
a5c346f
Use `registry` instead of `select` in `canUserEditValue` (#65659)
SantosGuillamot Sep 25, 2024
ab2e860
Block Bindings: Fix editing protected custom fields in block bindings…
SantosGuillamot Sep 25, 2024
353c87f
Block Bindings: Fix showing bindings field values in theme templates …
SantosGuillamot Sep 25, 2024
2f96654
DEWP: Check for magic comments before minification (#65582)
anomiex Sep 25, 2024
68e47d0
Revert "Allow multi-select on iOS Safari/touch devices (#63671)" (#65…
jeryj Sep 25, 2024
783c65e
Move a11y HTML printing code to 6.7 compat directory (#65620)
sirreal Sep 26, 2024
503c484
Editor: Consistent external media pre-publish image/button sizes (#65…
tyxla Sep 26, 2024
87b1251
Only pass usesContext properties to block bindings editor APIs (#65661)
SantosGuillamot Sep 25, 2024
20ae57d
Update to use a11y script module package in Core. (#65539)
sirreal Sep 26, 2024
d6dfb79
Block Editor: Validate options for the 'HeadingLevelDropdown' compone…
philwp Sep 26, 2024
7d65e11
Paste Handler: Try to fix pasting text with formatting (#63779)
t-hamano Sep 26, 2024
4188bbb
Block Directory: Fix downloadable block item alignment (#65677)
tyxla Sep 26, 2024
76759ef
Fix unable to remove empty blocks on merge (#65262)
kevin940726 Sep 27, 2024
bf83960
Tweak entity save panel button (#65695)
t-hamano Sep 27, 2024
3be134f
Update icon in home button (#65497)
jameskoster Sep 27, 2024
d26e784
Remove additional Typeset screen and surface typesets in the typograp…
jffng Sep 27, 2024
ef84f51
Add prompt to zoom out separator (#65392)
getdave Sep 27, 2024
f42a8d0
Hooks: add support for async filters and actions (#64204)
jsnajdr Sep 27, 2024
fbd2119
Stabilize the PreSavePost and SavePost filters (#64198)
jsnajdr Sep 27, 2024
9e14c39
Omit meta boxes on “design” type posts (#64990)
stokesman Sep 29, 2024
ce43cb5
Stabilise role attribute property and related functions (#65484) (#65…
kevin940726 Sep 30, 2024
cd0974a
Blocks: Update '__experimentalHasContentRoleAttribute' deprecation (#…
Mamaduka Sep 24, 2024
fdd69d5
Blocks: Don't memoize 'hasContentRoleAttribute' selector (#65617)
Mamaduka Sep 24, 2024
606a0ef
Guide: Update finish button to use the new default size (#65680)
tyxla Sep 26, 2024
88d6723
Revert "Font Library: Group fonts by source (#63211)" (#65590)
vcanales Sep 30, 2024
2233538
updates LayoutTypeSwitcher to use ToggleGroupControl (#65498)
spadeshoe Sep 30, 2024
e2f2dce
Navigation block: Use `apply_block_hooks_to_content()` (#65703)
ockham Sep 30, 2024
4ab648d
PHP unit tests: remove WP_RUN_CORE_TESTS const (#65631)
ramonjd Sep 25, 2024
6187079
chore(release): publish
gutenbergplugin Sep 30, 2024
bcba55a
Categories block: Escape label (#65540)
carolinan Sep 30, 2024
aa59d85
ToggleGroupControl: Fix arrow key navigation in RTL (#65735)
mirka Sep 30, 2024
5458080
MediaPlaceholder: Use InputControl in URL popover (#65656)
mirka Sep 25, 2024
659d20d
Button: Add `__next40pxDefaultSize` in dataviews, reusable-blocks, et…
mirka Sep 30, 2024
26f48de
Block Bindings: Refactor e2e tests (#65526)
SantosGuillamot Sep 27, 2024
a489780
Block bindings: Refactor passing select and dispatch instead of full …
cbravobernal Sep 30, 2024
e0977cc
Block Bindings: Open the stable editor APIs (#65713)
SantosGuillamot Oct 1, 2024
07c7515
chore(release): publish
gutenbergplugin Oct 1, 2024
716bc73
Button: Add `__next40pxDefaultSize` in block-editor 6 (#65742)
mirka Oct 1, 2024
6b0e5db
Resize cover block only in normal mode (#65731)
draganescu Oct 2, 2024
2fc00b8
Avoid errors when a fontSize preset is not available (#65791)
matiasbenedetto Oct 2, 2024
7d60169
Global styles: do not navigate twice to home screen when opening the …
ciampo Sep 24, 2024
37e4dca
Top Toolbar: Show document bar when no block is selected even if bloc…
talldan Oct 3, 2024
6e8539b
Fix cherry-pick issues - duplicated import and unused var
talldan Oct 3, 2024
24dea41
Backport #65821 to 6.7 (#65853)
ciampo Oct 3, 2024
54ee0ee
Composite: make items tabbable if active element gets removed (#65720)
ciampo Oct 3, 2024
53b4edf
Fix: Button Replace remaining 40px default size violations [Block Edi…
vipul0425 Sep 24, 2024
4914c6d
Fix: Button: Replace remaining 40px default size violation [Edit Site…
hbhalodia Sep 25, 2024
4f835b3
Fix: Button Replace remaining 40px default size violations [Block Edi…
PARTHVATALIYA Sep 25, 2024
da8770d
Interactivity API: Correctly handle lazily added, deeply nested prope…
michalczaplinski Oct 4, 2024
1ee9fe8
Fix: Button Replace remaining 40px default size violations [Block Dir…
vipul0425 Sep 25, 2024
1af95ae
DatePicker: Use compact button size (#65653)
tyxla Sep 25, 2024
5071658
Makes spacing consistent in zoom out vertical toolbar (#63994)
amitraj2203 Oct 3, 2024
86e278c
Fix components coding standards in Zoom Out Toolbar (#65858)
getdave Oct 4, 2024
21b3c2e
chore(release): publish
gutenbergplugin Oct 6, 2024
ed3e4d3
Try zooming out when selecting the patterns tab in the inserter (#65…
draganescu Oct 7, 2024
b4dd404
Post Content Block: Fix conflict between clearFix and focus ring in t…
t-hamano Oct 7, 2024
43468fe
Backport #65772 to 6.7 (#65905)
ciampo Oct 8, 2024
3ee7c74
Interactivity API: Allow "default" suffix values (#65815)
sirreal Oct 7, 2024
381ada5
Fix aria-checked attribute not set for plugin settings buttons in Opt…
manzoorwanijk Sep 26, 2024
8a54551
Global styles: leave screen if current shadow entry gets deleted (#65…
ciampo Oct 8, 2024
35f7773
List all active fonts in the typography section (#65806)
matiasbenedetto Oct 8, 2024
93af574
Post editor: fix meta boxes accessibility (#65466)
stokesman Oct 8, 2024
ffb2e13
Rename wp_register_block_template() to register_block_template() (#65…
Aljullu Oct 9, 2024
ff8bb81
Exit zoon out when mode is changed (#65975)
t-hamano Oct 10, 2024
a0f74e8
Check image `src` with falsy value (#66004)
SantosGuillamot Oct 10, 2024
14bc63b
Make zoom transition smoother (#66017)
richtabor Oct 10, 2024
b352fc5
Zoom-out and Device preview: use 40px padding consistently (#66018)
richtabor Oct 10, 2024
126acf2
remove border, use padding top/bottom (#66012)
richtabor Oct 10, 2024
1fdd5d9
Tooltip: add aria-describedby to anchor only if not redundant (#65989)
ciampo Oct 10, 2024
20a3808
Zoom Out: When double clicking a template while zoomed out , reset zo…
andrewserong Oct 10, 2024
7e52f6e
Update z-index hierarchy (#65626)
renatho Oct 11, 2024
0ca8d56
Post Content: Fix display of block support styles (#66003)
aaronrobertshaw Oct 11, 2024
6b5994a
Fix: pattern rendering issue (#66022)
dhruvang21 Oct 11, 2024
6235b5d
Fix DropZone class names on drop (#65798)
ajlende Oct 7, 2024
1ae3f5f
Always preview style variations using desktop device type (#66023)
draganescu Oct 11, 2024
53d7179
Backport "Remove editorMode from blockProps (#65326)" to wp/6.7(#66057)
kevin940726 Oct 11, 2024
e37cd2c
List view: fix miscolored icons (#65707)
t-hamano Oct 1, 2024
541fe25
Query Loop: Fix isControlAllowed and isTemplate combined logic (#65984)
mikachan Oct 12, 2024
c9bda99
ToggleGroupControl: Don't autoselect option on first group focus (#65…
mirka Oct 9, 2024
cc70109
Block Bindings: Accept client ID as parameter for `useBlockBindingsUt…
SantosGuillamot Oct 9, 2024
39b217e
Editor: Prevent wrapping text when showing icon labels in header (#66…
aaronrobertshaw Oct 14, 2024
12a7294
Zoom out: fix scaling issues (#65998)
MaggieCabrera Oct 10, 2024
b765124
Fix navigate regions shortcuts on the back button WP logo slot (#63611)
afercia Oct 8, 2024
ecd845c
Zoom layout shift: second alternate fix. (#66041)
jasmussen Oct 14, 2024
34395c4
Hide grid visualizer when grid is template locked or block editing mo…
talldan Oct 14, 2024
b7af02f
chore(release): publish
gutenbergplugin Oct 14, 2024
2a28b0d
Restores setting zoom out mode to useZoomOut hook (#65999)
jeryj Oct 14, 2024
1ea0edd
Data Views list layout: revise for improved text truncation (#65376)
stokesman Oct 14, 2024
9bba721
Revert "Update z-index hierarchy (#65626)" (#66074)
renatho Oct 15, 2024
d360fd1
Revert the manage fonts button. (#66107)
ndiego Oct 15, 2024
1774792
Fix duotone on parallax/repeated featured image cover blocks (#65929)
ajlende Oct 15, 2024
69e6747
Polish zoom out inserter (#66110)
stokesman Oct 15, 2024
f939558
Add missing `post.slug` dependency to `useMemo` (#66125)
SantosGuillamot Oct 15, 2024
b59bac3
Add argument with post ID to the editor.savePost hook (#66165)
jsnajdr Oct 16, 2024
86038c4
Fix rich text toolbar corners (#66163)
jameskoster Oct 16, 2024
b43d31f
Fix site editor back button visual regressions (#66166)
jameskoster Oct 16, 2024
bbf2aad
Fix padding appender hook (#66143)
stokesman Oct 16, 2024
930b9e6
Update/replace edit button with enter on selection (#65760)
jeryj Oct 4, 2024
57b99ff
Fix e2e test for padding appender (#66080)
stokesman Oct 16, 2024
7ace071
Fix focus loss when deleting selected block in zoom out mode (#65761)
jeryj Oct 1, 2024
97dde20
Fix $font-line-height-x-large error (#66184)
ajlende Oct 16, 2024
d12932b
Fix the navigation issue inside cover blocks (#66093)
renatho Oct 17, 2024
5645548
Block Bindings: Use `getEntityConfig` instead of `getPostTypes` to ge…
SantosGuillamot Oct 17, 2024
97e96d7
Navigation block: fix block appender size (#66153)
t-hamano Oct 17, 2024
4a7de72
ToggleGroupControl: Don't set value on focus after a reset (#66151)
mirka Oct 16, 2024
f98cdf7
Performance tests : - Fix/compare performance with correct branch (#…
cbravobernal Oct 17, 2024
3457f6b
Update site icon and title position (#66171)
jameskoster Oct 17, 2024
d0dae48
Block Bindings: Bootstrap server sources earlier (#66058) (#66167)
SantosGuillamot Oct 17, 2024
7ebc19a
Manual cherry pick for #65627 (#66119)
draganescu Oct 17, 2024
e9a0170
Memoize pattern objects returned from getAllowedPatterns (#66162)
jsnajdr Oct 17, 2024
0ed5f36
Revert "Zoom out: fix scaling issues (#65998)"
ajlende Oct 16, 2024
96bfc0a
BlockCanvas: Fix the height prop and width of the block editor (#65977)
youknowriad Oct 9, 2024
dc0e92b
Zoom out: fix scaling issues (#65998)
MaggieCabrera Oct 10, 2024
cae57c8
Position scaled html within available container space (#66034)
jeryj Oct 15, 2024
2bf589b
Fix/html scale code quality (#66181)
jeryj Oct 16, 2024
55f9895
Fix zoom out not persisting while switching between editor and code e…
madhusudhand Oct 18, 2024
64f9146
Block Bindings: Allow label override when it is defined in client reg…
SantosGuillamot Oct 18, 2024
737fac0
Interactivity API: Fix reactivity of undefined objects and arrays add…
DAreRodz Oct 18, 2024
60306c5
Block bindings: allow only string field types in bindings. (#66174)
SantosGuillamot Oct 18, 2024
546a3df
Fix scaling animation for device previews (#66132) (#66244)
ajlende Oct 18, 2024
a16640b
Zoom Out: Remove zoom-out toolbar (#66039) (#66200)
youknowriad Oct 18, 2024
bd97661
Fix extra scrollbar appearing when searching in the inserter (#66229)
talldan Oct 19, 2024
bb9e8dc
Zoom Out: Disable zoom out toggle button when Style Book is open (#66…
getdave Oct 19, 2024
d2efcdc
Remove relative position from sidebar tabpanel (#66267)
tellthemachines Oct 21, 2024
0e34773
Resets the Zoom on viewed/edited entity change (#66232)
getdave Oct 21, 2024
1899810
Fix empty Patterns inserter when selecting section root when editing …
getdave Oct 21, 2024
6ed62de
Hide inserter pattern/media panel when there are no categories (#66246)
talldan Oct 21, 2024
b1ace05
chore(release): publish
gutenbergplugin Oct 21, 2024
a3c0d3c
Block toolbar: account for scrollable blocks that affect the position…
ramonjd Oct 21, 2024
cfe6770
Remove one occurrence of the verb Toggle from Zoom out control. (#65609)
afercia Sep 24, 2024
2453690
chore(release): publish
gutenbergplugin Oct 21, 2024
0cab30f
Hotfix for moving focus to block library from sidebar (#66256)
jeryj Oct 22, 2024
f73c2cc
Set image width to `fit-content` to solve aspect ratio problems in Fi…
juanfra Oct 22, 2024
a98d8ab
[WP 6.7] Tabs: Unify tab height to 48px/40px (#66295)
t-hamano Oct 22, 2024
17e96c7
Data views: Fix alignment of action items in list layout (#66273)
jameskoster Oct 22, 2024
d685646
SpacingSizesControl: Use generic label for linked button (#66304)
t-hamano Oct 22, 2024
8f5dbdb
[6.7] Editor: Remove edit template menu item from block settings menu…
ellatrix Oct 23, 2024
fb9466b
Make useZoomOut hook private (#66374)
jeryj Oct 23, 2024
2254850
Zoom Out: Fix bouncy drop zones (#66399)
talldan Oct 24, 2024
154ceb5
Search: Replace ButtonGroup usage with ToggleGroupControl (#65340)
Mamaduka Oct 24, 2024
1e39ceb
Revise zoom layout shift fix (#66390)
stokesman Oct 25, 2024
61dbdc4
Fix missing isZoomOut in 6.7 (#66420)
getdave Oct 25, 2024
583561f
Pull request automation: use full npm install (#66314) (#66447)
getdave Oct 25, 2024
c2a2017
[6.7] Activate zoom out only on large viewport (#66330)
t-hamano Oct 27, 2024
07df632
Meta boxes: Fix typo "metabox pane" to "meta box panel". (#66502)
peterwilsoncc Oct 27, 2024
b78063a
chore(release): publish
gutenbergplugin Oct 28, 2024
69c9185
Site Editor: Fix button hover style in sidebar navigation screen (#66…
t-hamano Oct 28, 2024
88c51c7
Fix extraneous scrollbar in device previews (#66494)
stokesman Oct 29, 2024
cf008a0
Cherry Pick to 6.7: Preload: fix multiple regressions around global s…
ramonjd Oct 29, 2024
53f68ec
chore(release): publish
gutenbergplugin Oct 29, 2024
fcee21f
PostTaxonomiesFlatTermSelector: Restore space between tag list and mo…
t-hamano Oct 29, 2024
63b223c
Miscellaneous i18n fixes (#66516)
peterwilsoncc Oct 29, 2024
e392a1e
chore(release): publish
gutenbergplugin Oct 31, 2024
bbee6ee
Perf: avoid fetching all reusable blocks on load in patterns preferen…
ellatrix Oct 30, 2024
665997f
PostTaxonomiesFlatTermSelector: abstract wrapper component (#66625)
ramonjd Oct 31, 2024
152cd9d
chore(release): publish
gutenbergplugin Oct 31, 2024
2d7504e
Editor: Restore the 'PluginPostStatusInfo' slot position (#66665)
Mamaduka Nov 1, 2024
9631601
Block Inspector: Restore bottm margin for RadioControl (#66688)
t-hamano Nov 4, 2024
16cbfe3
[6.7] Zoom-out (contentOnly): show more menu in block toolbar (#66311)
ellatrix Nov 4, 2024
5d0412a
Ensure HEIC files selectable from “Upload” button (#66292)
adamsilverstein Nov 4, 2024
26d154b
Set the `fit-content` width for images that are not `.svg` (#66643)
juanfra Nov 4, 2024
c4e8df9
chore(release): publish
gutenbergplugin Nov 4, 2024
65e6363
Optimize `getVisibleElementBounds` in scrollable cases (#66546)
stokesman Nov 1, 2024
02da42e
Block toolbar: restrict visible child calculation to known blocks (#6…
ramonjd Nov 4, 2024
7a7fdd7
Conditionalise metaboxes based on Zoom Out (#66742)
getdave Nov 5, 2024
b7fe267
chore(release): publish
gutenbergplugin Nov 5, 2024
d9b166a
Fix Paragraph appender layout shift (building on 66061) (#66779)
andrewserong Nov 6, 2024
e503a39
Revert "Set image width to `fit-content` to solve aspect ratio proble…
kevin940726 Nov 7, 2024
da80430
chore(release): publish
gutenbergplugin Nov 7, 2024
581d3cc
Fix uncategorized pattern browsing when pattern has no categories (#6…
matiasbenedetto Nov 13, 2024
ab68567
Fix TypeError when duplicating uncategorized theme patterns (#66889)
carolinan Nov 11, 2024
7877837
Restore check for default editing mode
getdave Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm -v

- name: Compare performance with trunk
- name: Compare performance with base branch
if: github.event_name == 'pull_request'
run: ./bin/plugin/cli.js perf $GITHUB_SHA trunk --tests-branch $GITHUB_SHA
run: ./bin/plugin/cli.js perf $GITHUB_SHA ${{ github.base_ref }} --tests-branch $GITHUB_SHA

- name: Compare performance with current WordPress Core and previous Gutenberg versions
if: github.event_name == 'release'
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/pull-request-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,8 @@ jobs:
ref: trunk
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Use desired version of Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
check-latest: true

- name: Cache NPM packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-npm-pr-automation-cache-${{ hashFiles('**/package-lock.json') }}

# Changing into the action's directory and running `npm install` is much
# faster than a full project-wide `npm ci`.
- name: Install NPM dependencies
run: npm install
working-directory: packages/project-management-automation
- name: Setup Node.js and install dependencies
uses: ./.github/setup-node

- uses: ./packages/project-management-automation
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ jobs:
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: build-assets
path: ./build/
path: |
./build/
./build-module/

test-php:
name: PHP ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.wordpress != '' && format( ' (WP {0}) ', matrix.wordpress ) || '' }} on ubuntu-latest
Expand Down Expand Up @@ -212,7 +214,6 @@ jobs:
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: build-assets
path: ./build

- name: Docker debug information
run: |
Expand Down
3 changes: 3 additions & 0 deletions backport-changelog/6.7/7360.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7360

* https://github.com/WordPress/gutenberg/pull/65460
3 changes: 3 additions & 0 deletions backport-changelog/6.7/7543.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7543

* https://github.com/WordPress/gutenberg/pull/65958
3 changes: 3 additions & 0 deletions backport-changelog/6.7/7552.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7552

* https://github.com/WordPress/gutenberg/pull/66058
3 changes: 3 additions & 0 deletions backport-changelog/6.7/7661.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7661

* https://github.com/WordPress/gutenberg/pull/66468
271 changes: 271 additions & 0 deletions changelog.txt

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,12 @@
"markdown_source": "../packages/eslint-plugin/README.md",
"parent": "packages"
},
{
"title": "@wordpress/fields",
"slug": "packages-fields",
"markdown_source": "../packages/fields/README.md",
"parent": "packages"
},
{
"title": "@wordpress/format-library",
"slug": "packages-format-library",
Expand Down
2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
* Requires at least: 6.5
* Requires PHP: 7.2
* Version: 19.2.0
* Version: 19.3.0-rc.1
* Author: Gutenberg Team
* Text Domain: gutenberg
*
Expand Down
50 changes: 50 additions & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,56 @@ function gutenberg_register_vendor_scripts( $scripts ) {
}
add_action( 'wp_default_scripts', 'gutenberg_register_vendor_scripts' );

/**
* Registers or re-registers Gutenberg Script Modules.
*
* Script modules that are registered by Core will be re-registered by Gutenberg.
*
* @since 19.3.0
*/
function gutenberg_default_script_modules() {
/*
* Expects multidimensional array like:
*
* 'interactivity/index.min.js' => array('dependencies' => array(…), 'version' => '…'),
* 'interactivity/debug.min.js' => array('dependencies' => array(…), 'version' => '…'),
* 'interactivity-router/index.min.js' => …
*/
$assets = include gutenberg_dir_path() . '/build-module/assets.php';

foreach ( $assets as $file_name => $script_module_data ) {
/*
* Build the WordPress Script Module ID from the file name.
* Prepend `@wordpress/` and remove extensions and `/index` if present:
* - interactivity/index.min.js => @wordpress/interactivity
* - interactivity/debug.min.js => @wordpress/interactivity/debug
* - block-library/query/view.js => @wordpress/block-library/query/view
*/
$script_module_id = '@wordpress/' . preg_replace( '~(?:/index)?\.min\.js$~D', '', $file_name, 1 );
switch ( $script_module_id ) {
/*
* Interactivity exposes two entrypoints, "/index" and "/debug".
* "/debug" should replalce "/index" in devlopment.
*/
case '@wordpress/interactivity/debug':
if ( ! SCRIPT_DEBUG ) {
continue 2;
}
$script_module_id = '@wordpress/interactivity';
break;
case '@wordpress/interactivity':
if ( SCRIPT_DEBUG ) {
continue 2;
}
break;
}

$path = gutenberg_url( "build-module/{$file_name}" );
wp_register_script_module( $script_module_id, $path, $script_module_data['dependencies'], $script_module_data['version'] );
}
}
remove_action( 'wp_default_scripts', 'wp_default_script_modules' );
add_action( 'wp_default_scripts', 'gutenberg_default_script_modules' );

/*
* Always remove the Core action hook while gutenberg_enqueue_stored_styles() exists to avoid styles being printed twice.
Expand Down
42 changes: 16 additions & 26 deletions lib/compat/wordpress-6.7/block-bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,28 @@
*/

/**
* Adds the block bindings sources registered in the server to the editor settings.
*
* This allows them to be bootstrapped in the editor.
*
* @param array $settings The block editor settings from the `block_editor_settings_all` filter.
* @return array The editor settings including the block bindings sources.
* Bootstrap the block bindings sources registered in the server.
*/
function gutenberg_add_server_block_bindings_sources_to_editor_settings( $editor_settings ) {
// Check if the sources are already exposed in the editor settings.
if ( isset( $editor_settings['blockBindingsSources'] ) ) {
return $editor_settings;
}

$registered_block_bindings_sources = get_all_registered_block_bindings_sources();
if ( ! empty( $registered_block_bindings_sources ) ) {
// Initialize array.
$editor_settings['blockBindingsSources'] = array();
foreach ( $registered_block_bindings_sources as $source_name => $source_properties ) {
// Add source with the label to editor settings.
$editor_settings['blockBindingsSources'][ $source_name ] = array(
'label' => $source_properties->label,
function gutenberg_bootstrap_server_block_bindings_sources() {
$registered_sources = get_all_registered_block_bindings_sources();
if ( ! empty( $registered_sources ) ) {
$filtered_sources = array();
foreach ( $registered_sources as $source ) {
$filtered_sources[] = array(
'name' => $source->name,
'label' => $source->label,
'usesContext' => $source->uses_context,
);
// Add `usesContext` property if exists.
if ( ! empty( $source_properties->uses_context ) ) {
$editor_settings['blockBindingsSources'][ $source_name ]['usesContext'] = $source_properties->uses_context;
}
}
$script = sprintf( 'for ( const source of %s ) { ! wp.blocks.getBlockBindingsSource( source.name ) && wp.blocks.registerBlockBindingsSource( source ); }', wp_json_encode( $filtered_sources ) );
wp_add_inline_script(
'wp-blocks',
$script
);
}
return $editor_settings;
}

add_filter( 'block_editor_settings_all', 'gutenberg_add_server_block_bindings_sources_to_editor_settings', 10 );
add_action( 'enqueue_block_editor_assets', 'gutenberg_bootstrap_server_block_bindings_sources', 5 );

/**
* Initialize `canUpdateBlockBindings` editor setting if it doesn't exist. By default, it is `true` only for admin users.
Expand Down
49 changes: 46 additions & 3 deletions lib/compat/wordpress-6.7/block-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package gutenberg
*/

if ( ! function_exists( 'wp_register_block_template' ) ) {
if ( ! function_exists( 'register_block_template' ) ) {
/**
* Register a template.
*
Expand All @@ -22,20 +22,63 @@
* }
* @return WP_Block_Template|WP_Error The registered template object on success, WP_Error object on failure.
*/
function wp_register_block_template( $template_name, $args = array() ) {
function register_block_template( $template_name, $args = array() ) {
return WP_Block_Templates_Registry::get_instance()->register( $template_name, $args );
}
}

if ( ! function_exists( 'unregister_block_template' ) ) {
/**
* Unregister a template.
*
* @param string $template_name Template name in the form of `plugin_uri//template_name`.
* @return WP_Block_Template|WP_Error The unregistered template object on success, WP_Error object on failure or if
* the template doesn't exist.
*/
function unregister_block_template( $template_name ) {
return WP_Block_Templates_Registry::get_instance()->unregister( $template_name );
}
}

if ( ! function_exists( 'wp_register_block_template' ) ) {
/**
* Register a template.
*
* @deprecated 19.4.0 wp_register_block_template is deprecated. Please use register_block_template instead.
*
* @param string $template_name Template name in the form of `plugin_uri//template_name`.
* @param array|string $args {
* Optional. Array or string of arguments for registering a block template.
*
* @type string $title Optional. Title of the template as it will be shown in the Site Editor
* and other UI elements.
* @type string $description Optional. Description of the template as it will be shown in the Site
* Editor.
* @type string $content Optional. Default content of the template that will be used when the
* template is rendered or edited in the editor.
* @type string[] $post_types Optional. Array of post types to which the template should be available.
* @type string $plugin Uri of the plugin that registers the template.
* }
* @return WP_Block_Template|WP_Error The registered template object on success, WP_Error object on failure.
*/
function wp_register_block_template( $template_name, $args = array() ) {
_deprecated_function( __FUNCTION__, 'Gutenberg 19.4.0', 'register_block_template' );
register_block_template( $template_name, $args );
}
}

if ( ! function_exists( 'wp_unregister_block_template' ) ) {
/**
* Unregister a template.
*
* @deprecated 19.4.0 wp_unregister_block_template is deprecated. Please use unregister_block_template instead.
*
* @param string $template_name Template name in the form of `plugin_uri//template_name`.
* @return WP_Block_Template|WP_Error The unregistered template object on success, WP_Error object on failure or if
* the template doesn't exist.
*/
function wp_unregister_block_template( $template_name ) {
return WP_Block_Templates_Registry::get_instance()->unregister( $template_name );
_deprecated_function( __FUNCTION__, 'Gutenberg 19.4.0', 'unregister_block_template' );
return unregister_block_template( $template_name );
}
}
19 changes: 19 additions & 0 deletions lib/compat/wordpress-6.7/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ function gutenberg_block_editor_preload_paths_6_7( $paths, $context ) {
}
}

// Preload theme and global styles paths.
$excluded_paths = array();
if ( 'core/edit-site' === $context->name || 'core/edit-post' === $context->name ) {
$active_theme = get_stylesheet();
$global_styles_id = WP_Theme_JSON_Resolver_Gutenberg::get_user_global_styles_post_id();
$paths[] = '/wp/v2/global-styles/themes/' . $active_theme . '?context=view';
$paths[] = '/wp/v2/global-styles/themes/' . $active_theme . '/variations?context=view';
$paths[] = array( '/wp/v2/global-styles/' . $global_styles_id, 'OPTIONS' );

// Remove duplicate or unnecessary global styles paths.
$excluded_paths[] = '/wp/v2/global-styles/themes/' . $active_theme;
$excluded_paths[] = '/wp/v2/global-styles/' . $global_styles_id;
foreach ( $paths as $key => $path ) {
if ( in_array( $path, $excluded_paths, true ) ) {
unset( $paths[ $key ] );
}
}
}

return $paths;
}
add_filter( 'block_editor_rest_api_preload_paths', 'gutenberg_block_editor_preload_paths_6_7', 10, 2 );
Expand Down
43 changes: 43 additions & 0 deletions lib/compat/wordpress-6.7/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,46 @@ function () {
},
20
);

/**
* Prints HTML for the a11y Script Module.
*
* a11y relies on some DOM elements to use as ARIA live regions.
* Ideally, these elements are part of the initial HTML of the page
* so that accessibility tools can find them and observe updates.
*/
function gutenberg_a11y_script_module_html() {
$a11y_module_available = false;

$get_marked_for_enqueue = new ReflectionMethod( 'WP_Script_Modules', 'get_marked_for_enqueue' );
$get_marked_for_enqueue->setAccessible( true );
$get_import_map = new ReflectionMethod( 'WP_Script_Modules', 'get_import_map' );
$get_import_map->setAccessible( true );

foreach ( array_keys( $get_marked_for_enqueue->invoke( wp_script_modules() ) ) as $id ) {
if ( '@wordpress/a11y' === $id ) {
$a11y_module_available = true;
break;
}
}
if ( ! $a11y_module_available ) {
foreach ( array_keys( $get_import_map->invoke( wp_script_modules() )['imports'] ) as $id ) {
if ( '@wordpress/a11y' === $id ) {
$a11y_module_available = true;
break;
}
}
}
if ( ! $a11y_module_available ) {
return;
}
echo '<div style="position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;">'
. '<p id="a11y-speak-intro-text" class="a11y-speak-intro-text" hidden>' . esc_html__( 'Notifications', 'default' ) . '</p>'
. '<div id="a11y-speak-assertive" class="a11y-speak-region" aria-live="assertive" aria-relevant="additions text" aria-atomic="true"></div>'
. '<div id="a11y-speak-polite" class="a11y-speak-region" aria-live="polite" aria-relevant="additions text" aria-atomic="true"></div>'
. '</div>';
}
if ( ! method_exists( 'WP_Script_Modules', 'print_a11y_script_module_html' ) ) {
add_action( 'wp_footer', 'gutenberg_a11y_script_module_html' );
add_action( 'admin_footer', 'gutenberg_a11y_script_module_html' );
}
Loading
Loading