@nice2dev/ui-communication 1.1.5 → 1.1.7

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.
@@ -596,7 +596,8 @@ export interface WhiteboardOperation {
596
596
  vectorClock?: Record<string, number>;
597
597
  }
598
598
  export interface NiceWhiteboardProps extends NiceCommunicationBaseProps {
599
- session: WhiteboardSession;
599
+ /** Session to open (seeds the board once). Omit it to show a "no session" empty state. */
600
+ session?: WhiteboardSession;
600
601
  currentUser: CommunicationUser;
601
602
  /** Called whenever the whiteboard emits an operation to broadcast */
602
603
  onOperation?: (op: WhiteboardOperation) => void;
@@ -618,7 +619,10 @@ export interface NiceWhiteboardProps extends NiceCommunicationBaseProps {
618
619
  storageConfig?: StorageConfig;
619
620
  }
620
621
  export interface NiceStorageSettingsProps extends NiceCommunicationBaseProps {
621
- storageConfig: StorageConfig;
622
+ /** Storage configuration (controlled). Omit it to let the component keep its own. */
623
+ storageConfig?: StorageConfig;
624
+ /** Initial storage configuration when uncontrolled. */
625
+ defaultStorageConfig?: StorageConfig;
622
626
  encryptionConfig?: EncryptionConfig;
623
627
  onStorageConfigChange?: (config: StorageConfig) => void;
624
628
  onEncryptionConfigChange?: (config: EncryptionConfig) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-communication",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
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",
@@ -11,8 +11,7 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.mjs",
13
13
  "require": "./dist/index.cjs"
14
- },
15
- "./style.css": "./dist/style.css"
14
+ }
16
15
  },
17
16
  "files": [
18
17
  "dist",
@@ -36,7 +35,7 @@
36
35
  "react-dom": ">=17.0.0"
37
36
  },
38
37
  "devDependencies": {
39
- "@nice2dev/ui": "^1.1.5",
38
+ "@nice2dev/ui": "^1.1.7",
40
39
  "@testing-library/jest-dom": "^7.0.1",
41
40
  "@testing-library/react": "^16.3.3",
42
41
  "@types/react": "^19.2.18",