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.

14 lines 872 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var utils_1 = require("../data-consumption/utils"); var validateMutationEventFromClient = function (setMutationResult, setterFunctionCallback, hook, event, mutation, options) { var _a = event.detail, hookReceived = _a.hook, hookArguments = _a.hookArguments, data = _a.data; var _b = (hookArguments || { mutation: null, options: null }), mutationReceived = _b.mutation, optionsReceived = _b.options; if (hookReceived === hook && ((0, utils_1.makeCustomHookIdentifier)(mutationReceived, optionsReceived) === (0, utils_1.makeCustomHookIdentifier)(mutation, options))) { setMutationResult(function (prevObject) { return setterFunctionCallback(prevObject, data); }); } }; exports.default = validateMutationEventFromClient; //# sourceMappingURL=utils.js.map