@pluno/product-agent-web 0.1.136 → 0.1.141

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
@@ -7,7 +7,7 @@ export type ProductAgentWidgetOptions = {
7
7
  tokenProvider?: () => Promise<string>;
8
8
  tokenEndpoint?: string;
9
9
  backendUrl?: string;
10
- metadata?: Record<string, unknown>;
10
+ metadata?: Record<string, unknown> | (() => Record<string, unknown> | undefined);
11
11
  entrySurface?: ProductAgentInitOptions["entrySurface"];
12
12
  launcherLabel?: string;
13
13
  accentColor?: string;
@@ -51,6 +51,9 @@ export type ProductAgentWidgetOptions = {
51
51
  morningReport?: ProductAgentWidgetMorningReport | null;
52
52
  onMorningReportSnooze?: () => void;
53
53
  onMorningReportTaskStart?: () => void;
54
+ proactiveSuggestion?: ProductAgentWidgetProactiveSuggestion | null;
55
+ onProactiveSuggestionDismiss?: (suggestionId: string) => void;
56
+ onProactiveSuggestionTaskStart?: (suggestionId: string) => void;
54
57
  taskNotifications?: WidgetTaskNotificationsBridge;
55
58
  tabGroups?: WidgetTabGroupsBridge;
56
59
  integrationAuthStatusLoader?: (request: ProductAgentIntegrationAuthRequest) => Promise<ProductAgentIntegrationAuthStatus>;
@@ -61,6 +64,10 @@ export type ProductAgentWidgetMorningReport = {
61
64
  opening: string;
62
65
  prompts: string[];
63
66
  };
67
+ export type ProductAgentWidgetProactiveSuggestion = {
68
+ id: string;
69
+ suggestedQuery: string;
70
+ };
64
71
  type WidgetTaskNotificationsBridge = {
65
72
  getState: () => Promise<{
66
73
  enabled: boolean;
@@ -102,6 +109,7 @@ export type ProductAgentWidgetHandle = {
102
109
  closePanel: () => void;
103
110
  updateDisplayState: (displayState: "shown" | "minimized") => void;
104
111
  updateMorningReport: (morningReport: ProductAgentWidgetMorningReport | null | undefined) => void;
112
+ updateProactiveSuggestion: (suggestion: ProductAgentWidgetProactiveSuggestion | null | undefined) => void;
105
113
  destroy: () => void;
106
114
  };
107
115
  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.136",
3
+ "version": "0.1.141",
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",