@docyrus/ui-pro-ai-assistant 0.8.2 → 0.8.4

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.
@@ -9,8 +9,15 @@ interface AgentConsentDialogProps {
9
9
  onApproved: () => void;
10
10
  /** Called when the user declines — should close the assistant. */
11
11
  onDeclined: () => void;
12
+ /**
13
+ * Element to portal the gate into. When provided (and `position: relative`),
14
+ * the overlay is constrained to that container instead of the viewport, so
15
+ * the consent gate stays inside the assistant panel rather than covering the
16
+ * whole page. Falls back to a viewport-fixed overlay when omitted.
17
+ */
18
+ container?: HTMLElement | null;
12
19
  t: (key: string) => string;
13
20
  }
14
21
  /** Agent "Terms & Agreement" consent gate. Only `super_admin` can approve. */
15
- export declare function AgentConsentDialog({ pending, onApproved, onDeclined, t }: AgentConsentDialogProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function AgentConsentDialog({ pending, onApproved, onDeclined, container, t }: AgentConsentDialogProps): import("react/jsx-runtime").JSX.Element;
16
23
  export {};