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:
parent
1b5359dce1
commit
d454f18ad2
@ -35,7 +35,6 @@ declare global {
|
|||||||
enableTransparencyGrid: boolean;
|
enableTransparencyGrid: boolean;
|
||||||
util: string;
|
util: string;
|
||||||
utils: string[];
|
utils: string[];
|
||||||
stickerStickToImage: boolean;
|
|
||||||
frameOptions: [FrameOptionType, (locale: PinturaLocale) => string][];
|
frameOptions: [FrameOptionType, (locale: PinturaLocale) => string][];
|
||||||
cropSelectPresetFilter: string;
|
cropSelectPresetFilter: string;
|
||||||
cropSelectPresetOptions: [number | undefined, string][];
|
cropSelectPresetOptions: [number | undefined, string][];
|
||||||
@ -164,10 +163,8 @@ export default function usePinturaEditor({
|
|||||||
'redact',
|
'redact',
|
||||||
'annotate',
|
'annotate',
|
||||||
'trim',
|
'trim',
|
||||||
'frame',
|
'frame'
|
||||||
'sticker'
|
|
||||||
],
|
],
|
||||||
stickerStickToImage: true,
|
|
||||||
frameOptions: [
|
frameOptions: [
|
||||||
// No frame
|
// No frame
|
||||||
[undefined, locale => locale.labelNone],
|
[undefined, locale => locale.labelNone],
|
||||||
|
@ -158,10 +158,8 @@ export default class KoenigImageEditor extends Component {
|
|||||||
'redact',
|
'redact',
|
||||||
'annotate',
|
'annotate',
|
||||||
'trim',
|
'trim',
|
||||||
'frame',
|
'frame'
|
||||||
'sticker'
|
|
||||||
],
|
],
|
||||||
stickerStickToImage: true,
|
|
||||||
frameOptions: [
|
frameOptions: [
|
||||||
// No frame
|
// No frame
|
||||||
[undefined, locale => locale.labelNone],
|
[undefined, locale => locale.labelNone],
|
||||||
|
Loading…
Reference in New Issue
Block a user