@telnyx/ai-chat-widget 4.1.3 → 4.2.2
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/dist/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +1862 -1861
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +27 -27
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -65,9 +65,21 @@ declare type BaseProps = {
|
|
|
65
65
|
* @default 'light'
|
|
66
66
|
*/
|
|
67
67
|
theme?: WidgetTheme;
|
|
68
|
+
/**
|
|
69
|
+
* Custom greeting shown as the first bot message.
|
|
70
|
+
*
|
|
71
|
+
* - Omitted: uses the default greeting for the active endpoint
|
|
72
|
+
* (from `BOT_MODELS_CONFIG`).
|
|
73
|
+
* - `null` or `''`: suppresses the greeting entirely.
|
|
74
|
+
* - A string: shown instead of the default.
|
|
75
|
+
*
|
|
76
|
+
* Applies to both Heavy thinking and Instant modes, overriding the
|
|
77
|
+
* per-endpoint default in either.
|
|
78
|
+
*/
|
|
79
|
+
firstMessage?: string | null;
|
|
68
80
|
};
|
|
69
81
|
|
|
70
|
-
export declare const ChatWidget: ({ chatAPIUrl, flowAPIUrl, flowApiKey, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, theme, }: ChatWidgetProps) => JSX.Element;
|
|
82
|
+
export declare const ChatWidget: ({ chatAPIUrl, flowAPIUrl, flowApiKey, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, theme, firstMessage: customFirstMessage, }: ChatWidgetProps) => JSX.Element;
|
|
71
83
|
|
|
72
84
|
declare interface ChatWidgetNoMounting extends BaseProps {
|
|
73
85
|
open?: never;
|