@defcomm/meetingsdk 0.4.6 → 0.4.8
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -303,7 +303,7 @@ interface ParticipantInfo {
|
|
|
303
303
|
|
|
304
304
|
type MeetingContextValue = {
|
|
305
305
|
sdk: VideoSDKCore;
|
|
306
|
-
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
306
|
+
join: (config?: Omit<MeetingConfig, "participantId" | "token">) => Promise<void>;
|
|
307
307
|
getJoinState: (roomCode: string) => Promise<JoinState>;
|
|
308
308
|
leave: () => void;
|
|
309
309
|
createRoom: (input: {
|
|
@@ -366,7 +366,7 @@ declare const useMeeting: (handlers?: {
|
|
|
366
366
|
onActiveSpeakersChanged?: (participantIds: string[]) => void;
|
|
367
367
|
onConnectionStateChanged?: (state: SFUConnectionState) => void;
|
|
368
368
|
}) => {
|
|
369
|
-
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
369
|
+
join: (config?: Omit<MeetingConfig, "participantId" | "token">) => Promise<void>;
|
|
370
370
|
getJoinState: (roomCode: string) => Promise<JoinState>;
|
|
371
371
|
leave: () => void;
|
|
372
372
|
createRoom: (input: {
|
package/dist/index.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ interface ParticipantInfo {
|
|
|
303
303
|
|
|
304
304
|
type MeetingContextValue = {
|
|
305
305
|
sdk: VideoSDKCore;
|
|
306
|
-
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
306
|
+
join: (config?: Omit<MeetingConfig, "participantId" | "token">) => Promise<void>;
|
|
307
307
|
getJoinState: (roomCode: string) => Promise<JoinState>;
|
|
308
308
|
leave: () => void;
|
|
309
309
|
createRoom: (input: {
|
|
@@ -366,7 +366,7 @@ declare const useMeeting: (handlers?: {
|
|
|
366
366
|
onActiveSpeakersChanged?: (participantIds: string[]) => void;
|
|
367
367
|
onConnectionStateChanged?: (state: SFUConnectionState) => void;
|
|
368
368
|
}) => {
|
|
369
|
-
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
369
|
+
join: (config?: Omit<MeetingConfig, "participantId" | "token">) => Promise<void>;
|
|
370
370
|
getJoinState: (roomCode: string) => Promise<JoinState>;
|
|
371
371
|
leave: () => void;
|
|
372
372
|
createRoom: (input: {
|
package/dist/index.js
CHANGED
|
@@ -1045,6 +1045,7 @@ var SFUClient = class {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
case "reaction": {
|
|
1047
1047
|
const reaction = payload.reaction || payload;
|
|
1048
|
+
console.log("[SFUClient] RECEIVED REACTION", reaction);
|
|
1048
1049
|
if (reaction?.id && reaction?.emoji) this.onReaction(reaction);
|
|
1049
1050
|
break;
|
|
1050
1051
|
}
|
|
@@ -2911,6 +2912,11 @@ var MeetingProvider = ({
|
|
|
2911
2912
|
emoji: reaction.emoji
|
|
2912
2913
|
}
|
|
2913
2914
|
};
|
|
2915
|
+
console.log("[MeetingProvider] PUBSUB REACTION", message);
|
|
2916
|
+
pubSubListeners.current.get("REACTION")?.forEach((fn) => {
|
|
2917
|
+
console.log("[MeetingProvider] DELIVERING REACTION");
|
|
2918
|
+
fn(message);
|
|
2919
|
+
});
|
|
2914
2920
|
setReactionPubSubMessages(
|
|
2915
2921
|
(previous) => [...previous, message].slice(-50)
|
|
2916
2922
|
);
|
|
@@ -2978,14 +2984,16 @@ var MeetingProvider = ({
|
|
|
2978
2984
|
recording,
|
|
2979
2985
|
usePubSub: (topic) => {
|
|
2980
2986
|
if (topic === "SECURE_CHAT") {
|
|
2981
|
-
const chatMessages = messages.map(
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2987
|
+
const chatMessages = messages.map(
|
|
2988
|
+
(message) => ({
|
|
2989
|
+
id: message.id,
|
|
2990
|
+
topic: "SECURE_CHAT",
|
|
2991
|
+
sender_id: message.sender_id,
|
|
2992
|
+
sender_name: message.sender_name,
|
|
2993
|
+
timestamp: message.timestamp,
|
|
2994
|
+
data: message
|
|
2995
|
+
})
|
|
2996
|
+
);
|
|
2989
2997
|
return {
|
|
2990
2998
|
messages: chatMessages,
|
|
2991
2999
|
publish: ((data) => {
|