@banbox/chat 1.0.8 → 1.0.9
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 +1166 -202
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1090 -127
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chat/InboxPopup.tsx +30 -19
- package/src/chat/SinglePopup.tsx +59 -14
- package/src/icons/index.tsx +55 -0
- package/src/index.ts +14 -12
- package/src/modals/ChatAddressModal.tsx +844 -0
- package/src/modals/{chat/ChatConfirmModal.tsx → ChatConfirmModal.tsx} +2 -2
- package/src/modals/ChatTranslateSettingsModal.tsx +182 -0
- package/src/styles/index.build.css +15 -0
- package/src/styles/index.css +10 -2
- package/src/ui/{chat/AttachmentPreviewStrip.tsx → AttachmentPreviewStrip.tsx} +2 -2
- package/src/ui/{chat/ChatComposerBar.tsx → ChatComposerBar.tsx} +2 -2
- package/src/ui/{chat/ChatFooter.tsx → ChatFooter.tsx} +102 -8
- package/src/ui/{chat/ChatIdentity.tsx → ChatIdentity.tsx} +2 -2
- package/src/ui/{chat/ChatInquiryBar.tsx → ChatInquiryBar.tsx} +1 -1
- package/src/ui/ChatKebabMenu.tsx +125 -0
- package/src/ui/{chat/ChatListHeader.tsx → ChatListHeader.tsx} +1 -1
- package/src/ui/{chat/ChatMessageItem.tsx → ChatMessageItem.tsx} +1 -1
- package/src/ui/{chat/ChatScroll.tsx → ChatScroll.tsx} +1 -1
- package/src/ui/{chat/ChatSpinner.tsx → ChatSpinner.tsx} +1 -1
- package/src/ui/{chat/ChatThreadItem.tsx → ChatThreadItem.tsx} +1 -1
- package/src/ui/{chat/MessageHoverActions.tsx → MessageHoverActions.tsx} +2 -2
- package/src/ui/{chat/ReplyCard.tsx → ReplyCard.tsx} +2 -2
- package/src/ui/{chat/TypingIndicator.tsx → TypingIndicator.tsx} +1 -1
- package/src/ui/{chat/drop-up → drop-up}/BusinessCardDropup.tsx +15 -3
- package/src/ui/{chat/drop-up → drop-up}/EmojiDropup.tsx +1 -1
- package/src/ui/{chat/message-items → message-items}/ChatAddressCard.tsx +4 -4
- package/src/ui/{chat/message-items → message-items}/ChatBubbleFiles.tsx +1 -1
- package/src/ui/{chat/message-items → message-items}/ChatBubbleImages.tsx +2 -2
- package/src/ui/{chat/message-items → message-items}/ChatBusinessCard.tsx +1 -1
- package/src/ui/{chat/scrollToMessage.ts → scrollToMessage.ts} +1 -1
- package/src/ui/{chat/types.ts → types.ts} +2 -2
- package/src/modals/chat/ChatTranslateSettingsModal.tsx +0 -180
- /package/src/ui/{chat/ChatHeader.tsx → ChatHeader.tsx} +0 -0
- /package/src/ui/{chat/message-items → message-items}/ChatBubbleAudio.tsx +0 -0
- /package/src/ui/{chat/message-items → message-items}/ChatBubbleText.tsx +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -395,6 +395,8 @@ type Props$8 = {
|
|
|
395
395
|
/** Called after send completes — triggers parent re-render / scroll */
|
|
396
396
|
onAfterSend?: () => void;
|
|
397
397
|
actions?: FooterAction[];
|
|
398
|
+
/** Keys of actions to hide from the toolbar, e.g. ["businessCard", "addressCard"] */
|
|
399
|
+
hiddenActionKeys?: string[];
|
|
398
400
|
className?: string;
|
|
399
401
|
maxRows?: number;
|
|
400
402
|
/** The message being replied to */
|
|
@@ -555,6 +557,14 @@ type Props = {
|
|
|
555
557
|
};
|
|
556
558
|
declare const ChatSpinner: React__default.FC<Props>;
|
|
557
559
|
|
|
560
|
+
type ChatKebabMenuProps = {
|
|
561
|
+
pinned?: boolean;
|
|
562
|
+
onPinToggle?: () => void;
|
|
563
|
+
onDelete?: () => void;
|
|
564
|
+
className?: string;
|
|
565
|
+
};
|
|
566
|
+
declare const ChatKebabMenu: React__default.FC<ChatKebabMenuProps>;
|
|
567
|
+
|
|
558
568
|
declare function cn(...inputs: ClassValue[]): string;
|
|
559
569
|
|
|
560
570
|
interface PortalProps {
|
|
@@ -563,4 +573,4 @@ interface PortalProps {
|
|
|
563
573
|
}
|
|
564
574
|
declare function Portal({ children, containerId }: PortalProps): React$1.ReactPortal | null;
|
|
565
575
|
|
|
566
|
-
export { type AddressCard$1 as AddressCard, type BusinessCard$1 as BusinessCard, type ChatAdapter, ChatFooter, ChatHeader, ChatIdentity, ChatInquiryBar, ChatListHeader, ChatMessageItem, ChatRoot, type ChatRootProps, ChatScroll, ChatSpinner, type ChatTheme, ChatThreadItem, type ChatThreadStatus, type ChatUICallbacks, ChatUIContext, ChatUIProvider, type ChatUIState, type ChatVariant, type KebabMenuOpts, type Message, type MessageAudio, type MessageFile, type MessageRef$1 as MessageRef, Portal, type Reference, ReplyCard, type SendPayload, type Thread, type ThreadStatus, type ToastOpts, TypingIndicator, cn, useChatUI };
|
|
576
|
+
export { type AddressCard$1 as AddressCard, type BusinessCard$1 as BusinessCard, type ChatAdapter, ChatFooter, ChatHeader, ChatIdentity, ChatInquiryBar, ChatKebabMenu, type ChatKebabMenuProps, ChatListHeader, ChatMessageItem, ChatRoot, type ChatRootProps, ChatScroll, ChatSpinner, type ChatTheme, ChatThreadItem, type ChatThreadStatus, type ChatUICallbacks, ChatUIContext, ChatUIProvider, type ChatUIState, type ChatVariant, type KebabMenuOpts, type Message, type MessageAudio, type MessageFile, type MessageRef$1 as MessageRef, Portal, type Reference, ReplyCard, type SendPayload, type Thread, type ThreadStatus, type ToastOpts, TypingIndicator, cn, useChatUI };
|
package/dist/index.d.ts
CHANGED
|
@@ -395,6 +395,8 @@ type Props$8 = {
|
|
|
395
395
|
/** Called after send completes — triggers parent re-render / scroll */
|
|
396
396
|
onAfterSend?: () => void;
|
|
397
397
|
actions?: FooterAction[];
|
|
398
|
+
/** Keys of actions to hide from the toolbar, e.g. ["businessCard", "addressCard"] */
|
|
399
|
+
hiddenActionKeys?: string[];
|
|
398
400
|
className?: string;
|
|
399
401
|
maxRows?: number;
|
|
400
402
|
/** The message being replied to */
|
|
@@ -555,6 +557,14 @@ type Props = {
|
|
|
555
557
|
};
|
|
556
558
|
declare const ChatSpinner: React__default.FC<Props>;
|
|
557
559
|
|
|
560
|
+
type ChatKebabMenuProps = {
|
|
561
|
+
pinned?: boolean;
|
|
562
|
+
onPinToggle?: () => void;
|
|
563
|
+
onDelete?: () => void;
|
|
564
|
+
className?: string;
|
|
565
|
+
};
|
|
566
|
+
declare const ChatKebabMenu: React__default.FC<ChatKebabMenuProps>;
|
|
567
|
+
|
|
558
568
|
declare function cn(...inputs: ClassValue[]): string;
|
|
559
569
|
|
|
560
570
|
interface PortalProps {
|
|
@@ -563,4 +573,4 @@ interface PortalProps {
|
|
|
563
573
|
}
|
|
564
574
|
declare function Portal({ children, containerId }: PortalProps): React$1.ReactPortal | null;
|
|
565
575
|
|
|
566
|
-
export { type AddressCard$1 as AddressCard, type BusinessCard$1 as BusinessCard, type ChatAdapter, ChatFooter, ChatHeader, ChatIdentity, ChatInquiryBar, ChatListHeader, ChatMessageItem, ChatRoot, type ChatRootProps, ChatScroll, ChatSpinner, type ChatTheme, ChatThreadItem, type ChatThreadStatus, type ChatUICallbacks, ChatUIContext, ChatUIProvider, type ChatUIState, type ChatVariant, type KebabMenuOpts, type Message, type MessageAudio, type MessageFile, type MessageRef$1 as MessageRef, Portal, type Reference, ReplyCard, type SendPayload, type Thread, type ThreadStatus, type ToastOpts, TypingIndicator, cn, useChatUI };
|
|
576
|
+
export { type AddressCard$1 as AddressCard, type BusinessCard$1 as BusinessCard, type ChatAdapter, ChatFooter, ChatHeader, ChatIdentity, ChatInquiryBar, ChatKebabMenu, type ChatKebabMenuProps, ChatListHeader, ChatMessageItem, ChatRoot, type ChatRootProps, ChatScroll, ChatSpinner, type ChatTheme, ChatThreadItem, type ChatThreadStatus, type ChatUICallbacks, ChatUIContext, ChatUIProvider, type ChatUIState, type ChatVariant, type KebabMenuOpts, type Message, type MessageAudio, type MessageFile, type MessageRef$1 as MessageRef, Portal, type Reference, ReplyCard, type SendPayload, type Thread, type ThreadStatus, type ToastOpts, TypingIndicator, cn, useChatUI };
|