bigbluebutton-html-plugin-sdk 0.1.2 → 0.1.5
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/README.md +70 -35
- package/dist/cjs/core/api/BbbPluginSdk.d.ts +1 -1
- package/dist/cjs/core/api/BbbPluginSdk.js +10 -5
- package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
- package/dist/cjs/core/api/types.d.ts +41 -10
- package/dist/cjs/core/auxiliary/join-url/getter.js +11 -7
- package/dist/cjs/core/auxiliary/join-url/getter.js.map +1 -1
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.d.ts +1 -4
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js +81 -39
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js.map +1 -1
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.d.ts +3 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.js +72 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.js.map +1 -0
- package/dist/cjs/core/auxiliary/plugin-unmount/hook.d.ts +2 -0
- package/dist/cjs/core/auxiliary/plugin-unmount/hook.js +20 -0
- package/dist/cjs/core/auxiliary/plugin-unmount/hook.js.map +1 -0
- package/dist/cjs/core/auxiliary/plugin-unmount/types.d.ts +4 -0
- package/dist/cjs/core/auxiliary/plugin-unmount/types.js.map +1 -0
- package/dist/cjs/core/enum.d.ts +3 -1
- package/dist/cjs/core/enum.js +3 -1
- package/dist/cjs/core/enum.js.map +1 -1
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +3 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/utils/hooks.d.ts +1 -0
- package/dist/cjs/core/utils/hooks.js +13 -0
- package/dist/cjs/core/utils/hooks.js.map +1 -0
- package/dist/cjs/data-channel/enums.d.ts +1 -1
- package/dist/cjs/data-channel/enums.js +1 -1
- package/dist/cjs/data-consumption/domain/meeting/from-core/hooks.d.ts +1 -1
- package/dist/cjs/data-consumption/domain/meeting/from-core/types.d.ts +1 -1
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/hooks.d.ts +2 -5
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/hooks.js.map +1 -1
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/types.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.d.ts +2 -7
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/component.d.ts +14 -8
- package/dist/cjs/extensible-areas/actions-bar-item/component.js +32 -10
- package/dist/cjs/extensible-areas/actions-bar-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/types.d.ts +18 -1
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.d.ts +4 -1
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js +4 -1
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/base.d.ts +2 -2
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.d.ts +3 -1
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.js +4 -1
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/index.d.ts +1 -1
- package/dist/cjs/extensible-areas/index.js +1 -1
- package/dist/cjs/extensible-areas/index.js.map +1 -1
- package/dist/cjs/extensible-areas/media-area-item/component.d.ts +42 -0
- package/dist/cjs/extensible-areas/media-area-item/component.js +61 -0
- package/dist/cjs/extensible-areas/media-area-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/media-area-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/media-area-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/media-area-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/media-area-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/media-area-item/index.js +7 -0
- package/dist/cjs/extensible-areas/media-area-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/media-area-item/types.d.ts +15 -0
- package/dist/cjs/extensible-areas/media-area-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.d.ts +3 -1
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.js +3 -1
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/presentation-toolbar-item/types.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ui-data/domain/chat/form/enums.js.map +1 -0
- package/dist/cjs/ui-data/domain/chat/form/types.js.map +1 -0
- package/dist/cjs/ui-data/domain/chat/index.js.map +1 -0
- package/dist/cjs/ui-data/domain/external-video/index.js.map +1 -0
- package/dist/cjs/ui-data/domain/external-video/volume/enums.js.map +1 -0
- package/dist/cjs/ui-data/domain/external-video/volume/types.js.map +1 -0
- package/dist/cjs/ui-data/domain/intl/index.js.map +1 -0
- package/dist/cjs/ui-data/domain/intl/locale/enums.js.map +1 -0
- package/dist/cjs/ui-data/domain/intl/locale/types.js.map +1 -0
- package/dist/cjs/ui-data/domain/layout/index.d.ts +1 -0
- package/dist/cjs/ui-data/domain/layout/index.js +7 -0
- package/dist/cjs/ui-data/domain/layout/index.js.map +1 -0
- package/dist/cjs/{ui-data-hooks → ui-data/domain}/layout/presentation-area/enums.d.ts +1 -1
- package/dist/cjs/{ui-data-hooks → ui-data/domain}/layout/presentation-area/enums.js +5 -5
- package/dist/cjs/ui-data/domain/layout/presentation-area/enums.js.map +1 -0
- package/dist/cjs/{ui-data-hooks → ui-data/domain}/layout/presentation-area/types.d.ts +2 -2
- package/dist/cjs/ui-data/domain/layout/presentation-area/types.js.map +1 -0
- package/dist/cjs/ui-data/domain/presentation/index.d.ts +1 -0
- package/dist/cjs/ui-data/domain/presentation/index.js +6 -0
- package/dist/cjs/ui-data/domain/presentation/index.js.map +1 -0
- package/dist/cjs/ui-data/domain/presentation/presentation-area/enums.d.ts +3 -0
- package/dist/cjs/ui-data/domain/presentation/presentation-area/enums.js +8 -0
- package/dist/cjs/ui-data/domain/presentation/presentation-area/enums.js.map +1 -0
- package/dist/cjs/ui-data/domain/presentation/presentation-area/types.d.ts +6 -0
- package/dist/cjs/ui-data/domain/presentation/presentation-area/types.js.map +1 -0
- package/dist/cjs/ui-data/domain/user-list/enums.js.map +1 -0
- package/dist/cjs/ui-data/domain/user-list/index.js.map +1 -0
- package/dist/cjs/ui-data/domain/user-list/types.js +4 -0
- package/dist/cjs/ui-data/domain/user-list/types.js.map +1 -0
- package/dist/cjs/ui-data/getters/consts.d.ts +1 -0
- package/dist/cjs/ui-data/getters/consts.js +5 -0
- package/dist/cjs/ui-data/getters/consts.js.map +1 -0
- package/dist/cjs/ui-data/getters/getters.d.ts +2 -0
- package/dist/cjs/ui-data/getters/getters.js +65 -0
- package/dist/cjs/ui-data/getters/getters.js.map +1 -0
- package/dist/cjs/ui-data/getters/types.d.ts +2 -0
- package/dist/cjs/ui-data/getters/types.js +3 -0
- package/dist/cjs/ui-data/getters/types.js.map +1 -0
- package/dist/cjs/ui-data/hooks/consts.js.map +1 -0
- package/dist/cjs/{ui-data-hooks → ui-data/hooks}/hooks.d.ts +1 -1
- package/dist/cjs/{ui-data-hooks → ui-data/hooks}/hooks.js +10 -1
- package/dist/cjs/ui-data/hooks/hooks.js.map +1 -0
- package/dist/cjs/ui-data/hooks/types.d.ts +2 -0
- package/dist/cjs/ui-data/hooks/types.js +3 -0
- package/dist/cjs/ui-data/hooks/types.js.map +1 -0
- package/dist/cjs/ui-data/index.d.ts +7 -0
- package/dist/cjs/{ui-data-hooks → ui-data}/index.js +6 -5
- package/dist/cjs/ui-data/index.js.map +1 -0
- package/dist/cjs/ui-data/types.d.ts +11 -0
- package/dist/cjs/ui-data/types.js +3 -0
- package/dist/cjs/{ui-data-hooks → ui-data}/types.js.map +1 -1
- package/package.json +12 -3
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.d.ts +0 -2
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.js +0 -6
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.js.map +0 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.d.ts +0 -30
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js +0 -50
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js.map +0 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.d.ts +0 -4
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.js +0 -10
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.js.map +0 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.d.ts +0 -2
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.js +0 -7
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.js.map +0 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.d.ts +0 -14
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.js.map +0 -1
- package/dist/cjs/ui-data-hooks/chat/form/enums.js.map +0 -1
- package/dist/cjs/ui-data-hooks/chat/form/types.js.map +0 -1
- package/dist/cjs/ui-data-hooks/chat/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/consts.js.map +0 -1
- package/dist/cjs/ui-data-hooks/external-video/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/external-video/volume/enums.js.map +0 -1
- package/dist/cjs/ui-data-hooks/external-video/volume/types.js.map +0 -1
- package/dist/cjs/ui-data-hooks/hooks.js.map +0 -1
- package/dist/cjs/ui-data-hooks/index.d.ts +0 -6
- package/dist/cjs/ui-data-hooks/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/intl/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/intl/locale/enums.js.map +0 -1
- package/dist/cjs/ui-data-hooks/intl/locale/types.js.map +0 -1
- package/dist/cjs/ui-data-hooks/layout/index.d.ts +0 -1
- package/dist/cjs/ui-data-hooks/layout/index.js +0 -7
- package/dist/cjs/ui-data-hooks/layout/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/layout/presentation-area/enums.js.map +0 -1
- package/dist/cjs/ui-data-hooks/layout/presentation-area/types.js.map +0 -1
- package/dist/cjs/ui-data-hooks/types.d.ts +0 -11
- package/dist/cjs/ui-data-hooks/user-list/enums.js.map +0 -1
- package/dist/cjs/ui-data-hooks/user-list/index.js.map +0 -1
- package/dist/cjs/ui-data-hooks/user-list/types.js.map +0 -1
- /package/dist/cjs/{extensible-areas/action-button-dropdown-item → core/auxiliary/plugin-unmount}/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → extensible-areas/media-area-item}/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/form/enums.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/form/enums.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/form/types.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/form/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/index.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/chat/index.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/index.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/index.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/volume/enums.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/volume/enums.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/volume/types.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/external-video/volume/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/index.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/index.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/locale/enums.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/locale/enums.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/locale/types.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/intl/locale/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/layout/presentation-area/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks/user-list → ui-data/domain/presentation/presentation-area}/types.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/user-list/enums.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/user-list/enums.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/user-list/index.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/user-list/index.js +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/domain}/user-list/types.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/hooks}/consts.d.ts +0 -0
- /package/dist/cjs/{ui-data-hooks → ui-data/hooks}/consts.js +0 -0
|
@@ -1,55 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7
36
|
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
37
|
};
|
|
25
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var
|
|
27
|
-
var
|
|
39
|
+
var react_1 = require("react");
|
|
40
|
+
var ui_data_1 = require("../../../../ui-data");
|
|
28
41
|
var utils_1 = require("../../../../utils");
|
|
29
|
-
var
|
|
42
|
+
var utils_2 = require("./utils");
|
|
30
43
|
function useLocaleMessagesAuxiliary(_a) {
|
|
44
|
+
var _this = this;
|
|
31
45
|
var pluginApi = _a.pluginApi, fetchConfigs = _a.fetchConfigs;
|
|
32
|
-
var currentLocale = pluginApi.useUiData(
|
|
46
|
+
var currentLocale = pluginApi.useUiData(ui_data_1.IntlLocaleUiDataNames.CURRENT_LOCALE, {
|
|
33
47
|
locale: 'en',
|
|
34
48
|
fallbackLocale: 'en',
|
|
35
49
|
});
|
|
36
|
-
var _b =
|
|
37
|
-
var _c =
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
var localesBaseUrl =
|
|
42
|
-
var locale = currentLocale.locale;
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
var _b = (0, react_1.useState)(true), loading = _b[0], setLoading = _b[1];
|
|
51
|
+
var _c = (0, react_1.useState)({}), messages = _c[0], setMessages = _c[1];
|
|
52
|
+
var _d = (0, react_1.useState)(), fallbackMessages = _d[0], setFallbackMessages = _d[1];
|
|
53
|
+
(0, react_1.useEffect)(function () {
|
|
54
|
+
if ((pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.localesBaseUrl) && currentLocale.locale) {
|
|
55
|
+
var localesBaseUrl = pluginApi.localesBaseUrl;
|
|
56
|
+
var locale = currentLocale.locale, fallbackLocale = currentLocale.fallbackLocale;
|
|
57
|
+
var localeUrl = "".concat(localesBaseUrl, "/").concat(locale, ".json");
|
|
58
|
+
var fallbackLocaleUrl_1 = "".concat(localesBaseUrl, "/").concat(fallbackLocale, ".json");
|
|
59
|
+
utils_1.pluginLogger.info("Fetching locale [".concat(locale, "] and fallback [").concat(fallbackLocale, "] for plugin [").concat(pluginApi.pluginName, "]"));
|
|
60
|
+
var urlToFetchList = [
|
|
61
|
+
fallbackLocaleUrl_1,
|
|
62
|
+
];
|
|
63
|
+
if (locale !== fallbackLocale)
|
|
64
|
+
urlToFetchList.push(localeUrl);
|
|
65
|
+
Promise.all(urlToFetchList.map(function (url) { return __awaiter(_this, void 0, void 0, function () {
|
|
66
|
+
var a, err_1;
|
|
67
|
+
return __generator(this, function (_a) {
|
|
68
|
+
switch (_a.label) {
|
|
69
|
+
case 0:
|
|
70
|
+
if (!(url !== fallbackLocaleUrl_1 || !fallbackMessages)) return [3 /*break*/, 4];
|
|
71
|
+
_a.label = 1;
|
|
72
|
+
case 1:
|
|
73
|
+
_a.trys.push([1, 3, , 4]);
|
|
74
|
+
return [4 /*yield*/, (0, utils_2.fetchLocaleAndStore)(url, fetchConfigs)];
|
|
75
|
+
case 2:
|
|
76
|
+
a = _a.sent();
|
|
77
|
+
return [2 /*return*/, a];
|
|
78
|
+
case 3:
|
|
79
|
+
err_1 = _a.sent();
|
|
80
|
+
utils_1.pluginLogger.error("[".concat(pluginApi.pluginName, "] - Something went wrong while trying to fetch [").concat(url, "] or parse its result: "), err_1);
|
|
81
|
+
return [2 /*return*/, Promise.resolve({})];
|
|
82
|
+
case 4: return [2 /*return*/, Promise.resolve(fallbackMessages)];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}); })).then(function (values) {
|
|
86
|
+
var desiredLocale = values[0], fallbackLocaleMessages = values[1];
|
|
87
|
+
setMessages((0, utils_2.mergeLocaleMessages)(desiredLocale, fallbackLocaleMessages));
|
|
88
|
+
if (!fallbackMessages)
|
|
89
|
+
setFallbackMessages(fallbackLocaleMessages);
|
|
90
|
+
}).finally(function () {
|
|
48
91
|
setLoading(false);
|
|
49
|
-
utils_1.pluginLogger.error("Something went wrong while trying to fetch ".concat(localeUrl_1, ": "), err);
|
|
50
92
|
});
|
|
51
93
|
}
|
|
52
|
-
}, [
|
|
94
|
+
}, [currentLocale]);
|
|
53
95
|
return {
|
|
54
96
|
messages: messages,
|
|
55
97
|
loading: loading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleMessages.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocaleMessages.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAC5C,+CAA4D;AAC5D,2CAAiD;AAEjD,iCAAmE;AAEnE,SAAS,0BAA0B,CACjC,EAAmD;IADrD,iBAmDC;QAlDG,SAAS,eAAA,EAAE,YAAY,kBAAA;IAEzB,IAAM,aAAa,GAAG,SAAS,CAAC,SAAU,CAAC,+BAAqB,CAAC,cAAc,EAAE;QAC/E,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEG,IAAA,KAAwB,IAAA,gBAAQ,EAAC,IAAI,CAAC,EAArC,OAAO,QAAA,EAAE,UAAU,QAAkB,CAAC;IACvC,IAAA,KAA0B,IAAA,gBAAQ,EAAyB,EAAE,CAAC,EAA7D,QAAQ,QAAA,EAAE,WAAW,QAAwC,CAAC;IAC/D,IAAA,KAA0C,IAAA,gBAAQ,GAA0B,EAA3E,gBAAgB,QAAA,EAAE,mBAAmB,QAAsC,CAAC;IAEnF,IAAA,iBAAS,EAAC;QACR,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,KAAI,aAAa,CAAC,MAAM,EAAE;YAC7C,IAAA,cAAc,GAAK,SAAS,eAAd,CAAe;YAC7B,IAAA,MAAM,GAAqB,aAAa,OAAlC,EAAE,cAAc,GAAK,aAAa,eAAlB,CAAmB;YACjD,IAAM,SAAS,GAAG,UAAG,cAAc,cAAI,MAAM,UAAO,CAAC;YACrD,IAAM,mBAAiB,GAAG,UAAG,cAAc,cAAI,cAAc,UAAO,CAAC;YACrE,oBAAY,CAAC,IAAI,CAAC,2BAAoB,MAAM,6BAAmB,cAAc,2BAAiB,SAAS,CAAC,UAAU,MAAG,CAAC,CAAC;YACvH,IAAM,cAAc,GAAG;gBACrB,mBAAiB;aAClB,CAAC;YACF,IAAI,MAAM,KAAK,cAAc;gBAAE,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9D,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,UAAO,GAAG;;;;;iCACnC,CAAA,GAAG,KAAK,mBAAiB,IAAI,CAAC,gBAAgB,CAAA,EAA9C,wBAA8C;;;;4BAEpC,qBAAM,IAAA,2BAAmB,EAAC,GAAG,EAAE,YAAY,CAAC,EAAA;;4BAAhD,CAAC,GAAG,SAA4C;4BACtD,sBAAO,CAAC,EAAC;;;4BAET,oBAAY,CAAC,KAAK,CAChB,WAAI,SAAS,CAAC,UAAU,6DAAmD,GAAG,4BAAyB,EACvG,KAAG,CACJ,CAAC;4BACF,sBAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAC;gCAG/B,sBAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAC;;;iBAC1C,CAAC,CAAC,CAAC,IAAI,CAAC,UAAC,MAAM;gBACP,IAAA,aAAa,GAA4B,MAAM,GAAlC,EAAE,sBAAsB,GAAI,MAAM,GAAV,CAAW;gBACvD,WAAW,CAAC,IAAA,2BAAmB,EAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC,CAAC;gBACxE,IAAI,CAAC,gBAAgB;oBAAE,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;YACrE,CAAC,CAAC,CAAC,OAAO,CAAC;gBACT,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IACpB,OAAO;QACL,QAAQ,UAAA;QACR,OAAO,SAAA;QACP,aAAa,EAAE,aAAa,CAAC,MAAM;KACpC,CAAC;AACJ,CAAC;AAED,kBAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare function fetchLocaleAndStore(localeUrl: string, fetchConfigs?: RequestInit): Promise<Record<string, string>>;
|
|
2
|
+
declare function mergeLocaleMessages(desiredMessages: Record<string, string>, fallbackMessages: Record<string, string>): Record<string, string>;
|
|
3
|
+
export { fetchLocaleAndStore, mergeLocaleMessages };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.mergeLocaleMessages = exports.fetchLocaleAndStore = void 0;
|
|
51
|
+
function fetchLocaleAndStore(localeUrl, fetchConfigs) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
+
var result, localeMessages;
|
|
54
|
+
return __generator(this, function (_a) {
|
|
55
|
+
switch (_a.label) {
|
|
56
|
+
case 0: return [4 /*yield*/, fetch(localeUrl, fetchConfigs)];
|
|
57
|
+
case 1:
|
|
58
|
+
result = _a.sent();
|
|
59
|
+
return [4 /*yield*/, result.json()];
|
|
60
|
+
case 2:
|
|
61
|
+
localeMessages = _a.sent();
|
|
62
|
+
return [2 /*return*/, localeMessages];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
exports.fetchLocaleAndStore = fetchLocaleAndStore;
|
|
68
|
+
function mergeLocaleMessages(desiredMessages, fallbackMessages) {
|
|
69
|
+
return __assign(__assign({}, fallbackMessages), desiredMessages);
|
|
70
|
+
}
|
|
71
|
+
exports.mergeLocaleMessages = mergeLocaleMessages;
|
|
72
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAe,mBAAmB,CAChC,SAAiB,EACjB,YAA0B;;;;;wBAEX,qBAAM,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,EAAA;;oBAA7C,MAAM,GAAG,SAAoC;oBAC5B,qBAAM,MAAM,CAAC,IAAI,EAAE,EAAA;;oBAApC,cAAc,GAAG,SAAmB;oBAC1C,sBAAO,cAAc,EAAC;;;;CACvB;AASQ,kDAAmB;AAP5B,SAAS,mBAAmB,CAC1B,eAAuC,EACvC,gBAAwC;IAExC,6BAAY,gBAAgB,GAAK,eAAe,EAAG;AACrD,CAAC;AAE6B,kDAAmB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var react_1 = require("react");
|
|
4
|
+
var enum_1 = require("../../enum");
|
|
5
|
+
var useShouldUnmountPlugin = function () {
|
|
6
|
+
var _a = (0, react_1.useState)(false), shouldUnmountPlugin = _a[0], setShouldUnmountPlugin = _a[1];
|
|
7
|
+
var handleMeetingStatusChange = (function (customEvent) {
|
|
8
|
+
var eventDetail = customEvent.detail;
|
|
9
|
+
setShouldUnmountPlugin(!eventDetail.data.userCurrentlyInMeeting);
|
|
10
|
+
});
|
|
11
|
+
(0, react_1.useEffect)(function () {
|
|
12
|
+
window.addEventListener(enum_1.HookEvents.BBB_CORE_UPDATED_MEETING_STATUS, handleMeetingStatusChange);
|
|
13
|
+
return function () {
|
|
14
|
+
window.removeEventListener(enum_1.HookEvents.BBB_CORE_UPDATED_MEETING_STATUS, handleMeetingStatusChange);
|
|
15
|
+
};
|
|
16
|
+
}, []);
|
|
17
|
+
return shouldUnmountPlugin;
|
|
18
|
+
};
|
|
19
|
+
exports.default = useShouldUnmountPlugin;
|
|
20
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/plugin-unmount/hook.ts"],"names":[],"mappings":";;AAAA,+BAA4C;AAC5C,mCAAwC;AAIxC,IAAM,sBAAsB,GAAG;IACvB,IAAA,KAAgD,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA9D,mBAAmB,QAAA,EAAE,sBAAsB,QAAmB,CAAC;IAEtE,IAAM,yBAAyB,GAAkB,CAAC,UAChD,WAAgD;QAEhD,IAAM,WAAW,GACf,WAAW,CAAC,MAAiD,CAAC;QAChE,sBAAsB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACnE,CAAC,CAAkB,CAAC;IAEpB,IAAA,iBAAS,EAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,iBAAU,CAAC,+BAA+B,EAAE,yBAAyB,CAAC,CAAC;QAC/F,OAAO;YACL,MAAM,CAAC,mBAAmB,CACxB,iBAAU,CAAC,+BAA+B,EAC1C,yBAAyB,CAC1B,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/plugin-unmount/types.ts"],"names":[],"mappings":""}
|
package/dist/cjs/core/enum.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DomElementManipulationHooks } from '../dom-element-manipulation/enums';
|
|
|
3
3
|
import { DataConsumptionHooks } from '../data-consumption/enums';
|
|
4
4
|
export declare enum HookEvents {
|
|
5
5
|
BBB_CORE_SENT_NEW_DATA = "BBB_CORE_SENT_NEW_DATA",
|
|
6
|
+
BBB_CORE_UPDATED_MEETING_STATUS = "BBB_CORE_UPDATED_MEETING_STATUS",
|
|
6
7
|
/**
|
|
7
8
|
* PLUGIN_SENT_CHANGES_TO_BBB_CORE is used to:
|
|
8
9
|
* - Comunicate that the subscription has changed for the dom-element-manipulation hook;
|
|
@@ -12,4 +13,5 @@ export declare enum HookEvents {
|
|
|
12
13
|
PLUGIN_SUBSCRIBED_TO_BBB_CORE = "PLUGIN_SUBSCRIBED_TO_BBB_CORE",
|
|
13
14
|
PLUGIN_UNSUBSCRIBED_FROM_BBB_CORE = "PLUGIN_UNSUBSCRIBED_FROM_BBB_CORE"
|
|
14
15
|
}
|
|
15
|
-
export
|
|
16
|
+
export declare const GENERIC_HOOK_PLUGIN = "GENERIC_HOOK_PLUGIN";
|
|
17
|
+
export type Hooks = DataConsumptionHooks | DataChannelHooks | DomElementManipulationHooks | typeof GENERIC_HOOK_PLUGIN;
|
package/dist/cjs/core/enum.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HookEvents = void 0;
|
|
3
|
+
exports.GENERIC_HOOK_PLUGIN = exports.HookEvents = void 0;
|
|
4
4
|
var HookEvents;
|
|
5
5
|
(function (HookEvents) {
|
|
6
6
|
HookEvents["BBB_CORE_SENT_NEW_DATA"] = "BBB_CORE_SENT_NEW_DATA";
|
|
7
|
+
HookEvents["BBB_CORE_UPDATED_MEETING_STATUS"] = "BBB_CORE_UPDATED_MEETING_STATUS";
|
|
7
8
|
/**
|
|
8
9
|
* PLUGIN_SENT_CHANGES_TO_BBB_CORE is used to:
|
|
9
10
|
* - Comunicate that the subscription has changed for the dom-element-manipulation hook;
|
|
@@ -13,4 +14,5 @@ var HookEvents;
|
|
|
13
14
|
HookEvents["PLUGIN_SUBSCRIBED_TO_BBB_CORE"] = "PLUGIN_SUBSCRIBED_TO_BBB_CORE";
|
|
14
15
|
HookEvents["PLUGIN_UNSUBSCRIBED_FROM_BBB_CORE"] = "PLUGIN_UNSUBSCRIBED_FROM_BBB_CORE";
|
|
15
16
|
})(HookEvents || (exports.HookEvents = HookEvents = {}));
|
|
17
|
+
exports.GENERIC_HOOK_PLUGIN = 'GENERIC_HOOK_PLUGIN';
|
|
16
18
|
//# sourceMappingURL=enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/core/enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/core/enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,+DAAiD,CAAA;IACjD,iFAAmE,CAAA;IACnE;;;;OAIG;IACH,iFAAmE,CAAA;IACnE,6EAA+D,CAAA;IAC/D,qFAAuE,CAAA;AACzE,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB;AAEY,QAAA,mBAAmB,GAAG,qBAAqB,CAAC"}
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BbbPluginSdk = void 0;
|
|
3
|
+
exports.GENERIC_HOOK_PLUGIN = exports.BbbPluginSdk = void 0;
|
|
4
4
|
var BbbPluginSdk_1 = require("./api/BbbPluginSdk");
|
|
5
5
|
Object.defineProperty(exports, "BbbPluginSdk", { enumerable: true, get: function () { return BbbPluginSdk_1.BbbPluginSdk; } });
|
|
6
|
+
var enum_1 = require("./enum");
|
|
7
|
+
Object.defineProperty(exports, "GENERIC_HOOK_PLUGIN", { enumerable: true, get: function () { return enum_1.GENERIC_HOOK_PLUGIN; } });
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,4GAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,4GAAA,YAAY,OAAA;AAGrB,+BAA6C;AAApC,2GAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePreviousValue: <T = unknown>(value: T) => T | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usePreviousValue = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var usePreviousValue = function (value) {
|
|
6
|
+
var ref = (0, react_1.useRef)();
|
|
7
|
+
(0, react_1.useEffect)(function () {
|
|
8
|
+
ref.current = value;
|
|
9
|
+
});
|
|
10
|
+
return ref.current;
|
|
11
|
+
};
|
|
12
|
+
exports.usePreviousValue = usePreviousValue;
|
|
13
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/core/utils/hooks.ts"],"names":[],"mappings":";;;AAAA,+BAA0C;AAEnC,IAAM,gBAAgB,GAAG,UAAc,KAAQ;IACpD,IAAM,GAAG,GAAG,IAAA,cAAM,GAAK,CAAC;IACxB,IAAA,iBAAS,EAAC;QACR,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -15,7 +15,7 @@ export declare enum DataChannelHooks {
|
|
|
15
15
|
DATA_CHANNEL_REPLACE = "Hooks::DataChannelReplace"
|
|
16
16
|
}
|
|
17
17
|
export declare enum DataChannelTypes {
|
|
18
|
-
|
|
18
|
+
ALL_ITEMS = "Hooks::DataChannel::AllItems",
|
|
19
19
|
NEW_ITEMS = "Hooks::DataChannel::NewItems",
|
|
20
20
|
LATEST_ITEM = "Hooks::DataChannel::LatestItem"
|
|
21
21
|
}
|
|
@@ -22,7 +22,7 @@ var DataChannelHooks;
|
|
|
22
22
|
})(DataChannelHooks || (exports.DataChannelHooks = DataChannelHooks = {}));
|
|
23
23
|
var DataChannelTypes;
|
|
24
24
|
(function (DataChannelTypes) {
|
|
25
|
-
DataChannelTypes["
|
|
25
|
+
DataChannelTypes["ALL_ITEMS"] = "Hooks::DataChannel::AllItems";
|
|
26
26
|
DataChannelTypes["NEW_ITEMS"] = "Hooks::DataChannel::NewItems";
|
|
27
27
|
DataChannelTypes["LATEST_ITEM"] = "Hooks::DataChannel::LatestItem";
|
|
28
28
|
})(DataChannelTypes || (exports.DataChannelTypes = DataChannelTypes = {}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Meeting } from './types';
|
|
2
|
-
export declare const useMeeting: () => import("../../../..").GraphqlResponseWrapper<Meeting
|
|
2
|
+
export declare const useMeeting: () => import("../../../..").GraphqlResponseWrapper<Meeting>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
loading: boolean;
|
|
4
|
-
error?: import("@apollo/client").ApolloError | undefined;
|
|
5
|
-
};
|
|
1
|
+
import { UsePluginSettingsWrapperFunction } from './types';
|
|
2
|
+
export declare const usePluginSettings: UsePluginSettingsWrapperFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/hooks.ts"],"names":[],"mappings":";;;AAAA,gEAA+E;AAC/E,qCAAkD;AAElD,iCAAuD;AAEhD,IAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/hooks.ts"],"names":[],"mappings":";;;AAAA,gEAA+E;AAC/E,qCAAkD;AAElD,iCAAuD;AAEhD,IAAM,iBAAiB,GAAqC,UACjE,UAAkB,IACf,OAAA,IAAA,oCAA4B,EAAC,IAAA,6BAAqB,EACT,+BAAqB,EAAE;IAC/D,SAAS,EAAE;QACT,UAAU,YAAA;KACX;CACF,CAAC,CAAC,EALF,CAKE,CAAC;AAPK,QAAA,iBAAiB,qBAOtB"}
|
|
@@ -8,3 +8,5 @@ export interface PluginSettingsResponseFromGraphqlWrapper {
|
|
|
8
8
|
}[];
|
|
9
9
|
}
|
|
10
10
|
export type UsePluginSettingsFunction = () => GraphqlResponseWrapper<PluginSettingsData>;
|
|
11
|
+
export type UsePluginSettingsWrapperFunction = (pluginName: string) => GraphqlResponseWrapper<PluginSettingsData>;
|
|
12
|
+
export type FilterPluginSpecificSettingsFunction = (completeSettings: GraphqlResponseWrapper<PluginSettingsResponseFromGraphqlWrapper>) => GraphqlResponseWrapper<PluginSettingsData>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const filterPluginSpecificSettings: (completeSettings: GraphqlResponseWrapper<PluginSettingsResponseFromGraphqlWrapper>) => {
|
|
4
|
-
data: import("./types").PluginSettingsData | undefined;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
error?: import("@apollo/client").ApolloError | undefined;
|
|
7
|
-
};
|
|
1
|
+
import { FilterPluginSpecificSettingsFunction } from './types';
|
|
2
|
+
export declare const filterPluginSpecificSettings: FilterPluginSpecificSettingsFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAA4B,GAAyC,UAChF,gBAAkF;;IAElF,IAAM,cAAc,GAAG,MAAA,MAAA,gBAAgB;SACpC,IAAI,0CAAE,4BAA4B,CAAC,CAAC,CAAC,0CAAE,QAAQ,CAAC;IACnD,6BACK,gBAAgB,KACnB,IAAI,EAAE,cAAc,IACpB;AACJ,CAAC,CAAC;AATW,QAAA,4BAA4B,gCASvC"}
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import { ChangeEvent, MouseEvent } from 'react';
|
|
2
2
|
import { ActionsBarPosition, ActionsBarItemType } from './enums';
|
|
3
|
-
import { ActionsBarInterface, ActionsBarItemProps, ActionsBarButtonProps, ActionsBarSeparatorProps, ActionsBarSelectorProps, SelectOption, ToggleGroupOption, ActionsBarToggleGroupProps } from './types';
|
|
3
|
+
import { ActionsBarInterface, ActionsBarItemProps, ActionsBarButtonProps, ActionsBarSeparatorProps, ActionsBarSelectorProps, SelectOption, ToggleGroupOption, ActionsBarToggleGroupProps, ActionsBarIconType } from './types';
|
|
4
4
|
declare class ActionsBarItem implements ActionsBarInterface {
|
|
5
5
|
id: string;
|
|
6
6
|
type: ActionsBarItemType;
|
|
7
7
|
position: ActionsBarPosition;
|
|
8
|
-
|
|
8
|
+
dataTest: string;
|
|
9
|
+
constructor({ id, type, position, dataTest, }: ActionsBarItemProps);
|
|
9
10
|
setItemId(id: string): void;
|
|
10
11
|
}
|
|
11
12
|
export declare class ActionsBarButton extends ActionsBarItem {
|
|
12
|
-
icon:
|
|
13
|
+
icon: ActionsBarIconType;
|
|
13
14
|
tooltip: string;
|
|
14
15
|
onClick: () => void;
|
|
15
16
|
/**
|
|
16
17
|
* Returns object to be used in the setter for action bar. In this case,
|
|
17
18
|
* a button.
|
|
18
19
|
*
|
|
19
|
-
* @param icon - icon to be used in the button for the action bar
|
|
20
|
+
* @param icon - icon to be used in the button for the action bar - it can be the iconName
|
|
21
|
+
* from BigBlueButton or an svg
|
|
20
22
|
* @param tooltip - tooltip to be displayed when hovering the button
|
|
23
|
+
* @param dataTest - string attribute to be used for testing
|
|
21
24
|
* @param onClick - function to be called when clicking the button
|
|
22
25
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
23
26
|
*
|
|
24
27
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
25
28
|
*/
|
|
26
|
-
constructor({ id, icon, tooltip, onClick, position, }: ActionsBarButtonProps);
|
|
29
|
+
constructor({ id, icon, tooltip, dataTest, onClick, position, }: ActionsBarButtonProps);
|
|
27
30
|
}
|
|
28
31
|
export declare class ActionsBarSeparator extends ActionsBarItem {
|
|
29
32
|
icon: string;
|
|
@@ -34,10 +37,11 @@ export declare class ActionsBarSeparator extends ActionsBarItem {
|
|
|
34
37
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
35
38
|
* @param icon - Icon to be displayed as the separator. If not provided, the default separator
|
|
36
39
|
* (a vertical bar) will be displayed.
|
|
40
|
+
* @param dataTest - string attribute to be used for testing
|
|
37
41
|
*
|
|
38
42
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
39
43
|
*/
|
|
40
|
-
constructor({ position, icon, }: ActionsBarSeparatorProps);
|
|
44
|
+
constructor({ position, icon, dataTest, }: ActionsBarSeparatorProps);
|
|
41
45
|
}
|
|
42
46
|
export declare class ActionsBarSelector extends ActionsBarItem {
|
|
43
47
|
title: string;
|
|
@@ -53,13 +57,14 @@ export declare class ActionsBarSelector extends ActionsBarItem {
|
|
|
53
57
|
* @param options - an array of options to be available in the selector
|
|
54
58
|
* @param defaultOption - the option to be initially selected, if not present, the first option is
|
|
55
59
|
* selected
|
|
60
|
+
* @param dataTest - string attribute to be used for testing
|
|
56
61
|
* @param onChange - function to be called when selected value changes
|
|
57
62
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
58
63
|
* @param width - desired width for the selector in px, default is 140
|
|
59
64
|
*
|
|
60
65
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
61
66
|
*/
|
|
62
|
-
constructor({ id, title, options, defaultOption, onChange, position, width, }: ActionsBarSelectorProps);
|
|
67
|
+
constructor({ id, title, options, defaultOption, dataTest, onChange, position, width, }: ActionsBarSelectorProps);
|
|
63
68
|
}
|
|
64
69
|
export declare class ActionsBarToggleGroup extends ActionsBarItem {
|
|
65
70
|
title: string;
|
|
@@ -77,11 +82,12 @@ export declare class ActionsBarToggleGroup extends ActionsBarItem {
|
|
|
77
82
|
* @param options - an array of options to be available in the toggle group
|
|
78
83
|
* @param defaultOption - the option to be initially checked, if not present, the first option is
|
|
79
84
|
* checked
|
|
85
|
+
* @param dataTest - string attribute to be used for testing
|
|
80
86
|
* @param onChange - function to be called when checked value changes
|
|
81
87
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
82
88
|
*
|
|
83
89
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
84
90
|
*/
|
|
85
|
-
constructor({ id, title, exclusive, options, defaultOption, onChange, position, }: ActionsBarToggleGroupProps);
|
|
91
|
+
constructor({ id, title, exclusive, options, defaultOption, dataTest, onChange, position, }: ActionsBarToggleGroupProps);
|
|
86
92
|
}
|
|
87
93
|
export {};
|