@nice2dev/ui-communication 1.2.0 → 1.2.1
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/__tests__/renders-empty.test.d.ts +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +2656 -2628
- package/dist/types/communicationTypes.d.ts +10 -10
- package/package.json +3 -3
|
@@ -228,7 +228,7 @@ export interface CommunicationCallbacks {
|
|
|
228
228
|
export interface NiceCommunicationProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
229
229
|
mode: CommunicationMode;
|
|
230
230
|
currentUser: CommunicationUser;
|
|
231
|
-
users
|
|
231
|
+
users?: CommunicationUser[];
|
|
232
232
|
conversations?: Conversation[];
|
|
233
233
|
messages?: Record<string, ChatMessage[]>;
|
|
234
234
|
activeConversationId?: string;
|
|
@@ -264,8 +264,8 @@ export interface NicePresenceIndicatorProps extends NiceCommunicationBaseProps {
|
|
|
264
264
|
}
|
|
265
265
|
export interface NiceChatWindowProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
266
266
|
conversation: Conversation;
|
|
267
|
-
messages
|
|
268
|
-
users
|
|
267
|
+
messages?: ChatMessage[];
|
|
268
|
+
users?: CommunicationUser[];
|
|
269
269
|
currentUser: CommunicationUser;
|
|
270
270
|
isLoading?: boolean;
|
|
271
271
|
hasMore?: boolean;
|
|
@@ -278,9 +278,9 @@ export interface NiceChatWindowProps extends NiceCommunicationBaseProps, Communi
|
|
|
278
278
|
maxMessageLength?: number;
|
|
279
279
|
}
|
|
280
280
|
export interface NiceMessengerProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
281
|
-
conversations
|
|
281
|
+
conversations?: Conversation[];
|
|
282
282
|
messages: Record<string, ChatMessage[]>;
|
|
283
|
-
users
|
|
283
|
+
users?: CommunicationUser[];
|
|
284
284
|
currentUser: CommunicationUser;
|
|
285
285
|
activeConversationId?: string;
|
|
286
286
|
teams?: Team[];
|
|
@@ -307,8 +307,8 @@ export interface NiceVideoConferenceProps extends NiceCommunicationBaseProps, Co
|
|
|
307
307
|
}
|
|
308
308
|
export interface NiceChannelViewProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
309
309
|
channel: Channel;
|
|
310
|
-
messages
|
|
311
|
-
users
|
|
310
|
+
messages?: ChatMessage[];
|
|
311
|
+
users?: CommunicationUser[];
|
|
312
312
|
currentUser: CommunicationUser;
|
|
313
313
|
team?: Team;
|
|
314
314
|
isLoading?: boolean;
|
|
@@ -319,9 +319,9 @@ export interface NiceChannelViewProps extends NiceCommunicationBaseProps, Commun
|
|
|
319
319
|
}
|
|
320
320
|
export interface NiceTeamsWorkspaceProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
321
321
|
currentUser: CommunicationUser;
|
|
322
|
-
users
|
|
323
|
-
teams
|
|
324
|
-
conversations
|
|
322
|
+
users?: CommunicationUser[];
|
|
323
|
+
teams?: Team[];
|
|
324
|
+
conversations?: Conversation[];
|
|
325
325
|
messages: Record<string, ChatMessage[]>;
|
|
326
326
|
activeCall?: CallSession;
|
|
327
327
|
incomingCall?: IncomingCall;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-communication",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "NiceCommunication — full-spectrum communication suite: chat bubble, messenger, voice/video calls, multi-party conference, and Teams-style workspace. Provider-agnostic RTC transport.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"prepublishOnly": "npm run build"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@nice2dev/ui": "^1.0
|
|
33
|
+
"@nice2dev/ui": "^1.2.0",
|
|
34
34
|
"react": ">=17.0.0",
|
|
35
35
|
"react-dom": ">=17.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nice2dev/ui": "^1.2.
|
|
38
|
+
"@nice2dev/ui": "^1.2.1",
|
|
39
39
|
"@testing-library/jest-dom": "^7.0.1",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@types/react": "^19.2.18",
|