@pluno/product-agent-web 0.1.170 → 0.1.172

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 CHANGED
@@ -4,6 +4,8 @@ export type ProductAgentEntrySurface = "extension_sidepanel" | "extension_widget
4
4
  export type ProductAgentProductVariant = "personal" | "customer_embedded";
5
5
  export type ProductAgentLegacyEntrySurface = "sidepanel" | "browser_extension_page_ui" | "sdk_preview_widget" | "browser_extension_sdk_preview" | "sdk-preview" | "main_chat" | "automation_run";
6
6
  export type ProductAgentInvocation = "user" | "automation" | "scheduled_continuation" | "private_continuation";
7
+ export type ProductAgentWidgetLifecycleAction = "opened" | "closed" | "minimized";
8
+ export type ProductAgentWidgetLifecycleTrigger = "launcher_click" | "launcher_focus" | "launcher_input" | "minimized_launcher" | "attachment_drop" | "external_request" | "proactive_suggestion" | "morning_report" | "restored_state" | "close_button" | "morning_report_snooze" | "minimize_button";
7
9
  export type ProductAgentUser = {
8
10
  id: string;
9
11
  email?: string | null;
@@ -233,6 +235,7 @@ export declare class PlunoProductAgent {
233
235
  private networkBatchTimer;
234
236
  private queuedNetworkEvents;
235
237
  private queuedClientEvents;
238
+ private pendingWidgetLifecycleEvents;
236
239
  private pendingPassiveWarmupEvent;
237
240
  private pendingComposerWarmup;
238
241
  private activeComposerWarmupId;
@@ -296,6 +299,7 @@ export declare class PlunoProductAgent {
296
299
  disconnect(): void;
297
300
  destroy(): void;
298
301
  warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
302
+ recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
299
303
  sendMessage(content: string, options?: {
300
304
  attachments?: ProductAgentAttachment[];
301
305
  clientMessageId?: string;
@@ -333,6 +337,7 @@ export declare class PlunoProductAgent {
333
337
  private clearStarterPromptUrlRefreshTimer;
334
338
  private flushQueuedClientEvents;
335
339
  private resetForAuthenticationScopeChange;
340
+ private flushPendingWidgetLifecycleEvents;
336
341
  private flushPendingPassiveWarmup;
337
342
  private flushPendingComposerWarmup;
338
343
  private findStoppedTurn;