@nice2dev/ui-communication 1.1.10 → 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/README.md +0 -6
- package/dist/__tests__/renders-empty.test.d.ts +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2745 -2706
- package/dist/types/communicationTypes.d.ts +10 -45
- package/package.json +3 -3
|
@@ -60,25 +60,6 @@ export interface MessageMention {
|
|
|
60
60
|
offset: number;
|
|
61
61
|
length: number;
|
|
62
62
|
}
|
|
63
|
-
export interface PollOption {
|
|
64
|
-
id: string;
|
|
65
|
-
text: string;
|
|
66
|
-
votes: number;
|
|
67
|
-
voterIds: string[];
|
|
68
|
-
}
|
|
69
|
-
export interface PollData {
|
|
70
|
-
question: string;
|
|
71
|
-
options: PollOption[];
|
|
72
|
-
allowMultiple: boolean;
|
|
73
|
-
isAnonymous: boolean;
|
|
74
|
-
expiresAt?: Date;
|
|
75
|
-
isClosed: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface CodeSnippet {
|
|
78
|
-
language: string;
|
|
79
|
-
code: string;
|
|
80
|
-
filename?: string;
|
|
81
|
-
}
|
|
82
63
|
export interface ChatMessage {
|
|
83
64
|
id: string;
|
|
84
65
|
conversationId: string;
|
|
@@ -99,8 +80,6 @@ export interface ChatMessage {
|
|
|
99
80
|
isPinned?: boolean;
|
|
100
81
|
isForwarded?: boolean;
|
|
101
82
|
isDeleted?: boolean;
|
|
102
|
-
pollData?: PollData;
|
|
103
|
-
codeSnippet?: CodeSnippet;
|
|
104
83
|
callEventData?: CallEventData;
|
|
105
84
|
metadata?: Record<string, unknown>;
|
|
106
85
|
}
|
|
@@ -249,14 +228,12 @@ export interface CommunicationCallbacks {
|
|
|
249
228
|
export interface NiceCommunicationProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
250
229
|
mode: CommunicationMode;
|
|
251
230
|
currentUser: CommunicationUser;
|
|
252
|
-
users
|
|
231
|
+
users?: CommunicationUser[];
|
|
253
232
|
conversations?: Conversation[];
|
|
254
233
|
messages?: Record<string, ChatMessage[]>;
|
|
255
234
|
activeConversationId?: string;
|
|
256
235
|
teams?: Team[];
|
|
257
236
|
channels?: Channel[];
|
|
258
|
-
activeChannelId?: string;
|
|
259
|
-
activeTeamId?: string;
|
|
260
237
|
meetings?: Meeting[];
|
|
261
238
|
activeCall?: CallSession;
|
|
262
239
|
incomingCall?: IncomingCall;
|
|
@@ -266,17 +243,13 @@ export interface NiceCommunicationProps extends NiceCommunicationBaseProps, Comm
|
|
|
266
243
|
bubbleLabel?: string;
|
|
267
244
|
placeholder?: string;
|
|
268
245
|
maxMessageLength?: number;
|
|
269
|
-
showTypingIndicators?: boolean;
|
|
270
246
|
enableReactions?: boolean;
|
|
271
247
|
enableThreads?: boolean;
|
|
272
248
|
enableAttachments?: boolean;
|
|
273
|
-
enablePolls?: boolean;
|
|
274
|
-
enableCodeSnippets?: boolean;
|
|
275
249
|
enableScreenSharing?: boolean;
|
|
276
250
|
enableRecording?: boolean;
|
|
277
251
|
enableTranscription?: boolean;
|
|
278
252
|
enableMeetings?: boolean;
|
|
279
|
-
enableGifs?: boolean;
|
|
280
253
|
enableWhiteboard?: boolean;
|
|
281
254
|
storageConfig?: StorageConfig;
|
|
282
255
|
encryptionConfig?: EncryptionConfig;
|
|
@@ -291,8 +264,8 @@ export interface NicePresenceIndicatorProps extends NiceCommunicationBaseProps {
|
|
|
291
264
|
}
|
|
292
265
|
export interface NiceChatWindowProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
293
266
|
conversation: Conversation;
|
|
294
|
-
messages
|
|
295
|
-
users
|
|
267
|
+
messages?: ChatMessage[];
|
|
268
|
+
users?: CommunicationUser[];
|
|
296
269
|
currentUser: CommunicationUser;
|
|
297
270
|
isLoading?: boolean;
|
|
298
271
|
hasMore?: boolean;
|
|
@@ -301,14 +274,13 @@ export interface NiceChatWindowProps extends NiceCommunicationBaseProps, Communi
|
|
|
301
274
|
enableReactions?: boolean;
|
|
302
275
|
enableThreads?: boolean;
|
|
303
276
|
enableAttachments?: boolean;
|
|
304
|
-
enablePolls?: boolean;
|
|
305
277
|
placeholder?: string;
|
|
306
278
|
maxMessageLength?: number;
|
|
307
279
|
}
|
|
308
280
|
export interface NiceMessengerProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
309
|
-
conversations
|
|
281
|
+
conversations?: Conversation[];
|
|
310
282
|
messages: Record<string, ChatMessage[]>;
|
|
311
|
-
users
|
|
283
|
+
users?: CommunicationUser[];
|
|
312
284
|
currentUser: CommunicationUser;
|
|
313
285
|
activeConversationId?: string;
|
|
314
286
|
teams?: Team[];
|
|
@@ -335,8 +307,8 @@ export interface NiceVideoConferenceProps extends NiceCommunicationBaseProps, Co
|
|
|
335
307
|
}
|
|
336
308
|
export interface NiceChannelViewProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
337
309
|
channel: Channel;
|
|
338
|
-
messages
|
|
339
|
-
users
|
|
310
|
+
messages?: ChatMessage[];
|
|
311
|
+
users?: CommunicationUser[];
|
|
340
312
|
currentUser: CommunicationUser;
|
|
341
313
|
team?: Team;
|
|
342
314
|
isLoading?: boolean;
|
|
@@ -344,13 +316,12 @@ export interface NiceChannelViewProps extends NiceCommunicationBaseProps, Commun
|
|
|
344
316
|
enableThreads?: boolean;
|
|
345
317
|
enableReactions?: boolean;
|
|
346
318
|
enableAttachments?: boolean;
|
|
347
|
-
enablePolls?: boolean;
|
|
348
319
|
}
|
|
349
320
|
export interface NiceTeamsWorkspaceProps extends NiceCommunicationBaseProps, CommunicationCallbacks {
|
|
350
321
|
currentUser: CommunicationUser;
|
|
351
|
-
users
|
|
352
|
-
teams
|
|
353
|
-
conversations
|
|
322
|
+
users?: CommunicationUser[];
|
|
323
|
+
teams?: Team[];
|
|
324
|
+
conversations?: Conversation[];
|
|
354
325
|
messages: Record<string, ChatMessage[]>;
|
|
355
326
|
activeCall?: CallSession;
|
|
356
327
|
incomingCall?: IncomingCall;
|
|
@@ -645,12 +616,6 @@ export interface NiceRecordingPanelProps extends NiceCommunicationBaseProps {
|
|
|
645
616
|
onRecordingResume?: () => void;
|
|
646
617
|
onRecordingDelete?: (recordingId: string) => void;
|
|
647
618
|
onRecordingDownload?: (recordingId: string) => void;
|
|
648
|
-
/** @deprecated Use onRecordingStart */ onStartRecording?: (sessionType: RecordingSession['sessionType'], title?: string) => void;
|
|
649
|
-
/** @deprecated Use onRecordingStop */ onStopRecording?: (recordingId: string) => void;
|
|
650
|
-
/** @deprecated Use onRecordingPause */ onPauseRecording?: (recordingId: string) => void;
|
|
651
|
-
/** @deprecated */ onResumeRecording?: (recordingId: string) => void;
|
|
652
|
-
/** @deprecated */ onDeleteRecording?: (recordingId: string) => void;
|
|
653
|
-
/** @deprecated */ onDownloadRecording?: (recordingId: string) => void;
|
|
654
619
|
onPlayRecording?: (recordingId: string) => void;
|
|
655
620
|
onViewTranscript?: (recordingId: string) => void;
|
|
656
621
|
canRecord?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-communication",
|
|
3
|
-
"version": "1.1
|
|
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.1
|
|
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",
|