@kaifusion/widget 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 +3 -2
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.es.js +15200 -0
- package/dist/index.es.js.map +1 -0
- package/package.json +3 -3
- package/src/KaiChatWidget.tsx +83 -48
- package/src/config.ts +27 -0
- package/dist/widget.iife.js +0 -452
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Add the following script tag to your HTML file:
|
|
|
80
80
|
|
|
81
81
|
```html
|
|
82
82
|
<script
|
|
83
|
-
src="/widget.iife.js"
|
|
83
|
+
src="https://cdn.jsdelivr.net/npm/@kaifusion/widget@1.0.6/dist/widget.iife.js"
|
|
84
84
|
data-title="KAI Fusion Assistant"
|
|
85
85
|
data-auth-token="your-auth-token"
|
|
86
86
|
data-workflow-id="your-workflow-id"
|
|
@@ -100,7 +100,8 @@ For MkDocs, you can inject the script dynamically using JavaScript.
|
|
|
100
100
|
```javascript
|
|
101
101
|
document.addEventListener("DOMContentLoaded", function () {
|
|
102
102
|
const script = document.createElement("script");
|
|
103
|
-
script.src =
|
|
103
|
+
script.src =
|
|
104
|
+
"https://cdn.jsdelivr.net/npm/@kaifusion/widget@1.0.6/dist/widget.iife.js"; // Adjust URL to your source
|
|
104
105
|
script.dataset.title = "KAI Fusion Assistant";
|
|
105
106
|
script.dataset.authToken = "your-auth-token";
|
|
106
107
|
script.dataset.workflowId = "your-workflow-id";
|