@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.
@@ -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: CommunicationUser[];
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: ChatMessage[];
268
- users: CommunicationUser[];
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: Conversation[];
281
+ conversations?: Conversation[];
282
282
  messages: Record<string, ChatMessage[]>;
283
- users: CommunicationUser[];
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: ChatMessage[];
311
- users: CommunicationUser[];
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: CommunicationUser[];
323
- teams: Team[];
324
- conversations: Conversation[];
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.0",
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.20",
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.0",
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",