@paramms/chat-widget 1.0.34 → 1.0.36

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/react.d.ts CHANGED
@@ -177,6 +177,13 @@ export interface ChatAppProps {
177
177
  accent?: string;
178
178
  /** Container height. Default: '100%' */
179
179
  height?: string;
180
+ /** When provided, ChatApp renders an always-visible close (✕) control in the
181
+ * top-right corner of its container. Pass this whenever ChatApp is shown in
182
+ * an overlay/panel or as a mobile-fullscreen surface (ChatAppLauncher wires
183
+ * it automatically) so there is a reliable way OUT — without it, an inline
184
+ * fullscreen panel on a phone (no Escape key, no reachable backdrop) traps
185
+ * the user. Omit for a bare inline embed the host chromes itself. */
186
+ onClose?: () => void;
180
187
  /** i18n overrides */
181
188
  i18n?: import('./chatlist.js').ChatListOptions['i18n'];
182
189
  }
@@ -221,7 +228,7 @@ export interface ChatAppProps {
221
228
  * }
222
229
  * ```
223
230
  */
224
- export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, height, i18n, scope, }: ChatAppProps): JSX.Element;
231
+ export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, height, i18n, onClose, scope, }: ChatAppProps): JSX.Element;
225
232
  export interface ChatAppLauncherProps {
226
233
  /** Relay URL — ONE url, any scheme; `https://api.relay.paramms.com` is the
227
234
  * recommended form. The WebSocket URL and REST base are derived from it. */