You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: changelog.txt
+13-92
Original file line number
Diff line number
Diff line change
@@ -1,98 +1,9 @@
1
1
== Changelog ==
2
2
3
-
= 16.0.0-rc.4 =
4
-
5
-
6
-
7
-
## Changelog
8
-
9
-
### Various
10
-
11
-
- Post title: Fix autofocus when iframed. ([51367](https://github.com/WordPress/gutenberg/pull/51367))
12
-
13
-
14
-
15
-
16
-
## Contributors
17
-
18
-
The following contributors merged PRs in this release:
19
-
20
-
@ellatrix
21
-
22
-
23
-
= 16.0.0-rc.3 =
24
-
25
-
26
-
27
-
## Changelog
28
-
29
-
### Bug Fixes
30
-
31
-
#### Block Library
32
-
- Post Template: Output number of columns as classname for backwards compatibility. ([51358](https://github.com/WordPress/gutenberg/pull/51358))
33
-
- Query: Fix deprecation error when migrating layout. ([51311](https://github.com/WordPress/gutenberg/pull/51311))
34
-
35
-
#### Global Styles
36
-
- Global styles revisions: Ensure redirect runs once for back button. ([51316](https://github.com/WordPress/gutenberg/pull/51316))
37
-
38
-
### Code Quality
39
-
40
-
#### Site Editor
41
-
- Rename 'page content lock' to 'page content focus'. ([51280](https://github.com/WordPress/gutenberg/pull/51280))
42
-
43
-
44
-
## Contributors
45
-
46
-
The following contributors merged PRs in this release:
47
-
48
-
@andrewserong @noisysocks @ramonjd
49
-
50
-
51
-
= 16.0.0-rc.2 =
52
-
53
-
54
-
55
-
## Changelog
56
-
57
-
### Bug Fixes
58
-
59
-
#### Global Styles
60
-
- Global styles revisions: Ensure redirect runs once for back button. ([51316](https://github.com/WordPress/gutenberg/pull/51316))
61
-
62
-
#### Block Library
63
-
- Query: Fix deprecation error when migrating layout. ([51311](https://github.com/WordPress/gutenberg/pull/51311))
64
-
65
-
66
-
### Code Quality
67
-
68
-
#### Site Editor
69
-
- Rename 'page content lock' to 'page content focus'. ([51280](https://github.com/WordPress/gutenberg/pull/51280))
70
-
71
-
72
-
### Various
73
-
74
-
- Post title: Fix autofocus when iframed. ([51331](https://github.com/WordPress/gutenberg/pull/51331))
75
-
76
-
77
-
78
-
79
-
## Contributors
80
-
81
-
The following contributors merged PRs in this release:
82
-
83
-
@andrewserong @ellatrix @noisysocks @ramonjd
84
-
85
-
86
-
= 16.0.0-rc.1 =
3
+
= 16.0.0 =
87
4
88
5
## Changelog
89
6
90
-
### Features
91
-
92
-
- Add the ability to create a new page in the Site Editor. ([50565](https://github.com/WordPress/gutenberg/pull/50565))
93
-
- Add the ability to focus on editing a page's content vs the page's template. ([50857](https://github.com/WordPress/gutenberg/pull/50857))
94
-
- Add page details to the Site Editor sidebar. ([50767](https://github.com/WordPress/gutenberg/pull/50767))
95
-
96
7
### Enhancements
97
8
98
9
#### Block Editor
@@ -104,15 +15,18 @@ The following contributors merged PRs in this release:
104
15
- List View: Allow dragging outside the immediate area by passing down a dropZoneElement. ([50726](https://github.com/WordPress/gutenberg/pull/50726))
105
16
- List View: Append when dragging into collapsed blocks. ([50936](https://github.com/WordPress/gutenberg/pull/50936))
106
17
- Reinstate Text control outside of settings in Link Control. ([50957](https://github.com/WordPress/gutenberg/pull/50957))
18
+
- Update the document title in the template mode of the post editor. ([50864](https://github.com/WordPress/gutenberg/pull/50864))
107
19
- Use "Save" instead of "Apply" in Link Control. ([50964](https://github.com/WordPress/gutenberg/pull/50964))
108
20
- Use checkbox for `Open in new tab` within Link Control. ([50961](https://github.com/WordPress/gutenberg/pull/50961))
109
21
- Visually hide the LinkControl initial/results heading. ([50977](https://github.com/WordPress/gutenberg/pull/50977))
110
-
- Update the document title in the template mode of the post editor. ([50864](https://github.com/WordPress/gutenberg/pull/50864))
111
22
112
23
#### Site Editor
113
24
- Add `delete` action for pages in navigation sidebar. ([51101](https://github.com/WordPress/gutenberg/pull/51101))
25
+
- Add page details to the Site Editor sidebar. ([50767](https://github.com/WordPress/gutenberg/pull/50767))
114
26
- Add Paragraph prompt to Post Content when empty. ([50623](https://github.com/WordPress/gutenberg/pull/50623))
115
27
- Add template actions in site editor navigation sidebar. ([51054](https://github.com/WordPress/gutenberg/pull/51054))
28
+
- Add the ability to create a new page in the Site Editor. ([50565](https://github.com/WordPress/gutenberg/pull/50565))
29
+
- Add the ability to focus on editing a page's content vs the page's template. ([50857](https://github.com/WordPress/gutenberg/pull/50857))
116
30
- Directly save if only changing current context. ([50567](https://github.com/WordPress/gutenberg/pull/50567))
117
31
- Disable block supports derived design tools when Blocking Editing Mode is not `default`. ([50912](https://github.com/WordPress/gutenberg/pull/50912))
118
32
- DocumentActions: Animate between page and template mode. ([51224](https://github.com/WordPress/gutenberg/pull/51224))
@@ -160,11 +74,12 @@ The following contributors merged PRs in this release:
160
74
#### Block Editor
161
75
- Add inert attribute to disabled blocks that have only disabled descendants. ([51079](https://github.com/WordPress/gutenberg/pull/51079))
- Hide the save draft button for published posts. ([51193](https://github.com/WordPress/gutenberg/pull/51193))
163
78
- Iframe enqueuing: Add editorStyle and warning. ([50091](https://github.com/WordPress/gutenberg/pull/50091))
164
79
- Improvements to how blocks with a 'disabled' editing mode behave. ([51148](https://github.com/WordPress/gutenberg/pull/51148))
165
80
- Link Control: Add missing translation. ([51081](https://github.com/WordPress/gutenberg/pull/51081))
81
+
- Make sure post content always has correct layout. ([51431](https://github.com/WordPress/gutenberg/pull/51431))
166
82
- Navigation: Memoize link value passed to the LinkControl. ([51155](https://github.com/WordPress/gutenberg/pull/51155))
167
-
- Hide the save draft button for published posts. ([51193](https://github.com/WordPress/gutenberg/pull/51193))
168
83
169
84
#### Site Editor
170
85
- Browse Mode: Remove horizontal scrollbar during screen transitions. ([51189](https://github.com/WordPress/gutenberg/pull/51189))
@@ -179,11 +94,15 @@ The following contributors merged PRs in this release:
179
94
- Freeform/Shortcode: Prevent blocks from converting HTML entities. ([51123](https://github.com/WordPress/gutenberg/pull/51123))
180
95
- Navigation: Apply color classes to the navigation container element. ([50968](https://github.com/WordPress/gutenberg/pull/50968))
181
96
- Post Template: Set block context via filter. ([50313](https://github.com/WordPress/gutenberg/pull/50313))
97
+
- Post Template: Output number of columns as classname for backwards compatibility. ([51358](https://github.com/WordPress/gutenberg/pull/51358))
98
+
- Post Title: Fix autofocus when iframed. ([51331](https://github.com/WordPress/gutenberg/pull/51331), [51367](https://github.com/WordPress/gutenberg/pull/51367))
99
+
- Query: Fix deprecation error when migrating layout. ([51311](https://github.com/WordPress/gutenberg/pull/51311))
182
100
- Term Description: Handle default margin styles. ([51137](https://github.com/WordPress/gutenberg/pull/51137))
183
101
184
102
#### Global Styles
185
103
- DimensionsPanel: Fix site editor error on Columns block level screen. ([51252](https://github.com/WordPress/gutenberg/pull/51252))
186
104
- Fluid typography: Ensure max viewport width is used in the editor. ([51146](https://github.com/WordPress/gutenberg/pull/51146))
105
+
- Global styles revisions: Ensure redirect runs once for back button. ([51316](https://github.com/WordPress/gutenberg/pull/51316))
187
106
- SpacingSizesControl: Fix problem with the slider position being reset when saving global styles. ([50956](https://github.com/WordPress/gutenberg/pull/50956))
188
107
- Styles Screen: Ensure variations previews will render in mobile viewports. ([51080](https://github.com/WordPress/gutenberg/pull/51080))
189
108
@@ -199,6 +118,7 @@ The following contributors merged PRs in this release:
199
118
200
119
#### Accessibility
201
120
- Add aria labels to the focal point picker component. ([50993](https://github.com/WordPress/gutenberg/pull/50993))
121
+
- Block Toolbar: Fix text only label for locked blocks. ([50944](https://github.com/WordPress/gutenberg/pull/50944))
Note that either a plain string or a regular expression can be passed into these queries. A regular expression is best for querying part of a string (e.g. any element whose accessibility label contains `Unsupported Block. Row 1`). Note that special characters such as `.` need to be escaped.
123
123
124
-
### Use of `waitFor`
124
+
### Use of `find` queries
125
125
126
-
After rendering the components or firing an event, side effects might happen due to potential state updates so the element we’re looking for might not be yet rendered. In this case, we would need to wait for the element to be available and for this purpose, we can use the `waitFor` function, which periodically executes the provided callback to determine whether the element appeared or not.
126
+
After rendering the components or firing an event, side effects might happen due to potential state updates so the element we’re looking for might not be yet rendered. In this case, we would need to wait for the element to be available and for this purpose, we can use the `find*` versions of query functions, which internally use `waitFor` and periodically check whether the element appeared or not.
127
127
128
128
Here are some examples:
129
129
130
130
```js
131
-
constmediaLibraryButton=awaitwaitFor( () =>
132
-
getByText( 'WordPress Media Library' )
133
-
);
131
+
constmediaLibraryButton=awaitfindByText( 'WordPress Media Library' );
In most cases we’ll use the `waitFor` function, but it’s important to note that it should be restricted to those queries that actually require waiting for the element to be available.
149
-
150
-
NOTE: The `react-native-testing-library` package provides the `query*` and `find*` functions for this purpose too, but we should avoid using them for now because there’s a [known issue](https://github.com/callstack/react-native-testing-library/issues/379) that would make the test fail.
142
+
In most cases we’ll use the `find*` functions, but it’s important to note that it should be restricted to those queries that actually require waiting for the element to be available.
151
143
152
144
### `within` queries
153
145
154
146
It’s also possible to query elements contained in other elements via the `within` function, here is an example:
@@ -314,8 +302,8 @@ Note that a slider’s `testID` is "Slider " + label. So for a slider with a lab
314
302
One caveat when adding blocks is that if they contain inner blocks, these inner blocks are not rendered. The following example shows how we can make a Buttons block render its inner Button blocks (assumes we’ve already obtained a reference to the Buttons block as `buttonsBlock`):
0 commit comments