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

Blocks: update support from __experimentalLayout to layout #34128

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Blocks: update block support from __experimentalLayout to layout.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"blockGap": true
}
},
"__experimentalLayout": {
"layout": {
"allowSwitching": false,
"allowInheriting": false,
"default": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function PaymentButtonsEdit( { clientId, attributes } ) {
orientation: 'horizontal',
template: [ [ 'jetpack/recurring-payments' ] ],
templateInsertUpdatesSelection: true,
__experimentalLayout: layout,
layout,
} );

// The ID needs to be just on the outermost wrapper - the toolbar and wpcom upgrade nudge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function register_block() {
array(
'render_callback' => __NAMESPACE__ . '\render_block',
'supports' => array(
'__experimentalLayout' => array(
'layout' => array(
'allowSwitching' => false,
'allowInheriting' => false,
'default' => array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function ButtonsEdit( { context, subscribeButton, setSubscribeButtonPlan } ) {
allowedBlocks={ ALLOWED_BLOCKS }
template={ isPreview ? previewTemplate : template }
templateInsertUpdatesSelection={ false }
__experimentalLayout={ { type: 'default', alignments: [] } }
layout={ { type: 'default', alignments: [] } }
__experimentalMoverDirection="horizontal"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const TiledGalleryEdit = props => {
numColumns: displayedColumns,
marginHorizontal: TILE_SPACING,
marginVertical: TILE_SPACING,
__experimentalLayout: { type: 'default', alignments: [] },
layout: { type: 'default', alignments: [] },
gridProperties: {
numColumns: displayedColumns,
},
Expand Down
Loading