unlayer-types 1.5.61 → 1.5.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/embed.d.ts +16 -276
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -1066,289 +1066,30 @@ declare module "editor/components/editors/ImageUploader" {
|
|
1066
1066
|
}
|
1067
1067
|
declare module "editor/components/editors/pixie/pixie.umd" {
|
1068
1068
|
const _exports: {
|
1069
|
-
new (
|
1069
|
+
new (e: any): {
|
1070
1070
|
readonly state: any;
|
1071
|
-
readonly
|
1072
|
-
|
1073
|
-
selector: string;
|
1074
|
-
textureSize: number;
|
1075
|
-
ui: {
|
1076
|
-
visible: boolean;
|
1077
|
-
mode: any;
|
1078
|
-
forceOverlayModeOnMobile: boolean;
|
1079
|
-
activeTheme: any;
|
1080
|
-
themes: ({
|
1081
|
-
name: any;
|
1082
|
-
colors: {
|
1083
|
-
"--be-foreground-base": string;
|
1084
|
-
"--be-primary-light": string;
|
1085
|
-
"--be-primary": string;
|
1086
|
-
"--be-primary-dark": string;
|
1087
|
-
"--be-on-primary": string;
|
1088
|
-
"--be-error": string;
|
1089
|
-
"--be-on-error": string;
|
1090
|
-
"--be-background": string;
|
1091
|
-
"--be-background-alt": string;
|
1092
|
-
"--be-paper": string;
|
1093
|
-
"--be-disabled-bg-opacity": string;
|
1094
|
-
"--be-disabled-fg-opacity": string;
|
1095
|
-
"--be-hover-opacity": string;
|
1096
|
-
"--be-focus-opacity": string;
|
1097
|
-
"--be-selected-opacity": string;
|
1098
|
-
"--be-text-main-opacity": string;
|
1099
|
-
"--be-text-muted-opacity": string;
|
1100
|
-
"--be-divider-opacity": string;
|
1101
|
-
};
|
1102
|
-
isDark?: undefined;
|
1103
|
-
} | {
|
1104
|
-
name: any;
|
1105
|
-
isDark: boolean;
|
1106
|
-
colors: {
|
1107
|
-
"--be-foreground-base": string;
|
1108
|
-
"--be-primary-light": string;
|
1109
|
-
"--be-primary": string;
|
1110
|
-
"--be-primary-dark": string;
|
1111
|
-
"--be-on-primary": string;
|
1112
|
-
"--be-error": string;
|
1113
|
-
"--be-on-error": string;
|
1114
|
-
"--be-background": string;
|
1115
|
-
"--be-background-alt": string;
|
1116
|
-
"--be-paper": string;
|
1117
|
-
"--be-disabled-bg-opacity": string;
|
1118
|
-
"--be-disabled-fg-opacity": string;
|
1119
|
-
"--be-hover-opacity": string;
|
1120
|
-
"--be-focus-opacity": string;
|
1121
|
-
"--be-selected-opacity": string;
|
1122
|
-
"--be-text-main-opacity": string;
|
1123
|
-
"--be-text-muted-opacity": string;
|
1124
|
-
"--be-divider-opacity": string;
|
1125
|
-
};
|
1126
|
-
})[];
|
1127
|
-
allowEditorClose: boolean;
|
1128
|
-
menubar: {
|
1129
|
-
items: ({
|
1130
|
-
type: string;
|
1131
|
-
align: string;
|
1132
|
-
desktopOnly?: undefined;
|
1133
|
-
icon?: undefined;
|
1134
|
-
action?: undefined;
|
1135
|
-
label?: undefined;
|
1136
|
-
} | {
|
1137
|
-
type: string;
|
1138
|
-
align: string;
|
1139
|
-
desktopOnly: boolean;
|
1140
|
-
icon?: undefined;
|
1141
|
-
action?: undefined;
|
1142
|
-
label?: undefined;
|
1143
|
-
} | {
|
1144
|
-
type: string;
|
1145
|
-
icon: any;
|
1146
|
-
align: string;
|
1147
|
-
desktopOnly: boolean;
|
1148
|
-
action: (e: any) => void;
|
1149
|
-
label?: undefined;
|
1150
|
-
} | {
|
1151
|
-
type: string;
|
1152
|
-
icon: any;
|
1153
|
-
label: {
|
1154
|
-
id: string;
|
1155
|
-
defaultMessage: {
|
1156
|
-
type: number;
|
1157
|
-
value: string;
|
1158
|
-
}[];
|
1159
|
-
};
|
1160
|
-
align: string;
|
1161
|
-
action: (e: any) => void;
|
1162
|
-
desktopOnly?: undefined;
|
1163
|
-
})[];
|
1164
|
-
};
|
1165
|
-
nav: {
|
1166
|
-
position: any;
|
1167
|
-
items: {
|
1168
|
-
name: any;
|
1169
|
-
icon: any;
|
1170
|
-
action: any;
|
1171
|
-
}[];
|
1172
|
-
};
|
1173
|
-
openImageDialog: {
|
1174
|
-
show: boolean;
|
1175
|
-
sampleImages: {
|
1176
|
-
url: string;
|
1177
|
-
thumbnail: string;
|
1178
|
-
}[];
|
1179
|
-
};
|
1180
|
-
colorPresets: {
|
1181
|
-
items: string[];
|
1182
|
-
};
|
1183
|
-
};
|
1184
|
-
objectDefaults: {
|
1185
|
-
global: any;
|
1186
|
-
sticker: {
|
1187
|
-
fill: any;
|
1188
|
-
};
|
1189
|
-
text: {
|
1190
|
-
textAlign: string;
|
1191
|
-
underline: boolean;
|
1192
|
-
linethrough: boolean;
|
1193
|
-
fontStyle: string;
|
1194
|
-
fontFamily: string;
|
1195
|
-
fontWeight: string;
|
1196
|
-
stroke: any;
|
1197
|
-
fontSize: number;
|
1198
|
-
};
|
1199
|
-
};
|
1200
|
-
tools: {
|
1201
|
-
filter: {
|
1202
|
-
items: string[];
|
1203
|
-
};
|
1204
|
-
zoom: {
|
1205
|
-
allowUserZoom: boolean;
|
1206
|
-
fitImageToScreen: boolean;
|
1207
|
-
};
|
1208
|
-
crop: {
|
1209
|
-
allowCustomRatio: boolean;
|
1210
|
-
defaultRatio: string;
|
1211
|
-
presets: ({
|
1212
|
-
ratio: string;
|
1213
|
-
name: string;
|
1214
|
-
} | {
|
1215
|
-
ratio: string;
|
1216
|
-
name?: undefined;
|
1217
|
-
})[];
|
1218
|
-
};
|
1219
|
-
text: {
|
1220
|
-
defaultText: string;
|
1221
|
-
items: ({
|
1222
|
-
family: string;
|
1223
|
-
src: string;
|
1224
|
-
descriptors?: undefined;
|
1225
|
-
} | {
|
1226
|
-
family: string;
|
1227
|
-
src: string;
|
1228
|
-
descriptors: {
|
1229
|
-
weight: string;
|
1230
|
-
};
|
1231
|
-
})[];
|
1232
|
-
};
|
1233
|
-
draw: {
|
1234
|
-
brushSizes: number[];
|
1235
|
-
brushTypes: string[];
|
1236
|
-
};
|
1237
|
-
shapes: {
|
1238
|
-
items: ({
|
1239
|
-
name: string;
|
1240
|
-
type: string;
|
1241
|
-
options?: undefined;
|
1242
|
-
} | {
|
1243
|
-
name: string;
|
1244
|
-
type: string;
|
1245
|
-
options: {
|
1246
|
-
lockUniScaling: boolean;
|
1247
|
-
path?: undefined;
|
1248
|
-
strokeWidth?: undefined;
|
1249
|
-
stroke?: undefined;
|
1250
|
-
padding?: undefined;
|
1251
|
-
};
|
1252
|
-
} | {
|
1253
|
-
name: string;
|
1254
|
-
type: string;
|
1255
|
-
options: {
|
1256
|
-
path: string;
|
1257
|
-
lockUniScaling?: undefined;
|
1258
|
-
strokeWidth?: undefined;
|
1259
|
-
stroke?: undefined;
|
1260
|
-
padding?: undefined;
|
1261
|
-
};
|
1262
|
-
} | {
|
1263
|
-
name: string;
|
1264
|
-
type: string;
|
1265
|
-
options: {
|
1266
|
-
path: string;
|
1267
|
-
strokeWidth: number;
|
1268
|
-
stroke: string;
|
1269
|
-
padding: number;
|
1270
|
-
lockUniScaling?: undefined;
|
1271
|
-
};
|
1272
|
-
})[];
|
1273
|
-
};
|
1274
|
-
stickers: {
|
1275
|
-
items: ({
|
1276
|
-
name: string;
|
1277
|
-
list: string[];
|
1278
|
-
type: string;
|
1279
|
-
thumbnailUrl: string;
|
1280
|
-
items?: undefined;
|
1281
|
-
invertPreview?: undefined;
|
1282
|
-
} | {
|
1283
|
-
name: string;
|
1284
|
-
items: number;
|
1285
|
-
type: string;
|
1286
|
-
thumbnailUrl: string;
|
1287
|
-
list?: undefined;
|
1288
|
-
invertPreview?: undefined;
|
1289
|
-
} | {
|
1290
|
-
name: string;
|
1291
|
-
items: number;
|
1292
|
-
type: string;
|
1293
|
-
thumbnailUrl: string;
|
1294
|
-
invertPreview: boolean;
|
1295
|
-
list?: undefined;
|
1296
|
-
})[];
|
1297
|
-
};
|
1298
|
-
import: {
|
1299
|
-
validImgExtensions: string[];
|
1300
|
-
fitOverlayToScreen: boolean;
|
1301
|
-
openDroppedImageAsBackground: boolean;
|
1302
|
-
};
|
1303
|
-
export: {
|
1304
|
-
defaultFormat: string;
|
1305
|
-
defaultQuality: number;
|
1306
|
-
defaultName: string;
|
1307
|
-
};
|
1308
|
-
frame: {
|
1309
|
-
items: ({
|
1310
|
-
name: string;
|
1311
|
-
mode: string;
|
1312
|
-
size: {
|
1313
|
-
min: number;
|
1314
|
-
max: number;
|
1315
|
-
default: number;
|
1316
|
-
};
|
1317
|
-
display_name?: undefined;
|
1318
|
-
} | {
|
1319
|
-
name: string;
|
1320
|
-
display_name: string;
|
1321
|
-
mode: string;
|
1322
|
-
size: {
|
1323
|
-
min: number;
|
1324
|
-
max: number;
|
1325
|
-
default: number;
|
1326
|
-
};
|
1327
|
-
})[];
|
1328
|
-
};
|
1329
|
-
};
|
1330
|
-
};
|
1331
|
-
open(t?: {}): void;
|
1071
|
+
readonly defaultConfig: any;
|
1072
|
+
open(e?: {}): Promise<any>;
|
1332
1073
|
close(): void;
|
1333
|
-
setConfig(
|
1074
|
+
setConfig(e: any): void;
|
1334
1075
|
uploadAndAddImage(): any;
|
1335
1076
|
uploadAndReplaceMainImage(): any;
|
1336
1077
|
uploadAndOpenStateFile(): any;
|
1337
|
-
newCanvas(
|
1338
|
-
getState(
|
1339
|
-
setState(
|
1340
|
-
setStateFromUrl(
|
1341
|
-
openTool(
|
1078
|
+
newCanvas(e: any, n: any, r: any): any;
|
1079
|
+
getState(e: any): string;
|
1080
|
+
setState(e: any): any;
|
1081
|
+
setStateFromUrl(e: any): Promise<any>;
|
1082
|
+
openTool(e: any): void;
|
1342
1083
|
applyChanges(): void;
|
1343
1084
|
cancelChanges(): void;
|
1344
|
-
resetEditor(
|
1345
|
-
togglePanel(
|
1346
|
-
on(
|
1085
|
+
resetEditor(e: any): Promise<void>;
|
1086
|
+
togglePanel(e: any, n: any): void;
|
1087
|
+
on(e: any, n: any): void;
|
1347
1088
|
isDirty(): any;
|
1348
|
-
get(
|
1349
|
-
notify(
|
1089
|
+
get(e: any): any;
|
1090
|
+
notify(e: any): void;
|
1350
1091
|
};
|
1351
|
-
init(
|
1092
|
+
init(e: any): Promise<any>;
|
1352
1093
|
};
|
1353
1094
|
export = _exports;
|
1354
1095
|
}
|
@@ -1363,10 +1104,9 @@ declare module "editor/components/editors/pixie/PixieImageEditor" {
|
|
1363
1104
|
componentDidMount(): void;
|
1364
1105
|
componentDidUpdate(prevProps: any): void;
|
1365
1106
|
loadPixieEditor: () => Promise<void>;
|
1366
|
-
updateImage: () => Promise<void>;
|
1107
|
+
updateImage: (data: any, filename: any, format: any) => Promise<void>;
|
1367
1108
|
componentWillUnmount(): Promise<void>;
|
1368
1109
|
render(): JSX.Element;
|
1369
|
-
b64toBlob: (b64Data: any, contentType: any, sliceSize: any) => Blob;
|
1370
1110
|
}
|
1371
1111
|
export default PixieImageEditor;
|
1372
1112
|
}
|
package/package.json
CHANGED