@wewear/virtual-try-on 1.4.9 → 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.
- package/dist/components/index.d.ts +1 -1
- package/dist/components/loading-overlay.d.ts +0 -9
- package/dist/components/status-badge.d.ts +3 -0
- package/dist/constants.d.ts +5 -8
- package/dist/index.d.ts +0 -9
- package/dist/index.esm.js +383 -508
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +383 -508
- package/dist/index.js.map +1 -1
- package/dist/widget.d.ts +2 -41
- package/package.json +1 -1
|
@@ -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;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
/** CSS class names for consistent styling */
|
|
2
1
|
export declare const CSS_CLASSES: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
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?: {
|