bigbluebutton-html-plugin-sdk 0.0.88 → 0.0.90

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.
Files changed (61) hide show
  1. package/README.md +28 -10
  2. package/dist/cjs/core/auxiliary/join-url/getter.js.map +1 -1
  3. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.d.ts +10 -6
  4. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js +11 -14
  5. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js.map +1 -1
  6. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.d.ts +5 -1
  7. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.js +86 -1
  8. package/dist/cjs/core/auxiliary/plugin-information/locale-messages/utils.js.map +1 -1
  9. package/dist/cjs/extensible-areas/action-button-dropdown-item/component.d.ts +1 -1
  10. package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js +1 -1
  11. package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js.map +1 -1
  12. package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.d.ts +3 -1
  13. package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js +3 -1
  14. package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js.map +1 -1
  15. package/dist/cjs/ui-commands/actions-bar/commands.d.ts +1 -1
  16. package/dist/cjs/ui-commands/actions-bar/commands.js +1 -1
  17. package/dist/cjs/ui-commands/commands.d.ts +2 -44
  18. package/dist/cjs/ui-commands/commands.js +2 -0
  19. package/dist/cjs/ui-commands/commands.js.map +1 -1
  20. package/dist/cjs/ui-commands/conference/commands.d.ts +1 -1
  21. package/dist/cjs/ui-commands/conference/commands.js +1 -1
  22. package/dist/cjs/ui-commands/index.d.ts +1 -1
  23. package/dist/cjs/ui-commands/index.js +2 -1
  24. package/dist/cjs/ui-commands/index.js.map +1 -1
  25. package/dist/cjs/ui-commands/layout/commands.d.ts +10 -2
  26. package/dist/cjs/ui-commands/layout/commands.js +15 -2
  27. package/dist/cjs/ui-commands/layout/commands.js.map +1 -1
  28. package/dist/cjs/ui-commands/layout/enums.d.ts +5 -2
  29. package/dist/cjs/ui-commands/layout/enums.js +14 -12
  30. package/dist/cjs/ui-commands/layout/enums.js.map +1 -1
  31. package/dist/cjs/ui-commands/layout/types.d.ts +6 -1
  32. package/dist/cjs/ui-commands/sidekick-area/commands.d.ts +2 -0
  33. package/dist/cjs/ui-commands/sidekick-area/commands.js +8 -0
  34. package/dist/cjs/ui-commands/sidekick-area/commands.js.map +1 -0
  35. package/dist/cjs/ui-commands/sidekick-area/options/commands.d.ts +2 -0
  36. package/dist/cjs/ui-commands/sidekick-area/options/commands.js +52 -0
  37. package/dist/cjs/ui-commands/sidekick-area/options/commands.js.map +1 -0
  38. package/dist/cjs/ui-commands/sidekick-area/options/enums.d.ts +6 -0
  39. package/dist/cjs/ui-commands/sidekick-area/options/enums.js +11 -0
  40. package/dist/cjs/ui-commands/sidekick-area/options/enums.js.map +1 -0
  41. package/dist/cjs/ui-commands/sidekick-area/options/panel/commands.d.ts +2 -0
  42. package/dist/cjs/ui-commands/sidekick-area/options/panel/commands.js +19 -0
  43. package/dist/cjs/ui-commands/sidekick-area/options/panel/commands.js.map +1 -0
  44. package/dist/cjs/ui-commands/sidekick-area/options/panel/enums.d.ts +4 -0
  45. package/dist/cjs/ui-commands/sidekick-area/options/panel/enums.js +9 -0
  46. package/dist/cjs/ui-commands/sidekick-area/options/panel/enums.js.map +1 -0
  47. package/dist/cjs/ui-commands/sidekick-area/options/panel/types.d.ts +4 -0
  48. package/dist/cjs/ui-commands/sidekick-area/options/panel/types.js +3 -0
  49. package/dist/cjs/ui-commands/sidekick-area/options/panel/types.js.map +1 -0
  50. package/dist/cjs/ui-commands/sidekick-area/options/types.d.ts +19 -0
  51. package/dist/cjs/ui-commands/sidekick-area/options/types.js +3 -0
  52. package/dist/cjs/ui-commands/sidekick-area/options/types.js.map +1 -0
  53. package/dist/cjs/ui-commands/sidekick-area/types.d.ts +4 -0
  54. package/dist/cjs/ui-commands/sidekick-area/types.js +3 -0
  55. package/dist/cjs/ui-commands/sidekick-area/types.js.map +1 -0
  56. package/dist/cjs/ui-commands/sidekick-options-container/commands.d.ts +4 -0
  57. package/dist/cjs/ui-commands/sidekick-options-container/commands.js +4 -0
  58. package/dist/cjs/ui-commands/sidekick-options-container/commands.js.map +1 -1
  59. package/dist/cjs/ui-commands/types.d.ts +2 -0
  60. package/dist/cjs/ui-data/domain/intl/locale/types.d.ts +5 -4
  61. package/package.json +1 -1
package/README.md CHANGED
@@ -339,7 +339,7 @@ Wiping all data off will delete every item from the specific data-channel within
339
339
 
340
340
  **Data-channel configuration:**
341
341
 
342
- The data-channel name must be in the `manifest.json` along with all the permissions for writting, reading and deleting, see example below:
342
+ The data-channel name must be in the `manifest.json` along with all the permissions for writing, reading and deleting, see example below:
343
343
 
344
344
  ```json
345
345
  {
@@ -406,26 +406,44 @@ One other thing is that the type of the return is precisely the same type requir
406
406
 
407
407
  `uiCommands` object: It basically contains all the possible commands available to the developer to interact with the core BBB UI, see the ones implemented down below:
408
408
 
409
+ - actions-bar:
410
+ - setDisplayActionBar: this function decides whether to display the actions bar
411
+ - camera:
412
+ - setSelfViewDisableAllDevices: Sets the self-view camera disabled/enabled for all camera devices of a user;
413
+ - setSelfViewDisable: Sets the self-view camera disabled/enabled for specific camera.
409
414
  - chat:
410
415
  - form:
411
416
  - open: this function will open the sidebar chat panel automatically;
412
- - fill: this function will fill the form input field of the chat passed in the argument as {text: string}
417
+ - fill: this function will fill the form input field of the chat passed in the argument as `{text: string}`
418
+ - conference:
419
+ - setSpeakerLevel: this function will set the speaker volume level(audio output) of the conference to a certain number between 0 and 1;
413
420
  - external-video:
414
421
  - volume:
415
422
  - set: this function will set the external video volume to a certain number between 0 and 1 (that is 0% and);
416
- - sidekick-options-container:
417
- - open: this function will open the sidekick options panel automatically;
418
- - close: this function will close the sidekick options panel automatically (and also the sidebar content if open, to avoid inconsistencies in ui);
423
+ - layout:
424
+ - changeEnforcedLayout: (deprecated) Changes the enforced layout
425
+ - setEnforcedLayout: Sets the enforced layout
426
+ - navBar:
427
+ - setDisplayNavBar: Sets the displayNavBar to true (show it) or false (hide it).
428
+ - notification:
429
+ - send: This function will send a notification for the client to render, keep in mind that it's only client-side. Should you want it to be rendered in multiple clients, use this with a data-channel;
419
430
  - presentation-area:
420
431
  - open: this function will open the presentation area content automatically;
421
432
  - close: this function will close the presentation area content automatically;
422
- - conference:
423
- - setSpeakerLevel: this function will set the speaker volume level(audio output) of the conference to a certain number between 0 and 1;
424
- - notification:
425
- - send: This function will send a notification for the client to render, keep in mind that it's only client-side. Should you want it to be rendered in multiple clients, use this with a data-channel;
433
+ - sidekick-area:
434
+ - options:
435
+ - renameGenericContentMenu: this function will rename the menu of the generic content in the sidekick-area (must have the ID of the sidekick and the newName);
436
+ - renameGenericContentSection: this function will rename the section in which the menu with the specified ID is;
437
+ - setMenuBadge: this will set a badge for a specific generic content in the sidekick area;
438
+ - removeMenuBadge: this will remove any badges that a specific generic content might have;
439
+ - panel:
440
+ - open: this function will open the sidekick options panel automatically;
441
+ - close: this function will close the sidekick options panel automatically (and also the sidebar content if open, to avoid inconsistencies in ui);
442
+ - sidekick-options-container:
443
+ - open: this function will open the sidekick options panel automatically;
444
+ - close: this function will close the sidekick options panel automatically (and also the sidebar content if open, to avoid inconsistencies in ui);
426
445
  - user-status:
427
446
  - setAwayStatus: this function will set the away status of the user to a certain status;
428
-
429
447
  See usage ahead:
430
448
 
431
449
  ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/join-url/getter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA0D;AAI1D,SAAS,qBAAqB,CAAC,UAAmC;IAChE,IAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;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IACb,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAsB,UAAU,CAAC,UAAqC;;;;;;;oBAC9D,aAAa,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;oBAClD,OAAO,GAAG,CAAA,MAAA,MAAM,CAAC,qBAAqB,0CAAE,MAAM,CAAC,GAAG,CAAC,UAAU,KAAI,gBAAgB,CAAC;oBAClF,GAAG,GAAG,UAAG,OAAO,0CAAgC,IAAA,wBAAe,GAAE,cAAI,aAAa,CAAE,CAAC;oBAC1E,qBAAM,KAAK,CAAC,GAAG,EAAE;4BAChC,WAAW,EAAE,SAAS;yBACvB,CAAC,EAAA;;oBAFI,QAAQ,GAAG,SAEf;oBACkB,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAAnC,WAAW,GAAG,SAAqB;oBACzC,sBAAO,WAAW,CAAC,QAAQ,CAAC,GAAa,EAAC;;;;CAC3C;AATD,gCASC"}
@@ -1,17 +1,21 @@
1
- import { PluginApi } from 'src/core/api/types';
2
- interface UseLocaleMessagesProps {
1
+ import { PluginApi } from '../../../../core/api/types';
2
+ export interface UseLocaleMessagesProps {
3
3
  pluginApi: PluginApi;
4
4
  fetchConfigs?: RequestInit;
5
5
  }
6
- interface PluginInformationResult {
6
+ export interface PluginInformationResult {
7
7
  javascriptEntrypointIntegrity: string;
8
8
  javascriptEntrypointUrl: string;
9
9
  localesBaseUrl: string;
10
10
  }
11
- interface IntlMessages {
11
+ export interface IntlMessages {
12
12
  loading: boolean;
13
13
  messages: Record<string, string>;
14
14
  currentLocale: string;
15
15
  }
16
- type UseLocaleMessagesFunction = (fetchConfigs?: RequestInit) => IntlMessages;
17
- export { UseLocaleMessagesProps, PluginInformationResult, IntlMessages, UseLocaleMessagesFunction, };
16
+ export type UseLocaleMessagesFunction = (fetchConfigs?: RequestInit) => IntlMessages;
17
+ export interface DataWaitingWrapper<T> {
18
+ data: T;
19
+ loading: boolean;
20
+ error?: object;
21
+ }
@@ -37,21 +37,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var react_1 = require("react");
40
- var ui_data_1 = require("../../../../ui-data");
41
40
  var utils_1 = require("../../../../utils");
42
41
  var utils_2 = require("./utils");
43
42
  function useLocaleMessagesAuxiliary(_a) {
44
43
  var _this = this;
45
44
  var pluginApi = _a.pluginApi, fetchConfigs = _a.fetchConfigs;
46
- var currentLocale = pluginApi.useUiData(ui_data_1.IntlLocaleUiDataNames.CURRENT_LOCALE, {
47
- locale: 'en',
48
- fallbackLocale: 'en',
49
- });
50
45
  var _b = (0, react_1.useState)(true), loading = _b[0], setLoading = _b[1];
51
46
  var _c = (0, react_1.useState)({}), messages = _c[0], setMessages = _c[1];
52
47
  var _d = (0, react_1.useState)(), fallbackMessages = _d[0], setFallbackMessages = _d[1];
48
+ var localeDataWrapper = (0, utils_2.useGetNormalizedLocale)({ pluginApi: pluginApi, fetchConfigs: fetchConfigs });
49
+ var currentLocale = localeDataWrapper.data;
53
50
  (0, react_1.useEffect)(function () {
54
- if ((pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.localesBaseUrl) && currentLocale.locale) {
51
+ if ((pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.localesBaseUrl) && !localeDataWrapper.loading) {
55
52
  var localesBaseUrl = pluginApi.localesBaseUrl;
56
53
  var locale = currentLocale.locale, fallbackLocale = currentLocale.fallbackLocale;
57
54
  var localeUrl = "".concat(localesBaseUrl, "/").concat(locale, ".json");
@@ -63,7 +60,7 @@ function useLocaleMessagesAuxiliary(_a) {
63
60
  if (locale !== fallbackLocale)
64
61
  urlToFetchList.push(localeUrl);
65
62
  Promise.all(urlToFetchList.map(function (url) { return __awaiter(_this, void 0, void 0, function () {
66
- var a, err_1;
63
+ var err_1;
67
64
  return __generator(this, function (_a) {
68
65
  switch (_a.label) {
69
66
  case 0:
@@ -72,26 +69,26 @@ function useLocaleMessagesAuxiliary(_a) {
72
69
  case 1:
73
70
  _a.trys.push([1, 3, , 4]);
74
71
  return [4 /*yield*/, (0, utils_2.fetchLocaleAndStore)(url, fetchConfigs)];
75
- case 2:
76
- a = _a.sent();
77
- return [2 /*return*/, a];
72
+ case 2: return [2 /*return*/, _a.sent()];
78
73
  case 3:
79
74
  err_1 = _a.sent();
80
75
  utils_1.pluginLogger.error("[".concat(pluginApi.pluginName, "] - Something went wrong while trying to fetch [").concat(url, "] or parse its result: "), err_1);
81
76
  return [2 /*return*/, Promise.resolve({})];
82
- case 4: return [2 /*return*/, Promise.resolve(fallbackMessages)];
77
+ case 4:
78
+ // The first of the list is the fallback
79
+ return [2 /*return*/, Promise.resolve(fallbackMessages)];
83
80
  }
84
81
  });
85
82
  }); })).then(function (values) {
86
- var desiredLocale = values[0], fallbackLocaleMessages = values[1];
87
- setMessages((0, utils_2.mergeLocaleMessages)(desiredLocale, fallbackLocaleMessages));
83
+ var fallbackLocaleMessages = values[0], desiredLocaleMessages = values[1];
84
+ setMessages((0, utils_2.mergeLocaleMessages)(desiredLocaleMessages, fallbackLocaleMessages));
88
85
  if (!fallbackMessages)
89
86
  setFallbackMessages(fallbackLocaleMessages);
90
87
  }).finally(function () {
91
88
  setLoading(false);
92
89
  });
93
90
  }
94
- }, [currentLocale]);
91
+ }, [localeDataWrapper]);
95
92
  return {
96
93
  messages: messages,
97
94
  loading: loading,
@@ -1 +1 @@
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,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AET,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"}
1
+ {"version":3,"file":"useLocaleMessages.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAC5C,2CAAiD;AAEjD,iCAA2F;AAE3F,SAAS,0BAA0B,CACjC,EAAmD;IADrD,iBAiDC;QAhDG,SAAS,eAAA,EAAE,YAAY,kBAAA;IAEnB,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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AO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAC;;wBAG/B,wCAAwC;wBACxC,sBAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAC;;;iBAC1C,CAAC,CAAC,CAAC,IAAI,CAAC,UAAC,MAAM;gBACP,IAAA,sBAAsB,GAA2B,MAAM,GAAjC,EAAE,qBAAqB,GAAI,MAAM,GAAV,CAAW;gBAC/D,WAAW,CAAC,IAAA,2BAAmB,EAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAC,CAAC;gBAChF,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,iBAAiB,CAAC,CAAC,CAAC;IACxB,OAAO;QACL,QAAQ,UAAA;QACR,OAAO,SAAA;QACP,aAAa,EAAE,aAAa,CAAC,MAAM;KACpC,CAAC;AACJ,CAAC;AAED,kBAAe,0BAA0B,CAAC"}
@@ -1,3 +1,7 @@
1
+ import { DataWaitingWrapper, UseLocaleMessagesProps } from './types';
2
+ import { LocaleObject } from '../../../../ui-data/domain/intl/locale/types';
1
3
  declare function fetchLocaleAndStore(localeUrl: string, fetchConfigs?: RequestInit): Promise<Record<string, string>>;
2
4
  declare function mergeLocaleMessages(desiredMessages: Record<string, string>, fallbackMessages: Record<string, string>): Record<string, string>;
3
- export { fetchLocaleAndStore, mergeLocaleMessages };
5
+ declare function useGetLocalesIndex(localeUrl: string | undefined, fetchConfigs?: RequestInit): DataWaitingWrapper<string[]>;
6
+ declare function useGetNormalizedLocale({ pluginApi, fetchConfigs }: UseLocaleMessagesProps): DataWaitingWrapper<LocaleObject>;
7
+ export { fetchLocaleAndStore, mergeLocaleMessages, useGetLocalesIndex, useGetNormalizedLocale, };
@@ -46,8 +46,19 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
47
  }
48
48
  };
49
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
50
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
51
+ if (ar || !(i in from)) {
52
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
53
+ ar[i] = from[i];
54
+ }
55
+ }
56
+ return to.concat(ar || Array.prototype.slice.call(from));
57
+ };
49
58
  Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.mergeLocaleMessages = exports.fetchLocaleAndStore = void 0;
59
+ exports.useGetNormalizedLocale = exports.useGetLocalesIndex = exports.mergeLocaleMessages = exports.fetchLocaleAndStore = void 0;
60
+ var react_1 = require("react");
61
+ var ui_data_1 = require("../../../../ui-data");
51
62
  function fetchLocaleAndStore(localeUrl, fetchConfigs) {
52
63
  return __awaiter(this, void 0, void 0, function () {
53
64
  var result, localeMessages;
@@ -69,4 +80,78 @@ function mergeLocaleMessages(desiredMessages, fallbackMessages) {
69
80
  return __assign(__assign({}, fallbackMessages), desiredMessages);
70
81
  }
71
82
  exports.mergeLocaleMessages = mergeLocaleMessages;
83
+ function useGetLocalesIndex(localeUrl, fetchConfigs) {
84
+ var _a = (0, react_1.useState)({
85
+ data: [],
86
+ loading: true,
87
+ }), indexOfLocales = _a[0], setIndexOfLocales = _a[1];
88
+ (0, react_1.useEffect)(function () {
89
+ if (localeUrl || localeUrl !== '') {
90
+ var indexUrl = "".concat(localeUrl, "/index.json");
91
+ fetch(indexUrl, fetchConfigs)
92
+ .then(function (res) { return res.json(); })
93
+ .then(function (list) {
94
+ var filtered = list.filter(function (filename) { return filename !== 'index.json'; });
95
+ setIndexOfLocales({
96
+ data: filtered,
97
+ loading: false,
98
+ });
99
+ })
100
+ .catch(function (error) {
101
+ setIndexOfLocales({
102
+ data: [],
103
+ loading: false,
104
+ error: error,
105
+ });
106
+ });
107
+ }
108
+ }, [localeUrl]);
109
+ return indexOfLocales;
110
+ }
111
+ exports.useGetLocalesIndex = useGetLocalesIndex;
112
+ function useGetNormalizedLocale(_a) {
113
+ var pluginApi = _a.pluginApi, fetchConfigs = _a.fetchConfigs;
114
+ var localeFromUiData = pluginApi.useUiData(ui_data_1.IntlLocaleUiDataNames.CURRENT_LOCALE, {
115
+ locale: 'en',
116
+ fallbackLocale: 'en',
117
+ });
118
+ var _b = (0, react_1.useState)({
119
+ data: localeFromUiData,
120
+ loading: true,
121
+ }), currentLocale = _b[0], setCurrentLocale = _b[1];
122
+ var localesIndex = useGetLocalesIndex(pluginApi.localesBaseUrl, fetchConfigs);
123
+ (0, react_1.useEffect)(function () {
124
+ if (!localesIndex.loading && !localesIndex.error) {
125
+ var desiredLocale_1 = localeFromUiData.locale.split(/[-_]/g);
126
+ var usableLocales = localesIndex.data
127
+ .map(function (file) { return file.replace('.json', ''); })
128
+ .reduce(function (locales, locale) { return (locale.match(desiredLocale_1[0])
129
+ ? __spreadArray(__spreadArray([], locales, true), [locale], false) : locales); }, []);
130
+ var isDesiredLocalePresent = usableLocales.findIndex(function (locale) { return locale === localeFromUiData.locale; }) !== -1;
131
+ if (isDesiredLocalePresent) {
132
+ setCurrentLocale({
133
+ data: localeFromUiData,
134
+ loading: false,
135
+ });
136
+ }
137
+ else {
138
+ var regionDefault = usableLocales.find(function (locale) { return locale === desiredLocale_1[0]; });
139
+ var localeFallback = regionDefault || usableLocales[0];
140
+ setCurrentLocale({
141
+ data: __assign(__assign({}, localeFromUiData), { locale: localeFallback }),
142
+ loading: false,
143
+ });
144
+ }
145
+ }
146
+ else if (!localesIndex.loading
147
+ && localesIndex.error) {
148
+ setCurrentLocale({
149
+ data: localeFromUiData,
150
+ loading: false,
151
+ });
152
+ }
153
+ }, [localeFromUiData, localesIndex]);
154
+ return currentLocale;
155
+ }
156
+ exports.useGetNormalizedLocale = useGetNormalizedLocale;
72
157
  //# sourceMappingURL=utils.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAE5C,+CAA4D;AAG5D,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;AA4GC,kDAAmB;AA1GrB,SAAS,mBAAmB,CAC1B,eAAuC,EACvC,gBAAwC;IAExC,6BAAY,gBAAgB,GAAK,eAAe,EAAG;AACrD,CAAC;AAsGC,kDAAmB;AApGrB,SAAS,kBAAkB,CACzB,SAA6B,EAC7B,YAA0B;IAEpB,IAAA,KAAsC,IAAA,gBAAQ,EAA+B;QACjF,IAAI,EAAE,EAAE;QACR,OAAO,E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;aAAM,IACL,CAAC,YAAY,CAAC,OAAO;eAClB,YAAY,CAAC,KAAK,EACrB;YACA,gBAAgB,CAAC;gBACf,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC,CAAC;IACrC,OAAO,aAAa,CAAC;AACvB,CAAC;AAMC,wDAAsB"}
@@ -35,7 +35,7 @@ export declare class ActionButtonDropdownSeparator implements ActionButtonDropdo
35
35
  *
36
36
  * @returns the separator to be displayed in the action button dropdown
37
37
  */
38
- constructor({ dataTest }: {
38
+ constructor({ dataTest }?: {
39
39
  dataTest?: string | undefined;
40
40
  });
41
41
  setItemId: (id: string) => void;
@@ -46,7 +46,7 @@ var ActionButtonDropdownSeparator = /** @class */ (function () {
46
46
  * @returns the separator to be displayed in the action button dropdown
47
47
  */
48
48
  function ActionButtonDropdownSeparator(_a) {
49
- var _b = _a.dataTest, dataTest = _b === void 0 ? '' : _b;
49
+ var _b = _a === void 0 ? {} : _a, _c = _b.dataTest, dataTest = _c === void 0 ? '' : _c;
50
50
  var _this = this;
51
51
  this.id = '';
52
52
  this.setItemId = function (id) {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/action-button-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAKvD,uCAAuC;AAEvC;IAiBE;;;;;;;;;;;OAWG;IACH,oCAAY,EAEsB;YADhC,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA;QAD5F,iBAaC;QAzCD,OAAE,GAAW,EAAE,CAAC;QA2ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,qCAA8B,EAAE,CAAE,CAAC;QAC/C,CAAC,CAAC;QAdA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,oCAA4B,CAAC,MAAM,CAAC;IAClD,CAAC;IAKH,iCAAC;AAAD,CAAC,AA/CD,IA+CC;AA/CY,gEAA0B;AAiDvC;IAOE;;;;;;OAMG;IACH,uCAAY,EAAiB;YAAf,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;QAA3B,iBAGC;QAhBD,OAAE,GAAW,EAAE,CAAC;QAkBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,wCAAiC,EAAE,CAAE,CAAC;QAClD,CAAC,CAAC;QANA,IAAI,CAAC,IAAI,GAAG,oCAA4B,CAAC,SAAS,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKH,oCAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,sEAA6B"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/action-button-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAKvD,uCAAuC;AAEvC;IAiBE;;;;;;;;;;;OAWG;IACH,oCAAY,EAEsB;YADhC,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,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B,CAAC;IAKH,oCAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,sEAA6B"}
@@ -34,6 +34,8 @@ export declare class AudioSettingsDropdownSeparator implements AudioSettingsDrop
34
34
  *
35
35
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
36
36
  */
37
- constructor();
37
+ constructor({ dataTest }?: {
38
+ dataTest?: string | undefined;
39
+ });
38
40
  setItemId: (id: string) => void;
39
41
  }
@@ -44,13 +44,15 @@ var AudioSettingsDropdownSeparator = /** @class */ (function () {
44
44
  *
45
45
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
46
46
  */
47
- function AudioSettingsDropdownSeparator() {
47
+ function AudioSettingsDropdownSeparator(_a) {
48
+ var _b = _a === void 0 ? {} : _a, _c = _b.dataTest, dataTest = _c === void 0 ? '' : _c;
48
49
  var _this = this;
49
50
  this.id = '';
50
51
  this.dataTest = 'audioSettingsDropdownSeparator';
51
52
  this.setItemId = function (id) {
52
53
  _this.id = "AudioSettingsDropdownSeparator_".concat(id);
53
54
  };
55
+ this.dataTest = dataTest;
54
56
  this.type = enums_1.AudioSettingsDropdownItemType.SEPARATOR;
55
57
  }
56
58
  return AudioSettingsDropdownSeparator;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/audio-settings-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAwD;AAKxD,wCAAwC;AAExC;IAaE;;;;;;;;;;OAUG;IACH,qCAAY,EAEuB;YADjC,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA;QAD9D,iBAWC;QAlCD,OAAE,GAAW,EAAE,CAAC;QAoChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,sCAA+B,EAAE,CAAE,CAAC;QAChD,CAAC,CAAC;QAZA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,qCAA6B,CAAC,MAAM,CAAC;IACnD,CAAC;IAKH,kCAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,kEAA2B;AA0CxC;IAOE;;;;;;;;OAQG;IACH;QAAA,iBAEC;QAjBD,OAAE,GAAW,EAAE,CAAC;QAIhB,aAAQ,GAAW,gCAAgC,CAAC;QAepD,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yCAAkC,EAAE,CAAE,CAAC;QACnD,CAAC,CAAC;QALA,IAAI,CAAC,IAAI,GAAG,qCAA6B,CAAC,SAAS,CAAC;IACtD,CAAC;IAKH,qCAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,wEAA8B"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/audio-settings-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAwD;AAKxD,wCAAwC;AAExC;IAaE;;;;;;;;;;OAUG;IACH,qCAAY,EAEuB;YADjC,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAmB,EAAnB,OAAO,mBAAG,cAAQ,CAAC,KAAA;QAD/D,iBAWC;QAlCD,OAAE,GAAW,EAAE,CAAC;QAoChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,sCAA+B,EAAE,CAAE,CAAC;QAChD,CAAC,CAAC;QAZA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,qCAA6B,CAAC,MAAM,CAAC;IACnD,CAAC;IAKH,kCAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,kEAA2B;AA0CxC;IAOE;;;;;;;;OAQG;IACH,wCAAY,EAAsB;YAAtB,qBAAoB,EAAE,KAAA,EAApB,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;QAA3B,iBAGC;QAlBD,OAAE,GAAW,EAAE,CAAC;QAIhB,aAAQ,GAAW,gCAAgC,CAAC;QAgBpD,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yCAAkC,EAAE,CAAE,CAAC;QACnD,CAAC,CAAC;QANA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,qCAA6B,CAAC,SAAS,CAAC;IACtD,CAAC;IAKH,qCAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,wEAA8B"}
@@ -3,7 +3,7 @@ export declare const actionsBar: {
3
3
  /**
4
4
  * Decides whether to display the actions bar
5
5
  *
6
- * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
6
+ * @param arg object containing the `displayActionBar` which is a boolean
7
7
  * level.
8
8
  * Refer to {@link SetDisplayActionBarCommandArguments} to understand the argument structure.
9
9
  */
@@ -6,7 +6,7 @@ exports.actionsBar = {
6
6
  /**
7
7
  * Decides whether to display the actions bar
8
8
  *
9
- * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
9
+ * @param arg object containing the `displayActionBar` which is a boolean
10
10
  * level.
11
11
  * Refer to {@link SetDisplayActionBarCommandArguments} to understand the argument structure.
12
12
  */
@@ -1,44 +1,2 @@
1
- export declare const uiCommands: {
2
- actionsBar: {
3
- setDisplayActionBar: (arg: import("./actions-bar/types").SetDisplayActionBarCommandArguments) => void;
4
- };
5
- camera: {
6
- setSelfViewDisableAllDevices: (setSelfViewDisableAllDevicesCommandArguments: import("./camera/types").SetSelfViewDisableAllDevicesCommandArguments) => void;
7
- setSelfViewDisable: (setSelfViewDisableCommandArguments: import("./camera/types").SetSelfViewDisableCommandArguments) => void;
8
- };
9
- chat: {
10
- form: {
11
- open: () => void;
12
- fill: (fillChatFormCommandArguments: import("./chat/form/types").FillChatFormCommandArguments) => void;
13
- };
14
- };
15
- externalVideo: {
16
- volume: {
17
- set: (setExternalVideoVolumeCommandArguments: import("./external-video/volume/types").SetExternalVideoVolumeCommandArguments) => void;
18
- };
19
- };
20
- sidekickOptionsContainer: {
21
- open: () => void;
22
- close: () => void;
23
- };
24
- navBar: {
25
- setDisplayNavBar: (setDisplayNavBarCommandArguments: import("./nav-bar/types").SetDisplayNavBarCommandArguments) => void;
26
- };
27
- presentationArea: {
28
- open: () => void;
29
- close: () => void;
30
- };
31
- userStatus: {
32
- setAwayStatus: (setAwayStatusCommandArguments: import("./user-status/types").SetAwayStatusCommandArguments) => void;
33
- };
34
- conference: {
35
- setSpeakerLevel: (setSpeakerLevelCommandArguments: import("./conference/types").SetSpeakerLevelCommandArguments) => void;
36
- };
37
- notification: {
38
- send: (information: import("./notification/types").SendNotificationCommandArguments) => void;
39
- setEnabledDisplayNotifications: (isNotificationDisplayEnabled: boolean) => void;
40
- };
41
- layout: {
42
- changeEnforcedLayout: import("./layout/types").ChangeEnforcedLayout;
43
- };
44
- };
1
+ import { UiCommands } from './types';
2
+ export declare const uiCommands: UiCommands;
@@ -12,12 +12,14 @@ var commands_8 = require("./camera/commands");
12
12
  var commands_9 = require("./actions-bar/commands");
13
13
  var commands_10 = require("./layout/commands");
14
14
  var commands_11 = require("./nav-bar/commands");
15
+ var commands_12 = require("./sidekick-area/commands");
15
16
  exports.uiCommands = {
16
17
  actionsBar: commands_9.actionsBar,
17
18
  camera: commands_8.camera,
18
19
  chat: commands_1.chat,
19
20
  externalVideo: commands_2.externalVideo,
20
21
  sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
22
+ sidekickArea: commands_12.sidekickArea,
21
23
  navBar: commands_11.navBar,
22
24
  presentationArea: commands_4.presentationArea,
23
25
  userStatus: commands_5.userStatus,
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;AACnD,oDAAuD;AACvD,8CAA2C;AAC3C,mDAAoD;AACpD,+CAA2C;AAC3C,gDAA4C;AAE/B,QAAA,UAAU,GAAG;IACxB,UAAU,uBAAA;IACV,MAAM,mBAAA;IACN,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,MAAM,oBAAA;IACN,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;IACV,YAAY,yBAAA;IACZ,MAAM,oBAAA;CACP,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;AACnD,oDAAuD;AACvD,8CAA2C;AAC3C,mDAAoD;AACpD,+CAA2C;AAC3C,gDAA4C;AAC5C,sDAAwD;AAG3C,QAAA,UAAU,GAAe;IACpC,UAAU,uBAAA;IACV,MAAM,mBAAA;IACN,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,YAAY,0BAAA;IACZ,MAAM,oBAAA;IACN,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;IACV,YAAY,yBAAA;IACZ,MAAM,oBAAA;CACP,CAAC"}
@@ -4,7 +4,7 @@ export declare const conference: {
4
4
  * Sets the volume of the speakers in the conference to a certain level.
5
5
  * Needs to be a value between 0 and 1.
6
6
  *
7
- * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
7
+ * @param setSpeakerLevelCommandArguments volume to which the core will set the speaker
8
8
  * level.
9
9
  * Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
10
10
  */
@@ -7,7 +7,7 @@ exports.conference = {
7
7
  * Sets the volume of the speakers in the conference to a certain level.
8
8
  * Needs to be a value between 0 and 1.
9
9
  *
10
- * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
10
+ * @param setSpeakerLevelCommandArguments volume to which the core will set the speaker
11
11
  * level.
12
12
  * Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
13
13
  */
@@ -1,2 +1,2 @@
1
1
  export { NotificationTypeUiCommand } from './notification/enums';
2
- export { ChangeEnforcedLayoutTypeEnum } from './layout/enums';
2
+ export { ChangeEnforcedLayoutTypeEnum, EnforcedLayoutTypeEnum } from './layout/enums';
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChangeEnforcedLayoutTypeEnum = exports.NotificationTypeUiCommand = void 0;
3
+ exports.EnforcedLayoutTypeEnum = exports.ChangeEnforcedLayoutTypeEnum = exports.NotificationTypeUiCommand = void 0;
4
4
  var enums_1 = require("./notification/enums");
5
5
  Object.defineProperty(exports, "NotificationTypeUiCommand", { enumerable: true, get: function () { return enums_1.NotificationTypeUiCommand; } });
6
6
  var enums_2 = require("./layout/enums");
7
7
  Object.defineProperty(exports, "ChangeEnforcedLayoutTypeEnum", { enumerable: true, get: function () { return enums_2.ChangeEnforcedLayoutTypeEnum; } });
8
+ Object.defineProperty(exports, "EnforcedLayoutTypeEnum", { enumerable: true, get: function () { return enums_2.EnforcedLayoutTypeEnum; } });
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;AAAA,8CAAiE;AAAxD,kHAAA,yBAAyB,OAAA;AAClC,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;AAAA,8CAAiE;AAAxD,kHAAA,yBAAyB,OAAA;AAClC,wCAAsF;AAA7E,qHAAA,4BAA4B,OAAA;AAAE,+GAAA,sBAAsB,OAAA"}
@@ -1,9 +1,17 @@
1
+ import { EnforcedLayoutTypeEnum } from './enums';
1
2
  import { ChangeEnforcedLayout } from './types';
2
3
  export declare const layout: {
3
4
  /**
4
- * <description>
5
+ * @deprecated Use {@link layout.setEnforcedLayout} instead
6
+ * Changes the enforced layout
5
7
  *
6
- * @param
8
+ * @param layoutType is one of the options described by the enum
7
9
  */
8
10
  changeEnforcedLayout: ChangeEnforcedLayout;
11
+ /**
12
+ * Sets the enforced layout
13
+ *
14
+ * @param layoutType is one of the options described by the enum
15
+ */
16
+ setEnforcedLayout: (layoutType: EnforcedLayoutTypeEnum) => void;
9
17
  };
@@ -4,9 +4,10 @@ exports.layout = void 0;
4
4
  var enums_1 = require("./enums");
5
5
  exports.layout = {
6
6
  /**
7
- * <description>
7
+ * @deprecated Use {@link layout.setEnforcedLayout} instead
8
+ * Changes the enforced layout
8
9
  *
9
- * @param
10
+ * @param layoutType is one of the options described by the enum
10
11
  */
11
12
  changeEnforcedLayout: (function (layoutType) {
12
13
  window.dispatchEvent(new CustomEvent(enums_1.LayoutEnum.CHANGE_ENFORCED_LAYOUT, {
@@ -15,5 +16,17 @@ exports.layout = {
15
16
  },
16
17
  }));
17
18
  }),
19
+ /**
20
+ * Sets the enforced layout
21
+ *
22
+ * @param layoutType is one of the options described by the enum
23
+ */
24
+ setEnforcedLayout: (function (layoutType) {
25
+ window.dispatchEvent(new CustomEvent(enums_1.LayoutEnum.SET_ENFORCED_LAYOUT, {
26
+ detail: {
27
+ layoutType: layoutType,
28
+ },
29
+ }));
30
+ }),
18
31
  };
19
32
  //# sourceMappingURL=commands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAmE;AAGtD,QAAA,MAAM,GAAG;IACpB;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,UAAC,UAAwC;QAC9D,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,kBAAU,CAAC,sBAAsB,EAAE;YACnC,MAAM,EAAE;gBACN,UAAU,YAAA;aACX;SACF,CAAC,CACH,CAAC;IACJ,CAAC,CAAyB;CAC3B,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/commands.ts"],"names":[],"mappings":";;;AAAA,iCAA6D;AAGhD,QAAA,MAAM,GAAG;IACpB;;;;;OAKG;IACH,oBAAoB,EAAE,CAAC,UAAC,UAAkC;QACxD,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,kBAAU,CAAC,sBAAsB,EAAE;YACnC,MAAM,EAAE;gBACN,UAAU,YAAA;aACX;SACF,CAAC,CACH,CAAC;IACJ,CAAC,CAAyB;IAE1B;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,UAAC,UAAkC;QACrD,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,kBAAU,CAAC,mBAAmB,EAAE;YAChC,MAAM,EAAE;gBACN,UAAU,YAAA;aACX;SACF,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;CACH,CAAC"}
@@ -1,7 +1,8 @@
1
1
  export declare enum LayoutEnum {
2
- CHANGE_ENFORCED_LAYOUT = "CHANGE_ENFORCED_LAYOUT"
2
+ CHANGE_ENFORCED_LAYOUT = "CHANGE_ENFORCED_LAYOUT",
3
+ SET_ENFORCED_LAYOUT = "SET_ENFORCED_LAYOUT"
3
4
  }
4
- export declare enum ChangeEnforcedLayoutTypeEnum {
5
+ export declare enum EnforcedLayoutTypeEnum {
5
6
  CUSTOM_LAYOUT = "CUSTOM_LAYOUT",
6
7
  SMART_LAYOUT = "SMART_LAYOUT",
7
8
  PRESENTATION_FOCUS = "PRESENTATION_FOCUS",
@@ -11,3 +12,5 @@ export declare enum ChangeEnforcedLayoutTypeEnum {
11
12
  PARTICIPANTS_AND_CHAT_ONLY = "PARTICIPANTS_AND_CHAT_ONLY",
12
13
  MEDIA_ONLY = "MEDIA_ONLY"
13
14
  }
15
+ export declare const ChangeEnforcedLayoutTypeEnum: typeof EnforcedLayoutTypeEnum;
16
+ export type ChangeEnforcedLayoutTypeEnum = EnforcedLayoutTypeEnum;
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChangeEnforcedLayoutTypeEnum = exports.LayoutEnum = void 0;
3
+ exports.ChangeEnforcedLayoutTypeEnum = exports.EnforcedLayoutTypeEnum = exports.LayoutEnum = void 0;
4
4
  var LayoutEnum;
5
5
  (function (LayoutEnum) {
6
6
  LayoutEnum["CHANGE_ENFORCED_LAYOUT"] = "CHANGE_ENFORCED_LAYOUT";
7
+ LayoutEnum["SET_ENFORCED_LAYOUT"] = "SET_ENFORCED_LAYOUT";
7
8
  })(LayoutEnum || (exports.LayoutEnum = LayoutEnum = {}));
8
- var ChangeEnforcedLayoutTypeEnum;
9
- (function (ChangeEnforcedLayoutTypeEnum) {
10
- ChangeEnforcedLayoutTypeEnum["CUSTOM_LAYOUT"] = "CUSTOM_LAYOUT";
11
- ChangeEnforcedLayoutTypeEnum["SMART_LAYOUT"] = "SMART_LAYOUT";
12
- ChangeEnforcedLayoutTypeEnum["PRESENTATION_FOCUS"] = "PRESENTATION_FOCUS";
13
- ChangeEnforcedLayoutTypeEnum["VIDEO_FOCUS"] = "VIDEO_FOCUS";
14
- ChangeEnforcedLayoutTypeEnum["CAMERAS_ONLY"] = "CAMERAS_ONLY";
15
- ChangeEnforcedLayoutTypeEnum["PRESENTATION_ONLY"] = "PRESENTATION_ONLY";
16
- ChangeEnforcedLayoutTypeEnum["PARTICIPANTS_AND_CHAT_ONLY"] = "PARTICIPANTS_AND_CHAT_ONLY";
17
- ChangeEnforcedLayoutTypeEnum["MEDIA_ONLY"] = "MEDIA_ONLY";
18
- })(ChangeEnforcedLayoutTypeEnum || (exports.ChangeEnforcedLayoutTypeEnum = ChangeEnforcedLayoutTypeEnum = {}));
9
+ var EnforcedLayoutTypeEnum;
10
+ (function (EnforcedLayoutTypeEnum) {
11
+ EnforcedLayoutTypeEnum["CUSTOM_LAYOUT"] = "CUSTOM_LAYOUT";
12
+ EnforcedLayoutTypeEnum["SMART_LAYOUT"] = "SMART_LAYOUT";
13
+ EnforcedLayoutTypeEnum["PRESENTATION_FOCUS"] = "PRESENTATION_FOCUS";
14
+ EnforcedLayoutTypeEnum["VIDEO_FOCUS"] = "VIDEO_FOCUS";
15
+ EnforcedLayoutTypeEnum["CAMERAS_ONLY"] = "CAMERAS_ONLY";
16
+ EnforcedLayoutTypeEnum["PRESENTATION_ONLY"] = "PRESENTATION_ONLY";
17
+ EnforcedLayoutTypeEnum["PARTICIPANTS_AND_CHAT_ONLY"] = "PARTICIPANTS_AND_CHAT_ONLY";
18
+ EnforcedLayoutTypeEnum["MEDIA_ONLY"] = "MEDIA_ONLY";
19
+ })(EnforcedLayoutTypeEnum || (exports.EnforcedLayoutTypeEnum = EnforcedLayoutTypeEnum = {}));
20
+ exports.ChangeEnforcedLayoutTypeEnum = EnforcedLayoutTypeEnum;
19
21
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,+DAAiD,CAAA;AACnD,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED,IAAY,4BASX;AATD,WAAY,4BAA4B;IACtC,+DAA+B,CAAA;IAC/B,6DAA6B,CAAA;IAC7B,yEAAyC,CAAA;IACzC,2DAA2B,CAAA;IAC3B,6DAA6B,CAAA;IAC7B,uEAAuC,CAAA;IACvC,yFAAyD,CAAA;IACzD,yDAAyB,CAAA;AAC3B,CAAC,EATW,4BAA4B,4CAA5B,4BAA4B,QASvC"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+DAAiD,CAAA;IACjD,yDAA2C,CAAA;AAC7C,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,yDAA+B,CAAA;IAC/B,uDAA6B,CAAA;IAC7B,mEAAyC,CAAA;IACzC,qDAA2B,CAAA;IAC3B,uDAA6B,CAAA;IAC7B,iEAAuC,CAAA;IACvC,mFAAyD,CAAA;IACzD,mDAAyB,CAAA;AAC3B,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC;AAEY,QAAA,4BAA4B,GAAG,sBAAsB,CAAC"}
@@ -1,8 +1,13 @@
1
- import { ChangeEnforcedLayoutTypeEnum } from './enums';
1
+ import { ChangeEnforcedLayoutTypeEnum, EnforcedLayoutTypeEnum } from './enums';
2
2
  export interface ChangeEnforcedLayoutCommandArguments {
3
3
  layoutType: ChangeEnforcedLayoutTypeEnum;
4
4
  }
5
+ export interface SetEnforcedLayoutCommandArguments {
6
+ layoutType: EnforcedLayoutTypeEnum;
7
+ }
5
8
  export type ChangeEnforcedLayout = (layoutType: ChangeEnforcedLayoutTypeEnum) => void;
9
+ export type SetEnforcedLayoutFunction = (layoutType: EnforcedLayoutTypeEnum) => void;
6
10
  export interface UiCommandsLayoutObject {
7
11
  changeEnforcedLayout: ChangeEnforcedLayout;
12
+ setEnforcedLayout: SetEnforcedLayoutFunction;
8
13
  }
@@ -0,0 +1,2 @@
1
+ import { UiCommandsSidekickArea } from './types';
2
+ export declare const sidekickArea: UiCommandsSidekickArea;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sidekickArea = void 0;
4
+ var commands_1 = require("./options/commands");
5
+ exports.sidekickArea = {
6
+ options: commands_1.sidekickAreaOptions,
7
+ };
8
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-area/commands.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AAG5C,QAAA,YAAY,GAA2B;IAClD,OAAO,EAAE,8BAAmB;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { UiCommandsSidekickAreaOptionsObject } from './types';
2
+ export declare const sidekickAreaOptions: UiCommandsSidekickAreaOptionsObject;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sidekickAreaOptions = void 0;
4
+ var enums_1 = require("./enums");
5
+ var commands_1 = require("./panel/commands");
6
+ exports.sidekickAreaOptions = {
7
+ panel: commands_1.sidekickAreaOptionsPanel,
8
+ /**
9
+ * Rename Generic Sidekick Content's menu (Option's name)
10
+ */
11
+ renameGenericContentMenu: function (id, newName) {
12
+ window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.RENAME_GENERIC_CONTENT_MENU, {
13
+ detail: {
14
+ id: id,
15
+ newName: newName,
16
+ },
17
+ }));
18
+ },
19
+ /**
20
+ * Rename Generic Sidekick Content's Section (Section that the option belongs name)
21
+ */
22
+ renameGenericContentSection: function (id, newName) {
23
+ window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.RENAME_GENERIC_CONTENT_SECTION, {
24
+ detail: {
25
+ id: id,
26
+ newName: newName,
27
+ },
28
+ }));
29
+ },
30
+ /**
31
+ * Set the badge of the sidekick option menu
32
+ */
33
+ setMenuBadge: function (id, badgeContent) {
34
+ window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.SET_GENERIC_CONTENT_BADGE, {
35
+ detail: {
36
+ id: id,
37
+ badgeContent: badgeContent,
38
+ },
39
+ }));
40
+ },
41
+ /**
42
+ * Remove the badge of the sidekick option menu
43
+ */
44
+ removeMenuBadge: function (id) {
45
+ window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.REMOVE_GENERIC_CONTENT_BADGE, {
46
+ detail: {
47
+ id: id,
48
+ },
49
+ }));
50
+ },
51
+ };
52
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../src/ui-commands/sidekick-area/options/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAkD;AAClD,6CAA4D;AAQ/C,QAAA,mBAAmB,GAAwC;IACtE,KAAK,EAAE,mCAAwB;IAC/B;;OAEG;IACH,wBAAwB,EAAE,UAAC,EAAU,EAAE,OAAe;QACpD,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAClC,+BAAuB,CAAC,2BAA2B,EACnD;YACE,MAAM,EAAE;gBACN,EAAE,IAAA;gBACF,OAAO,SAAA;aACR;SACF,CACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,2BAA2B,EAAE,UAAC,EAAU,EAAE,OAAe;QACvD,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAClC,+BAAuB,CAAC,8BAA8B,EACtD;YACE,MAAM,EAAE;gBACN,EAAE,IAAA;gBACF,OAAO,SAAA;aACR;SACF,CACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,YAAY,EAAE,UAAC,EAAU,EAAE,YAAoB;QAC7C,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAClC,+BAAuB,CAAC,yBAAyB,EACjD;YACE,MAAM,EAAE;gBACN,EAAE,IAAA;gBACF,YAAY,cAAA;aACb;SACF,CACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,EAAE,UAAC,EAAU;QAC1B,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAClC,+BAAuB,CAAC,4BAA4B,EACpD;YACE,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare enum SidekickAreaOptionsEnum {
2
+ RENAME_GENERIC_CONTENT_MENU = "RENAME_GENERIC_CONTENT_SIDEKICK_AREA_MENU",
3
+ RENAME_GENERIC_CONTENT_SECTION = "RENAME_GENERIC_CONTENT_SIDEKICK_AREA_SECTION",
4
+ SET_GENERIC_CONTENT_BADGE = "SET_GENERIC_CONTENT_SIDEKICK_AREA_BADGE",
5
+ REMOVE_GENERIC_CONTENT_BADGE = "REMOVE_GENERIC_CONTENT_SIDEKICK_AREA_BADGE"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SidekickAreaOptionsEnum = void 0;
4
+ var SidekickAreaOptionsEnum;
5
+ (function (SidekickAreaOptionsEnum) {
6
+ SidekickAreaOptionsEnum["RENAME_GENERIC_CONTENT_MENU"] = "RENAME_GENERIC_CONTENT_SIDEKICK_AREA_MENU";
7
+ SidekickAreaOptionsEnum["RENAME_GENERIC_CONTENT_SECTION"] = "RENAME_GENERIC_CONTENT_SIDEKICK_AREA_SECTION";
8
+ SidekickAreaOptionsEnum["SET_GENERIC_CONTENT_BADGE"] = "SET_GENERIC_CONTENT_SIDEKICK_AREA_BADGE";
9
+ SidekickAreaOptionsEnum["REMOVE_GENERIC_CONTENT_BADGE"] = "REMOVE_GENERIC_CONTENT_SIDEKICK_AREA_BADGE";
10
+ })(SidekickAreaOptionsEnum || (exports.SidekickAreaOptionsEnum = SidekickAreaOptionsEnum = {}));
11
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-commands/sidekick-area/options/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,oGAAyE,CAAA;IACzE,0GAA+E,CAAA;IAC/E,gGAAqE,CAAA;IACrE,sGAA2E,CAAA;AAC7E,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC"}
@@ -0,0 +1,2 @@
1
+ import { UiCommandsSidekickAreaOptionsPanelObject } from './types';
2
+ export declare const sidekickAreaOptionsPanel: UiCommandsSidekickAreaOptionsPanelObject;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sidekickAreaOptionsPanel = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.sidekickAreaOptionsPanel = {
6
+ /**
7
+ * Opens the sidekick container automatically.
8
+ */
9
+ open: function () {
10
+ window.dispatchEvent(new Event(enums_1.SidekickAreaOptionsPanelEnum.OPEN));
11
+ },
12
+ /**
13
+ * Closes the sidekick container (and sidebard content panel) automatically.
14
+ */
15
+ close: function () {
16
+ window.dispatchEvent(new Event(enums_1.SidekickAreaOptionsPanelEnum.CLOSE));
17
+ },
18
+ };
19
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../../src/ui-commands/sidekick-area/options/panel/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAG1C,QAAA,wBAAwB,GAA6C;IAChF;;OAEG;IACH,IAAI,EAAE;QACJ,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,EAAE;QACL,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum SidekickAreaOptionsPanelEnum {
2
+ OPEN = "OPEN_SIDEKICK_OPTIONS_CONTAINER_COMMAND",
3
+ CLOSE = "CLOSE_SIDEKICK_OPTIONS_CONTAINER_COMMAND"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SidekickAreaOptionsPanelEnum = void 0;
4
+ var SidekickAreaOptionsPanelEnum;
5
+ (function (SidekickAreaOptionsPanelEnum) {
6
+ SidekickAreaOptionsPanelEnum["OPEN"] = "OPEN_SIDEKICK_OPTIONS_CONTAINER_COMMAND";
7
+ SidekickAreaOptionsPanelEnum["CLOSE"] = "CLOSE_SIDEKICK_OPTIONS_CONTAINER_COMMAND";
8
+ })(SidekickAreaOptionsPanelEnum || (exports.SidekickAreaOptionsPanelEnum = SidekickAreaOptionsPanelEnum = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../../src/ui-commands/sidekick-area/options/panel/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,gFAAgD,CAAA;IAChD,kFAAkD,CAAA;AACpD,CAAC,EAHW,4BAA4B,4CAA5B,4BAA4B,QAGvC"}
@@ -0,0 +1,4 @@
1
+ export interface UiCommandsSidekickAreaOptionsPanelObject {
2
+ open: () => void;
3
+ close: () => void;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/ui-commands/sidekick-area/options/panel/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { UiCommandsSidekickAreaOptionsPanelObject } from './panel/types';
2
+ export interface UiCommandsSidekickAreaOptionsObject {
3
+ panel: UiCommandsSidekickAreaOptionsPanelObject;
4
+ renameGenericContentMenu: (id: string, newName: string) => void;
5
+ renameGenericContentSection: (id: string, newName: string) => void;
6
+ setMenuBadge: (id: string, badgeContent: string) => void;
7
+ removeMenuBadge: (id: string) => void;
8
+ }
9
+ export interface RenameGenericContentSidekickAreaCommandArguments {
10
+ id: string;
11
+ newName: string;
12
+ }
13
+ export interface SetGenericContentSidekickAreaBadgeCommandArguments {
14
+ id: string;
15
+ badgeContent: string;
16
+ }
17
+ export interface RemoveGenericContentSidekickAreaBadgeCommandArguments {
18
+ id: string;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ui-commands/sidekick-area/options/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { UiCommandsSidekickAreaOptionsObject } from './options/types';
2
+ export interface UiCommandsSidekickArea {
3
+ options: UiCommandsSidekickAreaOptionsObject;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-area/types.ts"],"names":[],"mappings":""}
@@ -1,10 +1,14 @@
1
1
  export declare const sidekickOptionsContainer: {
2
2
  /**
3
3
  * Opens the sidekick container automatically.
4
+ *
5
+ * @deprecated Use the new {@link sidekickArea} object instead.
4
6
  */
5
7
  open: () => void;
6
8
  /**
7
9
  * Closes the sidekick container (and sidebard content panel) automatically.
10
+ *
11
+ * @deprecated Use the new {@link sidekickArea} object instead.
8
12
  */
9
13
  close: () => void;
10
14
  };
@@ -5,12 +5,16 @@ var enums_1 = require("./enums");
5
5
  exports.sidekickOptionsContainer = {
6
6
  /**
7
7
  * Opens the sidekick container automatically.
8
+ *
9
+ * @deprecated Use the new {@link sidekickArea} object instead.
8
10
  */
9
11
  open: function () {
10
12
  window.dispatchEvent(new Event(enums_1.SidekickOptionsContainerEnum.OPEN));
11
13
  },
12
14
  /**
13
15
  * Closes the sidekick container (and sidebard content panel) automatically.
16
+ *
17
+ * @deprecated Use the new {@link sidekickArea} object instead.
14
18
  */
15
19
  close: function () {
16
20
  window.dispatchEvent(new Event(enums_1.SidekickOptionsContainerEnum.CLOSE));
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-options-container/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAE1C,QAAA,wBAAwB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE;QACJ,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,EAAE;QACL,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-options-container/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAE1C,QAAA,wBAAwB,GAAG;IACtC;;;;OAIG;IACH,IAAI,EAAE;QACJ,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE;QACL,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;CACF,CAAC"}
@@ -9,6 +9,7 @@ import { UiCommandsActionsBarObject } from './actions-bar/types';
9
9
  import { UiCommandsLayoutObject } from './layout/types';
10
10
  import { UiCommandsNavBarObject } from './nav-bar/types';
11
11
  import { UiCommandsCameraObject } from './camera/types';
12
+ import { UiCommandsSidekickArea } from './sidekick-area/types';
12
13
  export interface UiCommands {
13
14
  layout: UiCommandsLayoutObject;
14
15
  actionsBar: UiCommandsActionsBarObject;
@@ -16,6 +17,7 @@ export interface UiCommands {
16
17
  chat: UiCommandsChatObject;
17
18
  externalVideo: UiCommandsExternalVideoObject;
18
19
  sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
20
+ sidekickArea: UiCommandsSidekickArea;
19
21
  navBar: UiCommandsNavBarObject;
20
22
  presentationArea: UiCommandsPresentationAreaObject;
21
23
  userStatus: UiCommandsUserStatusObject;
@@ -1,7 +1,8 @@
1
1
  import { IntlLocaleUiDataNames } from './enums';
2
+ export interface LocaleObject {
3
+ locale: string;
4
+ fallbackLocale: string;
5
+ }
2
6
  export type IntlLocaleUiDataPayloads = {
3
- [IntlLocaleUiDataNames.CURRENT_LOCALE]: {
4
- locale: string;
5
- fallbackLocale: string;
6
- };
7
+ [IntlLocaleUiDataNames.CURRENT_LOCALE]: LocaleObject;
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "homepage": "https://github.com/bigbluebutton/bigbluebutton-html-plugin-sdk",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",