@klyro/widget 1.1.4 → 1.1.5

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 (2) hide show
  1. package/README.md +4 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,8 +25,6 @@ export default function ChatWidget() {
25
25
  useEffect(() => {
26
26
  initKlyro({
27
27
  key: "YOUR_WIDGET_KEY",
28
- // Optional: defaults to https://klyro-pro.vercel.app
29
- apiBase: "https://your-api-domain.com",
30
28
  });
31
29
  }, []);
32
30
 
@@ -52,10 +50,9 @@ Add the following script tag to your HTML `<head>` or before the closing `</body
52
50
 
53
51
  When using `initKlyro(options)`, you can pass the following properties:
54
52
 
55
- | Property | Type | Description | Required |
56
- | --------- | -------- | ----------------------------------- | -------- |
57
- | `key` | `string` | Your unique Klyro widget key. | Yes |
58
- | `apiBase` | `string` | The base URL of your Klyro backend. | No |
53
+ | Property | Type | Description | Required |
54
+ | -------- | -------- | ----------------------------- | -------- |
55
+ | `key` | `string` | Your unique Klyro widget key. | Yes |
59
56
 
60
57
  ---
61
58
 
@@ -79,9 +76,7 @@ The widget interacts with the DOM and cannot run on the server.
79
76
 
80
77
  If the widget fails to fetch its configuration:
81
78
 
82
- - Check that the `apiBase` is correct.
83
- - If running locally, ensure your backend allows requests from `localhost`.
84
- - For the best experience during local development, set `apiBase` to `http://localhost:3000`.
79
+ - Ensure your backend allows requests from the domain where the widget is hosted.
85
80
 
86
81
  ### 4. Widget Not Appearing
87
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klyro/widget",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Klyro Chat Widget - An AI-powered chat widget for your website.",
5
5
  "main": "dist/index.js",
6
6
  "types": "index.d.ts",