@medipha/chat 1.0.48 → 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.
Files changed (107) hide show
  1. package/dist/dashboard/api/dashboard-api.d.ts +2 -0
  2. package/dist/dashboard/api/dashboard-mock.d.ts +2 -0
  3. package/dist/dashboard/dashboard-module.d.ts +2 -0
  4. package/dist/dashboard/dashboard-module.types.d.ts +10 -0
  5. package/dist/dashboard/dashboard.types.d.ts +109 -0
  6. package/dist/dashboard/filters/dashboard-filter-bar.d.ts +14 -0
  7. package/dist/dashboard/filters/dashboard-user-options.d.ts +13 -0
  8. package/dist/dashboard/filters/date-range-presets.d.ts +17 -0
  9. package/dist/dashboard/sections/conversation-creation-trend-card.d.ts +6 -0
  10. package/dist/dashboard/sections/conversation-list-tab.d.ts +8 -0
  11. package/dist/dashboard/sections/conversation-members-dialog.d.ts +10 -0
  12. package/dist/dashboard/sections/conversation-overview-cards.d.ts +6 -0
  13. package/dist/dashboard/sections/dashboard-tabs.d.ts +9 -0
  14. package/dist/dashboard/sections/group-avatar.d.ts +15 -0
  15. package/dist/dashboard/sections/section-card.d.ts +15 -0
  16. package/dist/dashboard/sections/top-conversations-card.d.ts +6 -0
  17. package/dist/dashboard/sections/top-users-tab.d.ts +8 -0
  18. package/dist/dashboard/sections/user-detail-modal.d.ts +12 -0
  19. package/dist/dashboard/sections/user-group-breakdown-table.d.ts +11 -0
  20. package/dist/dashboard/use-dashboard-section.d.ts +12 -0
  21. package/dist/features/composer/attachments/attachment-buttons.d.ts +1 -1
  22. package/dist/features/composer/editor/mention-suggestion-list.d.ts +1 -1
  23. package/dist/features/composer/emoji/emoji-picker-button.d.ts +1 -1
  24. package/dist/features/composer/format-bar/format-bar.d.ts +1 -1
  25. package/dist/features/composer/more-menu/more-menu.d.ts +1 -1
  26. package/dist/features/composer/reply/composer-reply-banner.d.ts +1 -1
  27. package/dist/features/composer/toolbar/composer-toolbar.d.ts +1 -1
  28. package/dist/features/create-conversation/tabs/create-group-tab.d.ts +1 -1
  29. package/dist/features/create-conversation/tabs/direct-chat-tab.d.ts +1 -1
  30. package/dist/features/files/file-attachment.d.ts +1 -1
  31. package/dist/features/forward/forward-dialog.d.ts +1 -1
  32. package/dist/features/invite-join/group-invite-join-modal.d.ts +1 -1
  33. package/dist/features/invite-join/group-invite-join-overlay.d.ts +1 -1
  34. package/dist/features/message-list/bubble/message-actions/message-actions-menu.d.ts +1 -1
  35. package/dist/features/message-list/bubble/message-bubble.d.ts +1 -1
  36. package/dist/features/message-list/bubble/message-content-body.d.ts +1 -1
  37. package/dist/features/message-list/bubble/message-reactions.d.ts +1 -1
  38. package/dist/features/message-list/bubble/reaction-icon.d.ts +1 -1
  39. package/dist/features/message-list/bubble/rich-message-content.d.ts +1 -1
  40. package/dist/features/message-list/overlays/message-detail/message-detail-dialog.d.ts +1 -1
  41. package/dist/features/message-list/overlays/message-details/message-details-modal.d.ts +1 -1
  42. package/dist/features/message-list/overlays/reaction/reaction-modal.d.ts +1 -1
  43. package/dist/features/message-list/overlays/system-members/system-members-modal.d.ts +1 -1
  44. package/dist/features/notification-settings/notification-settings-modal.d.ts +6 -0
  45. package/dist/features/pinned-messages/pinned-messages-bar.d.ts +1 -1
  46. package/dist/features/typing/typing-indicator.d.ts +1 -1
  47. package/dist/index.cjs +2004 -47
  48. package/dist/index.d.ts +4 -0
  49. package/dist/index.js +40683 -10216
  50. package/dist/module/chat-module.d.ts +1 -1
  51. package/dist/module/chat-routes.d.ts +1 -1
  52. package/dist/module/chat-runtime-provider.d.ts +1 -1
  53. package/dist/module/navigation/router-chat-navigation.d.ts +1 -1
  54. package/dist/module/widget/chat-widget.d.ts +1 -1
  55. package/dist/module/widget/widget-chat-navigation.d.ts +2 -2
  56. package/dist/module/widget/widget-chat-shell.d.ts +1 -1
  57. package/dist/pages/Setting/archive/archive-attachment-preview.d.ts +1 -1
  58. package/dist/pages/Setting/archive/archive-file-list.d.ts +1 -1
  59. package/dist/pages/Setting/archive/archive-media-grid.d.ts +1 -1
  60. package/dist/pages/Setting/archive/archive-view.d.ts +1 -1
  61. package/dist/pages/Setting/board/conversation-board-modal.d.ts +1 -1
  62. package/dist/pages/Setting/conversation-settings-panel.d.ts +1 -1
  63. package/dist/pages/Setting/members/add-member-modal.d.ts +1 -1
  64. package/dist/pages/Setting/members/confirm-remove-members-dialog.d.ts +1 -1
  65. package/dist/pages/Setting/members/group-members-modal.d.ts +4 -1
  66. package/dist/pages/Setting/members/join-requests-modal.d.ts +1 -1
  67. package/dist/pages/Setting/members/member-selection-footer.d.ts +1 -1
  68. package/dist/pages/Setting/members/settings-modal.d.ts +2 -2
  69. package/dist/pages/Setting/search-panel.d.ts +1 -1
  70. package/dist/pages/conversation/conversation-header/conversation-header.d.ts +1 -1
  71. package/dist/pages/conversations/empty-state/conversation-empty-state.d.ts +1 -1
  72. package/dist/pages/conversations/index.d.ts +1 -1
  73. package/dist/pages/conversations/workspace-user-profile-modal.d.ts +1 -1
  74. package/dist/pages/sidebar/hooks/use-conversations.d.ts +2 -0
  75. package/dist/pages/sidebar/index.d.ts +1 -1
  76. package/dist/pages/sidebar/sidbar-conversation-list/sidbar-conversation-list.d.ts +3 -1
  77. package/dist/pages/sidebar/sidebar-filter/sidebar-filter.d.ts +1 -1
  78. package/dist/pages/sidebar/sidebar-header-infor/sidebar-header-infor.d.ts +1 -1
  79. package/dist/shared/components/banner-carousel.d.ts +1 -1
  80. package/dist/shared/components/bell-off-icon.d.ts +1 -0
  81. package/dist/shared/components/chat-dialog.d.ts +1 -1
  82. package/dist/shared/components/chat-unavailable.d.ts +1 -1
  83. package/dist/shared/components/confirm-dialog.d.ts +1 -1
  84. package/dist/shared/components/conversation-avatar.d.ts +1 -1
  85. package/dist/shared/components/date-range-filter-pill.d.ts +1 -1
  86. package/dist/shared/components/download-action.d.ts +1 -1
  87. package/dist/shared/components/filter-pill.d.ts +1 -1
  88. package/dist/shared/components/image-not-available.d.ts +1 -1
  89. package/dist/shared/components/image-with-fallback.d.ts +1 -1
  90. package/dist/shared/components/load-more-sentinel.d.ts +1 -1
  91. package/dist/shared/components/loading-state.d.ts +1 -1
  92. package/dist/shared/components/lottie-animation.d.ts +1 -1
  93. package/dist/shared/components/multi-select-filter-pill.d.ts +1 -1
  94. package/dist/shared/components/quote-icon.d.ts +1 -1
  95. package/dist/shared/components/search-empty-state.d.ts +1 -1
  96. package/dist/shared/components/selection-panel.d.ts +1 -1
  97. package/dist/shared/components/shared-icon.d.ts +1 -1
  98. package/dist/shared/components/unpin-icon.d.ts +1 -1
  99. package/dist/shared/components/user-approved-icon.d.ts +1 -1
  100. package/dist/shared/components/user-avatar.d.ts +1 -1
  101. package/dist/shared/components/verified-badge.d.ts +1 -1
  102. package/dist/shared/components/work-status-badge.d.ts +1 -1
  103. package/dist/store/conversationsStore.d.ts +2 -1
  104. package/dist/store/userSettingsStore.d.ts +12 -0
  105. package/dist/styles.css +1 -1
  106. package/dist/utils/chat.d.ts +2 -0
  107. package/package.json +4 -2
@@ -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 {
@@ -299,6 +300,7 @@ export declare const readUsers: (response: unknown) => unknown[];
299
300
  export declare const readConversations: (response: unknown) => unknown[];
300
301
  export declare const isSameId: (left: unknown, right: unknown) => boolean;
301
302
  export declare const isGroupConversation: (conversation: unknown) => boolean;
303
+ export declare const getConversationKindLabel: (isGroup: boolean) => string;
302
304
  export declare const getConversationTitle: (conversation: unknown, currentUserId?: string | null) => string;
303
305
  /** Avatar photo for a conversation row: the conversation's own photo, or for direct chats
304
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.48",
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.19"
62
+ "@medipha/chat-core": "1.0.20"
61
63
  },
62
64
  "devDependencies": {
63
65
  "@eslint/js": "^10.0.1",