@videosdk.live/react-sdk 0.8.0 → 0.8.2
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/types/agentParticipant.d.ts +4 -2
- package/dist/types/index.d.ts +22 -17
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -458,7 +458,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
|
|
|
458
458
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MeetingProviderContex.Consumer, null, children));
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
var version = "0.8.
|
|
461
|
+
var version = "0.8.1";
|
|
462
462
|
|
|
463
463
|
var MeetingProvider = function MeetingProvider(_ref) {
|
|
464
464
|
var children = _ref.children,
|
|
@@ -2512,6 +2512,8 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2512
2512
|
onAgentStateChanged = _ref$onAgentStateChan === void 0 ? function () {} : _ref$onAgentStateChan,
|
|
2513
2513
|
_ref$onAgentTranscrip = _ref.onAgentTranscriptionReceived,
|
|
2514
2514
|
onAgentTranscriptionReceived = _ref$onAgentTranscrip === void 0 ? function () {} : _ref$onAgentTranscrip,
|
|
2515
|
+
_ref$onAgentMetrics = _ref.onAgentMetrics,
|
|
2516
|
+
onAgentMetrics = _ref$onAgentMetrics === void 0 ? function () {} : _ref$onAgentMetrics,
|
|
2515
2517
|
_ref$onStreamEnabled = _ref.onStreamEnabled,
|
|
2516
2518
|
onStreamEnabled = _ref$onStreamEnabled === void 0 ? function () {} : _ref$onStreamEnabled,
|
|
2517
2519
|
_ref$onStreamDisabled = _ref.onStreamDisabled,
|
|
@@ -2584,6 +2586,9 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2584
2586
|
var _handleTranscriptionReceived = function _handleTranscriptionReceived(data) {
|
|
2585
2587
|
onAgentTranscriptionReceived(data);
|
|
2586
2588
|
};
|
|
2589
|
+
var _handleAgentMetrics = function _handleAgentMetrics(data) {
|
|
2590
|
+
onAgentMetrics(data);
|
|
2591
|
+
};
|
|
2587
2592
|
var _handleStreamEnabled = function _handleStreamEnabled(stream) {
|
|
2588
2593
|
setTrack(stream);
|
|
2589
2594
|
onStreamEnabled(stream);
|
|
@@ -2644,6 +2649,7 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2644
2649
|
setAgentState(agentParticipant === null || agentParticipant === void 0 ? void 0 : agentParticipant.agentState);
|
|
2645
2650
|
agentParticipant.on('agent-state-changed', _handleAgentStateChanged);
|
|
2646
2651
|
agentParticipant.on('agent-transcription-received', _handleTranscriptionReceived);
|
|
2652
|
+
agentParticipant.on('agent-metrics', _handleAgentMetrics);
|
|
2647
2653
|
agentParticipant.on('stream-enabled', _handleStreamEnabled);
|
|
2648
2654
|
agentParticipant.on('stream-disabled', _handleStreamDisabled);
|
|
2649
2655
|
agentParticipant.on('media-status-changed', _handleMediaStatusChanged);
|
|
@@ -2651,6 +2657,7 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2651
2657
|
return function () {
|
|
2652
2658
|
agentParticipant.off('agent-state-changed', _handleAgentStateChanged);
|
|
2653
2659
|
agentParticipant.off('agent-transcription-received', _handleTranscriptionReceived);
|
|
2660
|
+
agentParticipant.off('agent-metrics', _handleAgentMetrics);
|
|
2654
2661
|
agentParticipant.off('stream-enabled', _handleStreamEnabled);
|
|
2655
2662
|
agentParticipant.off('stream-disabled', _handleStreamDisabled);
|
|
2656
2663
|
agentParticipant.off('media-status-changed', _handleMediaStatusChanged);
|