@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/__tests__/setup.d.ts +0 -1
- package/dist/collaboration/collaborative-form.d.ts +0 -1
- package/dist/components/NiceCallScreen.d.ts +0 -1
- package/dist/components/NiceChannelView.d.ts +0 -1
- package/dist/components/NiceChatWindow.d.ts +0 -1
- package/dist/components/NiceCollaborativeEditor.d.ts +0 -1
- package/dist/components/NiceCommunication.d.ts +0 -1
- package/dist/components/NiceMessenger.d.ts +0 -1
- package/dist/components/NicePresenceIndicator.d.ts +0 -1
- package/dist/components/NiceRecordingPanel.d.ts +0 -1
- package/dist/components/NiceStorageSettings.d.ts +0 -1
- package/dist/components/NiceTeamsWorkspace.d.ts +0 -1
- package/dist/components/NiceVideoConference.d.ts +0 -1
- package/dist/components/NiceWhiteboard.d.ts +0 -1
- package/dist/hooks/useCommunication.d.ts +1 -2
- package/dist/hooks/useWhiteboard.d.ts +0 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +20 -7
- package/dist/services/encryptionService.d.ts +0 -1
- package/dist/services/recordingService.d.ts +0 -1
- package/dist/services/storageService.d.ts +0 -1
- package/dist/transport/communicationTransport.d.ts +0 -1
- package/dist/types/communicationTypes.d.ts +0 -1
- package/package.json +15 -14
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(
|
|
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(
|
|
9086
|
-
"
|
|
9087
|
-
|
|
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(
|
|
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() +
|
|
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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-communication",
|
|
3
|
-
"version": "1.
|
|
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
|
-
"@
|
|
40
|
-
"@testing-library/
|
|
41
|
-
"@
|
|
42
|
-
"@types/react
|
|
43
|
-
"@
|
|
44
|
-
"react": "^
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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",
|