Draftjs-exporter

Latest version: v5.0.0

Safety actively analyzes 629811 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 6

0.3.3

Last release before switching to BeautifulSoup4 / html5lib. If we ever need to switch back to lxml, it should be as simple as looking at the code at [v0.3.3](https://github.com/springload/draftjs_exporter/tree/v0.3.3).

Added

- Add wrapper method to create new elements.
- Add wrapper method to retrieve an element's list of classes.

0.3.2

Fixed

- Fix exporter crashing on empty blocks (renders empty string instead)

0.3.1

Fixed

- Use HTML parser instead of XML for DOM API

0.3.0

Added

- Automatic conversion of entity data to HTML attributes (int & boolean to string, `class` to `class`).
- Default, extensible block & inline style maps for common HTML elements.
- React-like API to create custom entity decorators.
- DOM API to abstract HTML building code.
- Dynamically generate test cases from JSON fixture
- Raise exception for undefined entity decorators

Changed

- (Breaking change) Exporter API changed to be closer to React's
- (Breaking change) Entity decorator API changed to be closer to React's

Fixed

- Nested blocks backtracking creating multiple wrappers at the same depths instead of reusing existing ones ([9](https://github.com/springload/draftjs_exporter/issues/9))

Removed

- Removed Token entity (identical as Null)

0.2.0

Added

- Support for `<hr/>` tag / `TOKEN` entities
- Support for wrapped item nesting (arbitrary depth)

0.1.0

First usable release! 🎉

Page 6 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.