@zean-chat/react-native 0.1.17 → 0.1.19

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.
@@ -0,0 +1,13 @@
1
+ import { Component } from 'react';
2
+ import type { ChatErrorBoundaryProps, ChatErrorBoundaryState } from '../models/sdk.interface';
3
+ /**
4
+ * A chat screen that fails to draw takes the chat down, not the app around it: the error goes to `onError` and nothing
5
+ * is drawn until the chat opens again (ADR 0050). A class: React catches render errors only in one.
6
+ */
7
+ export declare class ChatErrorBoundary extends Component<ChatErrorBoundaryProps, ChatErrorBoundaryState> {
8
+ state: ChatErrorBoundaryState;
9
+ static getDerivedStateFromError(): ChatErrorBoundaryState;
10
+ componentDidCatch(error: Error): void;
11
+ componentDidUpdate(previous: ChatErrorBoundaryProps): void;
12
+ render(): import("react").ReactNode;
13
+ }
package/dist/i18n/en.d.ts CHANGED
@@ -26,7 +26,6 @@ export declare const en: {
26
26
  email_placeholder: string;
27
27
  email_submit: string;
28
28
  email_invalid: string;
29
- email_saved: string;
30
29
  error: string;
31
30
  code_prompt: string;
32
31
  code_prompt_earlier: string;
package/dist/i18n/fr.d.ts CHANGED
@@ -27,7 +27,6 @@ export declare const fr: {
27
27
  email_placeholder: string;
28
28
  email_submit: string;
29
29
  email_invalid: string;
30
- email_saved: string;
31
30
  error: string;
32
31
  code_prompt: string;
33
32
  code_prompt_earlier: string;