@pluno/product-agent-web 0.1.257 → 0.1.258

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.
@@ -15,11 +15,16 @@ export type UiTransitionContext = {
15
15
  queryStatus: string | null;
16
16
  queryRequestId: string | null;
17
17
  queryUpdatedAt: number | null;
18
- renderSource: "state" | "account" | "interactions" | "local" | "sidepanel_layout";
18
+ renderSource: "state" | "account" | "interactions" | "local" | "sidepanel_layout" | "observer";
19
19
  selectionFencePending: boolean;
20
20
  guardCreatedAt: number | null;
21
21
  owner?: OwnerDiagnostics;
22
+ sdkVersion?: string;
23
+ presentationGate?: "none" | "authentication" | "signup";
24
+ firstObservedAt?: number;
25
+ confirmationMs?: number;
22
26
  };
27
+ export declare function conversationPresentationGate(root: HTMLElement): "none" | "authentication" | "signup";
23
28
  export type HistoryRefreshFailure = PAHistoryRefreshFailure;
24
29
  export declare function isHistoryRefreshFailure(value: unknown): value is HistoryRefreshFailure;
25
30
  export type RenderedErrorEvidence = {
@@ -61,4 +66,5 @@ export declare function isRenderedErrorEvidence(value: unknown): value is Render
61
66
  export declare function renderedErrorEvidence(state: ProductAgentState, itemId?: string): RenderedErrorEvidence | undefined;
62
67
  export declare function uiInvariantEvidence(current: UiInvariantSnapshot, before?: UiInvariantSnapshot, root?: HTMLElement): UiInvariantEvidence;
63
68
  export declare function captureUiStructure(root: HTMLElement, state: Pick<ProductAgentState, "sessionId" | "messages"> & Partial<ProductAgentState>, render?: Partial<Pick<UiTransitionContext, "renderSource" | "selectionFencePending" | "guardCreatedAt">>): UiStructureEvidence;
69
+ export declare function captureUiTransitionContext(root: HTMLElement, state: Partial<ProductAgentState>, render?: Partial<Pick<UiTransitionContext, "renderSource" | "selectionFencePending" | "guardCreatedAt">>): UiTransitionContext;
64
70
  export declare function isUiInvariantEvidence(value: unknown): value is UiInvariantEvidence;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.257",
3
+ "version": "0.1.258",
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",