@pixeasy/customizer-stage 0.0.46 → 0.0.47

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
@@ -26,6 +26,12 @@ export interface PersonalizedCustomizerOpenOptions {
26
26
  designId?: string;
27
27
  editToken?: string;
28
28
  submissionNumber?: string;
29
+ /** Save button text; defaults to "Save Design". */
30
+ submitLabel?: string;
31
+ /** Save button text while saving; defaults to "Saving design…". */
32
+ submittingLabel?: string;
33
+ /** Hide the built-in save button; the host saves with `submit()` from its own button. */
34
+ hideSubmit?: boolean;
29
35
  }
30
36
 
31
37
  export interface PersonalizedAppliedDesign {
@@ -35,7 +41,7 @@ export interface PersonalizedAppliedDesign {
35
41
  submissionNumber: string;
36
42
  variantIdentifier: string;
37
43
  previews: Array<{ viewType: string; url: string; width: number; height: number }>;
38
- personalizationPlacements: SubmissionPersonalizationPlacementDetail[];
44
+ personalizationPlacements: SubmissionPersonalizationPlacementDetail[];
39
45
  pdfUrl: string;
40
46
  canvases: Array<{ canvasKey: string; pngUrl: string; width: number; height: number }>;
41
47
  state: PersonalizedDesignState;
@@ -101,6 +107,8 @@ export class PersonalizedCustomizerBuilder {
101
107
  getDesignState(): PersonalizedDesignState | null;
102
108
  getCanvasSvg(): string | null;
103
109
  getCanvasImage(): string | null;
110
+ /** Save the design, as the built-in button does. Resolves true once `personalized:applied` fired. */
111
+ submit(): Promise<boolean>;
104
112
  close(emitClosed?: boolean): this;
105
113
  }
106
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixeasy/customizer-stage",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {