@pluno/product-agent-web 0.1.188 → 0.1.189
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.ts +3 -0
- package/dist/product-agent-sdk.js +474 -424
- package/dist/product-agent-widget.js +2726 -2581
- package/dist/widget.d.ts +8 -4
- package/package.json +1 -1
package/dist/widget.d.ts
CHANGED
|
@@ -59,10 +59,11 @@ export type ProductAgentWidgetOptions = {
|
|
|
59
59
|
onMorningReportSnooze?: () => void;
|
|
60
60
|
onMorningReportTaskStart?: () => void;
|
|
61
61
|
proactiveSuggestion?: ProductAgentWidgetProactiveSuggestion | null;
|
|
62
|
-
|
|
62
|
+
proactiveSuggestionPreparing?: boolean;
|
|
63
|
+
onProactiveSuggestionDismiss?: (suggestionId: string, reason: "dismiss") => void;
|
|
64
|
+
onProactiveSuggestionEdit?: (suggestionId: string) => void;
|
|
63
65
|
onProactiveSuggestionNeverShow?: (suggestionId: string) => void;
|
|
64
|
-
onProactiveSuggestionFeedbackSubmit?: (suggestionId: string,
|
|
65
|
-
onProactiveSuggestionTaskStart?: (suggestionId: string) => void;
|
|
66
|
+
onProactiveSuggestionFeedbackSubmit?: (interactionId: string, suggestionId: string, genericQuestion: string, question: string, feedback: string) => void | Promise<void>;
|
|
66
67
|
taskNotifications?: WidgetTaskNotificationsBridge;
|
|
67
68
|
tabGroups?: WidgetTabGroupsBridge;
|
|
68
69
|
integrationAuthStatusLoader?: (request: ProductAgentIntegrationAuthRequest) => Promise<ProductAgentIntegrationAuthStatus>;
|
|
@@ -76,7 +77,9 @@ export type ProductAgentWidgetMorningReport = {
|
|
|
76
77
|
};
|
|
77
78
|
export type ProductAgentWidgetProactiveSuggestion = {
|
|
78
79
|
id: string;
|
|
79
|
-
|
|
80
|
+
interactionId: string;
|
|
81
|
+
genericQuestion: string;
|
|
82
|
+
question: string;
|
|
80
83
|
};
|
|
81
84
|
type WidgetTaskNotificationsBridge = {
|
|
82
85
|
getState: () => Promise<{
|
|
@@ -123,6 +126,7 @@ export type ProductAgentWidgetHandle = {
|
|
|
123
126
|
updateDisplayState: (displayState: "shown" | "minimized") => void;
|
|
124
127
|
updateMorningReport: (morningReport: ProductAgentWidgetMorningReport | null | undefined) => void;
|
|
125
128
|
updateProactiveSuggestion: (suggestion: ProductAgentWidgetProactiveSuggestion | null | undefined) => void;
|
|
129
|
+
updateProactiveSuggestionPreparing: (preparing: boolean) => void;
|
|
126
130
|
destroy: () => void;
|
|
127
131
|
};
|
|
128
132
|
export declare function createProductAgentPreviewBridgeWebSocketFactory(channelId: string): ProductAgentInitOptions["webSocketFactory"];
|
package/package.json
CHANGED