nuxt-parley 1.10.2 → 1.11.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 CHANGED
@@ -129,7 +129,7 @@ With `primitives: true`, `BIcon` (a Phosphor icon by name), `BEmojiPicker` and `
129
129
  | Name | What it is |
130
130
  | --- | --- |
131
131
  | `useParley()`, `useParleyChat()` | High-level composable for the active conversation, contact, messages, drafts, unread totals, sending messages, and chat actions. |
132
- | `useParleyCall()` | High-level composable for voice and video calls: reactive session, duration, controls (audio, video, flashlight, screen share, whiteboard share, camera flip), participants, and signaling observation. |
132
+ | `useParleyCall()` | High-level composable for voice and video calls: reactive session, duration, controls (audio, video, flashlight, screen share, whiteboard share, camera flip), device availability (camera/microphone), participants, dedicated member media, and signaling observation. |
133
133
  | `useParleyWhiteboard()` | Composable for controlling whiteboard dialog visibility and syncing stream sharing with an active call session. |
134
134
  | `useParleyMedia()` | Composable for downloading, caching, and retrieving media blobs, file sizes, and albums. |
135
135
  | `formatDuration(seconds)` | Formats duration in seconds to `mm:ss` or `hh:mm:ss`. |
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "1.10.2",
7
+ "version": "1.11.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "unknown"
@@ -10,6 +10,7 @@ export interface ParleyCallParticipant {
10
10
  media?: CallMediaState;
11
11
  camera?: MediaStream;
12
12
  screen?: MediaStream;
13
+ whiteboard?: MediaStream;
13
14
  status: ParticipantStatus;
14
15
  }
15
16
  export interface UseParleyCallReturn {
@@ -24,6 +25,8 @@ export interface UseParleyCallReturn {
24
25
  canShareScreen: ComputedRef<boolean>;
25
26
  isAudioOn: ComputedRef<boolean>;
26
27
  isVideoOn: ComputedRef<boolean>;
28
+ isCameraAvailable: ComputedRef<boolean>;
29
+ isMicrophoneAvailable: ComputedRef<boolean>;
27
30
  isScreenSharing: ComputedRef<boolean>;
28
31
  isWhiteboardSharing: ComputedRef<boolean>;
29
32
  isFlashlightOn: ComputedRef<boolean>;
@@ -31,6 +34,7 @@ export interface UseParleyCallReturn {
31
34
  canFlipCamera: ComputedRef<boolean>;
32
35
  facingMode: ComputedRef<string>;
33
36
  cameras: ComputedRef<MediaDeviceInfo[]>;
37
+ microphones: ComputedRef<MediaDeviceInfo[]>;
34
38
  localStream: ComputedRef<MediaStream | null>;
35
39
  screenStream: ComputedRef<MediaStream | null>;
36
40
  whiteboardStream: ComputedRef<MediaStream | null>;
@@ -40,6 +44,7 @@ export interface UseParleyCallReturn {
40
44
  phase: ComputedRef<CallPhase>;
41
45
  remoteVideos: ComputedRef<Record<string, unknown>>;
42
46
  remoteScreens: ComputedRef<Record<string, unknown>>;
47
+ remoteWhiteboards: ComputedRef<Record<string, unknown>>;
43
48
  startCall: (channel: string, options?: {
44
49
  video?: boolean;
45
50
  }) => void;
@@ -13,6 +13,8 @@ export function useParleyCall() {
13
13
  const formattedDuration = computed(() => formatDuration(elapsedTime.value));
14
14
  const isAudioOn = computed(() => session.value?.media.isAudioOn.value ?? false);
15
15
  const isVideoOn = computed(() => session.value?.media.isVideoOn.value ?? false);
16
+ const isCameraAvailable = computed(() => session.value?.media.isCameraAvailable.value ?? false);
17
+ const isMicrophoneAvailable = computed(() => session.value?.media.isMicrophoneAvailable.value ?? false);
16
18
  const isScreenSharing = computed(() => session.value?.media.isScreenSharing.value ?? false);
17
19
  const isWhiteboardSharing = computed(() => session.value?.media.isWhiteboardSharing.value ?? false);
18
20
  const isFlashlightOn = computed(() => session.value?.media.isFlashlightOn.value ?? false);
@@ -20,6 +22,7 @@ export function useParleyCall() {
20
22
  const canFlipCamera = computed(() => session.value?.media.canFlipCamera.value ?? false);
21
23
  const facingMode = computed(() => session.value?.media.facingMode.value ?? "user");
22
24
  const cameras = computed(() => session.value?.media.cameras.value ?? []);
25
+ const microphones = computed(() => session.value?.media.microphones.value ?? []);
23
26
  const localStream = computed(() => session.value?.media.localStream.value ?? null);
24
27
  const screenStream = computed(() => session.value?.media.screenStream.value ?? null);
25
28
  const whiteboardStream = computed(() => session.value?.media.whiteboardStream.value ?? null);
@@ -29,6 +32,7 @@ export function useParleyCall() {
29
32
  const phase = computed(() => session.value?.phase.value ?? (callStore.isActive ? "connecting" : "ended"));
30
33
  const remoteVideos = computed(() => session.value?.peers.remoteVideos ?? {});
31
34
  const remoteScreens = computed(() => session.value?.peers.remoteScreens ?? {});
35
+ const remoteWhiteboards = computed(() => session.value?.peers.remoteWhiteboards ?? {});
32
36
  const startCall = (channel, options) => callStore.startCall(channel, options);
33
37
  const endCall = () => callStore.endCall();
34
38
  const minimize = () => callStore.minimize();
@@ -72,6 +76,8 @@ export function useParleyCall() {
72
76
  // Media
73
77
  isAudioOn,
74
78
  isVideoOn,
79
+ isCameraAvailable,
80
+ isMicrophoneAvailable,
75
81
  isScreenSharing,
76
82
  isWhiteboardSharing,
77
83
  isFlashlightOn,
@@ -79,6 +85,7 @@ export function useParleyCall() {
79
85
  canFlipCamera,
80
86
  facingMode,
81
87
  cameras,
88
+ microphones,
82
89
  localStream,
83
90
  screenStream,
84
91
  whiteboardStream,
@@ -89,6 +96,7 @@ export function useParleyCall() {
89
96
  phase,
90
97
  remoteVideos,
91
98
  remoteScreens,
99
+ remoteWhiteboards,
92
100
  // Actions
93
101
  startCall,
94
102
  endCall,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-parley",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
4
4
  "description": "Nuxt module for vue-parley: a drop-in chat and video-call UI, wired into Pinia and i18n for you.",
5
5
  "license": "MIT",
6
6
  "author": "SaeedP11 <saeed_abdi.p11@outlook.com>",
@@ -56,7 +56,7 @@
56
56
  "@vueuse/core": "^14.2.1",
57
57
  "pinia": "^4.0.3",
58
58
  "vue-i18n": "^11.4.5",
59
- "vue-parley": "^5.6.3"
59
+ "vue-parley": "^5.7.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "primevue": "^4.5.0"