@defcomm/meetingsdk 0.4.6 → 0.4.7
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 +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -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
|
@@ -2978,14 +2978,16 @@ var MeetingProvider = ({
|
|
|
2978
2978
|
recording,
|
|
2979
2979
|
usePubSub: (topic) => {
|
|
2980
2980
|
if (topic === "SECURE_CHAT") {
|
|
2981
|
-
const chatMessages = messages.map(
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2981
|
+
const chatMessages = messages.map(
|
|
2982
|
+
(message) => ({
|
|
2983
|
+
id: message.id,
|
|
2984
|
+
topic: "SECURE_CHAT",
|
|
2985
|
+
sender_id: message.sender_id,
|
|
2986
|
+
sender_name: message.sender_name,
|
|
2987
|
+
timestamp: message.timestamp,
|
|
2988
|
+
data: message
|
|
2989
|
+
})
|
|
2990
|
+
);
|
|
2989
2991
|
return {
|
|
2990
2992
|
messages: chatMessages,
|
|
2991
2993
|
publish: ((data) => {
|