@marktiderman/genesis-chat 0.11.4 → 0.13.0

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.
Files changed (72) hide show
  1. package/README.md +162 -4
  2. package/dist/{chunk-ZQFREERR.js → chunk-3UNYTK62.js} +3 -3
  3. package/dist/{chunk-ZQFREERR.js.map → chunk-3UNYTK62.js.map} +1 -1
  4. package/dist/{chunk-5XYDVUPS.js → chunk-GEEJMKQF.js} +29 -4
  5. package/dist/chunk-GEEJMKQF.js.map +1 -0
  6. package/dist/{chunk-D4RPOYB7.js → chunk-H4BRVJJ7.js} +193 -30
  7. package/dist/chunk-H4BRVJJ7.js.map +1 -0
  8. package/dist/{chunk-O2QSBRSH.js → chunk-SEMN3S6Q.js} +3 -3
  9. package/dist/{chunk-O2QSBRSH.js.map → chunk-SEMN3S6Q.js.map} +1 -1
  10. package/dist/{client-DP7rhJ1U.d.ts → client-DXWyDJ2u.d.ts} +29 -0
  11. package/dist/index.d.ts +4 -4
  12. package/dist/index.js +3 -3
  13. package/dist/native.d.ts +355 -145
  14. package/dist/native.js +701 -217
  15. package/dist/native.js.map +1 -1
  16. package/dist/{outbox-C4LnqpKT.d.ts → outbox-Ctngv6Yz.d.ts} +1 -1
  17. package/dist/push.d.ts +2 -2
  18. package/dist/react.d.ts +83 -6
  19. package/dist/react.js +3 -3
  20. package/dist/server.d.ts +1 -1
  21. package/dist/server.js +1 -1
  22. package/dist/{thread-CSzdqNR_.d.ts → thread-mZsRiIGz.d.ts} +1 -1
  23. package/dist/web.d.ts +24 -7
  24. package/dist/web.js +140 -67
  25. package/dist/web.js.map +1 -1
  26. package/migrations/0006_genesis_chat_read_receipts.sql +110 -0
  27. package/migrations/0007_genesis_chat_unread_and_delete_for_me.sql +455 -0
  28. package/migrations/tests/0006_genesis_chat_read_receipts.test.sql +131 -0
  29. package/migrations/tests/0007_genesis_chat_unread_and_delete_for_me.test.sql +178 -0
  30. package/package.json +17 -9
  31. package/src/__tests__/inbox-row-actions.test.tsx +251 -0
  32. package/src/__tests__/unread-delete-for-me.test.ts +84 -0
  33. package/src/__tests__/web.test.tsx +5 -2
  34. package/src/core/client.ts +30 -1
  35. package/src/core/types.ts +7 -0
  36. package/src/native/__tests__/bubble-native-feel.test.tsx +153 -0
  37. package/src/native/__tests__/composer-attach-menu.test.tsx +47 -0
  38. package/src/native/__tests__/inbox-screen-actions.test.tsx +131 -0
  39. package/src/native/__tests__/inbox-screen.test.tsx +29 -1
  40. package/src/native/__tests__/media-cache-key.test.tsx +21 -0
  41. package/src/native/__tests__/organise-screens.test.tsx +2 -0
  42. package/src/native/__tests__/receipts.test.ts +95 -0
  43. package/src/native/__tests__/review-lows.test.tsx +80 -0
  44. package/src/native/__tests__/sheets-fit.test.tsx +45 -0
  45. package/src/native/__tests__/stable-hooks.test.tsx +68 -0
  46. package/src/native/__tests__/thread-layout.test.ts +2 -2
  47. package/src/native/__tests__/thread-screen-audit.test.tsx +248 -0
  48. package/src/native/__tests__/thread-screen.test.tsx +111 -0
  49. package/src/native/__tests__/thread-title.test.tsx +59 -0
  50. package/src/native/composer.tsx +61 -26
  51. package/src/native/copy.ts +47 -10
  52. package/src/native/emoji-picker.tsx +1 -1
  53. package/src/native/inbox-screen.tsx +52 -27
  54. package/src/native/index.ts +7 -2
  55. package/src/native/media.tsx +7 -1
  56. package/src/native/message-actions-sheet.tsx +1 -1
  57. package/src/native/message-bubble.tsx +171 -19
  58. package/src/native/modules.ts +3 -1
  59. package/src/native/receipts.ts +102 -0
  60. package/src/native/schedule-sheet.tsx +8 -3
  61. package/src/native/stack-options.ts +35 -3
  62. package/src/native/thread-screen.tsx +243 -17
  63. package/src/native/thread-times.tsx +89 -0
  64. package/src/native/thread-title.tsx +111 -0
  65. package/src/native/typing-bubble.tsx +85 -0
  66. package/src/react/inbox-actions.ts +121 -0
  67. package/src/react/index.tsx +172 -23
  68. package/src/web/inbox.tsx +120 -11
  69. package/src/web/index.ts +1 -1
  70. package/src/web/memory-client.ts +40 -7
  71. package/dist/chunk-5XYDVUPS.js.map +0 -1
  72. package/dist/chunk-D4RPOYB7.js.map +0 -1
package/dist/native.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, ReactNode, ReactElement } from 'react';
3
+ import { RowSwipeAction } from '@marktiderman/genesis-core/row-actions';
3
4
  import { InboxPageProps, InboxItem, ScreenHeaderProps } from '@marktiderman/genesis-ui-native/layouts';
4
- import { m as ChatInboxItem, h as ChatAttachment, q as ChatMessage, k as ChatConversation, t as ChatRole, P as PendingFile, o as ChatLinkPreview, F as SendInput, x as ChatTopic, T as TopicInput, S as ScheduleInput, W as Weekday, C as ChatAvailability, d as AvailabilityInput, p as ChatMember, a as WorkingHours, u as ChatSearchHit } from './client-DP7rhJ1U.js';
5
- import { ChatAttachmentKind, ChatCardContext, ChatVideoUpload } from './react.js';
6
- import { T as ThreadItem } from './thread-CSzdqNR_.js';
5
+ import { m as ChatInboxItem, h as ChatAttachment, q as ChatMessage, p as ChatMember, k as ChatConversation, t as ChatRole, P as PendingFile, o as ChatLinkPreview, F as SendInput, x as ChatTopic, T as TopicInput, S as ScheduleInput, W as Weekday, C as ChatAvailability, d as AvailabilityInput, a as WorkingHours, u as ChatSearchHit } from './client-DXWyDJ2u.js';
6
+ import { ChatInboxActionLabels, ChatConfirm, ChatAttachmentKind, ChatCardContext, ChatVideoUpload } from './react.js';
7
+ import { T as ThreadItem } from './thread-mZsRiIGz.js';
8
+ import { L as LocalFile } from './outbox-Ctngv6Yz.js';
7
9
  import { ColorValue } from 'react-native';
8
- import { L as LocalFile } from './outbox-C4LnqpKT.js';
9
10
  import { lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, NativeIconName } from '@marktiderman/genesis-ui-native/components';
10
11
  export { CHAT_MARK_READ_ACTION, CHAT_PUSH_CATEGORY, CHAT_REPLY_ACTION, ChatPushCopy, ChatPushData, ChatPushOutboxDeps, ChatPushOutcome, ChatPushPayload, ChatPushPayloadInput, ChatPushResponseLike, NotificationCategoriesLike, PUSH_REPLY_WAIT_MS, chatNotificationActions, chatPath, chatPushCategory, chatPushCopy, chatPushPayload, chatThreadMatch, conversationIdFromData, failedReply, handleChatPushResponse, registerChatNotificationActions, replyClientId, replyClientIdFor } from './push.js';
11
12
  import '@supabase/supabase-js';
@@ -119,8 +120,11 @@ declare const chatOrganiseCopy: ChatOrganiseCopy;
119
120
  * (translate, rename "Message" to "Note"). `{name}` and `{count}` are filled in.
120
121
  */
121
122
 
122
- /** Topics, scheduled send, availability, broadcast, search and moderation are in `ChatOrganiseCopy`. */
123
- interface ChatNativeCopy extends ChatOrganiseCopy {
123
+ /**
124
+ * Topics, scheduled send, availability, broadcast, search and moderation are in `ChatOrganiseCopy`;
125
+ * the inbox row actions' words in `ChatInboxActionLabels`, shared with the web inbox.
126
+ */
127
+ interface ChatNativeCopy extends ChatOrganiseCopy, ChatInboxActionLabels {
124
128
  inboxTitle: string;
125
129
  inboxEmptyTitle: string;
126
130
  inboxEmptyBody: string;
@@ -132,12 +136,20 @@ interface ChatNativeCopy extends ChatOrganiseCopy {
132
136
  someone: string;
133
137
  youPrefix: string;
134
138
  mentionedYou: string;
135
- markRead: string;
136
- pin: string;
137
- unpin: string;
138
- archive: string;
139
139
  threadEmptyTitle: string;
140
140
  threadEmptyBody: string;
141
+ /** The conversation or its first page couldn't be read, and there's nothing to show. */
142
+ threadErrorTitle: string;
143
+ threadErrorBody: string;
144
+ /** The phone is offline (NetInfo), in the thread's status line. */
145
+ waitingForNetwork: string;
146
+ /** Online, but the live channel hasn't joined (yet, or again). */
147
+ connecting: string;
148
+ /** The pill over the composer when new messages came in below where you are. */
149
+ newMessagesPillOne: string;
150
+ newMessagesPill: string;
151
+ /** VoiceOver's hint on the pill. */
152
+ newMessagesPillHint: string;
141
153
  loadEarlier: string;
142
154
  newMessages: string;
143
155
  placeholder: string;
@@ -237,6 +249,18 @@ interface ChatNativeCopy extends ChatOrganiseCopy {
237
249
  viewerHint: string;
238
250
  sending: string;
239
251
  notSent: string;
252
+ /** Message status under the last message you sent (`ChatThreadScreen receipts`). */
253
+ receiptSending: string;
254
+ receiptSent: string;
255
+ receiptDelivered: string;
256
+ /** Read, when the server has no read time (a database before chat 0006). */
257
+ receiptRead: string;
258
+ receiptReadAt: string;
259
+ receiptReadBy: string;
260
+ receiptReadByEveryone: string;
261
+ /** The hint on "Read by N", and the title of the sheet it opens. */
262
+ receiptReadersHint: string;
263
+ receiptReadersTitle: string;
240
264
  retry: string;
241
265
  /** On a message whose file didn't survive a relaunch: pick it again. */
242
266
  attachAgain: string;
@@ -560,7 +584,7 @@ interface ChatNativeModules {
560
584
  /** Reads a recording a chunk at a time for a hosted upload; without it the file is read whole. */
561
585
  openFile?: (uri: string) => Promise<ChunkFileLike> | ChunkFileLike;
562
586
  }
563
- type HapticEvent = "send" | "record-start" | "record-lock" | "record-cancel" | "select" | "error";
587
+ type HapticEvent = "send" | "record-start" | "record-lock" | "record-cancel" | "select" | "long-press" | "error";
564
588
  /** Plays a haptic when the app gave expo-haptics; never throws. */
565
589
  declare function haptic(haptics: HapticsLike | undefined, event: HapticEvent): void;
566
590
 
@@ -600,6 +624,12 @@ interface ChatInboxScreenProps {
600
624
  /** Every kind but these (`["support"]` keeps support tickets out of a messages inbox). */
601
625
  excludeKinds?: string[];
602
626
  archived?: boolean;
627
+ /**
628
+ * Each row's actions: receives the conversation and the default set (`inboxRowActions`:
629
+ * Messages' Unread, Pin, Hide Alerts, Delete for me and Archive) and returns the row's. Add,
630
+ * drop, reorder or relabel them; the default keeps them as they are.
631
+ */
632
+ rowActions?: (item: ChatInboxItem, defaults: RowSwipeAction[]) => RowSwipeAction[];
603
633
  /** Passed to InboxPage (a header, a section title, slots). */
604
634
  pageProps?: Partial<Omit<InboxPageProps, "items">>;
605
635
  testID?: string;
@@ -612,7 +642,9 @@ declare function inboxRow(item: ChatInboxItem, ctx: {
612
642
  /** The app's attachment kinds: a last message that is a card reads as its title ("Check-in"). */
613
643
  kinds?: Record<string, ChatAttachmentKind>;
614
644
  }): Omit<InboxItem, "onPress" | "swipeActions">;
615
- declare function ChatInboxScreen({ onOpen, onStart, kind, kinds, excludeKinds, archived, pageProps, testID }: ChatInboxScreenProps): react.JSX.Element;
645
+ /** Asks with the system alert: Cancel, then the destructive action. */
646
+ declare function alertConfirm(cancelLabel: string): ChatConfirm;
647
+ declare function ChatInboxScreen({ onOpen, onStart, kind, kinds, excludeKinds, archived, rowActions, pageProps, testID }: ChatInboxScreenProps): react.JSX.Element;
616
648
 
617
649
  /** A card's title (the kind's, else the file's name, else the kind); an app kind that throws reads as its name. */
618
650
  declare function cardTitle(kind: ChatAttachmentKind | undefined, a: ChatAttachment, ctx?: ChatCardContext): string;
@@ -841,128 +873,59 @@ declare function useJumpToMessage({ target, rows, loading, has, loadUntil, scrol
841
873
  jumping: boolean;
842
874
  };
843
875
 
844
- interface ChatThreadScreenProps {
845
- conversationId: string;
846
- /** One thread's replies instead of the main timeline. */
847
- threadRootId?: string | null;
848
- /**
849
- * Points from the top of the screen to the top of this view, for keeping the composer above the
850
- * keyboard. Measured from the screen's own position when left out (under an opaque header it is
851
- * the header's bottom).
852
- */
853
- keyboardVerticalOffset?: number;
854
- /** Open at this message (a search result's `messageId` and `seq`): earlier pages load until it is held. */
855
- jumpTo?: JumpTarget | null;
856
- /** Only this topic's messages, with no topic bar. */
857
- topic?: string;
858
- /** Show the topic bar before the first topic exists, so an owner or admin can add one. */
859
- showTopics?: boolean;
860
- /** Scheduled send (touch and hold Send) and the scheduled list. Default true. */
861
- scheduling?: boolean;
862
- /** The away line under the header. Default true. */
863
- availability?: boolean;
864
- /** An app attachment card's button (a form, a check-in), when its kind gives no `onPress`. */
865
- onOpenAttachment?: OpenAttachment;
866
- /**
867
- * Swap parts, as the web `ChatThread` does. `attachment` draws the app's own attachment kinds
868
- * (a task with a checkbox): every kind the package doesn't draw, with `fallback` for the card it
869
- * would have been; `null` hides kinds that aren't registered. Define it at module scope.
870
- */
871
- slots?: ChatThreadScreenSlots;
872
- /** How long an app card's action may run before it reads as failed; 30 s by default, 0 for never. */
873
- cardActionTimeoutMs?: number;
874
- /**
875
- * Whether the screen is the one shown (the navigator's `useIsFocused()`). When it turns false a
876
- * video or voice note of this thread that is playing pauses: switching tab keeps the screen
877
- * mounted. Default true.
878
- */
879
- focused?: boolean;
880
- testID?: string;
881
- }
882
- interface ChatThreadScreenSlots {
883
- /** Draws the app's own attachment kinds; the card by default. */
884
- attachment?: ChatAttachmentSlot | null;
885
- }
886
- /**
887
- * Points from the bottom that still count as "at the bottom" (FlatList, which follows by hand).
888
- * @deprecated Use genesis-ui-native's `THREAD_AT_BOTTOM_POINTS`. ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
889
- */
890
- declare const AT_BOTTOM_POINTS = 120;
891
- /**
892
- * How the thread's list is set up, oldest first and not inverted. FlashList:
893
- * its chat mode (opens at the bottom, follows new rows while within a fifth of
894
- * a screen of it, keeps the first visible row in place when earlier ones load
895
- * at the top). FlatList: keeps its place when earlier rows load at the top;
896
- * the screen follows new rows itself (`followsByHand`).
897
- * @deprecated Use genesis-ui-native's `threadListMode` (which anchors FlatList past the header, `minIndexForVisible: 1`). ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
898
- */
899
- declare function threadListMode(flash: boolean, reducedMotion: boolean): {
900
- followsByHand: boolean;
901
- maintainVisibleContentPosition: Record<string, unknown>;
902
- };
903
- /**
904
- * Whether a scroll position is at (or near) the bottom of its content.
905
- * @deprecated Use genesis-ui-native's `threadNearBottom`. ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
906
- */
907
- declare function nearBottom(m: {
908
- contentOffset: {
909
- y: number;
910
- };
911
- contentSize: {
912
- height: number;
913
- };
914
- layoutMeasurement: {
915
- height: number;
916
- };
917
- }, slack?: number): boolean;
918
- declare function ChatThreadScreen(props: ChatThreadScreenProps): react.JSX.Element;
919
-
920
876
  /**
921
877
  * @feat:chat
922
- * `<Stack.Screen options>` for a screen that renders `ChatThreadScreen`.
878
+ * Message status, the way iMessage shows it: under the last message you sent, "Sending…",
879
+ * "Sent", "Delivered", then "Read 9:41" in a direct conversation or "Read by 2" / "Read by
880
+ * everyone" in a group. A send that failed shows nothing here: its bubble keeps the failure,
881
+ * Retry and Delete.
923
882
  *
924
- * The bar is opaque. It was made so while the thread was an inverted list
925
- * (`transform: scaleY(-1)` on the scroll view), which it no longer is; it
926
- * stays opaque until a see-through bar is checked over the upright list. On
927
- * iOS 26 and later the navigation bar is see-through and draws a scroll
928
- * edge effect over the content scroll view under it; UIKit lays that effect
929
- * out in the flipped scroll view's own coordinates, so once the thread is
930
- * long enough to reach the bar the whole list renders blurred. An opaque bar
931
- * keeps the screen's content below it: nothing scrolls under the bar, and no
932
- * edge effect is drawn over the flipped list. Seen on iOS 27 with FlashList
933
- * and with FlatList.
883
+ * - Sending: still in the outbox, not yet posted.
884
+ * - Sent: posted, but the outbox still holds it (a video's bytes are still going up).
885
+ * - Delivered: the server has it (it has a seq) and nobody else has read that far.
886
+ * - Read: the other member's `lastReadSeq` has reached its seq, with their `lastReadAt` (chat
887
+ * migration 0006) as the time; without it, "Read" with no time.
888
+ * - Read by N: in a group, the other members whose `lastReadSeq` has reached it.
934
889
  */
935
890
 
936
- type ChatThreadStackOptionsProps = ScreenHeaderProps & {
937
- headerTitle?: string;
891
+ /** Whether the thread shows message status (`ChatThreadScreen receipts`). */
892
+ type ChatReceiptsMode = "show" | "hide";
893
+ type MessageReceipt = {
894
+ state: "sending";
895
+ } | {
896
+ state: "sent";
897
+ } | {
898
+ state: "delivered";
899
+ } | {
900
+ state: "read";
901
+ at: string | null;
902
+ } | {
903
+ state: "read-by";
904
+ readers: string[];
905
+ everyone: boolean;
938
906
  };
939
- /** The thread's header options with an opaque bar in `background` (the thread's own background). */
940
- declare function chatThreadStackOptions(props: ChatThreadStackOptionsProps, background: ColorValue): Record<string, unknown>;
941
- /** `chatThreadStackOptions` in the theme's grouped background, the color `ChatThreadScreen` draws. */
942
- declare function useChatThreadStackOptions(props: ChatThreadStackOptionsProps): Record<string, unknown>;
943
-
944
- interface ChatStartPerson {
945
- userId: string;
946
- name: string;
947
- avatarUrl?: string | null;
948
- /** A second line ("Coach", "Team"). */
949
- subtitle?: string;
950
- }
951
- interface ChatStartSheetProps {
952
- open: boolean;
953
- onClose: () => void;
954
- people: ChatStartPerson[];
955
- /** Default `direct`. */
956
- kind?: string;
957
- onStarted: (conversationId: string) => void;
958
- testID?: string;
907
+ interface MessageReceiptFor {
908
+ /** The row it goes under (`rowKey`). */
909
+ key: string;
910
+ receipt: MessageReceipt;
959
911
  }
960
- declare function ChatStartSheet({ open, onClose, people, kind, onStarted, testID }: ChatStartSheetProps): react.JSX.Element;
961
- /** A 44pt compose button for the inbox's header (`headerRight`). */
962
- declare function ChatStartButton({ onPress, testID }: {
963
- onPress: () => void;
964
- testID?: string;
965
- }): react.JSX.Element;
912
+ interface ReceiptOptions {
913
+ me: string;
914
+ /** The conversation's members (observers aren't counted). */
915
+ members: readonly ChatMember[];
916
+ /** More than two people: "Read by N" instead of "Read". */
917
+ group: boolean;
918
+ /** Client ids the outbox still holds. */
919
+ queued?: ReadonlySet<string>;
920
+ receipts?: ChatReceiptsMode;
921
+ }
922
+ /** The status of the last message you sent, and the row it goes under; null when there is none to show. */
923
+ declare function lastSentReceipt(items: readonly ThreadItem[], options: ReceiptOptions): MessageReceiptFor | null;
924
+ /** When it was read: the time today, else the day ("Yesterday", "Monday", "12 Mar"). */
925
+ declare function readWhen(at: string, now?: Date, locale?: string): string;
926
+ type ReceiptCopy = Pick<ChatNativeCopy, "receiptSending" | "receiptSent" | "receiptDelivered" | "receiptRead" | "receiptReadAt" | "receiptReadBy" | "receiptReadByEveryone">;
927
+ /** What the line under the message says. */
928
+ declare function receiptText(receipt: MessageReceipt, copy: ReceiptCopy, now?: Date, locale?: string): string;
966
929
 
967
930
  /** A file in the composer, shown as a thumbnail until it is sent. */
968
931
  interface ComposerAttachment {
@@ -1095,27 +1058,145 @@ declare function useChatComposer(conversationId: string, threadRootId: string |
1095
1058
  };
1096
1059
  type ChatComposerHandle = ReturnType<typeof useChatComposer>;
1097
1060
 
1098
- interface ChatComposerProps {
1061
+ interface ChatThreadScreenProps {
1062
+ conversationId: string;
1063
+ /** One thread's replies instead of the main timeline. */
1064
+ threadRootId?: string | null;
1065
+ /**
1066
+ * Points from the top of the screen to the top of this view, for keeping the composer above the
1067
+ * keyboard. Measured from the screen's own position when left out (under an opaque header it is
1068
+ * the header's bottom).
1069
+ */
1070
+ keyboardVerticalOffset?: number;
1071
+ /** Open at this message (a search result's `messageId` and `seq`): earlier pages load until it is held. */
1072
+ jumpTo?: JumpTarget | null;
1073
+ /** Only this topic's messages, with no topic bar. */
1074
+ topic?: string;
1075
+ /** Show the topic bar before the first topic exists, so an owner or admin can add one. */
1076
+ showTopics?: boolean;
1077
+ /** Scheduled send (touch and hold Send) and the scheduled list. Default true. */
1078
+ scheduling?: boolean;
1079
+ /** The away line under the header. Default true. */
1080
+ availability?: boolean;
1081
+ /** An app attachment card's button (a form, a check-in), when its kind gives no `onPress`. */
1082
+ onOpenAttachment?: OpenAttachment;
1083
+ /**
1084
+ * Swap parts, as the web `ChatThread` does. `attachment` draws the app's own attachment kinds
1085
+ * (a task with a checkbox): every kind the package doesn't draw, with `fallback` for the card it
1086
+ * would have been; `null` hides kinds that aren't registered. Define it at module scope.
1087
+ */
1088
+ slots?: ChatThreadScreenSlots;
1089
+ /** How long an app card's action may run before it reads as failed; 30 s by default, 0 for never. */
1090
+ cardActionTimeoutMs?: number;
1091
+ /**
1092
+ * Whether the screen is the one shown (the navigator's `useIsFocused()`). When it turns false a
1093
+ * video or voice note of this thread that is playing pauses: switching tab keeps the screen
1094
+ * mounted. Default true.
1095
+ */
1096
+ focused?: boolean;
1097
+ /**
1098
+ * Message status under the last message you sent: "Sending…", "Sent", "Delivered", then "Read
1099
+ * 9:41" in a direct conversation or "Read by 2" (a button: who has read it) in a group. "hide"
1100
+ * leaves it out. Default "show".
1101
+ */
1102
+ receipts?: ChatReceiptsMode;
1103
+ /**
1104
+ * Whether this thread is the one being read. False keeps it mounted (a tab, a split view's other
1105
+ * pane) without marking it read, and pauses what it plays, as `focused` does; turning true marks
1106
+ * it read again. Default true.
1107
+ */
1108
+ active?: boolean;
1109
+ /** Above the messages, under the topic bar and away line: an app's own context strip. */
1110
+ header?: ReactNode;
1111
+ /**
1112
+ * Over the composer: an app's own tools for this thread (quick replies, a template picker).
1113
+ * Given the composer, so a tool can write into the draft, and whether you can post.
1114
+ */
1115
+ accessory?: (context: ChatThreadAccessoryContext) => ReactNode;
1116
+ /** The longest video message, in ms. Default: your role's recording limit (`recordingLimitMs`). */
1117
+ videoLimitMs?: number;
1118
+ testID?: string;
1119
+ }
1120
+ /** What `ChatThreadScreen`'s `accessory` is given. */
1121
+ interface ChatThreadAccessoryContext {
1122
+ conversationId: string;
1123
+ /** The composer's draft and reply (`dispatch({ type: "text", text })` writes into it). */
1099
1124
  composer: ChatComposerHandle;
1100
- /** null while it loads. */
1125
+ /** null while your role loads. */
1101
1126
  canPost: boolean | null;
1102
- /** Why not, when `canPost` is false (`composerDisabledReason`). */
1103
- disabledReason: string | null;
1104
- role: ChatRole | null;
1105
- onSend: (payload: ReturnType<typeof toSend>) => void;
1106
- signalTyping?: () => void;
1107
- signalRecording?: () => void;
1108
- /** The signed-in person (`useChat().userId`), whose recent emoji the picker keeps. */
1109
- userId?: string | null;
1110
- /** Touch and hold Send (or VoiceOver's action on it) to schedule what's written (`ChatScheduleSheet`). */
1111
- onSchedule?: () => void;
1112
- /** The field's placeholder ("Message #Week 1" in a topic). */
1113
- placeholder?: string;
1114
- /** Opens the video recorder (`ChatVideoRecorder`); with it, a camera button sits beside attach. */
1115
- onRecordVideo?: () => void;
1127
+ }
1128
+ /** What the thread's status line says: nothing, offline (NetInfo), or the live channel dropped. */
1129
+ type ChatConnectionState = "online" | "offline" | "connecting";
1130
+ /** Offline wins; then a live channel that dropped; a channel not yet heard from is online. */
1131
+ declare function connectionState(online: boolean | null, live: boolean | null): ChatConnectionState;
1132
+ /** Whether the phone is online, from the app's NetInfo (`modules.netInfo`); null without it or until it says. */
1133
+ declare function useOnline(netInfo: NetInfoLike | undefined): boolean | null;
1134
+ /** How many messages from others came in after `afterSeq` (the newest when you scrolled up). */
1135
+ declare function countUnseenBelow(messages: readonly {
1136
+ seq: number;
1137
+ senderId: string | null;
1138
+ }[], afterSeq: number | null, me: string): number;
1139
+ interface ChatThreadScreenSlots {
1140
+ /** Draws the app's own attachment kinds; the card by default. */
1141
+ attachment?: ChatAttachmentSlot | null;
1142
+ }
1143
+ /**
1144
+ * Points from the bottom that still count as "at the bottom" (FlatList, which follows by hand).
1145
+ * @deprecated Use genesis-ui-native's `THREAD_AT_BOTTOM_POINTS`. ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
1146
+ */
1147
+ declare const AT_BOTTOM_POINTS = 120;
1148
+ /**
1149
+ * How the thread's list is set up, oldest first and not inverted. FlashList:
1150
+ * its chat mode (opens at the bottom, follows new rows while within a fifth of
1151
+ * a screen of it, keeps the first visible row in place when earlier ones load
1152
+ * at the top). FlatList: keeps its place when earlier rows load at the top;
1153
+ * the screen follows new rows itself (`followsByHand`).
1154
+ * @deprecated Use genesis-ui-native's `threadListMode` (which anchors FlatList past the header, `minIndexForVisible: 1`). ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
1155
+ */
1156
+ declare function threadListMode(flash: boolean, reducedMotion: boolean): {
1157
+ followsByHand: boolean;
1158
+ maintainVisibleContentPosition: Record<string, unknown>;
1159
+ };
1160
+ /**
1161
+ * Whether a scroll position is at (or near) the bottom of its content.
1162
+ * @deprecated Use genesis-ui-native's `threadNearBottom`. ChatThreadScreen is on NativeThreadList; this copy is removed in a later minor.
1163
+ */
1164
+ declare function nearBottom(m: {
1165
+ contentOffset: {
1166
+ y: number;
1167
+ };
1168
+ contentSize: {
1169
+ height: number;
1170
+ };
1171
+ layoutMeasurement: {
1172
+ height: number;
1173
+ };
1174
+ }, slack?: number): boolean;
1175
+ declare function ChatThreadScreen(props: ChatThreadScreenProps): react.JSX.Element;
1176
+
1177
+ /** Who the conversation is with, for the title's avatar. */
1178
+ interface ChatThreadTitleAvatar {
1179
+ src?: string | null;
1180
+ name?: string | null;
1181
+ /** Keeps the picture when the bar redraws (expo-image's `recyclingKey`). */
1182
+ id?: string;
1183
+ }
1184
+ interface ChatThreadTitleProps {
1185
+ title: string;
1186
+ /** Under the title. `undefined`: the away line, from `conversationId`. `null`: none. */
1187
+ subtitle?: string | null;
1188
+ /** A picture beside the title: who it is, or your own element. */
1189
+ avatar?: ChatThreadTitleAvatar | ReactNode;
1190
+ /** Makes the title a button (to the conversation's details). */
1191
+ onPress?: () => void;
1192
+ /** VoiceOver's hint when it is a button. */
1193
+ pressHint?: string;
1194
+ /** For the default subtitle (the away line). */
1195
+ conversationId?: string;
1196
+ tintColor?: string;
1116
1197
  testID?: string;
1117
1198
  }
1118
- declare function ChatComposer(props: ChatComposerProps): react.JSX.Element;
1199
+ declare function ChatThreadTitle({ title, subtitle, avatar, onPress, pressHint, conversationId, tintColor, testID }: ChatThreadTitleProps): react.JSX.Element;
1119
1200
 
1120
1201
  type MessageRow = Extract<ThreadRow, {
1121
1202
  type: "message";
@@ -1160,14 +1241,138 @@ interface MessageBubbleProps {
1160
1241
  attachmentSlot?: ChatAttachmentSlot | null;
1161
1242
  /** How long an app card's action may run before it reads as failed; 30 s by default, 0 for never. */
1162
1243
  cardActionTimeoutMs?: number;
1244
+ /** Its status under the bubble, on the last message you sent: "Delivered", "Read 9:41" (`receiptText`). */
1245
+ receipt?: string | null;
1246
+ /** Makes the status a button ("Read by 2" opens who has read it). */
1247
+ onReceiptPress?: () => void;
1248
+ /** What is drawn behind the bubble, which the tail is cut from. The theme's grouped background by default (what ChatThreadScreen draws). */
1249
+ backdrop?: string;
1163
1250
  testID: string;
1164
1251
  }
1252
+ /** Where a bubble sits in its run of one sender's messages. */
1253
+ type BubblePosition = "single" | "first" | "middle" | "last";
1254
+ declare function bubblePosition(row: {
1255
+ groupStart: boolean;
1256
+ groupEnd: boolean;
1257
+ }): BubblePosition;
1258
+ /**
1259
+ * A bubble's corners: round, except where it meets the next or the one before in its run, on the
1260
+ * sender's side (the trailing side for yours). The last and the only one also get a tail.
1261
+ */
1262
+ declare function bubbleCorners(position: BubblePosition, mine: boolean): {
1263
+ borderTopLeftRadius: number;
1264
+ borderBottomLeftRadius: number;
1265
+ borderTopRightRadius: number;
1266
+ borderBottomRightRadius: number;
1267
+ tail: boolean;
1268
+ };
1165
1269
  declare function formatClock(iso: string): string;
1166
1270
  /** Mentions written `@[Name](user:<id>)` read as `@Name`. */
1167
1271
  declare function displayBody(body: string): string;
1168
1272
  declare function MessageBubbleImpl(props: MessageBubbleProps): react.JSX.Element;
1169
1273
  declare const MessageBubble: react.MemoExoticComponent<typeof MessageBubbleImpl>;
1170
1274
 
1275
+ /** How far the bubbles slide to show the times, in points. */
1276
+ declare const TIME_REVEAL_WIDTH = 64;
1277
+ /** A horizontal move counts as the reveal once it is this far left and mostly sideways. */
1278
+ declare function startsTimeReveal(dx: number, dy: number): boolean;
1279
+ /** How far the thread is pulled for a drag of `dx` (negative is left). */
1280
+ declare function timeRevealFor(dx: number): number;
1281
+
1282
+ interface ChatTypingBubbleProps {
1283
+ /** Read out: "Sam is typing…". */
1284
+ label: string;
1285
+ /** Who is typing (the first, in a group): their avatar shows beside the bubble. */
1286
+ userId?: string | null;
1287
+ group: boolean;
1288
+ reducedMotion: boolean;
1289
+ testID: string;
1290
+ }
1291
+ declare function ChatTypingBubble({ label, userId, group, reducedMotion, testID }: ChatTypingBubbleProps): react.JSX.Element;
1292
+
1293
+ /**
1294
+ * @feat:chat
1295
+ * `<Stack.Screen options>` for a screen that renders `ChatThreadScreen`.
1296
+ *
1297
+ * The bar is opaque. It was made so while the thread was an inverted list
1298
+ * (`transform: scaleY(-1)` on the scroll view), which it no longer is; it
1299
+ * stays opaque until a see-through bar is checked over the upright list. On
1300
+ * iOS 26 and later the navigation bar is see-through and draws a scroll
1301
+ * edge effect over the content scroll view under it; UIKit lays that effect
1302
+ * out in the flipped scroll view's own coordinates, so once the thread is
1303
+ * long enough to reach the bar the whole list renders blurred. An opaque bar
1304
+ * keeps the screen's content below it: nothing scrolls under the bar, and no
1305
+ * edge effect is drawn over the flipped list. Seen on iOS 27 with FlashList
1306
+ * and with FlatList.
1307
+ */
1308
+
1309
+ type ChatThreadStackOptionsProps = ScreenHeaderProps & {
1310
+ headerTitle?: string;
1311
+ /** Beside the title: who it is (`{ src, name, id }`), or your own element. */
1312
+ avatar?: ChatThreadTitleAvatar | ReactNode;
1313
+ /**
1314
+ * Under the title. Left out with `conversationId`: the away line ("Sam is away until Monday"),
1315
+ * which needs `ChatProvider` above the navigator. `null`: none. Show it here, and pass
1316
+ * `availability={false}` to `ChatThreadScreen` so it isn't said twice.
1317
+ */
1318
+ subtitle?: string | null;
1319
+ /** Makes the title a button (to the conversation's details). */
1320
+ onPressTitle?: () => void;
1321
+ /** VoiceOver's hint on that button. */
1322
+ titleHint?: string;
1323
+ /** For the default subtitle. */
1324
+ conversationId?: string;
1325
+ };
1326
+ /** The thread's header options with an opaque bar in `background` (the thread's own background). */
1327
+ declare function chatThreadStackOptions(props: ChatThreadStackOptionsProps, background: ColorValue): Record<string, unknown>;
1328
+ /** `chatThreadStackOptions` in the theme's grouped background, the color `ChatThreadScreen` draws. */
1329
+ declare function useChatThreadStackOptions(props: ChatThreadStackOptionsProps): Record<string, unknown>;
1330
+
1331
+ interface ChatStartPerson {
1332
+ userId: string;
1333
+ name: string;
1334
+ avatarUrl?: string | null;
1335
+ /** A second line ("Coach", "Team"). */
1336
+ subtitle?: string;
1337
+ }
1338
+ interface ChatStartSheetProps {
1339
+ open: boolean;
1340
+ onClose: () => void;
1341
+ people: ChatStartPerson[];
1342
+ /** Default `direct`. */
1343
+ kind?: string;
1344
+ onStarted: (conversationId: string) => void;
1345
+ testID?: string;
1346
+ }
1347
+ declare function ChatStartSheet({ open, onClose, people, kind, onStarted, testID }: ChatStartSheetProps): react.JSX.Element;
1348
+ /** A 44pt compose button for the inbox's header (`headerRight`). */
1349
+ declare function ChatStartButton({ onPress, testID }: {
1350
+ onPress: () => void;
1351
+ testID?: string;
1352
+ }): react.JSX.Element;
1353
+
1354
+ interface ChatComposerProps {
1355
+ composer: ChatComposerHandle;
1356
+ /** null while it loads. */
1357
+ canPost: boolean | null;
1358
+ /** Why not, when `canPost` is false (`composerDisabledReason`). */
1359
+ disabledReason: string | null;
1360
+ role: ChatRole | null;
1361
+ onSend: (payload: ReturnType<typeof toSend>) => void;
1362
+ signalTyping?: () => void;
1363
+ signalRecording?: () => void;
1364
+ /** The signed-in person (`useChat().userId`), whose recent emoji the picker keeps. */
1365
+ userId?: string | null;
1366
+ /** Touch and hold Send (or VoiceOver's action on it) to schedule what's written (`ChatScheduleSheet`). */
1367
+ onSchedule?: () => void;
1368
+ /** The field's placeholder ("Message #Week 1" in a topic). */
1369
+ placeholder?: string;
1370
+ /** Opens the video recorder (`ChatVideoRecorder`); with it, a camera button sits beside attach. */
1371
+ onRecordVideo?: () => void;
1372
+ testID?: string;
1373
+ }
1374
+ declare function ChatComposer(props: ChatComposerProps): react.JSX.Element;
1375
+
1171
1376
  /**
1172
1377
  * @feat:chat
1173
1378
  * Which actions a message offers this person, from the same rules migration
@@ -1249,6 +1454,11 @@ interface BubbleAttachment {
1249
1454
  kind: string;
1250
1455
  /** What to show now: a signed URL, or the local preview. */
1251
1456
  uri: string | null;
1457
+ /**
1458
+ * What expo-image caches it under: the storage path, which stays the same when the signed URL
1459
+ * is re-signed (a new expiry would otherwise miss the disk cache and download it again).
1460
+ */
1461
+ cacheKey?: string | null;
1252
1462
  name: string | null;
1253
1463
  width: number | null;
1254
1464
  height: number | null;
@@ -2149,4 +2359,4 @@ declare function ModerationMarker({ note, mine, testID }: {
2149
2359
  testID?: string;
2150
2360
  }): react.JSX.Element;
2151
2361
 
2152
- export { AT_BOTTOM_POINTS, AppAttachment, type AppAttachmentProps, type AppStateLike, type AudioPlayerLike, type AudioRecorderLike, type AudioStatusLike, type AvailabilityForm, BUILT_IN_KINDS, type BubbleAttachment, type BuildRowsOptions, type ByteSource, CARD_ACTION_TIMEOUT_MS, type CameraViewHandleLike, CardError, type CardRunOptions, type CardRunState, ChatAccessError, type ChatAccessErrorProps, ChatAttachmentCard, type ChatAttachmentCardProps, type ChatAttachmentSlot, type ChatAttachmentSlotProps, ChatAutoRetry, type ChatAutoRetryOptions, ChatAvailabilityScreen, type ChatAvailabilityScreenProps, ChatAwayLine, type ChatAwayLineProps, ChatBroadcastSheet, type ChatBroadcastSheetProps, ChatCardContext, ChatComposer, type ChatComposerHandle, type ChatComposerProps, ChatEmojiPicker, type ChatEmojiPickerProps, ChatEmojiPickerSheet, type ChatEmojiPickerSheetProps, ChatIconButton, type ChatIconButtonProps, ChatInboxScreen, type ChatInboxScreenProps, ChatLinkPreviewCard, type ChatLinkPreviewCardProps, ChatMediaViewer, type ChatMediaViewerProps, type ChatNativeContextValue, type ChatNativeCopy, type ChatNativeCopyOverrides, type ChatNativeModules, ChatNativeProvider, type ChatNativeProviderProps, type ChatOrganiseCopy, type ChatPerson, type ChatPhoto, ChatPhotoViewer, type ChatPhotoViewerProps, ChatScheduleSheet, type ChatScheduleSheetProps, ChatScheduledBar, type ChatScheduledBarProps, ChatScheduledList, type ChatScheduledListProps, ChatSearchScreen, type ChatSearchScreenProps, ChatStartButton, type ChatStartPerson, ChatStartSheet, type ChatStartSheetProps, ChatThreadScreen, type ChatThreadScreenProps, type ChatThreadScreenSlots, type ChatThreadStackOptionsProps, ChatTopicBar, type ChatTopicBarProps, ChatVideoPlayer, type ChatVideoPlayerProps, ChatVideoRecorder, type ChatVideoRecorderProps, type ChatVideoState, type ChunkFileLike, type ChunkedPutOptions, type ClipboardLike, type ComposerAction, type ComposerAttachment, type ComposerDraft, type ComposerState, DISMISS_DISTANCE, DISMISS_VELOCITY, type DayHours, type DraftStorageLike, EMOJI_CATEGORIES, type EmojiCategoryId, type EmojiEntry, type ExpoAudioLike, type ExpoCameraLike, type ExpoVideoLike, type HapticEvent, type HapticsLike, type ImagePickerLike, type JumpTarget, type KeyboardAvoidingLike, MAX_ZOOM, type MediaLibraryLike, type MessageActionContext, type MessageActionId, MessageActionsSheet, type MessageActionsSheetProps, MessageAttachments, MessageBubble, type MessageBubbleProps, type MintedUpload, ModerationMarker, type ModerationNote, type NetInfoLike, type OpenAttachment, type OutboxSend, type PermissionLike, type PickedAssetLike, type PickerResultLike, QUICK_REACTIONS, RECENT_EMOJI_MAX, type RecordedVideo, type RecorderConfig, type RecorderEffect, type RecorderEvent, type RecorderNotice, type RecorderPhase, type RecorderState, type RecorderStateLike, type ReplyTarget, SearchSnippet, type SharingLike, type StartVideoInput, TRANSCRIPT_LINES, TUS_CHUNK_BYTES, type ThreadRow, type TopicMenuAction, type TusSendInfo, type TusTransport, type TusUploadOptions, type TusUploadRecord, type TusUploadSource, type UseJumpOptions, type UseVoiceRecorderOptions, VIDEO_CHUNK_BYTES, VIDEO_HOLD_MS, VIDEO_MIN_MS, type VideoPlayerLike, type VideoRecorderEffect, type VideoRecorderEvent, type VideoRecorderPhase, type VideoRecorderState, type VideoUploadError, type VideoUploadTask, VideoUploadTray, type VideoUploadTrayProps, type VideoUploads, type VideoViewHandleLike, VoiceNotePlayer, type VoiceNotePlayerProps, VoiceTranscript, type VoiceTranscriptProps, type WebBrowserLike, type WeekHours, activePlaybackId, attachmentKindOf, attachmentPaths, attachmentPreview, availabilityInput, awayLineFor, barsThatFit, base64ToBytes, base64Utf8, broadcastOutcome, broadcastRows, buildThreadRows, canManageTopics, canReactTo, canSend, cardAction, cardTitle, chatNativeCopy, chatOrganiseCopy, chatThreadStackOptions, checkTopicName, chunkedPut, claimPlayback, clearDrafts, clockToDate, composerDisabledReason, composerReducer, createDraftSaver, createTusUpload, createVideoUploads, cycleVideoRate, cycleVoiceNoteRate, dateToClock, defaultScheduleAt, defaultWeek, deviceTimeZone, displayBody, draftKey, emojiEntry, emojiInCategory, emptyComposer, fileFromDataUri, fileSource, filesFromAssets, fill, forgetRecentEmoji, formFrom, formatClock, fullScreenVideo, galleryFor, haptic, hoursFromWeek, idleRecorder, inboxRow, initialVideoRecorder, initials, insertAtSelection, invertedRows, isLocalUri, isOnline, isOpenableHref, isVideoPlaying, linkHost, linkPreviewIds, liveBars, loadDraft, loadRecentEmoji, memoryDraftStorage, messageActionsFor, messagePreview, moderationNote, moderationText, muxPosterUrl, muxStreamUrl, nearBottom, nextOffset, openChatLink, panLimit, pauseChatPlayback, pinchScale, previewToShow, pushRecentEmoji, recentEmojiKey, recordedVideoFile, recorderStep, recordingType, releasePlayback, replyTargetFor, resolveChatCopy, rowIndexOf, rowKey, sameTimeDays, saveRecentEmoji, scheduleInputFrom, scrubSeconds, searchEmoji, shouldDismiss, slotUrl, snippetText, splitCardAttachments, threadListMode, timeZones, toSend, toggleVideo, toggleVideoMute, toggleVoiceNote, topicClosedFor, topicMenuFor, transcriptIsLong, useAwayLine, useCardRuns, useChatAutoRetry, useChatComposer, useChatNative, useChatThreadStackOptions, useJumpToMessage, usePlayingVideo, usePlayingVoiceNote, useScheduleSend, useVideoUploads, useVoiceRecorder, videoRecorderStep, videoSource, videoState, videoUploads, voiceNoteFile, waveformBars, weekFromHours, withDay, withTime };
2362
+ export { AT_BOTTOM_POINTS, AppAttachment, type AppAttachmentProps, type AppStateLike, type AudioPlayerLike, type AudioRecorderLike, type AudioStatusLike, type AvailabilityForm, BUILT_IN_KINDS, type BubbleAttachment, type BubblePosition, type BuildRowsOptions, type ByteSource, CARD_ACTION_TIMEOUT_MS, type CameraViewHandleLike, CardError, type CardRunOptions, type CardRunState, ChatAccessError, type ChatAccessErrorProps, ChatAttachmentCard, type ChatAttachmentCardProps, type ChatAttachmentSlot, type ChatAttachmentSlotProps, ChatAutoRetry, type ChatAutoRetryOptions, ChatAvailabilityScreen, type ChatAvailabilityScreenProps, ChatAwayLine, type ChatAwayLineProps, ChatBroadcastSheet, type ChatBroadcastSheetProps, ChatCardContext, ChatComposer, type ChatComposerHandle, type ChatComposerProps, type ChatConnectionState, ChatEmojiPicker, type ChatEmojiPickerProps, ChatEmojiPickerSheet, type ChatEmojiPickerSheetProps, ChatIconButton, type ChatIconButtonProps, ChatInboxScreen, type ChatInboxScreenProps, ChatLinkPreviewCard, type ChatLinkPreviewCardProps, ChatMediaViewer, type ChatMediaViewerProps, type ChatNativeContextValue, type ChatNativeCopy, type ChatNativeCopyOverrides, type ChatNativeModules, ChatNativeProvider, type ChatNativeProviderProps, type ChatOrganiseCopy, type ChatPerson, type ChatPhoto, ChatPhotoViewer, type ChatPhotoViewerProps, type ChatReceiptsMode, ChatScheduleSheet, type ChatScheduleSheetProps, ChatScheduledBar, type ChatScheduledBarProps, ChatScheduledList, type ChatScheduledListProps, ChatSearchScreen, type ChatSearchScreenProps, ChatStartButton, type ChatStartPerson, ChatStartSheet, type ChatStartSheetProps, type ChatThreadAccessoryContext, ChatThreadScreen, type ChatThreadScreenProps, type ChatThreadScreenSlots, type ChatThreadStackOptionsProps, ChatThreadTitle, type ChatThreadTitleAvatar, type ChatThreadTitleProps, ChatTopicBar, type ChatTopicBarProps, ChatTypingBubble, type ChatTypingBubbleProps, ChatVideoPlayer, type ChatVideoPlayerProps, ChatVideoRecorder, type ChatVideoRecorderProps, type ChatVideoState, type ChunkFileLike, type ChunkedPutOptions, type ClipboardLike, type ComposerAction, type ComposerAttachment, type ComposerDraft, type ComposerState, DISMISS_DISTANCE, DISMISS_VELOCITY, type DayHours, type DraftStorageLike, EMOJI_CATEGORIES, type EmojiCategoryId, type EmojiEntry, type ExpoAudioLike, type ExpoCameraLike, type ExpoVideoLike, type HapticEvent, type HapticsLike, type ImagePickerLike, type JumpTarget, type KeyboardAvoidingLike, MAX_ZOOM, type MediaLibraryLike, type MessageActionContext, type MessageActionId, MessageActionsSheet, type MessageActionsSheetProps, MessageAttachments, MessageBubble, type MessageBubbleProps, type MessageReceipt, type MessageReceiptFor, type MintedUpload, ModerationMarker, type ModerationNote, type NetInfoLike, type OpenAttachment, type OutboxSend, type PermissionLike, type PickedAssetLike, type PickerResultLike, QUICK_REACTIONS, RECENT_EMOJI_MAX, type ReceiptCopy, type ReceiptOptions, type RecordedVideo, type RecorderConfig, type RecorderEffect, type RecorderEvent, type RecorderNotice, type RecorderPhase, type RecorderState, type RecorderStateLike, type ReplyTarget, SearchSnippet, type SharingLike, type StartVideoInput, TIME_REVEAL_WIDTH, TRANSCRIPT_LINES, TUS_CHUNK_BYTES, type ThreadRow, type TopicMenuAction, type TusSendInfo, type TusTransport, type TusUploadOptions, type TusUploadRecord, type TusUploadSource, type UseJumpOptions, type UseVoiceRecorderOptions, VIDEO_CHUNK_BYTES, VIDEO_HOLD_MS, VIDEO_MIN_MS, type VideoPlayerLike, type VideoRecorderEffect, type VideoRecorderEvent, type VideoRecorderPhase, type VideoRecorderState, type VideoUploadError, type VideoUploadTask, VideoUploadTray, type VideoUploadTrayProps, type VideoUploads, type VideoViewHandleLike, VoiceNotePlayer, type VoiceNotePlayerProps, VoiceTranscript, type VoiceTranscriptProps, type WebBrowserLike, type WeekHours, activePlaybackId, alertConfirm, attachmentKindOf, attachmentPaths, attachmentPreview, availabilityInput, awayLineFor, barsThatFit, base64ToBytes, base64Utf8, broadcastOutcome, broadcastRows, bubbleCorners, bubblePosition, buildThreadRows, canManageTopics, canReactTo, canSend, cardAction, cardTitle, chatNativeCopy, chatOrganiseCopy, chatThreadStackOptions, checkTopicName, chunkedPut, claimPlayback, clearDrafts, clockToDate, composerDisabledReason, composerReducer, connectionState, countUnseenBelow, createDraftSaver, createTusUpload, createVideoUploads, cycleVideoRate, cycleVoiceNoteRate, dateToClock, defaultScheduleAt, defaultWeek, deviceTimeZone, displayBody, draftKey, emojiEntry, emojiInCategory, emptyComposer, fileFromDataUri, fileSource, filesFromAssets, fill, forgetRecentEmoji, formFrom, formatClock, fullScreenVideo, galleryFor, haptic, hoursFromWeek, idleRecorder, inboxRow, initialVideoRecorder, initials, insertAtSelection, invertedRows, isLocalUri, isOnline, isOpenableHref, isVideoPlaying, lastSentReceipt, linkHost, linkPreviewIds, liveBars, loadDraft, loadRecentEmoji, memoryDraftStorage, messageActionsFor, messagePreview, moderationNote, moderationText, muxPosterUrl, muxStreamUrl, nearBottom, nextOffset, openChatLink, panLimit, pauseChatPlayback, pinchScale, previewToShow, pushRecentEmoji, readWhen, receiptText, recentEmojiKey, recordedVideoFile, recorderStep, recordingType, releasePlayback, replyTargetFor, resolveChatCopy, rowIndexOf, rowKey, sameTimeDays, saveRecentEmoji, scheduleInputFrom, scrubSeconds, searchEmoji, shouldDismiss, slotUrl, snippetText, splitCardAttachments, startsTimeReveal, threadListMode, timeRevealFor, timeZones, toSend, toggleVideo, toggleVideoMute, toggleVoiceNote, topicClosedFor, topicMenuFor, transcriptIsLong, useAwayLine, useCardRuns, useChatAutoRetry, useChatComposer, useChatNative, useChatThreadStackOptions, useJumpToMessage, useOnline, usePlayingVideo, usePlayingVoiceNote, useScheduleSend, useVideoUploads, useVoiceRecorder, videoRecorderStep, videoSource, videoState, videoUploads, voiceNoteFile, waveformBars, weekFromHours, withDay, withTime };