@nice2dev/ui-communication 1.0.29 → 1.1.6

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/dist/index.mjs CHANGED
@@ -9073,7 +9073,11 @@ async function Nn(i, e) {
9073
9073
  );
9074
9074
  }
9075
9075
  async function Mn(i, e) {
9076
- const t = crypto.getRandomValues(new Uint8Array(12)), n = An(e), a = await crypto.subtle.encrypt({ name: "AES-GCM", iv: t }, i, n), s = new Uint8Array(a), o = new Uint8Array(12 + s.length);
9076
+ const t = crypto.getRandomValues(new Uint8Array(12)), n = An(e), a = await crypto.subtle.encrypt(
9077
+ { name: "AES-GCM", iv: t },
9078
+ i,
9079
+ n
9080
+ ), s = new Uint8Array(a), o = new Uint8Array(12 + s.length);
9077
9081
  return o.set(t, 0), o.set(s, 12), Ze(o);
9078
9082
  }
9079
9083
  async function On(i, e) {
@@ -9082,10 +9086,13 @@ async function On(i, e) {
9082
9086
  }
9083
9087
  async function ut(i, e) {
9084
9088
  const t = et(i);
9085
- return crypto.subtle.importKey("raw", t, { name: "AES-GCM", length: e }, !1, [
9086
- "encrypt",
9087
- "decrypt"
9088
- ]);
9089
+ return crypto.subtle.importKey(
9090
+ "raw",
9091
+ t,
9092
+ { name: "AES-GCM", length: e },
9093
+ !1,
9094
+ ["encrypt", "decrypt"]
9095
+ );
9089
9096
  }
9090
9097
  async function Ln(i) {
9091
9098
  const e = await crypto.subtle.exportKey("raw", i);
@@ -9097,7 +9104,13 @@ async function Wn(i) {
9097
9104
  }
9098
9105
  async function _n(i) {
9099
9106
  const e = et(i);
9100
- return crypto.subtle.importKey("spki", e, { name: "ECDH", namedCurve: "P-384" }, !0, []);
9107
+ return crypto.subtle.importKey(
9108
+ "spki",
9109
+ e,
9110
+ { name: "ECDH", namedCurve: "P-384" },
9111
+ !0,
9112
+ []
9113
+ );
9101
9114
  }
9102
9115
  class Fn {
9103
9116
  constructor(e) {
@@ -10752,7 +10765,7 @@ class zt {
10752
10765
  accessPin: a,
10753
10766
  hostPin: s,
10754
10767
  meetingTitle: t,
10755
- expiresAt: Date.now() + 24 * 60 * 60 * 1e3
10768
+ expiresAt: Date.now() + 1440 * 60 * 1e3
10756
10769
  // 24 hours
10757
10770
  };
10758
10771
  return this.meetingDialIns.set(e, o), o;
@@ -1,5 +1,4 @@
1
1
  import { EncryptionAlgorithm, EncryptionConfig, EncryptionScope } from '../types/communicationTypes';
2
-
3
2
  declare function generateAesKey(bits: 128 | 256): Promise<CryptoKey>;
4
3
  declare function generateEcdhKeyPair(): Promise<CryptoKeyPair>;
5
4
  declare function importAesKey(base64Key: string, bits: 128 | 256): Promise<CryptoKey>;
@@ -1,5 +1,4 @@
1
1
  import { RecordingSession, RecordingState, TranscriptSegment } from '../types/communicationTypes';
2
-
3
2
  export interface RecordingServiceCallbacks {
4
3
  onStateChange?: (state: RecordingState) => void;
5
4
  onDataAvailable?: (blob: Blob) => void;
@@ -1,6 +1,5 @@
1
1
  import { StorageConfig, RetentionRule, ChatMessage, WhiteboardSession, RecordingSession } from '../types/communicationTypes';
2
2
  import { EncryptionService } from './encryptionService';
3
-
4
3
  export declare class StorageService {
5
4
  private adapter;
6
5
  private config;
@@ -1,5 +1,4 @@
1
1
  import { CallSession, CallType, RTCTransportConfig, TransportType } from '../types/communicationTypes';
2
-
3
2
  export interface ICommunicationTransport {
4
3
  readonly type: TransportType;
5
4
  connect(signalingUrl: string, userId: string): Promise<void>;
@@ -1,5 +1,4 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
-
3
2
  export type NiceAccessMode = 'read' | 'write' | 'none';
4
3
  export interface NiceCommunicationBaseProps {
5
4
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-communication",
3
- "version": "1.0.29",
3
+ "version": "1.1.6",
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,17 +35,19 @@
36
35
  "react-dom": ">=17.0.0"
37
36
  },
38
37
  "devDependencies": {
39
- "@testing-library/jest-dom": "^6.9.1",
40
- "@testing-library/react": "^14.0.0",
41
- "@types/react": "^18.2.0",
42
- "@types/react-dom": "^18.2.0",
43
- "@vitejs/plugin-react": "^4.2.0",
44
- "react": "^18.2.0",
45
- "react-dom": "^18.2.0",
46
- "typescript": "^5.3.0",
47
- "vite": "^5.0.0",
48
- "vite-plugin-dts": "^3.7.0",
49
- "vitest": "^4.1.0"
38
+ "@nice2dev/ui": "^1.1.6",
39
+ "@testing-library/jest-dom": "^7.0.1",
40
+ "@testing-library/react": "^16.3.3",
41
+ "@types/react": "^19.2.18",
42
+ "@types/react-dom": "^19.2.7",
43
+ "@vitejs/plugin-react": "^4.7.0",
44
+ "jsdom": "^29.0.0",
45
+ "react": "^19.2.8",
46
+ "react-dom": "^19.2.8",
47
+ "typescript": "^5.9.3",
48
+ "vite": "^6.4.1",
49
+ "vite-plugin-dts": "^4.5.4",
50
+ "vitest": "^4.1.11"
50
51
  },
51
52
  "keywords": [
52
53
  "react",