Releases: thibaudcolas/draftjs-conductor
Releases · thibaudcolas/draftjs-conductor
v3.0.0
v2.2.0
v2.1.0
v2.0.0
2.0.0 (2020-11-19)
Features
- api: replace list nesting APIs with a single getListNestingStyles (3703b2f)
- deps: proactively declare support with Draft.js v0.12.0 (586b385)
BREAKING CHANGES
- api: The
<ListNestingStyles max={6} />
component has been removed,
and thegenerateListNestingStyles
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.
v1.2.0
1.2.0 (2020-11-19)
Features
- api: onDraftEditorCopy, onDraftEditorCut for [email protected] (#268) (05b31cb)