@marktiderman/genesis-chat 0.9.0 → 0.10.1

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/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: () => ReactNode;
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. */