@zean-chat/react-native 0.1.14 → 0.1.16

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/README.md CHANGED
@@ -10,7 +10,7 @@ npx expo install @zean-chat/react-native expo-application @react-native-async-st
10
10
  npm install @zean-chat/react-native react-native-device-info @react-native-async-storage/async-storage react-native-image-picker
11
11
  ```
12
12
 
13
- Already using MMKV or Expo SQLite? Skip AsyncStorage: the chat finds your storage by itself, with no code. Already have a photo picker? Skip it too. The photo picker is optional: without one, the chat has no photo button. `expo-application` (Expo) or `react-native-device-info` (React Native CLI) is required: the chat reads your app's Bundle ID or Package name with it, and stays hidden without it.
13
+ Already using MMKV or Expo SQLite? Skip AsyncStorage: the chat finds your storage by itself, with no code. Already have a photo picker? Skip it too. The photo picker is optional: without one, the chat has no photo button. `expo-application` (Expo) or `react-native-device-info` (React Native CLI) is required: the chat reads your app's Bundle ID or Package name with it, and stays hidden without it. It also gives the app version for Device details, and `react-native-device-info` or `expo-device` the exact model.
14
14
 
15
15
  ```tsx
16
16
  import { ZeanChat, useZean } from "@zean-chat/react-native";
@@ -1,6 +1,7 @@
1
1
  import type { MessageBubbleProps } from '../models/sdk.interface';
2
2
  /**
3
3
  * One message: the Contact's on the right in the App's colour, the team's on the left beside the sender's avatar.
4
- * Messages of a run sit close, with tight corners where they meet; the run's last one carries the time.
4
+ * Messages of a run sit close, with tight corners where they meet; the run's last one carries the time. Drawn again
5
+ * only when its row changes: typing dots or a connection blip leave the other bubbles alone.
5
6
  */
6
- export declare function MessageBubble({ row, app, onRetry }: MessageBubbleProps): import("react").JSX.Element;
7
+ export declare const MessageBubble: import("react").MemoExoticComponent<({ row, app, onRetry, onQuote, highlighted }: MessageBubbleProps) => import("react").JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import type { MessageQuoteProps } from '../models/sdk.interface';
2
+ /** The message a Member's reply answers, inside the reply's bubble. Pressed, the chat goes to it, older messages first. */
3
+ export declare function MessageQuote({ quote, app, onQuote }: MessageQuoteProps): import("react").JSX.Element;
@@ -1,8 +1,12 @@
1
1
  import type { ChatAttachment } from '@zean/sdk-core';
2
2
  import type { PendingPhoto, PickedPhoto } from '../models/sdk.interface';
3
- /** Photos picked for the next message: shown at once, uploaded only when the message is sent. */
3
+ /**
4
+ * Photos picked for the next message: shown at once, uploaded only when the message is sent. Those in the Contact's
5
+ * Draft come back with it, from their file on the phone.
6
+ */
4
7
  export declare function usePendingPhotos(): {
5
8
  photos: PendingPhoto[];
9
+ draftFiles: import("@zean/sdk-core").ChatDraftFile[];
6
10
  problem: string | null;
7
11
  /** Photos that still fit in the message. */
8
12
  room: number;
package/dist/i18n/en.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export declare const en: {
2
2
  ai: string;
3
- request_human: string;
4
3
  close_chat: string;
5
4
  online: string;
6
5
  away: string;
@@ -13,6 +12,10 @@ export declare const en: {
13
12
  seen: string;
14
13
  not_sent: string;
15
14
  rate_limited: string;
15
+ you: string;
16
+ photo: string;
17
+ message_deleted: string;
18
+ show_quoted: string;
16
19
  retry: string;
17
20
  team: string;
18
21
  typing: string;
package/dist/i18n/fr.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /** The chat's words, the same as the web widget's. French is the reference: `en.ts` carries the same keys. */
2
2
  export declare const fr: {
3
3
  ai: string;
4
- request_human: string;
5
4
  close_chat: string;
6
5
  online: string;
7
6
  away: string;
@@ -14,6 +13,10 @@ export declare const fr: {
14
13
  seen: string;
15
14
  not_sent: string;
16
15
  rate_limited: string;
16
+ you: string;
17
+ photo: string;
18
+ message_deleted: string;
19
+ show_quoted: string;
17
20
  retry: string;
18
21
  team: string;
19
22
  typing: string;