From d454f18ad2b5c2f8c5b233b6a82c73ac13e9d44c Mon Sep 17 00:00:00 2001 From: Nick Moreton Date: Thu, 5 Oct 2023 10:32:13 +0100 Subject: [PATCH] Removed sticker option from Pintura (#18497) Removed the sticker feature from the image editor component in both the new and the legacy admin apps. This simplifies the UI and the code of the `usePinturaEditor.ts` and `koenig-image-editor.js` files. --- apps/admin-x-settings/src/hooks/usePinturaEditor.ts | 5 +---- ghost/admin/app/components/koenig-image-editor.js | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/admin-x-settings/src/hooks/usePinturaEditor.ts b/apps/admin-x-settings/src/hooks/usePinturaEditor.ts index a66534fc4b..d8f90e4d96 100644 --- a/apps/admin-x-settings/src/hooks/usePinturaEditor.ts +++ b/apps/admin-x-settings/src/hooks/usePinturaEditor.ts @@ -35,7 +35,6 @@ declare global { enableTransparencyGrid: boolean; util: string; utils: string[]; - stickerStickToImage: boolean; frameOptions: [FrameOptionType, (locale: PinturaLocale) => string][]; cropSelectPresetFilter: string; cropSelectPresetOptions: [number | undefined, string][]; @@ -164,10 +163,8 @@ export default function usePinturaEditor({ 'redact', 'annotate', 'trim', - 'frame', - 'sticker' + 'frame' ], - stickerStickToImage: true, frameOptions: [ // No frame [undefined, locale => locale.labelNone], diff --git a/ghost/admin/app/components/koenig-image-editor.js b/ghost/admin/app/components/koenig-image-editor.js index dff7cf5799..cd9437d3e8 100644 --- a/ghost/admin/app/components/koenig-image-editor.js +++ b/ghost/admin/app/components/koenig-image-editor.js @@ -158,10 +158,8 @@ export default class KoenigImageEditor extends Component { 'redact', 'annotate', 'trim', - 'frame', - 'sticker' + 'frame' ], - stickerStickToImage: true, frameOptions: [ // No frame [undefined, locale => locale.labelNone],