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.

34 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.form = void 0; var enums_1 = require("./enums"); exports.form = { /** * Opens the chat panel automatically. If chatId is provided, opens that specific chat. * * @param openChatCommandArgument Optional chatId to open a specific chat panel. * Refer to {@link OpenChatFormCommandArguments} to understand the argument structure. */ open: function (openChatCommandArgument) { if (openChatCommandArgument) { window.dispatchEvent(new CustomEvent(enums_1.ChatFormCommandsEnum.OPEN, { detail: openChatCommandArgument, })); } else { window.dispatchEvent(new Event(enums_1.ChatFormCommandsEnum.OPEN)); } }, /** * Fills in the chat input when called. * * @param FillChatFormCommandArguments the text with which the method will fill the chat input. * Refer to {@link FillChatFormCommandArguments} to understand the argument structure. */ fill: function (fillChatFormCommandArguments) { window.dispatchEvent(new CustomEvent(enums_1.ChatFormCommandsEnum.FILL, { detail: fillChatFormCommandArguments, })); }, }; //# sourceMappingURL=commands.js.map