@nice2dev/ui-communication 1.1.6 → 1.1.9

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.
@@ -176,6 +176,7 @@ export interface CallSession {
176
176
  type: CallType;
177
177
  conversationId?: string;
178
178
  channelId?: string;
179
+ /** Everyone in the call, the local user included (more than two means a conference). */
179
180
  participants: CallParticipant[];
180
181
  status: CallStatus;
181
182
  startedAt?: Date;
@@ -596,7 +597,8 @@ export interface WhiteboardOperation {
596
597
  vectorClock?: Record<string, number>;
597
598
  }
598
599
  export interface NiceWhiteboardProps extends NiceCommunicationBaseProps {
599
- session: WhiteboardSession;
600
+ /** Session to open (seeds the board once). Omit it to show a "no session" empty state. */
601
+ session?: WhiteboardSession;
600
602
  currentUser: CommunicationUser;
601
603
  /** Called whenever the whiteboard emits an operation to broadcast */
602
604
  onOperation?: (op: WhiteboardOperation) => void;
@@ -618,7 +620,10 @@ export interface NiceWhiteboardProps extends NiceCommunicationBaseProps {
618
620
  storageConfig?: StorageConfig;
619
621
  }
620
622
  export interface NiceStorageSettingsProps extends NiceCommunicationBaseProps {
621
- storageConfig: StorageConfig;
623
+ /** Storage configuration (controlled). Omit it to let the component keep its own. */
624
+ storageConfig?: StorageConfig;
625
+ /** Initial storage configuration when uncontrolled. */
626
+ defaultStorageConfig?: StorageConfig;
622
627
  encryptionConfig?: EncryptionConfig;
623
628
  onStorageConfigChange?: (config: StorageConfig) => void;
624
629
  onEncryptionConfigChange?: (config: EncryptionConfig) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-communication",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
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",
@@ -35,7 +35,7 @@
35
35
  "react-dom": ">=17.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@nice2dev/ui": "^1.1.6",
38
+ "@nice2dev/ui": "^1.1.9",
39
39
  "@testing-library/jest-dom": "^7.0.1",
40
40
  "@testing-library/react": "^16.3.3",
41
41
  "@types/react": "^19.2.18",