@mordn/chat-widget 0.6.0 → 0.6.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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -288,7 +288,7 @@ interface ChatWidgetProps extends ChatWidgetConfig {
|
|
|
288
288
|
*/
|
|
289
289
|
widgetId?: string;
|
|
290
290
|
}
|
|
291
|
-
declare function ChatWidget({ userId, conversationId, initialMessages, className, model, systemPrompt, temperature, theme, features, display, starterPrompts, onClose, headerActions, open, onOpenChange, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
291
|
+
declare function ChatWidget({ userId, conversationId, initialMessages, className, model, systemPrompt, temperature, theme, features, display, starterPrompts, onClose, headerActions, open, onOpenChange, inputPlugins, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
292
292
|
|
|
293
293
|
interface ChatTheme {
|
|
294
294
|
lightPrimary: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ interface ChatWidgetProps extends ChatWidgetConfig {
|
|
|
288
288
|
*/
|
|
289
289
|
widgetId?: string;
|
|
290
290
|
}
|
|
291
|
-
declare function ChatWidget({ userId, conversationId, initialMessages, className, model, systemPrompt, temperature, theme, features, display, starterPrompts, onClose, headerActions, open, onOpenChange, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
291
|
+
declare function ChatWidget({ userId, conversationId, initialMessages, className, model, systemPrompt, temperature, theme, features, display, starterPrompts, onClose, headerActions, open, onOpenChange, inputPlugins, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
292
292
|
|
|
293
293
|
interface ChatTheme {
|
|
294
294
|
lightPrimary: string;
|
package/dist/index.js
CHANGED
|
@@ -2451,7 +2451,8 @@ function ChatWidget({
|
|
|
2451
2451
|
onClose,
|
|
2452
2452
|
headerActions,
|
|
2453
2453
|
open,
|
|
2454
|
-
onOpenChange
|
|
2454
|
+
onOpenChange,
|
|
2455
|
+
inputPlugins
|
|
2455
2456
|
}) {
|
|
2456
2457
|
const layout = display?.layout || "popup";
|
|
2457
2458
|
const isControlled = open !== void 0;
|
|
@@ -2526,8 +2527,9 @@ function ChatWidget({
|
|
|
2526
2527
|
temperature,
|
|
2527
2528
|
theme,
|
|
2528
2529
|
features,
|
|
2529
|
-
starterPrompts
|
|
2530
|
-
|
|
2530
|
+
starterPrompts,
|
|
2531
|
+
inputPlugins
|
|
2532
|
+
}), [userId, model, systemPrompt, temperature, theme, features, starterPrompts, inputPlugins]);
|
|
2531
2533
|
const togglePosition = display?.toggleButtonPosition || { bottom: "24px", right: "24px" };
|
|
2532
2534
|
const themeClass = theme?.mode === "dark" ? "dark" : "";
|
|
2533
2535
|
if (layout === "inline") {
|