unlayer-types
Advanced tools
Comparing version 1.5.61 to 1.5.63
292
embed.d.ts
@@ -1069,285 +1069,26 @@ /// <reference types="react" /> | ||
const _exports: { | ||
new (t: any): { | ||
new (e: any): { | ||
readonly state: any; | ||
readonly version: string; | ||
readonly defaultConfig: { | ||
selector: string; | ||
textureSize: number; | ||
ui: { | ||
visible: boolean; | ||
mode: any; | ||
forceOverlayModeOnMobile: boolean; | ||
activeTheme: any; | ||
themes: ({ | ||
name: any; | ||
colors: { | ||
"--be-foreground-base": string; | ||
"--be-primary-light": string; | ||
"--be-primary": string; | ||
"--be-primary-dark": string; | ||
"--be-on-primary": string; | ||
"--be-error": string; | ||
"--be-on-error": string; | ||
"--be-background": string; | ||
"--be-background-alt": string; | ||
"--be-paper": string; | ||
"--be-disabled-bg-opacity": string; | ||
"--be-disabled-fg-opacity": string; | ||
"--be-hover-opacity": string; | ||
"--be-focus-opacity": string; | ||
"--be-selected-opacity": string; | ||
"--be-text-main-opacity": string; | ||
"--be-text-muted-opacity": string; | ||
"--be-divider-opacity": string; | ||
}; | ||
isDark?: undefined; | ||
} | { | ||
name: any; | ||
isDark: boolean; | ||
colors: { | ||
"--be-foreground-base": string; | ||
"--be-primary-light": string; | ||
"--be-primary": string; | ||
"--be-primary-dark": string; | ||
"--be-on-primary": string; | ||
"--be-error": string; | ||
"--be-on-error": string; | ||
"--be-background": string; | ||
"--be-background-alt": string; | ||
"--be-paper": string; | ||
"--be-disabled-bg-opacity": string; | ||
"--be-disabled-fg-opacity": string; | ||
"--be-hover-opacity": string; | ||
"--be-focus-opacity": string; | ||
"--be-selected-opacity": string; | ||
"--be-text-main-opacity": string; | ||
"--be-text-muted-opacity": string; | ||
"--be-divider-opacity": string; | ||
}; | ||
})[]; | ||
allowEditorClose: boolean; | ||
menubar: { | ||
items: ({ | ||
type: string; | ||
align: string; | ||
desktopOnly?: undefined; | ||
icon?: undefined; | ||
action?: undefined; | ||
label?: undefined; | ||
} | { | ||
type: string; | ||
align: string; | ||
desktopOnly: boolean; | ||
icon?: undefined; | ||
action?: undefined; | ||
label?: undefined; | ||
} | { | ||
type: string; | ||
icon: any; | ||
align: string; | ||
desktopOnly: boolean; | ||
action: (e: any) => void; | ||
label?: undefined; | ||
} | { | ||
type: string; | ||
icon: any; | ||
label: { | ||
id: string; | ||
defaultMessage: { | ||
type: number; | ||
value: string; | ||
}[]; | ||
}; | ||
align: string; | ||
action: (e: any) => void; | ||
desktopOnly?: undefined; | ||
})[]; | ||
}; | ||
nav: { | ||
position: any; | ||
items: { | ||
name: any; | ||
icon: any; | ||
action: any; | ||
}[]; | ||
}; | ||
openImageDialog: { | ||
show: boolean; | ||
sampleImages: { | ||
url: string; | ||
thumbnail: string; | ||
}[]; | ||
}; | ||
colorPresets: { | ||
items: string[]; | ||
}; | ||
}; | ||
objectDefaults: { | ||
global: any; | ||
sticker: { | ||
fill: any; | ||
}; | ||
text: { | ||
textAlign: string; | ||
underline: boolean; | ||
linethrough: boolean; | ||
fontStyle: string; | ||
fontFamily: string; | ||
fontWeight: string; | ||
stroke: any; | ||
fontSize: number; | ||
}; | ||
}; | ||
tools: { | ||
filter: { | ||
items: string[]; | ||
}; | ||
zoom: { | ||
allowUserZoom: boolean; | ||
fitImageToScreen: boolean; | ||
}; | ||
crop: { | ||
allowCustomRatio: boolean; | ||
defaultRatio: string; | ||
presets: ({ | ||
ratio: string; | ||
name: string; | ||
} | { | ||
ratio: string; | ||
name?: undefined; | ||
})[]; | ||
}; | ||
text: { | ||
defaultText: string; | ||
items: ({ | ||
family: string; | ||
src: string; | ||
descriptors?: undefined; | ||
} | { | ||
family: string; | ||
src: string; | ||
descriptors: { | ||
weight: string; | ||
}; | ||
})[]; | ||
}; | ||
draw: { | ||
brushSizes: number[]; | ||
brushTypes: string[]; | ||
}; | ||
shapes: { | ||
items: ({ | ||
name: string; | ||
type: string; | ||
options?: undefined; | ||
} | { | ||
name: string; | ||
type: string; | ||
options: { | ||
lockUniScaling: boolean; | ||
path?: undefined; | ||
strokeWidth?: undefined; | ||
stroke?: undefined; | ||
padding?: undefined; | ||
}; | ||
} | { | ||
name: string; | ||
type: string; | ||
options: { | ||
path: string; | ||
lockUniScaling?: undefined; | ||
strokeWidth?: undefined; | ||
stroke?: undefined; | ||
padding?: undefined; | ||
}; | ||
} | { | ||
name: string; | ||
type: string; | ||
options: { | ||
path: string; | ||
strokeWidth: number; | ||
stroke: string; | ||
padding: number; | ||
lockUniScaling?: undefined; | ||
}; | ||
})[]; | ||
}; | ||
stickers: { | ||
items: ({ | ||
name: string; | ||
list: string[]; | ||
type: string; | ||
thumbnailUrl: string; | ||
items?: undefined; | ||
invertPreview?: undefined; | ||
} | { | ||
name: string; | ||
items: number; | ||
type: string; | ||
thumbnailUrl: string; | ||
list?: undefined; | ||
invertPreview?: undefined; | ||
} | { | ||
name: string; | ||
items: number; | ||
type: string; | ||
thumbnailUrl: string; | ||
invertPreview: boolean; | ||
list?: undefined; | ||
})[]; | ||
}; | ||
import: { | ||
validImgExtensions: string[]; | ||
fitOverlayToScreen: boolean; | ||
openDroppedImageAsBackground: boolean; | ||
}; | ||
export: { | ||
defaultFormat: string; | ||
defaultQuality: number; | ||
defaultName: string; | ||
}; | ||
frame: { | ||
items: ({ | ||
name: string; | ||
mode: string; | ||
size: { | ||
min: number; | ||
max: number; | ||
default: number; | ||
}; | ||
display_name?: undefined; | ||
} | { | ||
name: string; | ||
display_name: string; | ||
mode: string; | ||
size: { | ||
min: number; | ||
max: number; | ||
default: number; | ||
}; | ||
})[]; | ||
}; | ||
}; | ||
}; | ||
open(t?: {}): void; | ||
readonly defaultConfig: any; | ||
open(e?: {}): Promise<any>; | ||
close(): void; | ||
setConfig(t: any): void; | ||
setConfig(e: any): void; | ||
uploadAndAddImage(): any; | ||
uploadAndReplaceMainImage(): any; | ||
uploadAndOpenStateFile(): any; | ||
newCanvas(t: any, r: any, n: any): any; | ||
getState(t: any): string; | ||
setState(t: any): any; | ||
setStateFromUrl(t: any): Promise<any>; | ||
openTool(t: any): void; | ||
newCanvas(e: any, n: any, r: any): any; | ||
getState(e: any): string; | ||
setState(e: any): any; | ||
setStateFromUrl(e: any): Promise<any>; | ||
openTool(e: any): void; | ||
applyChanges(): void; | ||
cancelChanges(): void; | ||
resetEditor(t: any): Promise<void>; | ||
togglePanel(t: any, r: any): void; | ||
on(t: any, r: any): void; | ||
resetEditor(e: any): Promise<void>; | ||
togglePanel(e: any, n: any): void; | ||
on(e: any, n: any): void; | ||
isDirty(): any; | ||
get(t: any): any; | ||
notify(t: any): any; | ||
get(e: any): any; | ||
notify(e: any): void; | ||
}; | ||
init(t: any): Promise<any>; | ||
init(e: any): Promise<any>; | ||
}; | ||
@@ -1367,6 +1108,5 @@ export = _exports; | ||
loadPixieEditor: () => Promise<void>; | ||
updateImage: () => Promise<void>; | ||
updateImage: (data: any, filename: any, format: any) => Promise<void>; | ||
componentWillUnmount(): Promise<void>; | ||
render(): JSX.Element; | ||
b64toBlob: (b64Data: any, contentType: any, sliceSize: any) => Blob; | ||
} | ||
@@ -1373,0 +1113,0 @@ export default PixieImageEditor; |
{ | ||
"name": "unlayer-types", | ||
"version": "1.5.61", | ||
"version": "1.5.63", | ||
"license": "MIT" | ||
} |
49719
1269