@marktiderman/genesis-chat 0.8.0 → 0.10.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.
- package/README.md +1 -1
- package/dist/native.d.ts +11 -6
- package/dist/native.js +167 -233
- package/dist/native.js.map +1 -1
- package/dist/web.d.ts +7 -3
- package/dist/web.js +269 -265
- package/dist/web.js.map +1 -1
- package/migrations/0005_genesis_chat_attachment_paths.sql +80 -0
- package/migrations/tests/0005_genesis_chat_attachment_paths.test.sql +111 -0
- package/package.json +13 -9
- package/src/__tests__/web-attachment-view.test.ts +33 -0
- package/src/__tests__/web.test.tsx +160 -3
- package/src/native/__tests__/composer.test.tsx +75 -0
- package/src/native/__tests__/organise-screens.test.tsx +1 -1
- package/src/native/__tests__/thread-screen.test.tsx +104 -2
- package/src/native/composer.tsx +53 -79
- package/src/native/context.tsx +9 -2
- package/src/native/message-bubble.tsx +3 -3
- package/src/native/modules.ts +13 -18
- package/src/native/organise-copy.ts +3 -0
- package/src/native/thread-screen.tsx +81 -205
- package/src/native/use-jump.ts +5 -2
- package/src/web/attachments.tsx +16 -3
- package/src/web/bubble.tsx +4 -2
- package/src/web/composer.tsx +2 -4
- package/src/web/dock.tsx +3 -3
- package/src/web/inbox.tsx +82 -90
- package/src/web/thread.tsx +248 -259
package/dist/web.d.ts
CHANGED
|
@@ -333,11 +333,13 @@ interface MessageRowProps {
|
|
|
333
333
|
item: ThreadItem;
|
|
334
334
|
/** First of a run from one sender: the name and avatar show (others' messages, in groups). */
|
|
335
335
|
startsGroup: boolean;
|
|
336
|
+
/** A jump just landed here (ThreadPage says so). */
|
|
337
|
+
highlighted?: boolean;
|
|
336
338
|
className?: string;
|
|
337
339
|
}
|
|
338
340
|
/** Plain text for the clipboard: mentions as @Name. */
|
|
339
341
|
declare function plainText(body: string): string;
|
|
340
|
-
declare function MessageRow({ item, startsGroup, className }: MessageRowProps): react.JSX.Element;
|
|
342
|
+
declare function MessageRow({ item, startsGroup, highlighted: highlightedProp, className }: MessageRowProps): react.JSX.Element;
|
|
341
343
|
|
|
342
344
|
interface VoiceNoteProps {
|
|
343
345
|
/** The audio's (signed) URL; while it loads the waveform still draws. */
|
|
@@ -748,8 +750,10 @@ interface ChatDockPanel {
|
|
|
748
750
|
/** Opening the same id again brings that window back rather than adding a second. */
|
|
749
751
|
id: string;
|
|
750
752
|
title: string;
|
|
751
|
-
/** Its body, filling the window under the dock's title bar. */
|
|
752
|
-
render: (
|
|
753
|
+
/** Its body, filling the window under the dock's title bar. `visible`: it stays mounted when minimized, so pause what mustn't happen out of sight (marking read). */
|
|
754
|
+
render: (state: {
|
|
755
|
+
visible: boolean;
|
|
756
|
+
}) => ReactNode;
|
|
753
757
|
/** In place of the avatar in the title bar. */
|
|
754
758
|
icon?: ReactNode;
|
|
755
759
|
/** Unread count on the bar and the bubble. */
|