Skip to content

Commit e112dae

Browse files
authored
Merge pull request #6585 from ampproject/2.1-update-gutenberg-packages
[2.1] Update Gutenberg packages
2 parents 4205e6e + cd561da commit e112dae

File tree

73 files changed

+23640
-41925
lines changed

Some content is hidden

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

73 files changed

+23640
-41925
lines changed

assets/src/admin/paired-browsing/app.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,12 @@ class PairedBrowsingApp {
429429
/**
430430
* Receive loaded.
431431
*
432-
* @param {Object} data Data.
433-
* @param {boolean} data.isAmpDocument Whether the document is actually an AMP page.
434-
* @param {string} data.ampUrl The AMP URL.
435-
* @param {string} data.nonAmpUrl The non-AMP URL.
436-
* @param {string} data.documentTitle The title of the document.
437-
* @param {Window} sourceWindow The source window.
432+
* @param {Object} data Data.
433+
* @param {boolean} data.isAmpDocument Whether the document is actually an AMP page.
434+
* @param {string} data.ampUrl The AMP URL.
435+
* @param {string} data.nonAmpUrl The non-AMP URL.
436+
* @param {string} data.documentTitle The title of the document.
437+
* @param {Window} sourceWindow The source window.
438438
*/
439439
receiveLoaded( { isAmpDocument, ampUrl, nonAmpUrl, documentTitle }, sourceWindow ) {
440440
const isAmpSource = this.isAmpWindow( sourceWindow );

assets/src/amp-validation/amp-validated-url-post-edit-screen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const onBeforeUnload = ( event ) => {
9191
* If this does not exist yet, it creates the element.
9292
*
9393
* @param {number} numberErrorsDisplaying - The number of errors displaying.
94-
* @param {number} totalErrors - The total number of errors, displaying or not.
94+
* @param {number} totalErrors - The total number of errors, displaying or not.
9595
*/
9696
const updateShowingErrorsRow = ( numberErrorsDisplaying, totalErrors ) => {
9797
const showAllButton = document.getElementById( showAllId );

assets/src/amp-validation/amp-validation-detail-toggle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const OPEN_CLASS = 'is-open';
1717
* table column via backend code.
1818
*
1919
* @param {string} containerSelector Selector for elements that will have the button added.
20-
* @param {string} ariaLabel Screen reader label for the button.
20+
* @param {string} ariaLabel Screen reader label for the button.
2121
* @return {Array} Array of added buttons.
2222
*/
2323
function addToggleButtons( containerSelector, ariaLabel ) {

assets/src/amp-validation/copy-to-clipboard-buttons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getURLValidationTableRows } from './get-url-validation-table-rows';
1616
/**
1717
* Success handler, called when data is copied to the clipboard.
1818
*
19-
* @param {Object} event
19+
* @param {Object} event
2020
* @param {HTMLElement} event.trigger The element triggering the event.
2121
*/
2222
function onSuccess( { trigger } ) {

assets/src/amp-validation/counts/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import './style.css';
1616
* If the count is not a number or is `0`, the element that contains the count is instead removed (as it would be no longer relevant).
1717
*
1818
* @param {HTMLElement} itemEl Menu item element.
19-
* @param {number} count Count to set.
19+
* @param {number} count Count to set.
2020
*/
2121
function updateMenuItem( itemEl, count ) {
2222
if ( isNaN( count ) || count === 0 ) {
@@ -29,9 +29,9 @@ function updateMenuItem( itemEl, count ) {
2929
/**
3030
* Updates the 'Validated URLs' and 'Error Index' menu items with their respective unreviewed count.
3131
*
32-
* @param {Object} counts Counts for menu items.
32+
* @param {Object} counts Counts for menu items.
3333
* @param {number} counts.validated_urls Unreviewed validated URLs count.
34-
* @param {number} counts.errors Unreviewed validation errors count.
34+
* @param {number} counts.errors Unreviewed validation errors count.
3535
*/
3636
function updateMenuItemCounts( counts ) {
3737
const { validated_urls: newValidatedUrlCount, errors: newErrorCount } = counts;

assets/src/amp-validation/get-url-validation-table-rows.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Gets the table rows on a single URL validation screen.
33
*
4-
* @param {Object} options
4+
* @param {Object} options
55
* @param {boolean} options.checkedOnly Whether to return only checked rows.
66
*/
77
export function getURLValidationTableRows( options = {} ) {

assets/src/block-editor/components/layout-controls.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import { __, sprintf } from '@wordpress/i18n';
1313
/**
1414
* Layout controls for AMP blocks' attributes: layout, width, height.
1515
*
16-
* @param {Object} props Component props.
17-
* @param {Object} props.attributes Block attributes.
18-
* @param {Function} props.setAttributes Callback to update block attributes.
19-
* @param {Array} props.ampLayoutOptions Layout options.
16+
* @param {Object} props Component props.
17+
* @param {Object} props.attributes Block attributes.
18+
* @param {Function} props.setAttributes Callback to update block attributes.
19+
* @param {Array} props.ampLayoutOptions Layout options.
2020
* @return {ReactElement} Controls.
2121
*/
2222
const LayoutControls = ( { attributes, setAttributes, ampLayoutOptions } ) => {

assets/src/block-editor/components/media-placeholder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { __ } from '@wordpress/i18n';
1313
/**
1414
* Display media placeholder.
1515
*
16-
* @param {Object} props Component props.
16+
* @param {Object} props Component props.
1717
* @param {string} props.name Block's name.
18-
* @param {string} props.url URL.
18+
* @param {string} props.url URL.
1919
* @return {ReactElement} Placeholder.
2020
*/
2121
const MediaPlaceholder = ( { name, url } ) => {

assets/src/block-editor/helpers/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ export const filterBlocksEdit = ( BlockEdit ) => {
316316
/**
317317
* Set width and height in case of image block.
318318
*
319-
* @param {Object} props Props.
319+
* @param {Object} props Props.
320320
* @param {Function} props.setAttributes Callback to set attributes.
321-
* @param {Object} props.attributes Attributes.
322-
* @param {string} layout Layout.
321+
* @param {Object} props.attributes Attributes.
322+
* @param {string} layout Layout.
323323
*/
324324
export const setImageBlockLayoutAttributes = ( props, layout ) => {
325325
const { attributes, setAttributes } = props;

assets/src/block-validation/components/amp-validation-status/test/__snapshots__/status-notification.js.snap

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)