@videosdk.live/react-sdk 0.1.77 → 0.1.78

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.js CHANGED
@@ -300,7 +300,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
300
300
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MeetingProviderContex.Consumer, null, children));
301
301
  };
302
302
 
303
- var version = "0.1.77";
303
+ var version = "0.1.78";
304
304
 
305
305
  var MeetingProvider = function MeetingProvider(_ref) {
306
306
  var children = _ref.children,
@@ -1265,6 +1265,7 @@ var useParticipant = function useParticipant(participantId, _temp) {
1265
1265
  webcamOn: webcamOn || !!webcamStream,
1266
1266
  micOn: micOn || !!micStream,
1267
1267
  mode: mode,
1268
+ metaData: participant === null || participant === void 0 ? void 0 : participant.metaData,
1268
1269
  screenShareOn: !!screenShareStream,
1269
1270
  isLocal: (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.id) === participantId,
1270
1271
  isActiveSpeaker: activeSpeakerId === participantId,
@@ -1376,9 +1377,9 @@ var usePubSub = function usePubSub(topic, _temp) {
1376
1377
  messages = _useState[0],
1377
1378
  setMessages = _useState[1];
1378
1379
  var isSubscribed = React.useRef(false);
1379
- var publish = function publish(message, options) {
1380
+ var publish = function publish(message, options, payload) {
1380
1381
  if (meeting) {
1381
- meeting.pubSub.publish(topic, message, options);
1382
+ meeting.pubSub.publish(topic, message, options, payload);
1382
1383
  }
1383
1384
  };
1384
1385
  var _handlePubSub = function _handlePubSub(data) {