Skip to content

Commit

Permalink
Pre-release v2.0.0-rc.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jan 16, 2023
1 parent e4a6174 commit 47c9a48
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
24 changes: 15 additions & 9 deletions CHANGELOG.md
Expand Up @@ -12,32 +12,38 @@
### Added

- Add strict TypeScript module definition for Draftail. [#388](https://github.com/springload/draftail/issues/388), [#429](https://github.com/springload/draftail/pull/429)
- Implement `onPaste` handler for entities to be able to create themselves on paste.
- Add a new optional `InlineToolbar` component so the editor can be rendered with either a static or floating toolbar.
- Add a new optional `BlockToolbar` component, intended to be used with `InlineToolbar`, so the editor UI is less visible.
#### Toolbars

- Add a new optional `FloatingToolbar` component so the editor can be rendered with a minimal height.
- Add a new optional `BlockToolbar` component, intended for keyboard and first-time users.
- Add a new optional `MetaToolbar` component intended to display editor metadata at the bottom of the editor.
- Add a new optional `InlineToolbar` component, which is user-configurable to display either a static or floating toolbar.
- Add a new optional `CommandPalette` component, usable with the `commandPalette` rendering prop and the `commands` data prop.
- Placeholder follow focus
- Heading blocks highlight
- Single-line editing support

#### Miscellaneous improvements

- Add strict TypeScript module definition for Draftail. [#388](https://github.com/springload/draftail/issues/388), [#429](https://github.com/springload/draftail/pull/429)
- Implement `onPaste` handler for entities to be able to create themselves on paste.
- Empty blocks now have a `Draftail-block--empty` class for styling.
- Add support for [Windows High contrast mode / Contrast themes](https://docs.microsoft.com/en-us/fluent-ui/web-components/design-system/high-contrast) for the whole editor UI.
- Pass Draft.js ARIA props through. [#436](https://github.com/springload/draftail/issues/436), [#438](https://github.com/springload/draftail/pull/438)
- Add a name prop and className to ToolbarGroup so different groups can have different styles, for example `Draftail-ToolbarGroup--entities`.
- Placeholder follow focus
- Heading blocks highlight
- Single-line editing support
- single-line editing
- Dismiss keyboard shortcuts

### Changed

- The controls API now expects JS objects similarly to other APIs. Controls can now declare in what type of toolbar they should be rendered: `block` (static top toolbar), `inline` (floating toolbar), `meta` (bottom / meta toolbar). They can also have a `type` to help with troubleshooting.
- Draftail now uses [CSS logical properties and values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties) to [support right-to-left (RTL) languages](https://rtlstyling.com/posts/rtl-styling).
- Latest draftjs-conductor
- Latest draftjs-filters
- Dismiss keyboard shortcuts

### Fixed

- Fix Sass deprecation warning with `/` slash character for divisions and separators.
- Fix potential SSR issue with first-child selector

### Removed

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "draftail",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "📝🍸 A configurable rich text editor built with Draft.js",
"author": "Springload",
"license": "MIT",
Expand Down

0 comments on commit 47c9a48

Please sign in to comment.