@telnyx/ai-chat-widget 4.0.2 → 4.1.1
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 +270 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.mjs +7196 -6998
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +270 -109
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,9 +56,17 @@ declare type BaseProps = {
|
|
|
56
56
|
* The action to be performed when the user clicks the help button
|
|
57
57
|
*/
|
|
58
58
|
onHelpAction?: () => void;
|
|
59
|
+
/**
|
|
60
|
+
* The theme to use for the chat widget
|
|
61
|
+
* - 'light': Always use light theme
|
|
62
|
+
* - 'dark': Always use dark theme
|
|
63
|
+
* - 'system': Automatically detect system preference
|
|
64
|
+
* @default 'light'
|
|
65
|
+
*/
|
|
66
|
+
theme?: WidgetTheme;
|
|
59
67
|
};
|
|
60
68
|
|
|
61
|
-
export declare const ChatWidget: ({ chatAPIUrl, flowAPIUrl, flowApiKey, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, }: ChatWidgetProps) => JSX.Element;
|
|
69
|
+
export declare const ChatWidget: ({ chatAPIUrl, flowAPIUrl, flowApiKey, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, theme, }: ChatWidgetProps) => JSX.Element;
|
|
62
70
|
|
|
63
71
|
declare interface ChatWidgetNoMounting extends BaseProps {
|
|
64
72
|
open?: never;
|
|
@@ -175,8 +183,16 @@ declare const WIDGET_MOUNT_POSITIONS: {
|
|
|
175
183
|
readonly LEFT: "left";
|
|
176
184
|
};
|
|
177
185
|
|
|
186
|
+
declare const WIDGET_THEMES: {
|
|
187
|
+
readonly LIGHT: "light";
|
|
188
|
+
readonly DARK: "dark";
|
|
189
|
+
readonly SYSTEM: "system";
|
|
190
|
+
};
|
|
191
|
+
|
|
178
192
|
declare type WidgetMountDirection = (typeof WIDGET_MOUNT_DIRECTION)[keyof typeof WIDGET_MOUNT_DIRECTION];
|
|
179
193
|
|
|
180
194
|
declare type WidgetMountPosition = (typeof WIDGET_MOUNT_POSITIONS)[keyof typeof WIDGET_MOUNT_POSITIONS];
|
|
181
195
|
|
|
196
|
+
declare type WidgetTheme = (typeof WIDGET_THEMES)[keyof typeof WIDGET_THEMES];
|
|
197
|
+
|
|
182
198
|
export { }
|