@banbox/chat 1.0.7 → 1.0.8

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/index.d.cts CHANGED
@@ -479,10 +479,12 @@ type Props$6 = {
479
479
  children: React__default.ReactNode;
480
480
  className?: string;
481
481
  style?: React__default.CSSProperties;
482
+ /** set true if you want short threads anchored at the bottom */
482
483
  bottomAlignWhenShort?: boolean;
484
+ /** when this value changes, we auto-scroll to the bottom */
483
485
  scrollKey?: string | number;
484
486
  };
485
- declare const ChatScroll: React__default.FC<Props$6>;
487
+ declare const ChatScroll: React__default.ForwardRefExoticComponent<Props$6 & React__default.RefAttributes<HTMLDivElement>>;
486
488
 
487
489
  type ChatThreadStatus = {
488
490
  kind: "seen";
@@ -503,7 +505,6 @@ type Props$5 = {
503
505
  status: ChatThreadStatus;
504
506
  avatarText: string;
505
507
  avatarSrc?: string;
506
- _size?: number;
507
508
  avatarBg?: string;
508
509
  className?: string;
509
510
  onClick?: () => void;
@@ -514,6 +515,7 @@ type Props$4 = {
514
515
  className?: string;
515
516
  onClose?: () => void;
516
517
  onSearchChange?: (value: string) => void;
518
+ hideSearch?: boolean;
517
519
  };
518
520
  declare const ChatListHeader: React__default.FC<Props$4>;
519
521
 
package/dist/index.d.ts CHANGED
@@ -479,10 +479,12 @@ type Props$6 = {
479
479
  children: React__default.ReactNode;
480
480
  className?: string;
481
481
  style?: React__default.CSSProperties;
482
+ /** set true if you want short threads anchored at the bottom */
482
483
  bottomAlignWhenShort?: boolean;
484
+ /** when this value changes, we auto-scroll to the bottom */
483
485
  scrollKey?: string | number;
484
486
  };
485
- declare const ChatScroll: React__default.FC<Props$6>;
487
+ declare const ChatScroll: React__default.ForwardRefExoticComponent<Props$6 & React__default.RefAttributes<HTMLDivElement>>;
486
488
 
487
489
  type ChatThreadStatus = {
488
490
  kind: "seen";
@@ -503,7 +505,6 @@ type Props$5 = {
503
505
  status: ChatThreadStatus;
504
506
  avatarText: string;
505
507
  avatarSrc?: string;
506
- _size?: number;
507
508
  avatarBg?: string;
508
509
  className?: string;
509
510
  onClick?: () => void;
@@ -514,6 +515,7 @@ type Props$4 = {
514
515
  className?: string;
515
516
  onClose?: () => void;
516
517
  onSearchChange?: (value: string) => void;
518
+ hideSearch?: boolean;
517
519
  };
518
520
  declare const ChatListHeader: React__default.FC<Props$4>;
519
521