@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.mjs
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import { useCallback, useEffect as useEffect2, useRef as useRef2, useState as useState3 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/react/MeetingProvider.tsx
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createContext,
|
|
7
|
+
useContext,
|
|
8
|
+
useMemo,
|
|
9
|
+
useRef,
|
|
10
|
+
useState as useState2
|
|
11
|
+
} from "react";
|
|
6
12
|
|
|
7
13
|
// src/config/ws.ts
|
|
8
14
|
var SDK_CONFIG = {
|
|
@@ -2942,14 +2948,16 @@ var MeetingProvider = ({
|
|
|
2942
2948
|
recording,
|
|
2943
2949
|
usePubSub: (topic) => {
|
|
2944
2950
|
if (topic === "SECURE_CHAT") {
|
|
2945
|
-
const chatMessages = messages.map(
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2951
|
+
const chatMessages = messages.map(
|
|
2952
|
+
(message) => ({
|
|
2953
|
+
id: message.id,
|
|
2954
|
+
topic: "SECURE_CHAT",
|
|
2955
|
+
sender_id: message.sender_id,
|
|
2956
|
+
sender_name: message.sender_name,
|
|
2957
|
+
timestamp: message.timestamp,
|
|
2958
|
+
data: message
|
|
2959
|
+
})
|
|
2960
|
+
);
|
|
2953
2961
|
return {
|
|
2954
2962
|
messages: chatMessages,
|
|
2955
2963
|
publish: ((data) => {
|