zakeke-configurator-react 0.1.341 → 0.1.342

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.
@@ -121,6 +121,7 @@ export declare class ZakekeEnvironment {
121
121
  tryOnSellerSettings: TryOnSeller | null;
122
122
  pdSettings: number;
123
123
  isInfoPointContentVisible: boolean;
124
+ imagesMacroCategories: ImageMacroCategory[];
124
125
  private internalTranslations;
125
126
  private integrationVersion;
126
127
  translations: Translations | null;
@@ -137,11 +138,27 @@ export declare class ZakekeEnvironment {
137
138
  constructor();
138
139
  private fetchVisitorToken;
139
140
  private parseParameters;
140
- makeDAMAnalyticsView(type: DAMViewerAnalyticsEventType): Promise<AxiosResponse<any, any>>;
141
+ makeDAMAnalyticsView(type: DAMViewerAnalyticsEventType): Promise<AxiosResponse<any, any, {}>>;
141
142
  private getProduct;
142
143
  private getScene;
143
144
  private getComposerModels;
144
145
  private getFonts;
146
+ getFontWeights: (font: FontFamily) => {
147
+ normal: boolean;
148
+ bold: boolean;
149
+ italic: boolean;
150
+ italicBold: boolean;
151
+ normalWeight: number;
152
+ boldWeight: number;
153
+ italicWeight: number;
154
+ italicBoldWeight: number;
155
+ };
156
+ private updateFontWeightForTextItem;
157
+ checkFontSupports: (fontName: string, needsBold: boolean, needsItalic: boolean) => {
158
+ canKeepStyles: boolean;
159
+ supportsBold: boolean;
160
+ supportsItalic: boolean;
161
+ };
145
162
  private getSettings;
146
163
  private getSellerSetting;
147
164
  createQuote: (formData: any) => Promise<any>;
@@ -268,8 +285,8 @@ export declare class ZakekeEnvironment {
268
285
  moveItemUp: (guid: string) => void;
269
286
  moveItemDown: (guid: string) => void;
270
287
  setItemText: (guid: string, text: string) => string;
271
- setItemItalic: (guid: string, italic: boolean) => void;
272
- setItemBold: (guid: string, bold: boolean) => void;
288
+ setItemItalic: (guid: string, italic: boolean, font?: FontFamily) => void;
289
+ setItemBold: (guid: string, bold: boolean, font?: FontFamily) => void;
273
290
  setItemColor: (guid: string, color: string) => void;
274
291
  setItemFontFamily: (guid: string, fontFamily: string) => Promise<void>;
275
292
  setItemTextOnPath: (guid: string, areaId: number, value: boolean) => void;
@@ -1,20 +1,20 @@
1
- declare const MPlaza: any;
2
- interface ImageTaskOptions {
3
- convertEpsToSvg: boolean;
4
- convertPdfToSvg: boolean;
5
- convertAiToSvg: boolean;
6
- IsPdfWithRasterAllowed: boolean;
7
- }
8
- export default class ImageUploadTask {
9
- culture: string;
10
- token: string;
11
- options: ImageTaskOptions;
12
- constructor(culture: string, token: string, options?: ImageTaskOptions);
13
- upload: (file: File, onProgress?: ((progress: number) => void) | undefined) => Promise<any[] | null | undefined>;
14
- addPrintingOptions: (printingOptions: MPlaza.PrintTypes | undefined) => void;
15
- private uploadFileChunked;
16
- private resumableUpload;
17
- private createImageTask;
18
- private getImageFromTask;
19
- }
20
- export {};
1
+ declare const MPlaza: any;
2
+ interface ImageTaskOptions {
3
+ convertEpsToSvg: boolean;
4
+ convertPdfToSvg: boolean;
5
+ convertAiToSvg: boolean;
6
+ IsPdfWithRasterAllowed: boolean;
7
+ }
8
+ export default class ImageUploadTask {
9
+ culture: string;
10
+ token: string;
11
+ options: ImageTaskOptions;
12
+ constructor(culture: string, token: string, options?: ImageTaskOptions);
13
+ upload: (file: File, onProgress?: ((progress: number) => void) | undefined) => Promise<any[] | null | undefined>;
14
+ addPrintingOptions: (printingOptions: MPlaza.PrintTypes | undefined) => void;
15
+ private uploadFileChunked;
16
+ private resumableUpload;
17
+ private createImageTask;
18
+ private getImageFromTask;
19
+ }
20
+ export {};