@medipha/chat 1.0.46 → 1.0.48
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/forward/use-forward-message.d.ts +2 -1
- 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 +1 -0
- package/dist/index.cjs +47 -47
- package/dist/index.js +13453 -13028
- 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/forwardStore.d.ts +2 -1
- package/dist/store/inviteJoinStore.d.ts +8 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +25 -0
- package/package.json +2 -2
package/dist/utils/chat.d.ts
CHANGED
|
@@ -239,6 +239,31 @@ 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
|
+
link: string | null;
|
|
246
|
+
}
|
|
247
|
+
export interface GroupInvitePreview {
|
|
248
|
+
conversationId: string;
|
|
249
|
+
title: string | null;
|
|
250
|
+
avatarUrl: string | null;
|
|
251
|
+
memberCount: number;
|
|
252
|
+
createdBy: {
|
|
253
|
+
userId: string;
|
|
254
|
+
fullName: string;
|
|
255
|
+
};
|
|
256
|
+
memberPreview: Array<{
|
|
257
|
+
userId: string;
|
|
258
|
+
fullName: string;
|
|
259
|
+
avatarUrl: string | null;
|
|
260
|
+
}>;
|
|
261
|
+
}
|
|
262
|
+
export type JoinByInviteOutcome = 'JOINED' | 'REQUESTED' | 'ALREADY_MEMBER' | 'ALREADY_REQUESTED';
|
|
263
|
+
export interface JoinByInviteResult {
|
|
264
|
+
conversationId: string;
|
|
265
|
+
outcome: JoinByInviteOutcome;
|
|
266
|
+
}
|
|
242
267
|
export interface PendingMember {
|
|
243
268
|
userId: string;
|
|
244
269
|
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.48",
|
|
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",
|