xactsize-webcomponents 1.0.7 → 1.0.8
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/body-measurer.d.ts +10 -29
- package/dist/body-measurer.es.js +683 -633
- package/dist/body-measurer.umd.js +129 -150
- package/dist/generated/locales/pt-BR.d.ts +37 -2
- package/dist/pt-BR-CpJNPyeH.mjs +56 -0
- package/package.json +1 -1
- package/dist/pt-BR-mf5fouED.mjs +0 -21
package/dist/body-measurer.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export declare class BodyMeasurer extends LitElement {
|
|
|
24
24
|
get culture(): string;
|
|
25
25
|
set culture(value: string);
|
|
26
26
|
_applyLocale(newLocale: string): Promise<void>;
|
|
27
|
+
private get errorMap();
|
|
28
|
+
private getTranslatedMessage;
|
|
27
29
|
private _isLocaleLoading;
|
|
28
30
|
skus: SKU[];
|
|
29
31
|
productName: string;
|
|
@@ -35,10 +37,14 @@ export declare class BodyMeasurer extends LitElement {
|
|
|
35
37
|
private errorMessage;
|
|
36
38
|
private instructionMessage;
|
|
37
39
|
private shouldStartMeasurement;
|
|
40
|
+
private isLoading;
|
|
41
|
+
private isFetching;
|
|
38
42
|
private videoElement;
|
|
39
43
|
private stream;
|
|
40
|
-
private
|
|
41
|
-
|
|
44
|
+
private poolingTimeout;
|
|
45
|
+
private instructionMessageTimeout;
|
|
46
|
+
private cameras;
|
|
47
|
+
private currentCameraId;
|
|
42
48
|
connectedCallback(): void;
|
|
43
49
|
disconnectedCallback(): void;
|
|
44
50
|
private handleEscKey;
|
|
@@ -47,9 +53,9 @@ export declare class BodyMeasurer extends LitElement {
|
|
|
47
53
|
private startMeasurement;
|
|
48
54
|
updated(changedProperties: Map<string, any>): void;
|
|
49
55
|
private initializeMeasurement;
|
|
50
|
-
private
|
|
56
|
+
private loadCameras;
|
|
57
|
+
private flipCamera;
|
|
51
58
|
private startPolling;
|
|
52
|
-
private isFetching;
|
|
53
59
|
private stopPolling;
|
|
54
60
|
private acceptMeasurement;
|
|
55
61
|
private resetMeasurement;
|
|
@@ -60,30 +66,5 @@ declare global {
|
|
|
60
66
|
interface HTMLElementTagNameMap {
|
|
61
67
|
'body-measurer': BodyMeasurer;
|
|
62
68
|
}
|
|
63
|
-
interface BodyMeasurer extends HTMLElement {
|
|
64
|
-
'api-key': string;
|
|
65
|
-
culture: string;
|
|
66
|
-
skus: SKU[];
|
|
67
|
-
'product-name': string;
|
|
68
|
-
onmeasurementaccepted: (() => void) | undefined;
|
|
69
|
-
onmeasurementcanceled: (() => void) | undefined;
|
|
70
|
-
openModal(): void;
|
|
71
|
-
closeModal(): void;
|
|
72
|
-
addEventListener(type: 'measurementAccepted', listener: (this: BodyMeasurer, ev: CustomEvent<{
|
|
73
|
-
size: string;
|
|
74
|
-
}>) => void, options?: boolean | AddEventListenerOptions): void;
|
|
75
|
-
addEventListener(type: 'measurementCanceled', listener: (this: BodyMeasurer, ev: CustomEvent<{}>) => void, options?: boolean | AddEventListenerOptions): void;
|
|
76
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
interface SKU {
|
|
80
|
-
dimensions: {
|
|
81
|
-
Size: string;
|
|
82
|
-
};
|
|
83
|
-
measures: {
|
|
84
|
-
height: number;
|
|
85
|
-
length: number;
|
|
86
|
-
width: number;
|
|
87
|
-
};
|
|
88
69
|
}
|
|
89
70
|
export {};
|