@wewear/virtual-try-on 2.0.5 → 3.1.0

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/dist/widget.d.ts CHANGED
@@ -2,6 +2,7 @@ import type { VirtualTryOnConfig } from "./index.js";
2
2
  export declare class VirtualTryOnWidget {
3
3
  private static instanceCounter;
4
4
  private static activeWidgetId;
5
+ private static readonly ERROR_TOAST_MESSAGE;
5
6
  private readonly config;
6
7
  private readonly instanceId;
7
8
  private virtualTryOnImageUrl;
@@ -18,10 +19,13 @@ export declare class VirtualTryOnWidget {
18
19
  init(): Promise<void>;
19
20
  private handleTryOnClick;
20
21
  private handleRegenerateClick;
22
+ private handleSaveClick;
23
+ private handleShareClick;
21
24
  private buildPhotoUploadUrl;
22
25
  private getAllProductImages;
23
26
  private showPhotoUploadModal;
24
27
  private closeModal;
28
+ private showErrorToast;
25
29
  private sendPendingPrefillToModal;
26
30
  private postMessageToModal;
27
31
  private setupIframeListener;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wewear/virtual-try-on",
3
- "version": "2.0.5",
3
+ "version": "3.1.0",
4
4
  "description": "Virtual Try-On widget for e-commerce integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",