From 9785a13e67f021936dc39f65fced87460ecdcfdb Mon Sep 17 00:00:00 2001 From: Marek Hrabe Date: Fri, 10 Apr 2026 11:22:20 +0200 Subject: [PATCH] :bug: Add webp export format to plugin types (#8870) * :bug: Add webp export format to plugin types Align plugin API typings with runtime export support by including 'webp' in 'Export.type' and updating the exported formats documentation. Signed-off-by: Marek Hrabe * :books: Add plugin-types changelog entry for missing webp export format Signed-off-by: Marek Hrabe --------- Signed-off-by: Marek Hrabe Co-authored-by: Andrey Antukh --- plugins/CHANGELOG.md | 1 + plugins/libs/plugin-types/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/CHANGELOG.md b/plugins/CHANGELOG.md index a5d5faff84..5d0fb45dec 100644 --- a/plugins/CHANGELOG.md +++ b/plugins/CHANGELOG.md @@ -1,6 +1,7 @@ ## 1.5.0 (Unreleased) - **plugin-types**: Added a flags subcontexts with the flag `naturalChildrenOrdering` +- **plugin-types**: Fix missing `webp` export format in `Export.type` ## 1.4.2 (2026-01-21) diff --git a/plugins/libs/plugin-types/index.d.ts b/plugins/libs/plugin-types/index.d.ts index f1b1595aec..e1e2b87f8e 100644 --- a/plugins/libs/plugin-types/index.d.ts +++ b/plugins/libs/plugin-types/index.d.ts @@ -1534,9 +1534,9 @@ export interface EventsMap { */ export interface Export { /** - * Type of the file to export. Can be one of the following values: png, jpeg, svg, pdf + * Type of the file to export. Can be one of the following values: png, jpeg, webp, svg, pdf */ - type: 'png' | 'jpeg' | 'svg' | 'pdf'; + type: 'png' | 'jpeg' | 'webp' | 'svg' | 'pdf'; /** * For bitmap formats represent the scale of the original size to resize the export */