xactsize-webcomponents 1.0.14 → 1.0.15
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/LICENSE.md +18 -18
- package/README.md +77 -77
- package/package.json +53 -53
package/LICENSE.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# xactsize-webcomponent License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Your Name or Company. All rights reserved.
|
|
4
|
-
|
|
5
|
-
## License Terms
|
|
6
|
-
|
|
7
|
-
This software is provided as a compiled, closed-source package for public use under the following terms:
|
|
8
|
-
|
|
9
|
-
1. **Usage**: You are permitted to use the compiled version of `xactsize-webcomponent` (as distributed via npm or CDN) in your projects, subject to the terms below.
|
|
10
|
-
2. **No Source Access**: The source code of this software is proprietary and closed-source. You are not permitted to access, view, modify, or distribute the source code.
|
|
11
|
-
3. **No Reverse Engineering**: You may not reverse-engineer, decompile, or disassemble the compiled code to derive the source code.
|
|
12
|
-
4. **Redistribution**: You may not redistribute this package or its compiled files except as part of a larger application where the package is used as a dependency.
|
|
13
|
-
5. **API Key Requirement**: Usage of this package requires an API key, which must be obtained by registering your domain with the provider. Unauthorized use is prohibited.
|
|
14
|
-
6. **No Warranty**: This software is provided "as is," without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
15
|
-
7. **Liability**: In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from the use of this software.
|
|
16
|
-
|
|
17
|
-
## Contact
|
|
18
|
-
For licensing inquiries, API key registration, or support, contact [support@yourwebsite.com](mailto:support@yourwebsite.com).
|
|
1
|
+
# xactsize-webcomponent License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Your Name or Company. All rights reserved.
|
|
4
|
+
|
|
5
|
+
## License Terms
|
|
6
|
+
|
|
7
|
+
This software is provided as a compiled, closed-source package for public use under the following terms:
|
|
8
|
+
|
|
9
|
+
1. **Usage**: You are permitted to use the compiled version of `xactsize-webcomponent` (as distributed via npm or CDN) in your projects, subject to the terms below.
|
|
10
|
+
2. **No Source Access**: The source code of this software is proprietary and closed-source. You are not permitted to access, view, modify, or distribute the source code.
|
|
11
|
+
3. **No Reverse Engineering**: You may not reverse-engineer, decompile, or disassemble the compiled code to derive the source code.
|
|
12
|
+
4. **Redistribution**: You may not redistribute this package or its compiled files except as part of a larger application where the package is used as a dependency.
|
|
13
|
+
5. **API Key Requirement**: Usage of this package requires an API key, which must be obtained by registering your domain with the provider. Unauthorized use is prohibited.
|
|
14
|
+
6. **No Warranty**: This software is provided "as is," without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
15
|
+
7. **Liability**: In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from the use of this software.
|
|
16
|
+
|
|
17
|
+
## Contact
|
|
18
|
+
For licensing inquiries, API key registration, or support, contact [support@yourwebsite.com](mailto:support@yourwebsite.com).
|
package/README.md
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
# xactsize-webcomponent
|
|
2
|
-
|
|
3
|
-
A lightweight Web Component for precise body measurements and size recommendations in web applications, built with Lit.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
<details>
|
|
8
|
-
<summary>With NPM</summary>
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install xactsize-webcomponent
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
```html
|
|
15
|
-
<body-measurer
|
|
16
|
-
culture="pt-BR"
|
|
17
|
-
product-name="Shirt"
|
|
18
|
-
skus='[{"dimensions":{"Size":"M"},"measures":{"height":50,"length":70,"width":40}}]'
|
|
19
|
-
></body-measurer>
|
|
20
|
-
<script>
|
|
21
|
-
import { BodyMeasurer } from 'xactsize-webcomponent';
|
|
22
|
-
|
|
23
|
-
// Select the body-measurer element
|
|
24
|
-
const bodyMeasurer = document.querySelector('body-measurer');
|
|
25
|
-
|
|
26
|
-
// Check if the element exists
|
|
27
|
-
if (bodyMeasurer) {
|
|
28
|
-
// Add event listener for measurementAccepted
|
|
29
|
-
bodyMeasurer.addEventListener('measurementAccepted', (e) => {
|
|
30
|
-
const size = e.detail.size;
|
|
31
|
-
alert(`Size selected: ${size}`);
|
|
32
|
-
console.log('Measurement accepted:', e.detail);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// Add event listener for measurementCanceled
|
|
36
|
-
bodyMeasurer.addEventListener('measurementCanceled', (e) => {
|
|
37
|
-
alert('Measurement canceled');
|
|
38
|
-
console.log('Measurement canceled');
|
|
39
|
-
});
|
|
40
|
-
} else {
|
|
41
|
-
console.error('body-measurer element not found');
|
|
42
|
-
}
|
|
43
|
-
</script>
|
|
44
|
-
```
|
|
45
|
-
</details>
|
|
46
|
-
|
|
47
|
-
<details>
|
|
48
|
-
<summary>With CDN</summary>
|
|
49
|
-
|
|
50
|
-
```html
|
|
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.6/dist/body-measurer.es.js"></script>
|
|
53
|
-
|
|
54
|
-
<script>
|
|
55
|
-
// Select the body-measurer element
|
|
56
|
-
const bodyMeasurer = document.querySelector('body-measurer');
|
|
57
|
-
|
|
58
|
-
// Check if the element exists
|
|
59
|
-
if (bodyMeasurer) {
|
|
60
|
-
// Add event listener for measurementAccepted
|
|
61
|
-
bodyMeasurer.addEventListener('measurementAccepted', (e) => {
|
|
62
|
-
const size = e.detail.size;
|
|
63
|
-
alert(`Size selected: ${size}`);
|
|
64
|
-
console.log('Measurement accepted:', e.detail);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Add event listener for measurementCanceled
|
|
68
|
-
bodyMeasurer.addEventListener('measurementCanceled', (e) => {
|
|
69
|
-
alert('Measurement canceled');
|
|
70
|
-
console.log('Measurement canceled');
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
console.error('body-measurer element not found');
|
|
74
|
-
}
|
|
75
|
-
</script>
|
|
76
|
-
```
|
|
77
|
-
</details>
|
|
1
|
+
# xactsize-webcomponent
|
|
2
|
+
|
|
3
|
+
A lightweight Web Component for precise body measurements and size recommendations in web applications, built with Lit.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
<details>
|
|
8
|
+
<summary>With NPM</summary>
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install xactsize-webcomponent
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<body-measurer
|
|
16
|
+
culture="pt-BR"
|
|
17
|
+
product-name="Shirt"
|
|
18
|
+
skus='[{"dimensions":{"Size":"M"},"measures":{"height":50,"length":70,"width":40}}]'
|
|
19
|
+
></body-measurer>
|
|
20
|
+
<script>
|
|
21
|
+
import { BodyMeasurer } from 'xactsize-webcomponent';
|
|
22
|
+
|
|
23
|
+
// Select the body-measurer element
|
|
24
|
+
const bodyMeasurer = document.querySelector('body-measurer');
|
|
25
|
+
|
|
26
|
+
// Check if the element exists
|
|
27
|
+
if (bodyMeasurer) {
|
|
28
|
+
// Add event listener for measurementAccepted
|
|
29
|
+
bodyMeasurer.addEventListener('measurementAccepted', (e) => {
|
|
30
|
+
const size = e.detail.size;
|
|
31
|
+
alert(`Size selected: ${size}`);
|
|
32
|
+
console.log('Measurement accepted:', e.detail);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// Add event listener for measurementCanceled
|
|
36
|
+
bodyMeasurer.addEventListener('measurementCanceled', (e) => {
|
|
37
|
+
alert('Measurement canceled');
|
|
38
|
+
console.log('Measurement canceled');
|
|
39
|
+
});
|
|
40
|
+
} else {
|
|
41
|
+
console.error('body-measurer element not found');
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
```
|
|
45
|
+
</details>
|
|
46
|
+
|
|
47
|
+
<details>
|
|
48
|
+
<summary>With CDN</summary>
|
|
49
|
+
|
|
50
|
+
```html
|
|
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.6/dist/body-measurer.es.js"></script>
|
|
53
|
+
|
|
54
|
+
<script>
|
|
55
|
+
// Select the body-measurer element
|
|
56
|
+
const bodyMeasurer = document.querySelector('body-measurer');
|
|
57
|
+
|
|
58
|
+
// Check if the element exists
|
|
59
|
+
if (bodyMeasurer) {
|
|
60
|
+
// Add event listener for measurementAccepted
|
|
61
|
+
bodyMeasurer.addEventListener('measurementAccepted', (e) => {
|
|
62
|
+
const size = e.detail.size;
|
|
63
|
+
alert(`Size selected: ${size}`);
|
|
64
|
+
console.log('Measurement accepted:', e.detail);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Add event listener for measurementCanceled
|
|
68
|
+
bodyMeasurer.addEventListener('measurementCanceled', (e) => {
|
|
69
|
+
alert('Measurement canceled');
|
|
70
|
+
console.log('Measurement canceled');
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
console.error('body-measurer element not found');
|
|
74
|
+
}
|
|
75
|
+
</script>
|
|
76
|
+
```
|
|
77
|
+
</details>
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xactsize-webcomponents",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A web component for body measurements and size recommendations",
|
|
5
|
-
"main": "dist/body-measurer.umd.js",
|
|
6
|
-
"module": "dist/body-measurer.es.js",
|
|
7
|
-
"types": "dist/body-measurer.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/body-measurer.d.ts",
|
|
11
|
-
"import": "./dist/body-measurer.es.js",
|
|
12
|
-
"require": "./dist/body-measurer.umd.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist/",
|
|
17
|
-
"LICENSE.md",
|
|
18
|
-
"README.md"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"start": "vite",
|
|
22
|
-
"build": "run-s build:locales build:vite",
|
|
23
|
-
"build:vite": "vite build",
|
|
24
|
-
"build:locales": "lit-localize extract && lit-localize build",
|
|
25
|
-
"preview": "vite preview",
|
|
26
|
-
"prepublishOnly": "npm run build",
|
|
27
|
-
"link": "npm link",
|
|
28
|
-
"dev": "run-p start watch:locales",
|
|
29
|
-
"watch:locales": "lit-localize extract --watch",
|
|
30
|
-
"test-local": "npm run build && npm pack",
|
|
31
|
-
"link-local": "npm run build && npm link"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@lit/localize": "^0.12.2",
|
|
35
|
-
"lit": "^3.3.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@lit/localize-tools": "^0.8.0",
|
|
39
|
-
"@types/node": "^22.15.17",
|
|
40
|
-
"npm-run-all": "^4.1.5",
|
|
41
|
-
"typescript": "^5.8.3",
|
|
42
|
-
"vite": "^6.3.5",
|
|
43
|
-
"vite-plugin-dts": "^4.5.3"
|
|
44
|
-
},
|
|
45
|
-
"keywords": [
|
|
46
|
-
"web-component",
|
|
47
|
-
"lit",
|
|
48
|
-
"body-measurement",
|
|
49
|
-
"ecommerce"
|
|
50
|
-
],
|
|
51
|
-
"author": "Your Name",
|
|
52
|
-
"license": "SEE LICENSE IN LICENSE.md"
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xactsize-webcomponents",
|
|
3
|
+
"version": "1.0.15",
|
|
4
|
+
"description": "A web component for body measurements and size recommendations",
|
|
5
|
+
"main": "dist/body-measurer.umd.js",
|
|
6
|
+
"module": "dist/body-measurer.es.js",
|
|
7
|
+
"types": "dist/body-measurer.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/body-measurer.d.ts",
|
|
11
|
+
"import": "./dist/body-measurer.es.js",
|
|
12
|
+
"require": "./dist/body-measurer.umd.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/",
|
|
17
|
+
"LICENSE.md",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start": "vite",
|
|
22
|
+
"build": "run-s build:locales build:vite",
|
|
23
|
+
"build:vite": "vite build",
|
|
24
|
+
"build:locales": "lit-localize extract && lit-localize build",
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"prepublishOnly": "npm run build",
|
|
27
|
+
"link": "npm link",
|
|
28
|
+
"dev": "run-p start watch:locales",
|
|
29
|
+
"watch:locales": "lit-localize extract --watch",
|
|
30
|
+
"test-local": "npm run build && npm pack",
|
|
31
|
+
"link-local": "npm run build && npm link"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@lit/localize": "^0.12.2",
|
|
35
|
+
"lit": "^3.3.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@lit/localize-tools": "^0.8.0",
|
|
39
|
+
"@types/node": "^22.15.17",
|
|
40
|
+
"npm-run-all": "^4.1.5",
|
|
41
|
+
"typescript": "^5.8.3",
|
|
42
|
+
"vite": "^6.3.5",
|
|
43
|
+
"vite-plugin-dts": "^4.5.3"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"web-component",
|
|
47
|
+
"lit",
|
|
48
|
+
"body-measurement",
|
|
49
|
+
"ecommerce"
|
|
50
|
+
],
|
|
51
|
+
"author": "Your Name",
|
|
52
|
+
"license": "SEE LICENSE IN LICENSE.md"
|
|
53
|
+
}
|