Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Blocks to v0.35.1 #290

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.0.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.0.2](https://github.com/uploadcare/pyuploadcare/compare/v5.0.1...v5.0.2) - unreleased

### Changed

- [Blocks](https://github.com/uploadcare/blocks) have been updated to [v0.35.1](https://github.com/uploadcare/blocks/releases)

### Fixed

- Django forms: Any modifications made in an image editor are now correctly restored when editing the same image again. Previously, the editor state was not restored, and the original image was displayed instead. [via uploadcare/blocks#615](https://github.com/uploadcare/blocks/issues/615).

## [5.0.1](https://github.com/uploadcare/pyuploadcare/compare/v5.0.0...v5.0.1) - 2024-03-02

### Changed
Expand Down
2 changes: 1 addition & 1 deletion docs/django-widget.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Below is the full default configuration:
"use_legacy_widget": False,
"use_hosted_assets": True,
"widget": {
"version": "0.33.2",
"version": "0.35.1",
"variant": "regular",
"build": "min",
"options": {},
Expand Down
2 changes: 1 addition & 1 deletion pyuploadcare/dj/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SettingsType(typing_extensions.TypedDict):
"use_legacy_widget": False,
"use_hosted_assets": True,
"widget": {
"version": "0.33.2",
"version": "0.35.1",
"variant": "regular",
"build": "min",
"options": {},
Expand Down
6 changes: 3 additions & 3 deletions pyuploadcare/dj/static/uploadcare/blocks.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyuploadcare/dj/templates/uploadcare/forms/widgets/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{% if options.multiple == "true" %}
{# FileGroup #}
{% for file in value %}
uploaderCtx.addFileFromUuid("{{ file.uuid }}")
uploaderCtx.addFileFromCdnUrl("{{ file.cdn_url }}")
{% endfor %}
{% else %}
{# File #}
uploaderCtx.addFileFromUuid("{{ value.uuid }}")
uploaderCtx.addFileFromCdnUrl("{{ value.cdn_url }}")
{% endif %}
});
</script>
Expand Down
Loading