jam-core-react
Advanced tools
Comparing version 0.3.17 to 0.4.0
@@ -26,3 +26,3 @@ import React from 'react'; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio">(key: L, value: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
myIdentity: import("../jam-core/state").IdentityType | null; | ||
@@ -66,2 +66,5 @@ myId: string | null; | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}[L]): void; | ||
@@ -107,5 +110,8 @@ (state: Partial<{ | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}>): void; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<import("../jam-core/state").RoomType> | undefined) => Promise<boolean>; | ||
@@ -179,2 +185,5 @@ updateRoom: (roomId: string, room: import("../jam-core/state").RoomType) => Promise<boolean>; | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}, { | ||
@@ -202,3 +211,3 @@ setProps: { | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio">(key: L, value: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
myIdentity: import("../jam-core/state").IdentityType | null; | ||
@@ -242,2 +251,5 @@ myId: string | null; | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}[L]): void; | ||
@@ -283,5 +295,8 @@ (state: Partial<{ | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}>): void; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<import("../jam-core/state").RoomType> | undefined) => Promise<boolean>; | ||
@@ -288,0 +303,0 @@ updateRoom: (roomId: string, room: import("../jam-core/state").RoomType) => Promise<boolean>; |
@@ -102,6 +102,6 @@ import { is, set, on, update, until } from 'minimal-state'; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio">(key: L, value: StateType[L]): void; | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: StateType[L]): void; | ||
(state: Partial<StateType>): void; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<RoomType> | undefined) => Promise<boolean>; | ||
@@ -108,0 +108,0 @@ updateRoom: (roomId: string, room: RoomType) => Promise<boolean>; |
@@ -31,2 +31,6 @@ export { defaultProps, defaultState }; | ||
}; | ||
declare type AccessType = { | ||
identities?: string[]; | ||
identitiesLocked?: boolean; | ||
}; | ||
declare type RoomType = { | ||
@@ -40,2 +44,3 @@ name: string; | ||
logoURI?: string; | ||
access?: AccessType; | ||
}; | ||
@@ -82,2 +87,5 @@ declare type PeerState = { | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}; | ||
@@ -84,0 +92,0 @@ declare type StateType = typeof defaultState & { |
{ | ||
"name": "jam-core-react", | ||
"description": "React hooks for creating custom audio spaces like Clubhouse / Twitter Spaces, made with WebRTC", | ||
"version": "0.3.17", | ||
"version": "0.4.0", | ||
"main": "dist/index.js", | ||
@@ -23,3 +23,3 @@ "license": "(AGPL-3.0 OR Apache-2.0)", | ||
"fast-base64": "^0.1.8", | ||
"jam-core": "0.3.17", | ||
"jam-core": "0.4.0", | ||
"minimal-state": "^5.6.0", | ||
@@ -26,0 +26,0 @@ "use-minimal-state": "^3.5.0", |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
414300
2646
4
+ Addedjam-core@0.4.0(transitive)
- Removedjam-core@0.3.17(transitive)
Updatedjam-core@0.4.0