@medipha/chat 1.0.47 → 1.0.49
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/forward/use-forward-message.d.ts +2 -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/invite-join/invite-link.d.ts +0 -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 +41459 -10960
- package/dist/module/chat-module.d.ts +1 -1
- package/dist/module/chat-module.types.d.ts +0 -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/forwardStore.d.ts +2 -1
- package/dist/store/userSettingsStore.d.ts +12 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +3 -0
- package/package.json +4 -2
package/dist/utils/chat.d.ts
CHANGED
|
@@ -200,6 +200,7 @@ export interface ConversationMember {
|
|
|
200
200
|
isOnline?: boolean;
|
|
201
201
|
/** Set when this member has pinned the conversation to the top of their own sidebar. */
|
|
202
202
|
pinnedAt?: string | null;
|
|
203
|
+
erpNotificationEnabled?: boolean;
|
|
203
204
|
[key: string]: unknown;
|
|
204
205
|
}
|
|
205
206
|
export interface ConversationLastMessage {
|
|
@@ -242,6 +243,7 @@ export interface GroupSettings {
|
|
|
242
243
|
export interface GroupInviteLink {
|
|
243
244
|
enabled: boolean;
|
|
244
245
|
code: string | null;
|
|
246
|
+
link: string | null;
|
|
245
247
|
}
|
|
246
248
|
export interface GroupInvitePreview {
|
|
247
249
|
conversationId: string;
|
|
@@ -298,6 +300,7 @@ export declare const readUsers: (response: unknown) => unknown[];
|
|
|
298
300
|
export declare const readConversations: (response: unknown) => unknown[];
|
|
299
301
|
export declare const isSameId: (left: unknown, right: unknown) => boolean;
|
|
300
302
|
export declare const isGroupConversation: (conversation: unknown) => boolean;
|
|
303
|
+
export declare const getConversationKindLabel: (isGroup: boolean) => string;
|
|
301
304
|
export declare const getConversationTitle: (conversation: unknown, currentUserId?: string | null) => string;
|
|
302
305
|
/** Avatar photo for a conversation row: the conversation's own photo, or for direct chats
|
|
303
306
|
* the other participant's photo, or null to fall back to initials. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipha/chat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Embeddable Medic-ERP chat module for React applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -50,14 +50,16 @@
|
|
|
50
50
|
"@tiptap/react": "^3.29.2",
|
|
51
51
|
"@tiptap/starter-kit": "^3.29.2",
|
|
52
52
|
"@tiptap/suggestion": "^3.29.2",
|
|
53
|
+
"apexcharts": "^7.5.1",
|
|
53
54
|
"dayjs": "^1.11.21",
|
|
54
55
|
"emoji-mart": "^5.6.0",
|
|
55
56
|
"rc-picker": "^2.6.11",
|
|
57
|
+
"react-apexcharts": "^2.1.1",
|
|
56
58
|
"react-virtuoso": "^4.18.10",
|
|
57
59
|
"uuid": "^11.0.5",
|
|
58
60
|
"yet-another-react-lightbox": "^3.32.2",
|
|
59
61
|
"zustand": "^5.0.8",
|
|
60
|
-
"@medipha/chat-core": "1.0.
|
|
62
|
+
"@medipha/chat-core": "1.0.20"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
63
65
|
"@eslint/js": "^10.0.1",
|