@wewear/virtual-try-on 1.4.8 → 1.4.10

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.
@@ -1,3 +1,3 @@
1
- export { createPreviewBadge } from "./badge.js";
2
1
  export { createButton, createButtonContainer } from "./button.js";
3
2
  export { removeProductLoading, showProductLoading, } from "./loading-overlay.js";
3
+ export { showStatusBadge, removeStatusBadge, } from "./status-badge.js";
@@ -1,12 +1,3 @@
1
- /**
2
- * Creates a loading overlay that can be shown in different containers
3
- */
4
1
  export declare function createLoadingOverlay(text?: string): HTMLElement;
5
- /**
6
- * Shows a loading overlay in the product gallery container
7
- */
8
2
  export declare function showProductLoading(container: HTMLElement, text?: string): void;
9
- /**
10
- * Removes loading overlay from product container
11
- */
12
3
  export declare function removeProductLoading(container: HTMLElement): void;
@@ -0,0 +1,3 @@
1
+ export declare function createStatusBadge(message: string): HTMLElement;
2
+ export declare function showStatusBadge(container: HTMLElement, message: string): void;
3
+ export declare function removeStatusBadge(container: HTMLElement): void;
@@ -1,12 +1,9 @@
1
- /** CSS class names for consistent styling */
2
1
  export declare const CSS_CLASSES: {
3
- readonly BUTTON_CONTAINER: "wewear-vto-button-container";
4
- readonly BUTTON: "wewear-vto-button";
5
- readonly MODAL: "wewear-vto-modal";
6
- readonly PREVIEW_BADGE: "ww-vto-preview-badge";
2
+ BUTTON_CONTAINER: string;
3
+ BUTTON: string;
4
+ MODAL: string;
7
5
  };
8
- /** Z-index values for proper layering */
9
6
  export declare const Z_INDEX: {
10
- readonly BUTTON: 10;
11
- readonly MODAL: 99999;
7
+ BUTTON: number;
8
+ MODAL: number;
12
9
  };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,4 @@
1
- /**
2
- * Button position options for the VTO widget
3
- */
4
1
  export type ButtonPosition = "bottom-right" | "bottom-left" | "top-right" | "top-left";
5
- /**
6
- * Configuration interface for the Virtual Try-On widget
7
- */
8
2
  export interface VirtualTryOnConfig {
9
3
  baseUrl: string;
10
4
  productPageSelector: string;
@@ -12,9 +6,6 @@ export interface VirtualTryOnConfig {
12
6
  productImageSelector: string;
13
7
  buttonPosition: ButtonPosition;
14
8
  }
15
- /**
16
- * Result interface for virtual try-on operations
17
- */
18
9
  export interface VirtualTryOnResult {
19
10
  imageUrl: string | null;
20
11
  error?: {