Wagtail-fedit

Latest version: v1.5.8

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

Scan your dependencies

Page 1 of 3

1.5.8

Additions
* Allow for moving blocks up or down when using the `movable` flag in the template tag for blocks.
* Move-block view
* New log action for moving blocks
* Add `fetch` method for typescript api class
* Add tests for move-block view

Changes
* Change internals of typescript adapter classes.
* Add `on_register` method for adapters.
* Update docs
* Update dutch translations
* Minor CSS changes
* Watch container size when editing `dom-field` or `dom-block` nodes; resize iFrame accordingly
* Move around internal modules to avoid import cycles when creating the move-block view
* Return parent and block's index in `find_block` method along with the block and contentpath
* Change tests for `find_block` updated return arguments

1.5.7

Additions
* `dom-field` adapter which allows does not create a modal; but 'replaces' the original content inline.
* 'dom-block' adapter which allows does not create a modal; but 'replaces' the original content inline.
* Include `adapter_help` command output in docs.

Changes
* Change internals of base adapter.
* Change event names from being prefixed by `MODAL` / `modal` to `EDITOR` / `editor`

1.5.5

Additions
* Test for adapter refetch functionality
* Test for shared context
* [Documentation](https://nigel2392.github.io/wagtail_fedit/) built with [doccer](https://github.com/Nigel2392/doccer)

Changes
* Refactor all javascript files into TS
* Uniform context function for retrieving/adding minimally required attributes to adapter context
* Pre-populate defaults for optional and absolute 'Keywords'
* Add Tippy setting to README

Fixes
* Fix to function which registers snippet action menu item

1.5.4

Additions
* Tippy tooltips when hovering over buttons
* Add caveat for userbar model links
* Add keywords for `BackgroundImageFieldAdapter`
* Type annotations to `frontend.js`
* Adapter base JS class now inherits from `EventTarget`
* Add `{% fedit_userbar instance %}` template- tag
* View to re- fetch `Adapter` HTML

Updates
* Updated translations
* Update actions wagtail 6.1 workflow for wagtail==6.1rc2
* Actualise translations

Changes
* README TOC section inside details
* Improve internal workings of `Keyword` class.
* Improve `Adapter.get_header_title` strings by wrapping instance in single quotes.
* Move `View` error messages to `errors.py`
* Improve help command based on settings
* Tiny improvements to CSS selectors / attributes
* Simplify `AdapterNode.render`
* Button visibility based on permissions / URL availability for `FeditAdapterAdminLinkButton`

1.5.3

Additions
* Specify `as variable_name` as final arguments to fedit tag to store the adapter HTML in the context.
Exampe: `{% fedit field my.field inline as my_editable_inline_field %} {{ my_editable_inline_field }}`
* Add `ModelAdapter` for directly editing a django model (or revision of that model).
Example: `{% fedit model instance %}`
* Add adapter tests for `ModelAdapter`
* View tests for `ModelAdapter`
* Add hook to determine type of form-widget to use for ModelField

Updates
* Allow sharing of context through session data instead of URL parameters (allows for nearly arbitrary shared context data without a length imposed)
* Auto-generation of shared-context keys with uuid if enabled
* Allow for custom formfield based on model-field type or related model type if modelfield is `ForeignKey` for `FieldAdapter` and it's subclasses.
Registered with hook `wagtail_fedit.register_field_widgets`.
* Update README

Changes
* Adapters render their own modal HTML
* Changes to how adapters work internally; added `field_required` class-attribute to determine if a model instance alone will suffice in the template-tag.
This means the view, templatetags and adapters got a relatively large-sized rework.
* Field-, Block- and ModelAdapters will now also replace similar elements if their `data-related-id` element- attribute matches
* Check for editing- instance locale in `AdapterView` and the `FEditableView`, set activate locale if exists.
* Optionally save initial `request.LANGUAGE_CODE` in adapter shared context to avoid mismatched translations before and after saves.
* keywords attribute instead of `required_kwargs`, `absolute_tokens` and `optional_kwargs`.
Allows for simpler definitions and better integration with the management command.

1.5.2

Additions

* Add test for HTTP GET action views
* Add README section for settings
* Add hooks to README hooks section
* Add examples of custom adapters in README

Fixes

* Fix snippet publish view

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.