@medipha/chat 1.0.45 → 1.0.47
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/features/invite-join/group-invite-join-modal.d.ts +7 -0
- package/dist/features/invite-join/group-invite-join-overlay.d.ts +1 -0
- package/dist/features/invite-join/invite-link.d.ts +2 -0
- package/dist/index.cjs +47 -47
- package/dist/index.js +13188 -12795
- package/dist/module/chat-module.types.d.ts +1 -0
- package/dist/pages/Setting/members/settings-modal.d.ts +2 -1
- package/dist/pages/conversation/conversation-header/conversation-header.d.ts +2 -1
- package/dist/store/inviteJoinStore.d.ts +8 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +24 -0
- package/package.json +2 -2
package/dist/utils/chat.d.ts
CHANGED
|
@@ -239,6 +239,30 @@ export interface GroupSettings {
|
|
|
239
239
|
messagePermission: GroupMessagePermission;
|
|
240
240
|
requireApprovalForNewMembers: boolean;
|
|
241
241
|
}
|
|
242
|
+
export interface GroupInviteLink {
|
|
243
|
+
enabled: boolean;
|
|
244
|
+
code: string | null;
|
|
245
|
+
}
|
|
246
|
+
export interface GroupInvitePreview {
|
|
247
|
+
conversationId: string;
|
|
248
|
+
title: string | null;
|
|
249
|
+
avatarUrl: string | null;
|
|
250
|
+
memberCount: number;
|
|
251
|
+
createdBy: {
|
|
252
|
+
userId: string;
|
|
253
|
+
fullName: string;
|
|
254
|
+
};
|
|
255
|
+
memberPreview: Array<{
|
|
256
|
+
userId: string;
|
|
257
|
+
fullName: string;
|
|
258
|
+
avatarUrl: string | null;
|
|
259
|
+
}>;
|
|
260
|
+
}
|
|
261
|
+
export type JoinByInviteOutcome = 'JOINED' | 'REQUESTED' | 'ALREADY_MEMBER' | 'ALREADY_REQUESTED';
|
|
262
|
+
export interface JoinByInviteResult {
|
|
263
|
+
conversationId: string;
|
|
264
|
+
outcome: JoinByInviteOutcome;
|
|
265
|
+
}
|
|
242
266
|
export interface PendingMember {
|
|
243
267
|
userId: string;
|
|
244
268
|
status: 'PENDING' | 'REJECTED';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipha/chat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "Embeddable Medic-ERP chat module for React applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"uuid": "^11.0.5",
|
|
58
58
|
"yet-another-react-lightbox": "^3.32.2",
|
|
59
59
|
"zustand": "^5.0.8",
|
|
60
|
-
"@medipha/chat-core": "1.0.
|
|
60
|
+
"@medipha/chat-core": "1.0.19"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/js": "^10.0.1",
|