- Removed string escaping in the database. Now StreamField is stored in the database as a native JSONField, since version 3.1 Django supports JSON in all databases. When resaving the object, escaping in the new version will be automatically removed.
- Added new frontend features: You can open/collapse blocks by one (click on the block header) or all together. You can add new block between the others blocks (put cursor between the blocks and wait for plus button).
- For better blocks navigation you can add name of the block by using
__str__
method in block definition code. Or you can change the method name in settings - The collapsed state of the blocks is stored in the database.
- For development. Webpack 5 is used to build frontend part. JS scripts is divided into components. Vue updated to version 3. SASS is used for styling.
- JS libraries are join to one bundle including streamfield.
- StreamBlocksAdminMixin now using for StreamBlocksAdmin class (#21)
- Icons changed from png to svg
- STREAMFIELD_SHOW_ADMIN_HELP_TEXT bug fixed (#27)
- STREAMFIELD_SHOW_ADMIN_HELP_TEXT now is False by default. And you can add your own text by using STREAMFIELD_ADMIN_HELP_TEXT in settings.
- Removed STREAMFIELD_SHOW_ADMIN_COLLAPSE from settings.
- Fixed migrate_stream_options method.