@zean-chat/react-native 0.1.14 → 0.1.15

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.
@@ -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
@@ -13,6 +13,10 @@ export declare const en: {
13
13
  seen: string;
14
14
  not_sent: string;
15
15
  rate_limited: string;
16
+ you: string;
17
+ photo: string;
18
+ message_deleted: string;
19
+ show_quoted: string;
16
20
  retry: string;
17
21
  team: string;
18
22
  typing: string;
package/dist/i18n/fr.d.ts CHANGED
@@ -14,6 +14,10 @@ export declare const fr: {
14
14
  seen: string;
15
15
  not_sent: string;
16
16
  rate_limited: string;
17
+ you: string;
18
+ photo: string;
19
+ message_deleted: string;
20
+ show_quoted: string;
17
21
  retry: string;
18
22
  team: string;
19
23
  typing: string;