@pluno/product-agent-web 0.1.188 → 0.1.190

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/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
- onProactiveSuggestionDismiss?: (suggestionId: string, reason: "dismiss" | "edit") => void;
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, suggestedQuery: string, feedback: string) => void | Promise<void>;
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
- suggestedQuery: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.188",
3
+ "version": "0.1.190",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",