@kaifusion/widget 1.0.6 → 1.0.8
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 +2 -2
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +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 +9 -5
- package/src/KaiChatWidget.tsx +47 -47
- package/src/config.ts +27 -0
- package/src/index.ts +1 -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="https://cdn.jsdelivr.net/npm/@kaifusion/widget@1.0.
|
|
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"
|
|
@@ -101,7 +101,7 @@ For MkDocs, you can inject the script dynamically using JavaScript.
|
|
|
101
101
|
document.addEventListener("DOMContentLoaded", function () {
|
|
102
102
|
const script = document.createElement("script");
|
|
103
103
|
script.src =
|
|
104
|
-
"https://cdn.jsdelivr.net/npm/@kaifusion/widget@1.0.
|
|
104
|
+
"https://cdn.jsdelivr.net/npm/@kaifusion/widget@1.0.6/dist/widget.iife.js"; // Adjust URL to your source
|
|
105
105
|
script.dataset.title = "KAI Fusion Assistant";
|
|
106
106
|
script.dataset.authToken = "your-auth-token";
|
|
107
107
|
script.dataset.workflowId = "your-workflow-id";
|