@schmitech/chatbot-widget 0.2.3 → 0.3.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 +139 -227
- package/dist/chatbot-widget.bundle.js +41 -41
- package/dist/chatbot-widget.es.js +1269 -1277
- package/dist/chatbot-widget.umd.js +41 -41
- package/dist/index.d.ts +5 -0
- package/package.json +2 -2
- package/dist/__vite-browser-external-DYxpcVy9-ctqB3X8p.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -60,12 +60,15 @@ export declare interface ChatWidgetProps extends Partial<ChatConfig> {
|
|
|
60
60
|
config?: never;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export declare function getApiKey(): string;
|
|
64
|
+
|
|
63
65
|
export declare function getApiUrl(): string;
|
|
64
66
|
|
|
65
67
|
export declare const getChatConfig: () => ChatConfig;
|
|
66
68
|
|
|
67
69
|
export declare function injectChatWidget(config: {
|
|
68
70
|
apiUrl: string;
|
|
71
|
+
apiKey: string;
|
|
69
72
|
containerSelector?: string;
|
|
70
73
|
widgetConfig?: Partial<ChatConfig>;
|
|
71
74
|
}): void;
|
|
@@ -77,6 +80,8 @@ declare interface Message {
|
|
|
77
80
|
|
|
78
81
|
declare type MessageRole = 'user' | 'assistant' | 'system';
|
|
79
82
|
|
|
83
|
+
export declare function setApiKey(key: string): void;
|
|
84
|
+
|
|
80
85
|
export declare function setApiUrl(url: string): void;
|
|
81
86
|
|
|
82
87
|
export declare function updateWidgetConfig(config: Partial<ChatConfig>): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schmitech/chatbot-widget",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/chatbot-widget.umd.js",
|
|
7
7
|
"module": "./dist/chatbot-widget.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"preview": "vite preview"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@schmitech/chatbot-api": "^0.
|
|
30
|
+
"@schmitech/chatbot-api": "^0.4.0",
|
|
31
31
|
"clsx": "^2.1.0",
|
|
32
32
|
"lucide-react": "^0.344.0",
|
|
33
33
|
"react": "^18.3.1",
|