@mediaclip/designer-api 14.0.1 → 14.1.0-cd.29359

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/designer-api.d.ts CHANGED
@@ -50,7 +50,7 @@ export class AutofillData {
50
50
  }
51
51
 
52
52
  export class AutofillSpecificationsSet {
53
- id:string;
53
+ id?:string;
54
54
  min:number;
55
55
  max:number;
56
56
  full:number;
@@ -319,7 +319,7 @@ export interface IDesignerFunctions {
319
319
  getProjectPhotos():ImageSize[];
320
320
  hasEmptyElements(checkForPhotos:boolean, checkForTexts:boolean, includeOptionalElements:boolean):boolean;
321
321
  lock():void;
322
- navigateAlbums(cat:any[]):void;
322
+ navigateAlbums(albumIds:string[]):void;
323
323
  reloadAlbums():void;
324
324
  replacePhotoFilename(from:string, to:string):Promise<void>;
325
325
  retryFailedRequests():void;
@@ -345,9 +345,10 @@ export interface IDesignerEvents {
345
345
  onGetPhotos:(deferred:Deferred<Photo[]>, filenames:string[]) => boolean;
346
346
  onGetPhotosSubset:(deferred:Deferred<Photo[]>, filenames:string[]) => boolean;
347
347
  onGetPhotoSources:(deferred:Deferred<PhotoSource[]>) => boolean;
348
+ onGetRecoveryId:() => string | null;
348
349
  onLoad:(deferred:Deferred<Project>, projectName:string) => boolean;
349
350
  onLoadComplete:() => Promise<void>;
350
- onGetRecoveryId:() => string;
351
+ onNavigationBack:() => boolean;
351
352
  onReady:(deferred:Deferred<void>) => boolean;
352
353
  onRedirect:(url:string) => boolean;
353
354
  onReload:() => boolean;
@@ -365,7 +366,6 @@ export type ColorTheme =
365
366
  ;
366
367
 
367
368
  export interface IMediaclipConfig {
368
- allowedDomains?:string[];
369
369
  browserNotSupportedRedirectUrl?:string;
370
370
  clientId?:string;
371
371
  defaultCulture?:string;
@@ -415,6 +415,7 @@ export interface IMediaclipConfig {
415
415
  text?:boolean;
416
416
  allowAutofill?:boolean;
417
417
  allowAutoFontSize?:boolean;
418
+ allowChangeProjectName?:boolean;
418
419
  allowChangeYear?:boolean;
419
420
  allowFittingModeChangesInPrintModule?:boolean;
420
421
  alwaysShowMargins?:boolean;
@@ -423,9 +424,10 @@ export interface IMediaclipConfig {
423
424
  blockAddToCartWhenMissingTexts?:boolean;
424
425
  blockFittingModeChangesWhenNotCustomizable?:boolean;
425
426
  defaultPanel?:string;
426
- editionSteps?:string[];
427
+ editionSteps?:string;
427
428
  eyeDropper?:boolean;
428
429
  freeform?:boolean;
430
+ layoutSuggestionsCount?:number;
429
431
  plainColorBackgrounds?:boolean;
430
432
  replaceStylesWithThemes?:boolean;
431
433
  requirePreview?:boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaclip/designer-api",
3
- "version": "14.0.1",
3
+ "version": "14.1.0-cd.29359",
4
4
  "description": "Mediaclip Designer Javascript API Typings",
5
5
  "types": "designer-api.d.ts",
6
6
  "main": "index.js",