@waniwani/sdk 0.19.1 → 0.19.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 +67 -67
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +15 -1
- 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.d.ts +7 -0
- package/dist/legacy/index.js +2 -2
- package/dist/legacy/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -364,6 +364,13 @@ type WidgetEventDetail = {
|
|
|
364
364
|
/** Which provider supplied the clicked pill: `"channel"` (starter prompts), `"page"` (per-URL starter prompts), `"flow"` (an MCP flow's `interrupt({ suggestions })`), or `"followup"` (generated from the conversation). */
|
|
365
365
|
origin: SuggestionOrigin;
|
|
366
366
|
};
|
|
367
|
+
} | {
|
|
368
|
+
name: "suggestions.shown";
|
|
369
|
+
properties: {
|
|
370
|
+
texts: string[];
|
|
371
|
+
/** Origin of the rendered set, same taxonomy as `suggestion.clicked`. */
|
|
372
|
+
origin: SuggestionOrigin;
|
|
373
|
+
};
|
|
367
374
|
} | {
|
|
368
375
|
name: "link.clicked";
|
|
369
376
|
properties: {
|
|
@@ -465,6 +472,13 @@ interface ChatTheme {
|
|
|
465
472
|
fontSize?: number;
|
|
466
473
|
/** Base line height for message text (unitless string, e.g. `"1.5"`). Defaults to `"1.5"`. */
|
|
467
474
|
lineHeight?: string;
|
|
475
|
+
/** Frosted-glass tint color for the floating bar's suggestion card, layered
|
|
476
|
+
* over the backdrop blur. Programmatic-only via appearance.variables.
|
|
477
|
+
* Unset = the default neutral glass (unchanged). */
|
|
478
|
+
glassTint?: string;
|
|
479
|
+
/** Strength of the glass tint, 0–1 as a unitless string (e.g. "0.5").
|
|
480
|
+
* Unset/"0" = no tint (default rendering). */
|
|
481
|
+
glassTintStrength?: string;
|
|
468
482
|
}
|
|
469
483
|
interface WelcomeConfig {
|
|
470
484
|
/** Icon displayed above the title. Accepts any React node (e.g. an SVG or img). */
|
|
@@ -1053,7 +1067,7 @@ interface WaniwaniChatProps {
|
|
|
1053
1067
|
/**
|
|
1054
1068
|
* Callback fired on chat lifecycle events (`chat.ready`, `message.sent`,
|
|
1055
1069
|
* `message.received`, `session.started`, `thread.changed`, `chat.error`,
|
|
1056
|
-
* `suggestion.clicked`, `link.clicked`; `chat.opened`/`chat.closed` are
|
|
1070
|
+
* `suggestion.clicked`, `suggestions.shown`, `link.clicked`; `chat.opened`/`chat.closed` are
|
|
1057
1071
|
* floating-embed-only and never fire here). Message events never include
|
|
1058
1072
|
* the message text. Use it to mirror widget activity into the host page's
|
|
1059
1073
|
* analytics. Exceptions thrown by the callback are swallowed and never
|