Skip to content

Commit

Permalink
Block Editor: Add names for the 'editor.BlockListBlock' filter HoCs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 10, 2023
1 parent f1b07c5 commit 896ce46
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/align.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export const withDataAlign = createHigherOrderComponent(
}

return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />;
}
},
'withDataAlign'
);

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/border.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ export const withBorderColorPaletteStyles = createHigherOrderComponent(
};

return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />;
}
},
'withBorderColorPaletteStyles'
);

addFilter(
Expand Down
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ export const withColorPaletteStyles = createHigherOrderComponent(
};

return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />;
}
},
'withColorPaletteStyles'
);

const MIGRATION_PATHS = {
Expand Down
6 changes: 4 additions & 2 deletions packages/block-editor/src/hooks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ export const withLayoutStyles = createHigherOrderComponent(
/>
</>
);
}
},
'withLayoutStyles'
);

/**
Expand Down Expand Up @@ -484,7 +485,8 @@ export const withChildLayoutStyles = createHigherOrderComponent(
<BlockListBlock { ...props } className={ className } />
</>
);
}
},
'withChildLayoutStyles'
);

addFilter(
Expand Down
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ export const withPositionStyles = createHigherOrderComponent(
<BlockListBlock { ...props } className={ className } />
</>
);
}
},
'withPositionStyles'
);

addFilter(
Expand Down
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ const withElementsStyles = createHigherOrderComponent(
/>
</>
);
}
},
'withElementsStyles'
);

addFilter(
Expand Down

1 comment on commit 896ce46

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 896ce46.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4937979976
📝 Reported issues:

Please sign in to comment.