@nice2dev/ui-communication 1.1.9 → 1.2.0
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/index.cjs +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +332 -321
- package/dist/types/communicationTypes.d.ts +0 -35
- 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
|
}
|
|
@@ -255,8 +234,6 @@ export interface NiceCommunicationProps extends NiceCommunicationBaseProps, Comm
|
|
|
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;
|
|
@@ -301,7 +274,6 @@ 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
|
}
|
|
@@ -344,7 +316,6 @@ 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;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-communication",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "NiceCommunication
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-dom": ">=17.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nice2dev/ui": "^1.
|
|
38
|
+
"@nice2dev/ui": "^1.2.0",
|
|
39
39
|
"@testing-library/jest-dom": "^7.0.1",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@types/react": "^19.2.18",
|