xactsize-webcomponents 1.0.5 → 1.0.7
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/README.md +1 -1
- package/dist/body-measurer.d.ts +5 -0
- package/dist/body-measurer.es.js +501 -513
- package/dist/body-measurer.umd.js +59 -80
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ npm install xactsize-webcomponent
|
|
|
49
49
|
|
|
50
50
|
```html
|
|
51
51
|
<body-measurer culture="pt-BR" product-name="Calça Legging" skus='[{"dimensions":{"Size":"S"},"measures":{"height":39,"length":78,"width":78}},{"dimensions":{"Size":"M"},"measures":{"height":40,"length":82,"width":82}}]'></body-measurer>
|
|
52
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/xactsize-webcomponents@1.0.
|
|
52
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/xactsize-webcomponents@1.0.6/dist/body-measurer.es.js"></script>
|
|
53
53
|
|
|
54
54
|
<script>
|
|
55
55
|
// Select the body-measurer element
|
package/dist/body-measurer.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export declare const getLocale: (() => string) & {
|
|
|
17
17
|
export declare class BodyMeasurer extends LitElement {
|
|
18
18
|
static styles: import('lit', { with: { "resolution-mode": "import" } }).CSSResult;
|
|
19
19
|
apiKey: string;
|
|
20
|
+
productImageSrc: string;
|
|
21
|
+
onMeasurementAccepted: (() => void) | undefined;
|
|
22
|
+
onMeasurementCanceled: (() => void) | undefined;
|
|
20
23
|
private _culture;
|
|
21
24
|
get culture(): string;
|
|
22
25
|
set culture(value: string);
|
|
@@ -62,6 +65,8 @@ declare global {
|
|
|
62
65
|
culture: string;
|
|
63
66
|
skus: SKU[];
|
|
64
67
|
'product-name': string;
|
|
68
|
+
onmeasurementaccepted: (() => void) | undefined;
|
|
69
|
+
onmeasurementcanceled: (() => void) | undefined;
|
|
65
70
|
openModal(): void;
|
|
66
71
|
closeModal(): void;
|
|
67
72
|
addEventListener(type: 'measurementAccepted', listener: (this: BodyMeasurer, ev: CustomEvent<{
|