@pixeasy/customizer-stage 0.0.8-beta → 0.0.10-beta

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
@@ -7,6 +7,7 @@ export interface SdkElementConfig {
7
7
  locale?: string;
8
8
  theme?: string;
9
9
  readonly?: boolean;
10
+ copiedDesignState?: any;
10
11
  }
11
12
 
12
13
  export interface PixeasyOpenOptions extends SdkElementConfig {
@@ -31,9 +32,12 @@ export interface ErrorEventDetail {
31
32
 
32
33
  export interface SubmissionSuccessEventDetail {
33
34
  productId?: string;
35
+ selectedVariantId?: string;
36
+ variantIdentifier?: string;
34
37
  views?: string[];
35
38
  submissionNumber: string;
36
39
  personalizationPlacements: SubmissionPersonalizationPlacementDetail[];
40
+ isCopyAfterSave?: boolean;
37
41
  }
38
42
 
39
43
  export interface SubmissionPersonalizationPlacementDetail {
@@ -41,6 +45,17 @@ export interface SubmissionPersonalizationPlacementDetail {
41
45
  type: 'logo' | 'text';
42
46
  value: string | null;
43
47
  logoUrl: string | null;
48
+ snapshotId?: string | null;
49
+ designAreaSizeRanges?: Array<{
50
+ sizeRangeId: string;
51
+ name: string;
52
+ isDefault: boolean;
53
+ sizes: string[];
54
+ printableWidthInches: number;
55
+ printableHeightInches: number;
56
+ }>;
57
+ printableWidthInches?: number;
58
+ printableHeightInches?: number;
44
59
  }
45
60
 
46
61
  export interface SubmissionFailedEventDetail {
@@ -57,6 +72,7 @@ export const SDK_EVENTS: {
57
72
  readonly SUBMISSION_FAILED: 'submission:failed';
58
73
  readonly ERROR: 'error';
59
74
  readonly CLOSED: 'closed';
75
+ readonly COPY_DESIGN: 'copy-design';
60
76
  };
61
77
 
62
78
  export type BuilderEventName = (typeof SDK_EVENTS)[keyof typeof SDK_EVENTS];
@@ -74,6 +90,7 @@ export class PixeasyBuilder {
74
90
  [typeof SDK_EVENTS.SUBMISSION_FAILED]: SubmissionFailedEventDetail;
75
91
  [typeof SDK_EVENTS.ERROR]: ErrorEventDetail;
76
92
  [typeof SDK_EVENTS.CLOSED]: undefined;
93
+ [typeof SDK_EVENTS.COPY_DESIGN]: any;
77
94
  }[K],
78
95
  ) => void,
79
96
  ): this;
@@ -87,6 +104,7 @@ export class PixeasyBuilder {
87
104
  [typeof SDK_EVENTS.SUBMISSION_FAILED]: SubmissionFailedEventDetail;
88
105
  [typeof SDK_EVENTS.ERROR]: ErrorEventDetail;
89
106
  [typeof SDK_EVENTS.CLOSED]: undefined;
107
+ [typeof SDK_EVENTS.COPY_DESIGN]: any;
90
108
  }[K],
91
109
  ) => void,
92
110
  ): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixeasy/customizer-stage",
3
- "version": "0.0.8-beta",
3
+ "version": "0.0.10-beta",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {