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.
This commit is contained in:
Nick Moreton 2023-10-05 10:32:13 +01:00 committed by GitHub
parent 1b5359dce1
commit d454f18ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -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],

View File

@ -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],