@waniwani/sdk 0.11.3 → 0.11.6
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 +64 -64
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/express-js/index.d.ts +1 -7
- package/dist/chat/index.d.ts +12 -0
- package/dist/chat/index.js +7 -7
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/next-js/index.d.ts +1 -7
- package/dist/chat/styles.css +1 -1
- package/dist/index.d.ts +1 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -7
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/react.js +1 -1
- package/dist/mcp/react.js.map +1 -1
- package/package.json +2 -1
|
@@ -57,7 +57,7 @@ interface KbClient {
|
|
|
57
57
|
sources(): Promise<KbSource[]>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
type EventType = "session.started" | "tool.called" | "quote.requested" | "quote.succeeded" | "quote.failed" | "link.clicked" | "purchase.completed" | "widget_render" | "widget_click" | "widget_link_click" | "widget_error" | "widget_scroll" | "widget_form_field" | "widget_form_submit" | "user.identified"
|
|
60
|
+
type EventType = "session.started" | "tool.called" | "quote.requested" | "quote.succeeded" | "quote.failed" | "link.clicked" | "purchase.completed" | "widget_render" | "widget_click" | "widget_link_click" | "widget_error" | "widget_scroll" | "widget_form_field" | "widget_form_submit" | "user.identified";
|
|
61
61
|
interface ToolCalledProperties {
|
|
62
62
|
name?: string;
|
|
63
63
|
type?: "pricing" | "product_info" | "availability" | "support" | "other";
|
|
@@ -122,12 +122,6 @@ type TrackEvent = ({
|
|
|
122
122
|
properties?: PurchaseCompletedProperties;
|
|
123
123
|
} & BaseTrackEvent) | ({
|
|
124
124
|
event: "user.identified";
|
|
125
|
-
} & BaseTrackEvent) | ({
|
|
126
|
-
event: "flow.node_reached";
|
|
127
|
-
properties?: {
|
|
128
|
-
flowId?: string;
|
|
129
|
-
nodeId?: string;
|
|
130
|
-
};
|
|
131
125
|
} & BaseTrackEvent);
|
|
132
126
|
/**
|
|
133
127
|
* Legacy tracking shape supported for existing integrations.
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -121,6 +121,18 @@ interface ChatBaseProps {
|
|
|
121
121
|
* @internal
|
|
122
122
|
*/
|
|
123
123
|
skipRemoteConfig?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Persist the conversation across page reloads using IndexedDB so the user
|
|
126
|
+
* can resume previous threads. Defaults to `false` — opt in explicitly.
|
|
127
|
+
*/
|
|
128
|
+
enableThreadHistory?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Force a specific thread to be active. When provided, the embed renders
|
|
131
|
+
* that thread's messages and ignores the most-recently-updated default.
|
|
132
|
+
*/
|
|
133
|
+
activeThreadId?: string;
|
|
134
|
+
/** Fired whenever the active thread changes (new chat, switch, delete). */
|
|
135
|
+
onThreadChange?: (threadId: string) => void;
|
|
124
136
|
}
|
|
125
137
|
interface ChatBarProps extends ChatBaseProps {
|
|
126
138
|
/** Chat bar width in pixels. Defaults to 600. */
|