@coristen/widget 0.1.6 → 0.1.9
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 +33 -6
- package/dist/api.d.ts +13 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/website-chat.d.ts +4 -2
- package/dist/widget-composer.d.ts +5 -1
- package/package.json +2 -2
package/dist/website-chat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type WidgetSettings } from "./api";
|
|
2
|
-
export declare function WebsiteChat({ workspaceId, initialSettings, sessionToken, expanded, onExpandedChange, onClose, onSettingsChange, theme, assetBaseUrl, }: {
|
|
1
|
+
import { type WidgetSettings, type WidgetWelcome } from "./api";
|
|
2
|
+
export declare function WebsiteChat({ workspaceId, initialSettings, sessionToken, expanded, onExpandedChange, onClose, onSettingsChange, theme, assetBaseUrl, defaultEmail, welcome, }: {
|
|
3
3
|
workspaceId: string;
|
|
4
4
|
initialSettings: WidgetSettings;
|
|
5
5
|
sessionToken: string;
|
|
@@ -9,4 +9,6 @@ export declare function WebsiteChat({ workspaceId, initialSettings, sessionToken
|
|
|
9
9
|
onSettingsChange: (settings: WidgetSettings) => void;
|
|
10
10
|
theme: "light" | "dark";
|
|
11
11
|
assetBaseUrl: string;
|
|
12
|
+
defaultEmail: string;
|
|
13
|
+
welcome?: WidgetWelcome;
|
|
12
14
|
}): import("react").JSX.Element | null;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
1
2
|
import type { ChatAttachment } from "./api";
|
|
2
|
-
export declare function WidgetComposer({ send, upload, sendDisabled, showPoweredBy, assetBaseUrl, }: {
|
|
3
|
+
export declare function WidgetComposer({ send, upload, sendDisabled, showPoweredBy, assetBaseUrl, body, onBodyChange, inputRef, }: {
|
|
3
4
|
send: (body: string, attachments: ChatAttachment[]) => Promise<unknown>;
|
|
4
5
|
upload: (file: File) => Promise<ChatAttachment>;
|
|
5
6
|
sendDisabled?: boolean;
|
|
6
7
|
showPoweredBy?: boolean;
|
|
7
8
|
assetBaseUrl: string;
|
|
9
|
+
body: string;
|
|
10
|
+
onBodyChange: (body: string) => void;
|
|
11
|
+
inputRef: RefObject<HTMLTextAreaElement | null>;
|
|
8
12
|
}): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coristen/widget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Embeddable React customer experience widget for AI conversations, grounded answers, and connected actions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coristen",
|
|
@@ -67,4 +67,4 @@
|
|
|
67
67
|
"tw-animate-css": "^1.4.0",
|
|
68
68
|
"typescript": "^5"
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
}
|