Skip to content

Commit 4416c63

Browse files
Merge changes published in the Gutenberg plugin "release/22.6" branch
1 parent eee1cfb commit 4416c63

1,741 files changed

Lines changed: 51842 additions & 13584 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ node_modules
77
packages/block-serialization-spec-parser/parser.js
88
packages/icons/src/library/*.tsx
99
packages/react-native-editor/bundle
10+
packages/vips/src/worker-code.ts
1011
vendor
1112
!.*.js

.eslintrc.js

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ const restrictedImports = [
6565
message:
6666
"Please use `clsx` instead. It's a lighter and faster drop-in replacement for `classnames`.",
6767
},
68+
{
69+
name: '@base-ui/react',
70+
message:
71+
'Avoid using Base UI directly. Consider a new `@wordpress/ui` component instead.',
72+
},
6873
];
6974

7075
const restrictedSyntax = [
@@ -445,13 +450,12 @@ module.exports = {
445450
},
446451
},
447452
{
448-
files: [ 'packages/components/src/**', 'packages/ui/src/**' ],
453+
files: [ 'packages/components/src/**' ],
449454
rules: {
450455
'no-restricted-imports': [
451456
'error',
452-
// The `ariakit` and `framer-motion` APIs are meant to be consumed via
453-
// the `@wordpress/components` and @wordpress/ui` packages, hence why
454-
// importing those imports should be allowed only in those packages.
457+
// The following dependencies are meant to be consumed directly in the
458+
// @wordpress/components package, hence why their imports are allowed.
455459
{
456460
paths: restrictedImports.filter(
457461
( { name } ) =>
@@ -464,6 +468,22 @@ module.exports = {
464468
],
465469
},
466470
},
471+
{
472+
files: [ 'packages/ui/src/**' ],
473+
rules: {
474+
'no-restricted-imports': [
475+
'error',
476+
// The following dependencies are meant to be consumed directly in the
477+
// @wordpress/ui package, hence why their imports are allowed.
478+
{
479+
paths: restrictedImports.filter(
480+
( { name } ) =>
481+
! [ '@base-ui/react' ].includes( name )
482+
),
483+
},
484+
],
485+
},
486+
},
467487
{
468488
files: [ 'packages/block-editor/**' ],
469489
rules: {

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
/packages/block-library/src/table-of-contents @ZebulanStanphill
1919

2020
# Duotone
21-
/lib/block-supports/duotone.php
22-
/packages/block-editor/src/components/duotone-control
23-
/packages/block-editor/src/hooks/duotone.js
24-
/packages/components/src/duotone-picker
21+
/lib/block-supports/duotone.php @sgomes
22+
/packages/block-editor/src/components/duotone-control @sgomes
23+
/packages/block-editor/src/hooks/duotone.js @sgomes
24+
/packages/components/src/duotone-picker @sgomes
2525

2626
# Editor
2727
/packages/annotations @atimmer

.github/workflows/check-backport-changelog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- 'lib/**'
1010
- '!lib/load.php'
1111
- '!lib/experiments-page.php'
12+
- '!lib/theme.json'
1213
- '!lib/experimental/**'
1314
- 'phpunit/**'
1415
- '!phpunit/experimental/**'
@@ -18,6 +19,7 @@ on:
1819
- '!packages/block-serialization-default-parser/**'
1920
- '!packages/widgets/**'
2021
- '!packages/e2e-tests/**'
22+
- '!packages/icons/src/manifest.php'
2123

2224
# Disable permissions for all available scopes by default.
2325
# Any needed permissions should be configured at the job level.

.github/workflows/end2end-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: Install WordPress and start the server
5252
run: |
53-
npm run wp-env start
53+
npm run wp-env-test start
5454
5555
- name: Run the tests
5656
env:

.github/workflows/unit-test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,20 +261,20 @@ jobs:
261261
locale -a
262262
263263
- name: Start Docker environment
264-
run: npm run wp-env start
264+
run: npm run wp-env-test start
265265

266266
- name: Log running Docker containers
267267
run: docker ps -a
268268

269269
- name: Docker container debug information
270270
run: |
271-
npm run wp-env run tests-mysql mysql -- --version
272-
npm run wp-env run tests-wordpress php -- --version
273-
npm run wp-env run tests-wordpress php -m
274-
npm run wp-env run tests-wordpress php -i
275-
npm run wp-env run tests-wordpress /var/www/html/wp-content/plugins/gutenberg/vendor/bin/phpunit -- --version
276-
npm run wp-env run tests-wordpress locale -a
277-
npm run wp-env run tests-cli wp core version
271+
npm run wp-env-test -- run mysql mariadb -- --version
272+
npm run wp-env-test -- run wordpress php -- --version
273+
npm run wp-env-test -- run wordpress php -m
274+
npm run wp-env-test -- run wordpress php -i
275+
npm run wp-env-test -- run wordpress /var/www/html/wp-content/plugins/gutenberg/vendor/bin/phpunit -- --version
276+
npm run wp-env-test -- run wordpress locale -a
277+
npm run wp-env-test -- run cli wp core version
278278
279279
- name: Running single site unit tests
280280
if: ${{ ! matrix.multisite }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ build-style
55
build-types
66
build-wp
77
node_modules
8+
.wasm-vips-build
89
gutenberg.zip
910
.content-entry.js
1011
coverage
@@ -43,6 +44,7 @@ junit.xml
4344

4445
# Local overrides
4546
.wp-env.override.json
47+
.wp-env.test.override.json
4648
playwright.config.override.ts
4749
phpcs.xml
4850
phpunit.xml

.stylelintrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ module.exports = {
5353
{
5454
files: [ '**/*.module.css' ],
5555
rules: {
56+
'function-no-unknown': [
57+
true,
58+
{
59+
ignoreFunctions: [
60+
// CSS stepped value math functions in Baseline 2024.
61+
// This rule exception can likely be removed when
62+
// updating to a more recent version of Stylelint.
63+
'round',
64+
'rem',
65+
'mod',
66+
],
67+
},
68+
],
5669
'declaration-property-max-values': {
5770
// Prevents left/right values with shorthand property names (unclear for RTL)
5871
margin: 3,

.wp-env.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
{
22
"$schema": "./schemas/json/wp-env.json",
3+
"testsEnvironment": false,
34
"core": "WordPress/WordPress",
45
"plugins": [ "." ],
56
"themes": [ "./test/emptytheme" ],
6-
"env": {
7-
"development": {
8-
"phpmyadminPort": 9000
9-
},
10-
"tests": {
11-
"mappings": {
12-
"wp-content/plugins/gutenberg": ".",
13-
"wp-content/mu-plugins": "./packages/e2e-tests/mu-plugins",
14-
"wp-content/plugins/gutenberg-test-plugins": "./packages/e2e-tests/plugins",
15-
"wp-content/themes/gutenberg-test-themes": "./test/gutenberg-test-themes",
16-
"wp-content/themes/gutenberg-test-themes/twentytwentyone": "https://downloads.wordpress.org/theme/twentytwentyone.2.1.zip",
17-
"wp-content/themes/gutenberg-test-themes/twentytwentythree": "https://downloads.wordpress.org/theme/twentytwentythree.1.3.zip",
18-
"wp-content/themes/gutenberg-test-themes/twentytwentyfour": "https://downloads.wordpress.org/theme/twentytwentyfour.1.0.zip"
19-
}
20-
}
21-
}
7+
"phpmyadminPort": 9000
228
}

.wp-env.test.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "./schemas/json/wp-env.json",
3+
"testsEnvironment": false,
4+
"port": 8889,
5+
"core": "WordPress/WordPress",
6+
"plugins": [ "." ],
7+
"themes": [ "./test/emptytheme" ],
8+
"config": {
9+
"WP_DEBUG": false,
10+
"SCRIPT_DEBUG": false
11+
},
12+
"mappings": {
13+
"wp-content/plugins/gutenberg": ".",
14+
"wp-content/mu-plugins": "./packages/e2e-tests/mu-plugins",
15+
"wp-content/plugins/gutenberg-test-plugins": "./packages/e2e-tests/plugins",
16+
"wp-content/themes/gutenberg-test-themes": "./test/gutenberg-test-themes",
17+
"wp-content/themes/gutenberg-test-themes/twentytwentyone": "https://downloads.wordpress.org/theme/twentytwentyone.2.1.zip",
18+
"wp-content/themes/gutenberg-test-themes/twentytwentythree": "https://downloads.wordpress.org/theme/twentytwentythree.1.3.zip",
19+
"wp-content/themes/gutenberg-test-themes/twentytwentyfour": "https://downloads.wordpress.org/theme/twentytwentyfour.1.0.zip"
20+
}
21+
}

0 commit comments

Comments
 (0)