@banbox/chat 1.0.2 → 1.0.4
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.cjs +483 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +479 -295
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
- package/src/chat/InboxPopup.tsx +208 -115
- package/src/chat/SinglePopup.tsx +55 -40
- package/src/ui/chat/ChatHeader.tsx +32 -24
- package/src/ui/chat/ChatIdentity.tsx +5 -1
- package/src/ui/chat/ChatListHeader.tsx +157 -156
- package/src/ui/chat/ChatScroll.tsx +71 -64
- package/src/ui/chat/TypingIndicator.tsx +41 -18
package/dist/index.d.cts
CHANGED
|
@@ -401,7 +401,7 @@ type Props$7 = {
|
|
|
401
401
|
below?: React__default.ReactNode;
|
|
402
402
|
className?: string;
|
|
403
403
|
};
|
|
404
|
-
declare function ChatHeader({ left, right, below
|
|
404
|
+
declare function ChatHeader({ left, right, below }: Props$7): React__default.JSX.Element;
|
|
405
405
|
|
|
406
406
|
type SubtitleVariant = "live" | "muted";
|
|
407
407
|
type BaseProps = {
|
|
@@ -470,6 +470,7 @@ type Props$6 = {
|
|
|
470
470
|
top?: React__default.ReactNode;
|
|
471
471
|
children: React__default.ReactNode;
|
|
472
472
|
className?: string;
|
|
473
|
+
style?: React__default.CSSProperties;
|
|
473
474
|
/** set true if you want short threads anchored at the bottom */
|
|
474
475
|
bottomAlignWhenShort?: boolean;
|
|
475
476
|
/** when this value changes, we auto-scroll to the bottom */
|
|
@@ -520,13 +521,12 @@ type Props$3 = {
|
|
|
520
521
|
declare const ChatInquiryBar: React__default.FC<Props$3>;
|
|
521
522
|
|
|
522
523
|
type Props$2 = {
|
|
523
|
-
/** Pixel box for the animation area */
|
|
524
524
|
size?: number;
|
|
525
525
|
loop?: boolean;
|
|
526
526
|
autoplay?: boolean;
|
|
527
527
|
className?: string;
|
|
528
|
+
style?: React__default.CSSProperties;
|
|
528
529
|
ariaLabel?: string;
|
|
529
|
-
/** Avatar size in px */
|
|
530
530
|
avatarSize?: number;
|
|
531
531
|
};
|
|
532
532
|
declare const TypingIndicator: React__default.FC<Props$2>;
|
package/dist/index.d.ts
CHANGED
|
@@ -401,7 +401,7 @@ type Props$7 = {
|
|
|
401
401
|
below?: React__default.ReactNode;
|
|
402
402
|
className?: string;
|
|
403
403
|
};
|
|
404
|
-
declare function ChatHeader({ left, right, below
|
|
404
|
+
declare function ChatHeader({ left, right, below }: Props$7): React__default.JSX.Element;
|
|
405
405
|
|
|
406
406
|
type SubtitleVariant = "live" | "muted";
|
|
407
407
|
type BaseProps = {
|
|
@@ -470,6 +470,7 @@ type Props$6 = {
|
|
|
470
470
|
top?: React__default.ReactNode;
|
|
471
471
|
children: React__default.ReactNode;
|
|
472
472
|
className?: string;
|
|
473
|
+
style?: React__default.CSSProperties;
|
|
473
474
|
/** set true if you want short threads anchored at the bottom */
|
|
474
475
|
bottomAlignWhenShort?: boolean;
|
|
475
476
|
/** when this value changes, we auto-scroll to the bottom */
|
|
@@ -520,13 +521,12 @@ type Props$3 = {
|
|
|
520
521
|
declare const ChatInquiryBar: React__default.FC<Props$3>;
|
|
521
522
|
|
|
522
523
|
type Props$2 = {
|
|
523
|
-
/** Pixel box for the animation area */
|
|
524
524
|
size?: number;
|
|
525
525
|
loop?: boolean;
|
|
526
526
|
autoplay?: boolean;
|
|
527
527
|
className?: string;
|
|
528
|
+
style?: React__default.CSSProperties;
|
|
528
529
|
ariaLabel?: string;
|
|
529
|
-
/** Avatar size in px */
|
|
530
530
|
avatarSize?: number;
|
|
531
531
|
};
|
|
532
532
|
declare const TypingIndicator: React__default.FC<Props$2>;
|