@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.modern.js
CHANGED
|
@@ -456,7 +456,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
|
|
|
456
456
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MeetingProviderContex.Consumer, null, children));
|
|
457
457
|
};
|
|
458
458
|
|
|
459
|
-
var version = "0.8.
|
|
459
|
+
var version = "0.8.1";
|
|
460
460
|
|
|
461
461
|
var MeetingProvider = function MeetingProvider(_ref) {
|
|
462
462
|
var children = _ref.children,
|
|
@@ -2510,6 +2510,8 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2510
2510
|
onAgentStateChanged = _ref$onAgentStateChan === void 0 ? function () {} : _ref$onAgentStateChan,
|
|
2511
2511
|
_ref$onAgentTranscrip = _ref.onAgentTranscriptionReceived,
|
|
2512
2512
|
onAgentTranscriptionReceived = _ref$onAgentTranscrip === void 0 ? function () {} : _ref$onAgentTranscrip,
|
|
2513
|
+
_ref$onAgentMetrics = _ref.onAgentMetrics,
|
|
2514
|
+
onAgentMetrics = _ref$onAgentMetrics === void 0 ? function () {} : _ref$onAgentMetrics,
|
|
2513
2515
|
_ref$onStreamEnabled = _ref.onStreamEnabled,
|
|
2514
2516
|
onStreamEnabled = _ref$onStreamEnabled === void 0 ? function () {} : _ref$onStreamEnabled,
|
|
2515
2517
|
_ref$onStreamDisabled = _ref.onStreamDisabled,
|
|
@@ -2582,6 +2584,9 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2582
2584
|
var _handleTranscriptionReceived = function _handleTranscriptionReceived(data) {
|
|
2583
2585
|
onAgentTranscriptionReceived(data);
|
|
2584
2586
|
};
|
|
2587
|
+
var _handleAgentMetrics = function _handleAgentMetrics(data) {
|
|
2588
|
+
onAgentMetrics(data);
|
|
2589
|
+
};
|
|
2585
2590
|
var _handleStreamEnabled = function _handleStreamEnabled(stream) {
|
|
2586
2591
|
setTrack(stream);
|
|
2587
2592
|
onStreamEnabled(stream);
|
|
@@ -2642,6 +2647,7 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2642
2647
|
setAgentState(agentParticipant === null || agentParticipant === void 0 ? void 0 : agentParticipant.agentState);
|
|
2643
2648
|
agentParticipant.on('agent-state-changed', _handleAgentStateChanged);
|
|
2644
2649
|
agentParticipant.on('agent-transcription-received', _handleTranscriptionReceived);
|
|
2650
|
+
agentParticipant.on('agent-metrics', _handleAgentMetrics);
|
|
2645
2651
|
agentParticipant.on('stream-enabled', _handleStreamEnabled);
|
|
2646
2652
|
agentParticipant.on('stream-disabled', _handleStreamDisabled);
|
|
2647
2653
|
agentParticipant.on('media-status-changed', _handleMediaStatusChanged);
|
|
@@ -2649,6 +2655,7 @@ var useAgentParticipant = function useAgentParticipant(participantId, _temp) {
|
|
|
2649
2655
|
return function () {
|
|
2650
2656
|
agentParticipant.off('agent-state-changed', _handleAgentStateChanged);
|
|
2651
2657
|
agentParticipant.off('agent-transcription-received', _handleTranscriptionReceived);
|
|
2658
|
+
agentParticipant.off('agent-metrics', _handleAgentMetrics);
|
|
2652
2659
|
agentParticipant.off('stream-enabled', _handleStreamEnabled);
|
|
2653
2660
|
agentParticipant.off('stream-disabled', _handleStreamDisabled);
|
|
2654
2661
|
agentParticipant.off('media-status-changed', _handleMediaStatusChanged);
|