widget-web-component 1.0.15-dev.20250920-1925 → 1.0.18-dev.20250922-1238

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.
Files changed (3) hide show
  1. package/README.md +34 -12
  2. package/index.js +264 -28
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,21 +1,43 @@
1
- # Web Component Package
1
+ # Belender Web Component
2
2
 
3
- ## Description
3
+ ## 📖 Description
4
4
 
5
- ???
5
+ This package provides the `<belender-web-component>` as a reusable web component built with Angular and distributed as a standalone package.
6
+ It can be used in **any frontend framework** (Angular, React, Vue, Lit, plain HTML/JS, etc.) without additional setup.
6
7
 
7
- ## Installation
8
+ ---
9
+
10
+ ## 📦 Installation
8
11
 
9
12
  ```bash
10
- npm install [package-name]
13
+ npm install @my-org-test-es/w-wc-b
11
14
  ```
12
15
 
13
16
  ## Usage
14
17
 
15
- ```javascript
16
- ???
17
- ```
18
-
19
- ## Browser Support
20
-
21
- - ???
18
+ ```Plain HTML/JS
19
+ <!DOCTYPE html>
20
+ <html lang="en">
21
+ <head>
22
+ <meta charset="UTF-8" />
23
+ <title>Belender Widget Example</title>
24
+ <script type="module">
25
+ import "@my-org-test-es/w-wc-b";
26
+
27
+ window.addEventListener("DOMContentLoaded", () => {
28
+ const widget = document.querySelector("belender-web-component");
29
+ widget.isWebComponent = true; // <- Required
30
+ widget.flowType = "clavepin";
31
+ widget.userID = "";
32
+ widget.packageId = "";
33
+ widget.documentNumber = "";
34
+ widget.birthDate = "";
35
+ widget.documentExpirationDate = "";
36
+ });
37
+ </script>
38
+ </head>
39
+ <body>
40
+ <belender-web-component></belender-web-component>
41
+ </body>
42
+ </html>
43
+ ```