UNPKG

bigbluebutton-html-plugin-sdk

Version:

This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.

62 lines 2.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MediaAreaSeparator = exports.MediaAreaOption = void 0; var enums_1 = require("./enums"); // MediaArea Extensible Area var MediaAreaOption = /** @class */ (function () { /** * Returns the option for the media area * * @param label - label to be displayed on the option * @param icon - icon to be used in the button for the action bar - it can be the iconName * from BigbBlueButton or an svg * @param tooltip - tooltip to be displayed when hovering over option * @param dataTest - string attribute to be used for testing * @param allowed - boolean indicating whether the option should be displayed * @param onClick - function to be called when clicking * * @returns the option to be displayed in the media area */ function MediaAreaOption(_a) { var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, icon = _a.icon, _c = _a.tooltip, tooltip = _c === void 0 ? '' : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d, _e = _a.allowed, allowed = _e === void 0 ? true : _e, _f = _a.onClick, onClick = _f === void 0 ? function () { } : _f; var _this = this; this.id = ''; this.setItemId = function (id) { _this.id = "MediaAreaOption_".concat(id); }; if (id) { this.id = id; } this.label = label; this.icon = icon; this.tooltip = tooltip; this.dataTest = dataTest; this.allowed = allowed; this.onClick = onClick; this.type = enums_1.MediaAreaItemType.OPTION; } return MediaAreaOption; }()); exports.MediaAreaOption = MediaAreaOption; var MediaAreaSeparator = /** @class */ (function () { /** * Returns the separator for the media area * * @param dataTest - optional string attribute to be used for testing * * @returns the separator to be displayed in the media area */ function MediaAreaSeparator(_a) { var _b = _a.dataTest, dataTest = _b === void 0 ? '' : _b; var _this = this; this.id = ''; this.setItemId = function (id) { _this.id = "MediaAreaSeparator_".concat(id); }; this.type = enums_1.MediaAreaItemType.SEPARATOR; this.dataTest = dataTest; } return MediaAreaSeparator; }()); exports.MediaAreaSeparator = MediaAreaSeparator; //# sourceMappingURL=component.js.map