zakeke-configurator-react 0.0.112 → 0.0.114

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.
@@ -296,6 +296,26 @@ export interface SellerSettings {
296
296
  hidePrice: boolean;
297
297
  hotjarSiteID: string | null;
298
298
  googleTagManagerID: string | null;
299
+ canSaveDraftComposition: boolean;
300
+ canUndoRedo: boolean;
301
+ shareType: number | null;
302
+ }
303
+ export declare class CompositionItem {
304
+ attributeID: number;
305
+ attributeName: string;
306
+ attributeCode: string;
307
+ selectedOptionName: string;
308
+ selectedOptionCode: string;
309
+ }
310
+ export declare class Composition {
311
+ name: string;
312
+ docID: string;
313
+ compositionID: number;
314
+ compositionItems: CompositionItem[];
315
+ previewImageUrl: string;
316
+ designID: number | null;
317
+ tags: string[];
318
+ static fromJSON(json: any): Composition;
299
319
  }
300
320
  export interface OnBeforeSendDataToParent {
301
321
  composition: number;
@@ -314,4 +334,19 @@ export interface TemplateUploadRestrictictions {
314
334
  isEpsAllowed: boolean;
315
335
  isPdfWithRasterAllowed: boolean;
316
336
  }
337
+ export declare class SelectedOption {
338
+ attributeID: number;
339
+ optionID: number;
340
+ }
341
+ export declare enum ExtensionFieldDataType {
342
+ Money = 1,
343
+ Integer = 2,
344
+ Decimal = 3
345
+ }
346
+ export interface ExtensionFields {
347
+ name: string;
348
+ value: number;
349
+ label: string;
350
+ formatString: string;
351
+ }
317
352
  export {};
package/dist/index.js CHANGED
@@ -25538,6 +25538,7 @@ class ZakekeEnvironment {
25538
25538
  this.handleAttributeOptionDisabled(e.attributeID, e.optionID);
25539
25539
  });
25540
25540
  this.updateComposition();
25541
+ this.updateRecapAndExtensionField();
25541
25542
  });
25542
25543
  this.cloneSelection = (selection) => {
25543
25544
  const clone = new Zakeke.ComposerSelection();
@@ -26606,6 +26607,7 @@ class ZakekeEnvironment {
26606
26607
  const themeCompositions = this.themeCompositionsFromSavedCompositions(savedCompositions);
26607
26608
  this.themeCompositions = themeCompositions;
26608
26609
  }
26610
+ this.trigger("change");
26609
26611
  });
26610
26612
  this.themeCompositionsFromSavedCompositions = (compositions) => {
26611
26613
  const themeCompositions = compositions.map(composition => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.112",
3
+ "version": "0.0.114",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",