@kaifusion/widget 1.0.3 → 1.0.4

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 +10 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -49,7 +49,7 @@ function App() {
49
49
  title="KAI Assistant" // (Optional) Widget title
50
50
  position="right" // (Optional) 'left' or 'right'
51
51
  color="#526cfe" // (Optional) Main theme color hex code
52
- icon={<span>💬</span>} // (Optional) Custom icon for the toggle button
52
+ icon={"💬"} // (Optional) Custom icon for the toggle button
53
53
  />
54
54
  </div>
55
55
  );
@@ -60,11 +60,12 @@ export default App;
60
60
 
61
61
  ## Props
62
62
 
63
- | Prop | Type | Required | Default | Description |
64
- | ------------ | ------------------- | -------- | ----------- | ---------------------------------------------------------------------------- |
65
- | `targetUrl` | `string` | **Yes** | - | The address of the KAI Fusion backend API (e.g., `https://api.example.com`). |
66
- | `workflowId` | `string` | **Yes** | - | Unique identifier (UUID) of the workflow to run. |
67
- | `authToken` | `string` | **Yes** | - | Bearer token or API Key for API access. |
68
- | `title` | `string` | No | `"ChatBot"` | Title of the widget window. |
69
- | `position` | `"left" \| "right"` | No | `"right"` | Position of the widget on the screen (bottom-left or bottom-right). |
70
- | `color` | `string` | No | `"#526cfe"` | Main theme color of the widget (Hex code). |
63
+ | Prop | Type | Required | Default | Description |
64
+ | ------------ | ------------------- | -------- | --------------- | ---------------------------------------------------------------------------- |
65
+ | `targetUrl` | `string` | **Yes** | - | The address of the KAI Fusion backend API (e.g., `https://api.example.com`). |
66
+ | `workflowId` | `string` | **Yes** | - | Unique identifier (UUID) of the workflow to run. |
67
+ | `authToken` | `string` | **Yes** | - | Bearer token or API Key for API access. |
68
+ | `title` | `string` | No | `"ChatBot"` | Title of the widget window. |
69
+ | `position` | `"left" \| "right"` | No | `"right"` | Position of the widget on the screen (bottom-left or bottom-right). |
70
+ | `color` | `string` | No | `"#526cfe"` | Main theme color of the widget (Hex code). |
71
+ | `icon` | `ReactNode` | No | `MessageSquare` | Custom icon for the toggle button. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaifusion/widget",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",