draftjs-conductor
Advanced tools
Changelog
2.0.0 (2020-11-19)
<ListNestingStyles max={6} />
component has been removed,
and the generateListNestingStyles
method is now deprecated and
will be removed in a future release.Both are replaced with a getListNestingStyles
method, which works exactly the same as
generateListNestingStyles
, but with a different parameter order, and with default values:
export const getListNestingStyles = (
maxDepth: number,
minDepth: number = DRAFT_DEFAULT_MAX_DEPTH + 1,
selectorPrefix: string = DRAFT_DEFAULT_DEPTH_CLASS,
) => {
return generateListNestingStyles(selectorPrefix, minDepth, maxDepth);
};
This small breaking change allows us to remove this package’s peerDependency on React, making it easier to upgrade to React 17, and other versions in the future.