@solidpepper/solidpepper-solidgeneration 0.2.3 → 0.2.5

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/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _solidpepper_solidpepper_service from '@solidpepper/solidpepper-service';
2
1
  import { PublicationTemplate, PublicationsService, DamAssetsService, DocumentsService, PublicationPage, PublicationData, GenerationService, PricesTaxService, AttributesService, TemplatesService, PublicationsTemplatesService, NotificationServiceService, Template } from '@solidpepper/solidpepper-service';
3
2
  import { HttpClient } from '@angular/common/http';
4
3
  import { ToastrService } from 'ngx-toastr';
@@ -71,6 +70,9 @@ declare class DataSheet {
71
70
  backgrounds: PublicationTemplate[];
72
71
  defaultBackgroundGuid: string | null;
73
72
  marketing: PublicationTemplate[];
73
+ callouts: {
74
+ [templateGuid: string]: PublicationTemplate[];
75
+ };
74
76
  preview: boolean;
75
77
  imageFastPreview: boolean;
76
78
  bleedMargin: boolean;
@@ -203,7 +205,7 @@ declare class DataSheetSVG {
203
205
  };
204
206
  deleteBlock(svg: any): Promise<any>;
205
207
  deleteLine(svg: any): Promise<any>;
206
- getBackgroundSectionForPreview(section: any): _solidpepper_solidpepper_service.PublicationTemplate;
208
+ getBackgroundSectionForPreview(section: any): any;
207
209
  getMarketingSectionForPreview(section: any): any;
208
210
  getCleanedSVGString(svg: string, soft?: boolean): Promise<string | undefined>;
209
211
  selfCloseImgTags(svg: string): string;
@@ -248,6 +250,9 @@ declare class DataSheetSingleton {
248
250
  marketing: {
249
251
  [templateGuid: string]: PublicationTemplate[];
250
252
  };
253
+ callouts: {
254
+ [templateGuid: string]: PublicationTemplate[];
255
+ };
251
256
  private constructor();
252
257
  static getInstance(): DataSheetSingleton;
253
258
  getGabarits(templateGuid: string): PublicationTemplate[] | null;
@@ -256,6 +261,8 @@ declare class DataSheetSingleton {
256
261
  setBackgrounds(templateGuid: string, list: PublicationTemplate[]): void;
257
262
  getMarketing(templateGuid: string): PublicationTemplate[] | null;
258
263
  setMarketing(templateGuid: string, list: PublicationTemplate[]): void;
264
+ getCallouts(templateGuid: string): PublicationTemplate[] | null;
265
+ setCallouts(templateGuid: string, list: PublicationTemplate[]): void;
259
266
  clearTemplatesCache(templateGuid?: string): void;
260
267
  private getAttributesByType;
261
268
  private getFields;
@@ -265,6 +272,7 @@ declare class DataSheetSingleton {
265
272
 
266
273
  declare class DataSheetSku {
267
274
  publicationsService?: PublicationsService;
275
+ dataSheetsController?: any;
268
276
  DataSheetSVG: DataSheetSVG;
269
277
  DataSheet: DataSheet;
270
278
  languagePreviewSelected: string;
@@ -273,6 +281,7 @@ declare class DataSheetSku {
273
281
  skusSection: any[];
274
282
  skusSectionPreview: any[];
275
283
  constructor(dataSheetSVG: DataSheetSVG, dataSheet: DataSheet);
284
+ setDataSheetsController(dataSheetsController: any): Promise<void>;
276
285
  setPublicationsService(publicationsService: PublicationsService): Promise<void>;
277
286
  GenerateAllInOneExportFile(sourceId: any, option1PerPage: any, displayModeVariant: any, multiColumns?: boolean): Promise<any>;
278
287
  }
@@ -281,6 +290,7 @@ declare class DataSheetPublication {
281
290
  publicationsService?: PublicationsService;
282
291
  damAssetsService?: DamAssetsService;
283
292
  documentsService?: DocumentsService;
293
+ dataSheetsController?: any;
284
294
  DataSheetSVG: DataSheetSVG;
285
295
  DataSheet: DataSheet;
286
296
  languagePreviewSelected: string;
@@ -289,6 +299,7 @@ declare class DataSheetPublication {
289
299
  skusSection: PublicationData[];
290
300
  skusSectionPreview: PublicationData[];
291
301
  constructor(dataSheetSVG: DataSheetSVG, dataSheet: DataSheet, publication?: any, sectionActiveObject?: PublicationPage | null, skusSection?: PublicationData[]);
302
+ setDataSheetsController(dataSheetsController: any): Promise<void>;
292
303
  setPublicationsService(publicationsService: PublicationsService): Promise<void>;
293
304
  setDamAssetsService(damAssetsService: DamAssetsService): Promise<void>;
294
305
  setDocumentsService(documentsService: DocumentsService): Promise<void>;
@@ -321,8 +332,10 @@ declare class DataSheetController {
321
332
  getPricesListAvailable(datasheet: DataSheet): Promise<DataSheet>;
322
333
  getTemplateInfo(templateGuid: string): Promise<Template | null>;
323
334
  updateGabaritsList(templateGuid: string, forceRefresh?: boolean): Promise<PublicationTemplate[]>;
335
+ updateCalloutsList(templateGuid: string, forceRefresh?: boolean): Promise<PublicationTemplate[]>;
324
336
  updateBackgroundsList(templateGuid: string, forceRefresh?: boolean): Promise<PublicationTemplate[]>;
325
337
  updateMarketingList(templateGuid: string, forceRefresh?: boolean): Promise<PublicationTemplate[]>;
338
+ clearTemplatesCache(templateGuid?: string): void;
326
339
  loadGabaritsSvg(gabarits: PublicationTemplate[]): Promise<PublicationTemplate[]>;
327
340
  loadBackgroundsSvg(backgrounds: PublicationTemplate[]): Promise<PublicationTemplate[]>;
328
341
  loadMarketingSvg(marketing: PublicationTemplate[]): Promise<PublicationTemplate[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-solidgeneration",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Solidpepper - generation service",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.1.6",