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 committed May 10, 2023
1 parent bf00f04 commit c5839fa
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

0 comments on commit c5839fa

Please sign in to comment.