@waniwani/sdk 0.12.5 → 0.12.7
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 +43 -43
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +11 -0
- package/dist/chat/index.js +7 -7
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/styles.css +1 -1
- package/dist/legacy/index.js +1 -1
- package/dist/legacy/index.js.map +1 -1
- package/dist/mcp/index.d.ts +60 -0
- 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
|
@@ -257,6 +257,12 @@ interface ChatEmbedProps extends Omit<ChatBaseProps, "api" | "onCallTool"> {
|
|
|
257
257
|
title?: string;
|
|
258
258
|
/** Extra React node rendered in the sticky header, right of the title. */
|
|
259
259
|
headerActions?: React.ReactNode;
|
|
260
|
+
/**
|
|
261
|
+
* Force-hide the sticky header even when `title`, `enableThreadHistory`,
|
|
262
|
+
* or `headerActions` would otherwise show it. Useful when the host page
|
|
263
|
+
* already provides its own chrome.
|
|
264
|
+
*/
|
|
265
|
+
hideHeader?: boolean;
|
|
260
266
|
/**
|
|
261
267
|
* @internal
|
|
262
268
|
* When `true`, the root renders at `opacity: 0` so the chrome doesn't
|
|
@@ -408,6 +414,11 @@ declare const ChatEmbed: react.ForwardRefExoticComponent<ChatEmbedProps & react.
|
|
|
408
414
|
interface WaniwaniChatOverrides {
|
|
409
415
|
/** Sticky header title. */
|
|
410
416
|
title?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Force-hide the sticky header. Useful when the host page already provides
|
|
419
|
+
* its own chrome and a header would be redundant.
|
|
420
|
+
*/
|
|
421
|
+
hideHeader?: boolean;
|
|
411
422
|
/** Greeting shown before the first user message. */
|
|
412
423
|
welcomeMessage?: string;
|
|
413
424
|
/** Rich welcome screen (icon, title, suggestion cards). Takes precedence over `welcomeMessage`. */
|