ed-widget 1.8.0

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 ADDED
@@ -0,0 +1,56 @@
1
+ # EasyDesk Chat Widget
2
+
3
+ A lightweight, customizable chat widget for React.js applications and websites. Easily integrate real-time customer support via React or embed it directly using a CDN. Perfect for enhancing user engagement and streamlining support.
4
+
5
+ ## 🚀 Features
6
+
7
+ - Simple JavaScript API for initializing the widget
8
+ - Auto-initialization via `data-*` attributes
9
+ - CDN and NPM support
10
+ - React-based rendering
11
+ - API key-based configuration
12
+
13
+ ---
14
+
15
+ ## 📦 Installation (NPM)
16
+
17
+ ```bash
18
+ npm install ed-widget
19
+ ```
20
+
21
+ ### Usage
22
+
23
+ ```jsx
24
+ import Widget from 'ed-widget';
25
+
26
+ <Widget apiKey="YOUR_API_KEY" />;
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 🌐 Usage via CDN
32
+
33
+ Add the following script to your HTML page:
34
+
35
+ ```html
36
+ <script
37
+ id="ed-widget"
38
+ src="https://cdn.jsdelivr.net/npm/ed-widget/dist/ed-widget.js"
39
+ ed-key="YOUR_API_KEY"
40
+ ></script>
41
+ ```
42
+
43
+ ### What happens:
44
+
45
+ - A `div` with the ID `ed-widget` will be created (if not already present).
46
+ - The widget will be auto-initialized using the API key provided in the `ed-key` attribute.
47
+
48
+ ---
49
+
50
+ ## 🛠 Development
51
+
52
+ Make sure you have React and ReactDOM available in your environment when developing locally.
53
+
54
+ ## 📄 License
55
+
56
+ MIT
Binary file