@medipha/chat 1.0.48 → 1.0.50
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/dashboard/api/dashboard-api.d.ts +2 -0
- package/dist/dashboard/api/dashboard-mock.d.ts +2 -0
- package/dist/dashboard/dashboard-module.d.ts +2 -0
- package/dist/dashboard/dashboard-module.types.d.ts +10 -0
- package/dist/dashboard/dashboard.types.d.ts +109 -0
- package/dist/dashboard/filters/dashboard-filter-bar.d.ts +14 -0
- package/dist/dashboard/filters/dashboard-user-options.d.ts +13 -0
- package/dist/dashboard/filters/date-range-presets.d.ts +17 -0
- package/dist/dashboard/sections/conversation-creation-trend-card.d.ts +6 -0
- package/dist/dashboard/sections/conversation-list-tab.d.ts +8 -0
- package/dist/dashboard/sections/conversation-members-dialog.d.ts +10 -0
- package/dist/dashboard/sections/conversation-overview-cards.d.ts +6 -0
- package/dist/dashboard/sections/dashboard-tabs.d.ts +9 -0
- package/dist/dashboard/sections/group-avatar.d.ts +15 -0
- package/dist/dashboard/sections/section-card.d.ts +15 -0
- package/dist/dashboard/sections/top-conversations-card.d.ts +6 -0
- package/dist/dashboard/sections/top-users-tab.d.ts +8 -0
- package/dist/dashboard/sections/user-detail-modal.d.ts +12 -0
- package/dist/dashboard/sections/user-group-breakdown-table.d.ts +11 -0
- package/dist/dashboard/use-dashboard-section.d.ts +12 -0
- package/dist/features/composer/attachments/attachment-buttons.d.ts +1 -1
- package/dist/features/composer/editor/mention-suggestion-list.d.ts +1 -1
- package/dist/features/composer/emoji/emoji-picker-button.d.ts +1 -1
- package/dist/features/composer/format-bar/format-bar.d.ts +1 -1
- package/dist/features/composer/more-menu/more-menu.d.ts +1 -1
- package/dist/features/composer/reply/composer-reply-banner.d.ts +1 -1
- package/dist/features/composer/toolbar/composer-toolbar.d.ts +1 -1
- package/dist/features/create-conversation/tabs/create-group-tab.d.ts +1 -1
- package/dist/features/create-conversation/tabs/direct-chat-tab.d.ts +1 -1
- package/dist/features/files/file-attachment.d.ts +1 -1
- package/dist/features/forward/forward-dialog.d.ts +1 -1
- package/dist/features/invite-join/group-invite-join-modal.d.ts +1 -1
- package/dist/features/invite-join/group-invite-join-overlay.d.ts +1 -1
- package/dist/features/message-list/bubble/message-actions/message-actions-menu.d.ts +1 -1
- package/dist/features/message-list/bubble/message-bubble.d.ts +1 -1
- package/dist/features/message-list/bubble/message-content-body.d.ts +1 -1
- package/dist/features/message-list/bubble/message-reactions.d.ts +1 -1
- package/dist/features/message-list/bubble/reaction-icon.d.ts +1 -1
- package/dist/features/message-list/bubble/rich-message-content.d.ts +1 -1
- package/dist/features/message-list/overlays/message-detail/message-detail-dialog.d.ts +1 -1
- package/dist/features/message-list/overlays/message-details/message-details-modal.d.ts +1 -1
- package/dist/features/message-list/overlays/reaction/reaction-modal.d.ts +1 -1
- package/dist/features/message-list/overlays/system-members/system-members-modal.d.ts +1 -1
- package/dist/features/notification-settings/notification-settings-modal.d.ts +6 -0
- package/dist/features/pinned-messages/pinned-messages-bar.d.ts +1 -1
- package/dist/features/typing/typing-indicator.d.ts +1 -1
- package/dist/index.cjs +2004 -47
- package/dist/index.d.ts +4 -0
- package/dist/index.js +40683 -10216
- package/dist/module/chat-module.d.ts +1 -1
- package/dist/module/chat-routes.d.ts +1 -1
- package/dist/module/chat-runtime-provider.d.ts +1 -1
- package/dist/module/navigation/router-chat-navigation.d.ts +1 -1
- package/dist/module/widget/chat-widget.d.ts +1 -1
- package/dist/module/widget/widget-chat-navigation.d.ts +2 -2
- package/dist/module/widget/widget-chat-shell.d.ts +1 -1
- package/dist/pages/Setting/archive/archive-attachment-preview.d.ts +1 -1
- package/dist/pages/Setting/archive/archive-file-list.d.ts +1 -1
- package/dist/pages/Setting/archive/archive-media-grid.d.ts +1 -1
- package/dist/pages/Setting/archive/archive-view.d.ts +1 -1
- package/dist/pages/Setting/board/conversation-board-modal.d.ts +1 -1
- package/dist/pages/Setting/conversation-settings-panel.d.ts +1 -1
- package/dist/pages/Setting/members/add-member-modal.d.ts +1 -1
- package/dist/pages/Setting/members/confirm-remove-members-dialog.d.ts +1 -1
- package/dist/pages/Setting/members/group-members-modal.d.ts +4 -1
- package/dist/pages/Setting/members/join-requests-modal.d.ts +1 -1
- package/dist/pages/Setting/members/member-selection-footer.d.ts +1 -1
- package/dist/pages/Setting/members/settings-modal.d.ts +2 -2
- package/dist/pages/Setting/search-panel.d.ts +1 -1
- package/dist/pages/conversation/conversation-header/conversation-header.d.ts +1 -1
- package/dist/pages/conversations/empty-state/conversation-empty-state.d.ts +1 -1
- package/dist/pages/conversations/index.d.ts +1 -1
- package/dist/pages/conversations/workspace-user-profile-modal.d.ts +1 -1
- package/dist/pages/sidebar/hooks/use-conversations.d.ts +2 -0
- package/dist/pages/sidebar/index.d.ts +1 -1
- package/dist/pages/sidebar/sidbar-conversation-list/sidbar-conversation-list.d.ts +3 -1
- package/dist/pages/sidebar/sidebar-filter/sidebar-filter.d.ts +1 -1
- package/dist/pages/sidebar/sidebar-header-infor/sidebar-header-infor.d.ts +1 -1
- package/dist/shared/components/banner-carousel.d.ts +1 -1
- package/dist/shared/components/bell-off-icon.d.ts +1 -0
- package/dist/shared/components/chat-dialog.d.ts +1 -1
- package/dist/shared/components/chat-unavailable.d.ts +1 -1
- package/dist/shared/components/confirm-dialog.d.ts +1 -1
- package/dist/shared/components/conversation-avatar.d.ts +1 -1
- package/dist/shared/components/date-range-filter-pill.d.ts +1 -1
- package/dist/shared/components/download-action.d.ts +1 -1
- package/dist/shared/components/filter-pill.d.ts +1 -1
- package/dist/shared/components/image-not-available.d.ts +1 -1
- package/dist/shared/components/image-with-fallback.d.ts +1 -1
- package/dist/shared/components/load-more-sentinel.d.ts +1 -1
- package/dist/shared/components/loading-state.d.ts +1 -1
- package/dist/shared/components/lottie-animation.d.ts +1 -1
- package/dist/shared/components/multi-select-filter-pill.d.ts +1 -1
- package/dist/shared/components/quote-icon.d.ts +1 -1
- package/dist/shared/components/search-empty-state.d.ts +1 -1
- package/dist/shared/components/selection-panel.d.ts +1 -1
- package/dist/shared/components/shared-icon.d.ts +1 -1
- package/dist/shared/components/unpin-icon.d.ts +1 -1
- package/dist/shared/components/user-approved-icon.d.ts +1 -1
- package/dist/shared/components/user-avatar.d.ts +1 -1
- package/dist/shared/components/verified-badge.d.ts +1 -1
- package/dist/shared/components/work-status-badge.d.ts +1 -1
- package/dist/store/conversationsStore.d.ts +2 -1
- package/dist/store/userSettingsStore.d.ts +12 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +2 -0
- package/package.json +4 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChatModuleProps } from './chat-module.types';
|
|
2
2
|
/** Mounts chat inside the host router without persisting authentication state. */
|
|
3
|
-
export declare function ChatModule(chatModuleProps: ChatModuleProps): import(
|
|
3
|
+
export declare function ChatModule(chatModuleProps: ChatModuleProps): import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Declares routes relative to the ERP route that mounts ChatModule. ConversationScreen
|
|
2
2
|
* itself renders the sidebar plus either the empty state or the active conversation, so
|
|
3
3
|
* the index route (no conversationId) reuses it directly. */
|
|
4
|
-
export declare function ChatRoutes(): import(
|
|
4
|
+
export declare function ChatRoutes(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface ChatRuntimeProviderProps {
|
|
|
5
5
|
rootClassName?: string;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function ChatRuntimeProvider({ runtimeProps, rootClassName, children, }: ChatRuntimeProviderProps): import(
|
|
8
|
+
export declare function ChatRuntimeProvider({ runtimeProps, rootClassName, children, }: ChatRuntimeProviderProps): import('react/jsx-runtime').JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChatWidgetProps } from './chat-widget.types';
|
|
2
|
-
export declare function ChatWidget(widgetProps: ChatWidgetProps): import(
|
|
2
|
+
export declare function ChatWidget(widgetProps: ChatWidgetProps): import('react/jsx-runtime').JSX.Element;
|
|
@@ -5,12 +5,12 @@ interface WidgetShellNavigationProviderProps {
|
|
|
5
5
|
onCloseConversation: (conversationId: string) => void;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function WidgetShellNavigationProvider({ openConversationIds, onOpenConversation, onCloseConversation, children, }: WidgetShellNavigationProviderProps): import(
|
|
8
|
+
export declare function WidgetShellNavigationProvider({ openConversationIds, onOpenConversation, onCloseConversation, children, }: WidgetShellNavigationProviderProps): import('react/jsx-runtime').JSX.Element;
|
|
9
9
|
interface WidgetWindowNavigationProviderProps {
|
|
10
10
|
conversationId: string;
|
|
11
11
|
onOpenConversation: (conversationId: string) => void;
|
|
12
12
|
onCloseConversation: (conversationId: string) => void;
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export declare function WidgetWindowNavigationProvider({ conversationId, onOpenConversation, onCloseConversation, children, }: WidgetWindowNavigationProviderProps): import(
|
|
15
|
+
export declare function WidgetWindowNavigationProvider({ conversationId, onOpenConversation, onCloseConversation, children, }: WidgetWindowNavigationProviderProps): import('react/jsx-runtime').JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -13,5 +13,5 @@ interface WidgetChatShellProps {
|
|
|
13
13
|
onOpenFullPage?: (conversationId: string | undefined) => void;
|
|
14
14
|
onRequestClose?: () => void;
|
|
15
15
|
}
|
|
16
|
-
export declare function WidgetChatShell({ isWindowVisible, isExpanded, openConversationIds, windowCapacity, focusedConversationId, composerFocusRequest, onToggleExpand, onOpenConversation, onCloseConversation, onFocusConversation, onOpenFullPage, onRequestClose, }: WidgetChatShellProps): import(
|
|
16
|
+
export declare function WidgetChatShell({ isWindowVisible, isExpanded, openConversationIds, windowCapacity, focusedConversationId, composerFocusRequest, onToggleExpand, onOpenConversation, onCloseConversation, onFocusConversation, onOpenFullPage, onRequestClose, }: WidgetChatShellProps): import('react/jsx-runtime').JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -9,5 +9,5 @@ interface ArchiveAttachmentPreviewProps {
|
|
|
9
9
|
}
|
|
10
10
|
/** Full-screen image preview for the archive media grid. Documents open in a new tab via
|
|
11
11
|
* an online document viewer from their file card instead. */
|
|
12
|
-
export declare function ArchiveAttachmentPreview({ state, onClose }: ArchiveAttachmentPreviewProps): import(
|
|
12
|
+
export declare function ArchiveAttachmentPreview({ state, onClose }: ArchiveAttachmentPreviewProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -11,5 +11,5 @@ interface ArchiveFileListProps {
|
|
|
11
11
|
onJumpToMessage?: (message: ChatMessage) => void;
|
|
12
12
|
}
|
|
13
13
|
/** "Files" tab body — attachment cards grouped by day, each with preview/download/share. */
|
|
14
|
-
export declare function ArchiveFileList({ groups, resolveSenderName, onShare, onJumpToMessage }: ArchiveFileListProps): import(
|
|
14
|
+
export declare function ArchiveFileList({ groups, resolveSenderName, onShare, onJumpToMessage }: ArchiveFileListProps): import('react/jsx-runtime').JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -10,5 +10,5 @@ interface ArchiveMediaGridProps {
|
|
|
10
10
|
onJumpToMessage?: (message: ChatMessage) => void;
|
|
11
11
|
}
|
|
12
12
|
/** "Ảnh/Video" tab body — thumbnails grouped by day, each with preview/download/share. */
|
|
13
|
-
export declare function ArchiveMediaGrid({ groups, resolveSenderName, onSelect, onShare, onJumpToMessage, }: ArchiveMediaGridProps): import(
|
|
13
|
+
export declare function ArchiveMediaGrid({ groups, resolveSenderName, onSelect, onShare, onJumpToMessage, }: ArchiveMediaGridProps): import('react/jsx-runtime').JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -15,5 +15,5 @@ interface ArchiveViewProps {
|
|
|
15
15
|
* default), filterable by day/sender/type. Renders inline in place of the settings panel
|
|
16
16
|
* body (not an overlay modal).
|
|
17
17
|
*/
|
|
18
|
-
export declare function ArchiveView({ conversationId, initialTab, members, onBack, onForwardMessage, onJumpToMessage, }: ArchiveViewProps): import(
|
|
18
|
+
export declare function ArchiveView({ conversationId, initialTab, members, onBack, onForwardMessage, onJumpToMessage, }: ArchiveViewProps): import('react/jsx-runtime').JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -7,5 +7,5 @@ interface ConversationBoardModalProps {
|
|
|
7
7
|
onJumpToMessage?: (message: ChatMessage) => void;
|
|
8
8
|
resolveUserAvatar?: (userId?: string) => string | null;
|
|
9
9
|
}
|
|
10
|
-
export declare function ConversationBoardModal({ conversationId, currentUserId, isOwner, onClose, onJumpToMessage, resolveUserAvatar, }: ConversationBoardModalProps): import(
|
|
10
|
+
export declare function ConversationBoardModal({ conversationId, currentUserId, isOwner, onClose, onJumpToMessage, resolveUserAvatar, }: ConversationBoardModalProps): import('react/jsx-runtime').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -16,5 +16,5 @@ interface ConversationSettingsPanelProps {
|
|
|
16
16
|
onJumpToMessage?: (message: ChatMessage) => void;
|
|
17
17
|
}
|
|
18
18
|
/** Slide-over panel exposing conversation settings and membership management. */
|
|
19
|
-
export declare function ConversationSettingsPanel({ conversation, conversationId, currentUserId, onClose, onConversationUpdated, onDeleteSuccess, onLeaveSuccess, onMembersChanged, onStartChat, onForwardMessage, onJumpToMessage, }: ConversationSettingsPanelProps): import(
|
|
19
|
+
export declare function ConversationSettingsPanel({ conversation, conversationId, currentUserId, onClose, onConversationUpdated, onDeleteSuccess, onLeaveSuccess, onMembersChanged, onStartChat, onForwardMessage, onJumpToMessage, }: ConversationSettingsPanelProps): import('react/jsx-runtime').JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -9,5 +9,5 @@ interface AddMemberModalProps {
|
|
|
9
9
|
}
|
|
10
10
|
/** "Thêm thành viên" — branch/department filters + search + checkbox multi-select grouped
|
|
11
11
|
* alphabetically, each row showing the avatar, employee code, and job title. */
|
|
12
|
-
export declare function AddMemberModal({ currentUserId, memberUserIds, onClose, onConfirm, onOpenProfile, }: AddMemberModalProps): import(
|
|
12
|
+
export declare function AddMemberModal({ currentUserId, memberUserIds, onClose, onConfirm, onOpenProfile, }: AddMemberModalProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -9,5 +9,5 @@ interface ConfirmRemoveMembersDialogProps {
|
|
|
9
9
|
/** Confirmation step in front of every member removal: the action is irreversible for the
|
|
10
10
|
* person removed (they lose the conversation), and the delete controls sit right next to
|
|
11
11
|
* the rows themselves, so a mis-click is easy. */
|
|
12
|
-
export declare function ConfirmRemoveMembersDialog({ names, isBusy, onCancel, onConfirm, }: ConfirmRemoveMembersDialogProps): import(
|
|
12
|
+
export declare function ConfirmRemoveMembersDialog({ names, isBusy, onCancel, onConfirm, }: ConfirmRemoveMembersDialogProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -9,6 +9,9 @@ interface GroupMembersModalProps {
|
|
|
9
9
|
onOpenProfile?: (userId: string) => void;
|
|
10
10
|
/** Who is looking — they never get a tick next to their own row. */
|
|
11
11
|
currentUserId?: string | null;
|
|
12
|
+
/** Off where no socket is connected (the dashboard): every dot would read "offline" and
|
|
13
|
+
* say something untrue, so the row shows no presence at all instead. */
|
|
14
|
+
showPresence?: boolean;
|
|
12
15
|
/** Whether this viewer may remove members at all (group owner, group not verified). */
|
|
13
16
|
canRemove?: boolean;
|
|
14
17
|
isRemoving?: boolean;
|
|
@@ -19,5 +22,5 @@ interface GroupMembersModalProps {
|
|
|
19
22
|
/** Read-only member list opened from the group header's member count. Reads straight from
|
|
20
23
|
* the conversation's own `members` (kept live in the shared conversationsStore) instead of
|
|
21
24
|
* its own fetch — no separate loading state, and no staleness while it's open. */
|
|
22
|
-
export declare function GroupMembersModal({ members, memberCount, onClose, onOpenAddModal, onOpenProfile, currentUserId, canRemove, isRemoving, onDeleteMembers, }: GroupMembersModalProps): import(
|
|
25
|
+
export declare function GroupMembersModal({ members, memberCount, onClose, onOpenAddModal, onOpenProfile, currentUserId, showPresence, canRemove, isRemoving, onDeleteMembers, }: GroupMembersModalProps): import('react/jsx-runtime').JSX.Element;
|
|
23
26
|
export {};
|
|
@@ -6,5 +6,5 @@ interface JoinRequestsModalProps {
|
|
|
6
6
|
onResolved?: () => void;
|
|
7
7
|
canManage?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function JoinRequestsModal({ conversationId, onClose, filterUserIds, onOpenProfile, onResolved, canManage, }: JoinRequestsModalProps): import(
|
|
9
|
+
export declare function JoinRequestsModal({ conversationId, onClose, filterUserIds, onOpenProfile, onResolved, canManage, }: JoinRequestsModalProps): import('react/jsx-runtime').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -8,5 +8,5 @@ interface MemberSelectionFooterProps {
|
|
|
8
8
|
}
|
|
9
9
|
/** "Chọn tất cả" + selected count + the destructive action, shared by both member lists so the
|
|
10
10
|
* bulk-remove bar looks and behaves the same wherever it appears. */
|
|
11
|
-
export declare function MemberSelectionFooter({ selectedCount, selectableCount, isAllSelected, isBusy, onToggleAll, onDelete, }: MemberSelectionFooterProps): import(
|
|
11
|
+
export declare function MemberSelectionFooter({ selectedCount, selectableCount, isAllSelected, isBusy, onToggleAll, onDelete, }: MemberSelectionFooterProps): import('react/jsx-runtime').JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -21,7 +21,7 @@ interface UserIdentityProps {
|
|
|
21
21
|
}
|
|
22
22
|
/** Avatar (real photo when available, else initials) + name (+ optional subtitle below,
|
|
23
23
|
* e.g. "Trưởng nhóm" or a job title) shown in every member row. */
|
|
24
|
-
export declare function UserIdentity({ user, subtitle, userId: userIdProp, onOpenProfile, isOnline, }: UserIdentityProps): import(
|
|
24
|
+
export declare function UserIdentity({ user, subtitle, userId: userIdProp, onOpenProfile, isOnline, }: UserIdentityProps): import('react/jsx-runtime').JSX.Element;
|
|
25
25
|
interface RenameGroupDialogProps {
|
|
26
26
|
initialTitle: string;
|
|
27
27
|
isSaving: boolean;
|
|
@@ -29,5 +29,5 @@ interface RenameGroupDialogProps {
|
|
|
29
29
|
onRename: (title: string) => Promise<boolean>;
|
|
30
30
|
}
|
|
31
31
|
/** Shared "Đổi tên nhóm" dialog used from both the settings panel and the chat-header pencil. */
|
|
32
|
-
export declare function RenameGroupDialog({ initialTitle, isSaving, onClose, onRename }: RenameGroupDialogProps): import(
|
|
32
|
+
export declare function RenameGroupDialog({ initialTitle, isSaving, onClose, onRename }: RenameGroupDialogProps): import('react/jsx-runtime').JSX.Element;
|
|
33
33
|
export {};
|
|
@@ -9,5 +9,5 @@ interface SearchPanelProps {
|
|
|
9
9
|
/** Slide-over panel searching a conversation's messages and documents, with "Người gửi"/
|
|
10
10
|
* "Ngày gửi" filters and matched-term highlighting (from the backend's `ts_headline`
|
|
11
11
|
* snippet) in each result row. */
|
|
12
|
-
export declare function SearchPanel({ conversationId, members, initialQuery, onClose, onSelectMessage, }: SearchPanelProps): import(
|
|
12
|
+
export declare function SearchPanel({ conversationId, members, initialQuery, onClose, onSelectMessage, }: SearchPanelProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -31,5 +31,5 @@ interface ConversationHeaderProps {
|
|
|
31
31
|
onCopyInviteLink?: () => void;
|
|
32
32
|
}
|
|
33
33
|
/** Conversation title/status row plus the collapsible in-header search and toggle buttons. */
|
|
34
|
-
export declare function ConversationHeader({ title, avatarUrl, isGroup, isVerified, groupMemberCount, members, currentUserId, isOtherMemberOnline, onOpenSearch, onOpenMessageList, isSettingsOpen, onToggleSettings, onOpenMembers, canEditTitle, onEditTitle, onOpenAvatarProfile, onOpenFullPage, onCloseConversation, pendingApprovalCount, onOpenPendingApprovals, onCopyInviteLink, }: ConversationHeaderProps): import(
|
|
34
|
+
export declare function ConversationHeader({ title, avatarUrl, isGroup, isVerified, groupMemberCount, members, currentUserId, isOtherMemberOnline, onOpenSearch, onOpenMessageList, isSettingsOpen, onToggleSettings, onOpenMembers, canEditTitle, onEditTitle, onOpenAvatarProfile, onOpenFullPage, onCloseConversation, pendingApprovalCount, onOpenPendingApprovals, onCopyInviteLink, }: ConversationHeaderProps): import('react/jsx-runtime').JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Welcome/placeholder screen shown in the conversation pane before any conversation
|
|
2
2
|
* has been picked from the sidebar. */
|
|
3
|
-
export declare function ConversationEmptyState(): import(
|
|
3
|
+
export declare function ConversationEmptyState(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Full-viewport chat workspace: sidebar, the active conversation, and the settings/search
|
|
2
2
|
* column. Conversation loading and the dialogs that outlive a conversation come from
|
|
3
3
|
* useConversationWorkspace, which the anchored widget screen shares. */
|
|
4
|
-
export declare function ConversationScreen(): import(
|
|
4
|
+
export declare function ConversationScreen(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -8,5 +8,5 @@ interface WorkspaceUserProfileModalProps {
|
|
|
8
8
|
}
|
|
9
9
|
/** The account-info dialog both chat screens open from an avatar. Rendered from the screen
|
|
10
10
|
* rather than the message list because it outlives whichever conversation is on screen. */
|
|
11
|
-
export declare function WorkspaceUserProfileModal({ profileUserId, conversation, currentUserId, onClose, onStartChat, }: WorkspaceUserProfileModalProps): import(
|
|
11
|
+
export declare function WorkspaceUserProfileModal({ profileUserId, conversation, currentUserId, onClose, onStartChat, }: WorkspaceUserProfileModalProps): import('react/jsx-runtime').JSX.Element | null;
|
|
12
12
|
export {};
|
|
@@ -6,6 +6,8 @@ interface UseConversationsResult {
|
|
|
6
6
|
togglePin: (conversationId: string, pinned: boolean) => Promise<void>;
|
|
7
7
|
clearConversationForUser: (conversationId: string) => Promise<boolean>;
|
|
8
8
|
reload: () => Promise<void>;
|
|
9
|
+
pendingNotificationIds: ReadonlySet<string>;
|
|
10
|
+
toggleErpNotification: (conversationId: string, enabled: boolean) => Promise<void>;
|
|
9
11
|
}
|
|
10
12
|
export declare function useConversations(): UseConversationsResult;
|
|
11
13
|
export {};
|
|
@@ -9,5 +9,5 @@ interface ConversationSidebarProps {
|
|
|
9
9
|
/** Left rail listing conversations with search, unread filter, and creation entry. Owns the
|
|
10
10
|
* search/filter state shared by its filter row and list, and the conversation feed itself —
|
|
11
11
|
* its 3 sub-parts (header-infor, filter, conversation-list) are otherwise independent. */
|
|
12
|
-
export declare function ConversationSidebar({ headerAction, footerAction, isCompact, disableTooltips, }?: ConversationSidebarProps): import(
|
|
12
|
+
export declare function ConversationSidebar({ headerAction, footerAction, isCompact, disableTooltips, }?: ConversationSidebarProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -11,7 +11,9 @@ interface SidbarConversationListProps {
|
|
|
11
11
|
onSelectConversation: (conversation: Conversation) => void;
|
|
12
12
|
onTogglePin: (conversationId: string, nextPinned: boolean) => void;
|
|
13
13
|
onClearConversation: (conversationId: string) => Promise<boolean>;
|
|
14
|
+
pendingNotificationIds: ReadonlySet<string>;
|
|
15
|
+
onToggleErpNotification: (conversationId: string, enabled: boolean) => void;
|
|
14
16
|
}
|
|
15
17
|
/** The scrollable list of conversation rows — already-filtered input in, Link rows out. */
|
|
16
|
-
export declare function SidbarConversationList({ conversations, isLoading, error, currentUserId, activeConversationId, openConversationIds, isCompact, buildConversationPath, onSelectConversation, onTogglePin, onClearConversation, }: SidbarConversationListProps): import(
|
|
18
|
+
export declare function SidbarConversationList({ conversations, isLoading, error, currentUserId, activeConversationId, openConversationIds, isCompact, buildConversationPath, onSelectConversation, onTogglePin, onClearConversation, pendingNotificationIds, onToggleErpNotification, }: SidbarConversationListProps): import('react/jsx-runtime').JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -7,5 +7,5 @@ interface SidebarFilterProps {
|
|
|
7
7
|
onOpenCreate: () => void;
|
|
8
8
|
disableTooltip?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function SidebarFilter({ searchTerm, onSearchTermChange, activeFilter, onActiveFilterChange, onOpenCreate, disableTooltip, }: SidebarFilterProps): import(
|
|
10
|
+
export declare function SidebarFilter({ searchTerm, onSearchTermChange, activeFilter, onActiveFilterChange, onOpenCreate, disableTooltip, }: SidebarFilterProps): import('react/jsx-runtime').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -6,5 +6,5 @@ interface SidebarHeaderInforProps {
|
|
|
6
6
|
* the entry point into the user's own profile modal. Reads the authenticated user
|
|
7
7
|
* straight from the auth store; the optional trailing slot carries a host control (the
|
|
8
8
|
* widget's close button) that has to sit on this row. */
|
|
9
|
-
export declare function SidebarHeaderInfor({ trailingAction }?: SidebarHeaderInforProps): import(
|
|
9
|
+
export declare function SidebarHeaderInfor({ trailingAction }?: SidebarHeaderInforProps): import('react/jsx-runtime').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -5,5 +5,5 @@ interface BannerCarouselProps {
|
|
|
5
5
|
/** Zalo-style auto-sliding banner carousel — fixed interval, prev/next arrows, and dot
|
|
6
6
|
* indicators (click a dot to jump directly) — used on the "no conversation selected"
|
|
7
7
|
* default screen. */
|
|
8
|
-
export declare function BannerCarousel({ images, className }: BannerCarouselProps): import(
|
|
8
|
+
export declare function BannerCarousel({ images, className }: BannerCarouselProps): import('react/jsx-runtime').JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BellOffIcon(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,5 +11,5 @@ interface ChatDialogProps {
|
|
|
11
11
|
inline?: boolean;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function ChatDialog({ open, title, children, onClose, footer, width, inline, className, }: ChatDialogProps): import(
|
|
14
|
+
export declare function ChatDialog({ open, title, children, onClose, footer, width, inline, className, }: ChatDialogProps): import('react/jsx-runtime').JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -2,5 +2,5 @@ interface ChatUnavailableProps {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
description?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function ChatUnavailable({ title, description, }: ChatUnavailableProps): import(
|
|
5
|
+
export declare function ChatUnavailable({ title, description, }: ChatUnavailableProps): import('react/jsx-runtime').JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -11,5 +11,5 @@ interface ConfirmDialogProps {
|
|
|
11
11
|
}
|
|
12
12
|
/** The one destructive-confirm shape the whole app uses: deleting a conversation, unpinning,
|
|
13
13
|
* recalling a message. Built on SettingsModal so backdrop/Esc behave like every other modal. */
|
|
14
|
-
export declare function ConfirmDialog({ title, children, confirmLabel, busyLabel, isBusy, onCancel, onConfirm, }: ConfirmDialogProps): import(
|
|
14
|
+
export declare function ConfirmDialog({ title, children, confirmLabel, busyLabel, isBusy, onCancel, onConfirm, }: ConfirmDialogProps): import('react/jsx-runtime').JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -12,5 +12,5 @@ interface ConversationAvatarProps {
|
|
|
12
12
|
currentUserId?: string | null;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function ConversationAvatar({ avatarUrl, name, isGroup, members, memberCount, currentUserId, className, }: ConversationAvatarProps): import(
|
|
15
|
+
export declare function ConversationAvatar({ avatarUrl, name, isGroup, members, memberCount, currentUserId, className, }: ConversationAvatarProps): import('react/jsx-runtime').JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -13,5 +13,5 @@ interface DateRangeFilterPillProps {
|
|
|
13
13
|
/** "Ngày gửi ⌄" filter pill: two independent single-month date pickers ("Từ ngày" /
|
|
14
14
|
* "Đến ngày", neither ever a future date) — not antd's combined two-month RangePicker.
|
|
15
15
|
* Confirmed with Hủy/Xác nhận. */
|
|
16
|
-
export declare function DateRangeFilterPill({ value, onChange }: DateRangeFilterPillProps): import(
|
|
16
|
+
export declare function DateRangeFilterPill({ value, onChange }: DateRangeFilterPillProps): import('react/jsx-runtime').JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -7,5 +7,5 @@ interface DownloadActionProps {
|
|
|
7
7
|
}
|
|
8
8
|
/** Shared "Tải xuống" action — same download button/behavior everywhere a file or image
|
|
9
9
|
* can be downloaded (chat bubble, kho lưu trữ, settings media preview). */
|
|
10
|
-
export declare function DownloadAction({ url, name, className, onClick, }: DownloadActionProps): import(
|
|
10
|
+
export declare function DownloadAction({ url, name, className, onClick, }: DownloadActionProps): import('react/jsx-runtime').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -12,4 +12,4 @@ export interface FilterPillProps<T extends string> {
|
|
|
12
12
|
/** Small dropdown pill ("Loại ⌄", "Người gửi ⌄", "Ngày gửi ⌄", ...) — shows `label` while
|
|
13
13
|
* the first (default) option is selected, otherwise turns into an active chip showing the
|
|
14
14
|
* picked option with a clear ("x") button in place of the chevron. */
|
|
15
|
-
export declare function FilterPill<T extends string>({ label, value, options, onChange, disabled, }: FilterPillProps<T>): import(
|
|
15
|
+
export declare function FilterPill<T extends string>({ label, value, options, onChange, disabled, }: FilterPillProps<T>): import('react/jsx-runtime').JSX.Element;
|
|
@@ -8,5 +8,5 @@ interface ImageNotAvailableProps {
|
|
|
8
8
|
* icon + "Không tìm thấy ảnh" instead of the browser's bare broken-image glyph. Sized to
|
|
9
9
|
* fill whatever box it's given (see .image-not-available), so it drops into the same
|
|
10
10
|
* fixed-size frame the real `<img>` would have used. */
|
|
11
|
-
export declare function ImageNotAvailable({ className, compact }: ImageNotAvailableProps): import(
|
|
11
|
+
export declare function ImageNotAvailable({ className, compact }: ImageNotAvailableProps): import('react/jsx-runtime').JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -9,5 +9,5 @@ interface ImageWithFallbackProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
9
9
|
}
|
|
10
10
|
/** Drop-in `<img>` replacement that swaps to the ImageNotAvailable placeholder on error
|
|
11
11
|
* (a 404'd attachment, most often) instead of the browser's bare broken-image glyph. */
|
|
12
|
-
export declare function ImageWithFallback({ fallbackClassName, fallbackCompact, onError, ...imgProps }: ImageWithFallbackProps): import(
|
|
12
|
+
export declare function ImageWithFallback({ fallbackClassName, fallbackCompact, onError, ...imgProps }: ImageWithFallbackProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -11,5 +11,5 @@ interface LoadMoreSentinelProps {
|
|
|
11
11
|
* list), it also fires immediately when a fresh page doesn't fill the list — the case a
|
|
12
12
|
* plain onScroll handler misses, since there is no scrollbar to produce scroll events.
|
|
13
13
|
*/
|
|
14
|
-
export declare function LoadMoreSentinel({ enabled, isLoading, onLoadMore }: LoadMoreSentinelProps): import(
|
|
14
|
+
export declare function LoadMoreSentinel({ enabled, isLoading, onLoadMore }: LoadMoreSentinelProps): import('react/jsx-runtime').JSX.Element | null;
|
|
15
15
|
export {};
|
|
@@ -9,5 +9,5 @@ interface LoadingStateProps {
|
|
|
9
9
|
/** The app's one loading indicator: the shared loading animation, centred in whatever
|
|
10
10
|
* slot it's dropped into. Replaces the plain "Đang tải..." strings that used to stand in
|
|
11
11
|
* for it across the panels, lists and modals. */
|
|
12
|
-
export declare function LoadingState({ size, label, className }: LoadingStateProps): import(
|
|
12
|
+
export declare function LoadingState({ size, label, className }: LoadingStateProps): import('react/jsx-runtime').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -2,5 +2,5 @@ interface LottieAnimationProps {
|
|
|
2
2
|
src: string;
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function LottieAnimation({ src, className }: LottieAnimationProps): import(
|
|
5
|
+
export declare function LottieAnimation({ src, className }: LottieAnimationProps): import('react/jsx-runtime').JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -12,5 +12,5 @@ interface MultiSelectFilterPillProps {
|
|
|
12
12
|
/** Multi-select sibling of FilterPill — same trigger/menu shell and CSS classes, but
|
|
13
13
|
* toggles values in and out of the array instead of picking exactly one, and the menu
|
|
14
14
|
* stays open across clicks so several options can be checked in one pass. */
|
|
15
|
-
export declare function MultiSelectFilterPill({ label, value, options, onChange, disabled, }: MultiSelectFilterPillProps): import(
|
|
15
|
+
export declare function MultiSelectFilterPill({ label, value, options, onChange, disabled, }: MultiSelectFilterPillProps): import('react/jsx-runtime').JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* everywhere the reply action appears. Colored like an antd icon (currentColor) and sized
|
|
3
3
|
* relative to it (0.8em — the source artwork reads visually heavier/bigger than antd's
|
|
4
4
|
* icons at a literal 1em) so it drops into the same buttons without CSS changes. */
|
|
5
|
-
export declare function QuoteIcon(): import(
|
|
5
|
+
export declare function QuoteIcon(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -4,5 +4,5 @@ interface SearchEmptyStateProps {
|
|
|
4
4
|
}
|
|
5
5
|
/** Illustration + message shown whenever a search or filter yields zero results — shared
|
|
6
6
|
* across the message search panel, conversation list, member/user pickers, and archive. */
|
|
7
|
-
export declare function SearchEmptyState({ message, className }: SearchEmptyStateProps): import(
|
|
7
|
+
export declare function SearchEmptyState({ message, className }: SearchEmptyStateProps): import('react/jsx-runtime').JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -16,5 +16,5 @@ interface SelectionSplitProps {
|
|
|
16
16
|
onRemove: (id: string) => void;
|
|
17
17
|
onClear: () => void;
|
|
18
18
|
}
|
|
19
|
-
export declare function SelectionSplit({ children, items, max, currentUserId, listClassName, onRemove, onClear, }: SelectionSplitProps): import(
|
|
19
|
+
export declare function SelectionSplit({ children, items, max, currentUserId, listClassName, onRemove, onClear, }: SelectionSplitProps): import('react/jsx-runtime').JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* everywhere the forward/share action appears. Colored like an antd icon (currentColor) and
|
|
3
3
|
* sized relative to it (0.8em — the source artwork reads visually heavier/bigger than
|
|
4
4
|
* antd's icons at a literal 1em) so it drops into the same buttons without CSS changes. */
|
|
5
|
-
export declare function SharedIcon(): import(
|
|
5
|
+
export declare function SharedIcon(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UnpinIcon(): import(
|
|
1
|
+
export declare function UnpinIcon(): import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface UserApprovedIconProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function UserApprovedIcon({ className }: UserApprovedIconProps): import(
|
|
4
|
+
export declare function UserApprovedIcon({ className }: UserApprovedIconProps): import('react/jsx-runtime').JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -8,5 +8,5 @@ interface UserAvatarProps {
|
|
|
8
8
|
/** Circular avatar: shows the user's photo when available, otherwise their initials —
|
|
9
9
|
* also the fallback when the photo URL 404s (e.g. a deleted file) instead of the
|
|
10
10
|
* browser's broken-image icon. */
|
|
11
|
-
export declare function UserAvatar({ avatarUrl, name, className }: UserAvatarProps): import(
|
|
11
|
+
export declare function UserAvatar({ avatarUrl, name, className }: UserAvatarProps): import('react/jsx-runtime').JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -5,5 +5,5 @@ interface WorkStatusBadgeProps {
|
|
|
5
5
|
}
|
|
6
6
|
/** The ERP work-status pill ("NV chính thức", "Nghỉ việc", ...). Colors come from
|
|
7
7
|
* getWorkStatusColor, so every place showing a status stays in sync. */
|
|
8
|
-
export declare function WorkStatusBadge({ status, className }: WorkStatusBadgeProps): import(
|
|
8
|
+
export declare function WorkStatusBadge({ status, className }: WorkStatusBadgeProps): import('react/jsx-runtime').JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Conversation } from '../utils/chat';
|
|
1
|
+
import { Conversation, ConversationMember } from '../utils/chat';
|
|
2
2
|
interface ConversationsState {
|
|
3
3
|
conversations: Conversation[];
|
|
4
4
|
isLoading: boolean;
|
|
@@ -33,6 +33,7 @@ interface ConversationsState {
|
|
|
33
33
|
applyConversationUpdated: (payload: unknown) => void;
|
|
34
34
|
applyPinnedAt: (conversationId: string, userId: string, pinnedAt: string | null) => void;
|
|
35
35
|
applyConversationPinned: (payload: unknown) => void;
|
|
36
|
+
patchConversationMember: (conversationId: string, userId: string, update: Partial<ConversationMember>) => void;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Shared conversation-summary list — the single source sidebar rows AND the page-level
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UpdateUserSettingsInput, UserSettings } from '../api/client';
|
|
2
|
+
interface UserSettingsState {
|
|
3
|
+
userId: string | null;
|
|
4
|
+
settings: UserSettings | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isSaving: boolean;
|
|
7
|
+
error: string;
|
|
8
|
+
load: (userId: string) => Promise<void>;
|
|
9
|
+
update: (input: UpdateUserSettingsInput) => Promise<boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare const useUserSettingsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<UserSettingsState>>;
|
|
12
|
+
export {};
|