Skip to content

Commit

Permalink
prep build 07/15
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Jul 15, 2024
2 parents 64ede11 + 3f34e00 commit d65835d
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 102 deletions.
18 changes: 6 additions & 12 deletions .github/ISSUE_TEMPLATE/Bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,19 @@ body:
validations:
required: false

- type: dropdown
- type: checkboxes
id: existing
attributes:
label: Please confirm that you have searched existing issues in the repo.
description: You can do this by searching https://github.com/WordPress/gutenberg/issues and making sure the bug is not related to another plugin.
multiple: true
options:
- 'Yes'
- 'No'
validations:
required: true
- label: 'Yes'
required: true

- type: dropdown
- type: checkboxes
id: plugins
attributes:
label: Please confirm that you have tested with all plugins deactivated except Gutenberg.
multiple: true
options:
- 'Yes'
- 'No'
validations:
required: true
- label: 'Yes'
required: true
30 changes: 30 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
== Changelog ==

= 18.8.0-rc.2 =


## Changelog

### Bug Fixes

- Fix: Error when calling the PostActions `view-post` callback. ([63460](https://github.com/WordPress/gutenberg/pull/63460))


### Various

#### CSS & Styling
- Only add customizer additional CSS to global styles in block themes. ([63331](https://github.com/WordPress/gutenberg/pull/63331))


## First-time contributors

The following PRs were merged by first-time contributors:

- @sejas: Fix: Error when calling the PostActions `view-post` callback. ([63460](https://github.com/WordPress/gutenberg/pull/63460))


## Contributors

The following contributors merged PRs in this release:

@sejas @tellthemachines


= 18.8.0-rc.1 =


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg",
"version": "18.8.0-rc.1",
"version": "18.8.0-rc.2",
"private": true,
"description": "A new WordPress editor experience.",
"author": "The WordPress Contributors",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import AdvancedControls from './advanced-controls-panel';
import PositionControls from './position-controls-panel';
import { default as InspectorControls } from '../inspector-controls';
import SettingsTabHint from './settings-tab-hint';

const SettingsTab = ( { showAdvancedControls = false } ) => (
<>
Expand All @@ -15,7 +14,6 @@ const SettingsTab = ( { showAdvancedControls = false } ) => (
<AdvancedControls />
</div>
) }
<SettingsTabHint />
</>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,3 @@
}
}
}

.block-editor-inspector-controls-tabs__hint {
align-items: flex-start;
background: $gray-100;
border-radius: $radius-block-ui;
color: $gray-900;
display: flex;
flex-direction: row;
margin: $grid-unit-20;
font-size: $default-font-size;
}

.block-editor-inspector-controls-tabs__hint-content {
margin: $grid-unit-15 0 $grid-unit-15 $grid-unit-15;
}

.block-editor-inspector-controls-tabs__hint-dismiss {
// The dismiss button has a lot of empty space through its padding.
// Apply margin to visually align the icon with the top of the text to its left.
margin: $grid-unit-05 $grid-unit-05 $grid-unit-05 0;
}
2 changes: 1 addition & 1 deletion packages/block-library/src/list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ ul {
box-sizing: border-box;
}

:root :where(ul.has-background, ol.has-background) {
:root :where(.wp-block-list.has-background) {
padding: $block-bg-padding--v $block-bg-padding--h;
}
8 changes: 7 additions & 1 deletion packages/block-library/src/tag-cloud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ function TagCloudEdit( { attributes, setAttributes } ) {
} = attributes;

const [ availableUnits ] = useSettings( 'spacing.units' );

// The `pt` unit is used as the default value and is therefore
// always considered an available unit.
const units = useCustomUnits( {
availableUnits: availableUnits || [ '%', 'px', 'em', 'rem' ],
availableUnits: availableUnits
? [ ...availableUnits, 'pt' ]
: [ '%', 'px', 'em', 'rem', 'pt' ],
} );

const taxonomies = useSelect(
( select ) => select( coreStore ).getTaxonomies( { per_page: -1 } ),
[]
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/autocomplete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The following props are used to control the behavior of the component.

### record

The rich text value object the autocomleter is being applied to.
The rich text value object the autocompleter is being applied to.

- Required: Yes
- Type: `RichTextValue`
Expand Down Expand Up @@ -50,7 +50,7 @@ A function that returns nodes to be rendered within the Autocomplete.

### isSelected

Whether or not the Autocomplte componenet is selected, and if its `Popover` should be displayed.
Whether or not the Autocomplete component is selected, and if its `Popover` should be displayed.

- Required: Yes
- Type: `Boolean`
Expand Down
5 changes: 2 additions & 3 deletions packages/components/src/autocomplete/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ export type AutocompleteProps = UseAutocompleteProps & {
props: Omit< ReturnType< typeof useAutocomplete >, 'popover' >
) => React.ReactNode;
/**
* Whether or not the Autocomplte componenet is selected, and if its
* `Popover`
* should be displayed.
* Whether or not the Autocomplete component is selected, and if its
* `Popover` should be displayed.
*/
isSelected: boolean;
};
2 changes: 1 addition & 1 deletion packages/create-block/docs/external-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The following configurable variables are used with the template files. Template

**Block metadata** ([learn more](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/)):

- `folderName` (default: `.`) – the location for the `block.json` file and other optional block files generated from block templates included in the folder set with the `blockTemplatesPath` setting.
- `folderName` (default: `src`) – the location for the `block.json` file and other optional block files generated from block templates included in the folder set with the `blockTemplatesPath` setting.
- `$schema` (default: `https://schemas.wp.org/trunk/block.json`) – the schema URL used for block validation.
- `apiVersion` (default: `2`) – the block API version ([related dev note](https://make.wordpress.org/core/2020/11/18/block-api-version-2/)).
- `slug` (no default) – the block slug used for identification in the block name.
Expand Down
8 changes: 7 additions & 1 deletion packages/eslint-plugin/configs/es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ module.exports = {
asyncArrow: 'always',
},
],
'space-in-parens': [ 'error', 'always' ],
'space-in-parens': [
'error',
'always',
{
exceptions: [ 'empty' ],
},
],
'space-infix-ops': 'error',
'space-unary-ops': [
'error',
Expand Down
6 changes: 3 additions & 3 deletions packages/patterns/src/components/reset-overrides-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import {
store as blockEditorStore,
BlockControls,
__unstableBlockToolbarLastItem as BlockToolbarLastItem,
} from '@wordpress/block-editor';
import { ToolbarButton, ToolbarGroup } from '@wordpress/components';
import { useRegistry, useSelect } from '@wordpress/data';
Expand Down Expand Up @@ -79,12 +79,12 @@ export default function ResetOverridesControl( props ) {
}

return (
<BlockControls group="other">
<BlockToolbarLastItem>
<ToolbarGroup>
<ToolbarButton onClick={ onClick } disabled={ ! isOverriden }>
{ __( 'Reset' ) }
</ToolbarButton>
</ToolbarGroup>
</BlockControls>
</BlockToolbarLastItem>
);
}

0 comments on commit d65835d

Please sign in to comment.