📝✨ Little Draft.js helpers to make rich text editors “just work”
MIT License
Bot releases are hidden (Show)
Published by thibaudcolas almost 4 years ago
<ListNestingStyles max={6} />
component has been removed,generateListNestingStyles
method is now deprecated andBoth 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.
Published by thibaudcolas almost 4 years ago
Published by thibaudcolas over 5 years ago
Published by thibaudcolas over 5 years ago