Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel2392 committed May 12, 2024
1 parent 53792c0 commit 896c85b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = wagtail_fedit
version = 1.5.5rc8
version = 1.5.5
description = Frontend editing for your Wagtail site
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
8 changes: 7 additions & 1 deletion wagtail_fedit/static_src/editors/editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ type FuncResponseObject = ResponseObject & {
};
};

type BackgroundImageResponse = FuncResponseObject & {
url: string;
css_variable_name: string;
};



class BaseFuncEditor extends BaseWagtailFeditEditor {

Expand Down Expand Up @@ -92,7 +98,7 @@ class BlockFieldEditor extends BaseWagtailFeditEditor {
}


function backgroundImageAdapter(element: HTMLElement, response: any) {
function backgroundImageAdapter(element: HTMLElement, response: BackgroundImageResponse) {
const url = response.url;
const cssVar = response.css_variable_name;
if (cssVar) {
Expand Down

0 comments on commit 896c85b

Please sign in to comment.