@webex/plugin-meetings 3.0.0-beta.12 → 3.0.0-beta.14
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/meeting/index.js +26 -0
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +25 -0
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js +8 -0
- package/dist/meeting/request.type.js.map +1 -0
- package/package.json +18 -18
- package/src/meeting/index.ts +18 -0
- package/src/meeting/request.ts +23 -1
- package/src/meeting/request.type.ts +11 -0
- package/test/unit/spec/meeting/index.js +64 -0
- package/test/unit/spec/meeting/request.js +19 -0
package/dist/meeting/index.js
CHANGED
|
@@ -7009,6 +7009,32 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7009
7009
|
|
|
7010
7010
|
return _promise.default.reject(new Error('Error sending reaction, service url not found.'));
|
|
7011
7011
|
}
|
|
7012
|
+
/**
|
|
7013
|
+
* Method to enable or disable reactions inside the meeting.
|
|
7014
|
+
*
|
|
7015
|
+
* @param {boolean} enable - enable or disable reactions
|
|
7016
|
+
* @returns {Promise}
|
|
7017
|
+
* @public
|
|
7018
|
+
* @memberof Meeting
|
|
7019
|
+
*/
|
|
7020
|
+
|
|
7021
|
+
}, {
|
|
7022
|
+
key: "toggleReactions",
|
|
7023
|
+
value: function toggleReactions(enable) {
|
|
7024
|
+
var _this$locusInfo3, _this$locusInfo3$cont, _this$locusInfo3$cont2;
|
|
7025
|
+
|
|
7026
|
+
var isEnabled = (_this$locusInfo3 = this.locusInfo) === null || _this$locusInfo3 === void 0 ? void 0 : (_this$locusInfo3$cont = _this$locusInfo3.controls) === null || _this$locusInfo3$cont === void 0 ? void 0 : (_this$locusInfo3$cont2 = _this$locusInfo3$cont.reactions) === null || _this$locusInfo3$cont2 === void 0 ? void 0 : _this$locusInfo3$cont2.enabled;
|
|
7027
|
+
|
|
7028
|
+
if (isEnabled && enable || !isEnabled && !enable) {
|
|
7029
|
+
return _promise.default.resolve("Reactions are already ".concat(isEnabled ? 'enabled' : 'disabled', "."));
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
return this.meetingRequest.toggleReactions({
|
|
7033
|
+
enable: enable,
|
|
7034
|
+
locusUrl: this.locusUrl,
|
|
7035
|
+
requestingParticipantId: this.members.selfId
|
|
7036
|
+
});
|
|
7037
|
+
}
|
|
7012
7038
|
}]);
|
|
7013
7039
|
return Meeting;
|
|
7014
7040
|
}(_webexCore.StatelessWebexPlugin);
|