@waniwani/sdk 0.13.1 → 0.13.3
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/chat/embed.js +51 -51
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +26 -8
- package/dist/chat/index.js +7 -7
- package/dist/chat/index.js.map +1 -1
- package/dist/legacy/index.d.ts +19 -5
- package/dist/legacy/index.js +12 -12
- package/dist/legacy/index.js.map +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -109,6 +109,16 @@ interface ChatAppearance {
|
|
|
109
109
|
/** Per-property overrides applied on top of the preset. */
|
|
110
110
|
variables?: ChatTheme;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Tool call rendering mode.
|
|
114
|
+
*
|
|
115
|
+
* - `true` (default) — full request/response panels.
|
|
116
|
+
* - `"titles-only"` — a compact text indicator with the tool title, no
|
|
117
|
+
* JSON panels.
|
|
118
|
+
* - `false` — tool calls are hidden entirely; a generic working indicator
|
|
119
|
+
* shows while tools run.
|
|
120
|
+
*/
|
|
121
|
+
type ShowToolCalls = boolean | "titles-only";
|
|
112
122
|
|
|
113
123
|
interface ChatTheme {
|
|
114
124
|
/** Primary brand color (bubble, send button, user messages) */
|
|
@@ -228,13 +238,17 @@ interface ChatBaseProps {
|
|
|
228
238
|
*/
|
|
229
239
|
debug?: boolean;
|
|
230
240
|
/**
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
241
|
+
* How tool calls are rendered in the chat.
|
|
242
|
+
*
|
|
243
|
+
* - `true` (default) — full request/response panels.
|
|
244
|
+
* - `"titles-only"` — a compact text indicator with the tool title, no
|
|
245
|
+
* JSON panels.
|
|
246
|
+
* - `false` — tool calls are hidden entirely; a generic working
|
|
247
|
+
* indicator shows while tools run.
|
|
248
|
+
*
|
|
234
249
|
* MCP App widgets attached to a tool call are always rendered.
|
|
235
|
-
* Defaults to `true`.
|
|
236
250
|
*/
|
|
237
|
-
showToolCalls?:
|
|
251
|
+
showToolCalls?: ShowToolCalls;
|
|
238
252
|
/**
|
|
239
253
|
* Skip fetching `/config` and `/tools` from the API on mount.
|
|
240
254
|
* Use when the chat endpoint doesn't serve these routes (e.g. embed widgets
|
|
@@ -531,8 +545,12 @@ interface WaniwaniChatOverrides {
|
|
|
531
545
|
suggestions?: string[];
|
|
532
546
|
/** Persist conversations across reloads in IndexedDB. */
|
|
533
547
|
enableThreadHistory?: boolean;
|
|
534
|
-
/**
|
|
535
|
-
|
|
548
|
+
/**
|
|
549
|
+
* How tool calls render: `true` (default) shows full request/response
|
|
550
|
+
* panels, `"titles-only"` shows a compact indicator with just the tool
|
|
551
|
+
* title, `false` hides tool calls entirely.
|
|
552
|
+
*/
|
|
553
|
+
showToolCalls?: ShowToolCalls;
|
|
536
554
|
/** Enable file attachments in the input. */
|
|
537
555
|
allowAttachments?: boolean;
|
|
538
556
|
/**
|
|
@@ -633,4 +651,4 @@ declare function mergeTheme(userTheme?: ChatTheme): Required<ChatTheme>;
|
|
|
633
651
|
*/
|
|
634
652
|
declare function themeToCSSProperties(theme: ChatTheme): Record<string, string>;
|
|
635
653
|
|
|
636
|
-
export { type ChatAppearance, type ChatBaseProps, ChatCard, type ChatCardProps, ChatEmbed, type ChatEmbedMcpConfig, type ChatEmbedProps, type ChatHandle, type ChatTheme, DARK_THEME, DEFAULT_THEME, type McpAppDisplayMode, McpAppFrame, type McpAppFrameProps, type SuggestionsConfig, type ThemePreset, WaniwaniChat, type WaniwaniChatOverrides, type WaniwaniChatProps, type WelcomeConfig, mergeTheme, themeToCSSProperties };
|
|
654
|
+
export { type ChatAppearance, type ChatBaseProps, ChatCard, type ChatCardProps, ChatEmbed, type ChatEmbedMcpConfig, type ChatEmbedProps, type ChatHandle, type ChatTheme, DARK_THEME, DEFAULT_THEME, type McpAppDisplayMode, McpAppFrame, type McpAppFrameProps, type ShowToolCalls, type SuggestionsConfig, type ThemePreset, WaniwaniChat, type WaniwaniChatOverrides, type WaniwaniChatProps, type WelcomeConfig, mergeTheme, themeToCSSProperties };
|