bigbluebutton-html-plugin-sdk 0.0.68 → 0.0.70
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 +25 -25
- package/dist/cjs/extensible-areas/actions-bar-item/component.d.ts +59 -10
- package/dist/cjs/extensible-areas/actions-bar-item/component.js +108 -26
- package/dist/cjs/extensible-areas/actions-bar-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/enums.d.ts +3 -1
- package/dist/cjs/extensible-areas/actions-bar-item/enums.js +2 -0
- package/dist/cjs/extensible-areas/actions-bar-item/enums.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/index.d.ts +2 -2
- package/dist/cjs/extensible-areas/actions-bar-item/index.js +4 -1
- package/dist/cjs/extensible-areas/actions-bar-item/index.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/types.d.ts +32 -1
- package/dist/cjs/ui-commands/actions-bar/commands.d.ts +11 -0
- package/dist/cjs/ui-commands/actions-bar/commands.js +22 -0
- package/dist/cjs/ui-commands/actions-bar/commands.js.map +1 -0
- package/dist/cjs/ui-commands/actions-bar/enums.d.ts +3 -0
- package/dist/cjs/ui-commands/actions-bar/enums.js +8 -0
- package/dist/cjs/ui-commands/actions-bar/enums.js.map +1 -0
- package/dist/cjs/ui-commands/actions-bar/types.d.ts +6 -0
- package/dist/cjs/ui-commands/actions-bar/types.js +3 -0
- package/dist/cjs/ui-commands/actions-bar/types.js.map +1 -0
- package/dist/cjs/ui-commands/commands.d.ts +9 -0
- package/dist/cjs/ui-commands/commands.js +6 -0
- package/dist/cjs/ui-commands/commands.js.map +1 -1
- package/dist/cjs/ui-commands/index.d.ts +1 -0
- package/dist/cjs/ui-commands/index.js +3 -1
- package/dist/cjs/ui-commands/index.js.map +1 -1
- package/dist/cjs/ui-commands/layout/commands.d.ts +9 -0
- package/dist/cjs/ui-commands/layout/commands.js +19 -0
- package/dist/cjs/ui-commands/layout/commands.js.map +1 -0
- package/dist/cjs/ui-commands/layout/enums.d.ts +13 -0
- package/dist/cjs/ui-commands/layout/enums.js +19 -0
- package/dist/cjs/ui-commands/layout/enums.js.map +1 -0
- package/dist/cjs/ui-commands/layout/types.d.ts +8 -0
- package/dist/cjs/ui-commands/layout/types.js +3 -0
- package/dist/cjs/ui-commands/layout/types.js.map +1 -0
- package/dist/cjs/ui-commands/nav-bar/commands.d.ts +10 -0
- package/dist/cjs/ui-commands/nav-bar/commands.js +21 -0
- package/dist/cjs/ui-commands/nav-bar/commands.js.map +1 -0
- package/dist/cjs/ui-commands/nav-bar/enums.d.ts +3 -0
- package/dist/cjs/ui-commands/nav-bar/enums.js +8 -0
- package/dist/cjs/ui-commands/nav-bar/enums.js.map +1 -0
- package/dist/cjs/ui-commands/nav-bar/types.d.ts +6 -0
- package/dist/cjs/ui-commands/nav-bar/types.js +3 -0
- package/dist/cjs/ui-commands/nav-bar/types.js.map +1 -0
- package/dist/cjs/ui-commands/types.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ you do the following:
|
|
|
35
35
|
2. Add reference to it on BigBlueButton's `/create` call or add it on `/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties`:
|
|
36
36
|
|
|
37
37
|
```
|
|
38
|
-
|
|
38
|
+
pluginManifests=[{"url": "http://localhost:4701/manifest.json"}]
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
*Running from souce code with a remote BBB-server*
|
|
@@ -78,7 +78,7 @@ or
|
|
|
78
78
|
5. Add this create parameter into the API-mate of the server you are testing it on:
|
|
79
79
|
|
|
80
80
|
```
|
|
81
|
-
|
|
81
|
+
pluginManifests=[{"url": "https://<uuid>.ngrok-free.app/manifest.json"}]
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
And there you go, you can test it freely.
|
|
@@ -195,7 +195,7 @@ const {
|
|
|
195
195
|
deleteEntry: deleteEntryFunction, // Function to delete specific item or wipe all
|
|
196
196
|
replaceEntry: replaceEntryFunction, // Function replace a specifi item
|
|
197
197
|
} = useDataChannel<CustomType>(
|
|
198
|
-
channelName, // Defined according to what is on
|
|
198
|
+
channelName, // Defined according to what is on manifest.json
|
|
199
199
|
DataChannelTypes.All_ITEMS, // | LATEST_ITEM | NEW_ITEMS -> ALL_ITEMS is default
|
|
200
200
|
subChannelName = 'default', // If no subchannelName is specified, it will be 'default'
|
|
201
201
|
);
|
|
@@ -203,26 +203,26 @@ const {
|
|
|
203
203
|
|
|
204
204
|
Wiping all data off will delete every item from the specific data-channel within the specific subchannel-name.
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
```
|
|
206
|
+
**Data-channel configuration:**
|
|
207
|
+
|
|
208
|
+
The data-channel name must be in the `manifest.json` along with all the permissions for writting, reading and deleting, see example below:
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{
|
|
212
|
+
"requiredSdkVersion": "~0.0.59",
|
|
213
|
+
"name": "PluginName",
|
|
214
|
+
"javascriptEntrypointUrl": "PluginName.js",
|
|
215
|
+
"dataChannels":[
|
|
216
|
+
{
|
|
217
|
+
"name": "channel-name",
|
|
218
|
+
"pushPermission": ["moderator","presenter"],
|
|
219
|
+
"replaceOrDeletePermission": ["moderator", "sender"]
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
224
|
|
|
225
|
-
If no permission is mentioned in
|
|
225
|
+
If no permission is mentioned in that file (writing or deleting), no one will be able proceed with that specific action:
|
|
226
226
|
|
|
227
227
|
The `pushEntryFunction` has a minor detail to pay attention to, it is possible to specify the users who you want to send the item to, if none is specified, all will receive the item, such as done ahead:
|
|
228
228
|
|
|
@@ -367,7 +367,7 @@ Then when creating the meeting send the following parameters along, adjusting to
|
|
|
367
367
|
|
|
368
368
|
```
|
|
369
369
|
meta_pluginSettingsUserInformation=https://<your-external-source-with-your-authentication>/api/users
|
|
370
|
-
|
|
370
|
+
pluginManifests=[{"url": "http://<domain-of-your-manifest>/your-plugin/manifest.json"}]
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
In the plugin, just use the function like:
|
|
@@ -440,12 +440,12 @@ No, feel free to host it anywhere you want, just make sure to point the URL from
|
|
|
440
440
|
**I am making my plugin based on a sample inside the SDK, but somehow, the sample is not working properly, what do I do to run it in dev mode and make it work?**
|
|
441
441
|
Well there are several motives to why the sample is not working properly, so I will go through each one of them briefly:
|
|
442
442
|
|
|
443
|
-
- The config has not been set properly
|
|
443
|
+
- The config has not been set properly in `manifest.json`, see [this section to configure your plugin](#running-the-plugin-from-source);
|
|
444
444
|
- The plugin is not even running in dev mode, it could be the port already in use, or typescript and/or javascript errors (Make sure to initialize the `pluginApi` as any of the samples inside a react function component);
|
|
445
445
|
- It could be an error with that sample indeed, or that feature the plugin uses broke (it is not usual, but can happen since BBB is constantly changing and enhancing its features with its wonderful community). If that happens, just open an issue in the [SDK's github](https://github.com/bigbluebutton/bigbluebutton-html-plugin-sdk) detailing the error you are facing. And thank you in advance for reporting it back to us so we can improve each time.
|
|
446
446
|
|
|
447
447
|
**How to troubleshoot the plugins? See if it has loaded in the BBB, for instance.**
|
|
448
|
-
Well, each time a set of plugins
|
|
448
|
+
Well, each time a set of plugins listed to be run into a specific meeting start, it will fire some logs based on the amount of plugins that it need to load inside the client. So open the console in the browser by pressing F12 key in your keyboard and search for the following log:
|
|
449
449
|
|
|
450
450
|
```log
|
|
451
451
|
<ratio of loaded plugins> plugins loaded
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { ChangeEvent, MouseEvent } from 'react';
|
|
1
2
|
import { ActionsBarPosition, ActionsBarItemType } from './enums';
|
|
2
|
-
import { ActionsBarInterface, ActionsBarButtonProps, ActionsBarSeparatorProps } from './types';
|
|
3
|
-
|
|
3
|
+
import { ActionsBarInterface, ActionsBarItemProps, ActionsBarButtonProps, ActionsBarSeparatorProps, ActionsBarSelectorProps, SelectOption, ToggleGroupOption, ActionsBarToggleGroupProps } from './types';
|
|
4
|
+
declare class ActionsBarItem implements ActionsBarInterface {
|
|
4
5
|
id: string;
|
|
5
6
|
type: ActionsBarItemType;
|
|
7
|
+
position: ActionsBarPosition;
|
|
8
|
+
constructor({ id, type, position, }: ActionsBarItemProps);
|
|
9
|
+
setItemId(id: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class ActionsBarButton extends ActionsBarItem {
|
|
6
12
|
icon: string;
|
|
7
13
|
tooltip: string;
|
|
8
|
-
position: ActionsBarPosition;
|
|
9
14
|
onClick: () => void;
|
|
10
15
|
/**
|
|
11
16
|
* Returns object to be used in the setter for action bar. In this case,
|
|
@@ -19,20 +24,64 @@ export declare class ActionsBarButton implements ActionsBarInterface {
|
|
|
19
24
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
20
25
|
*/
|
|
21
26
|
constructor({ id, icon, tooltip, onClick, position, }: ActionsBarButtonProps);
|
|
22
|
-
setItemId: (id: string) => void;
|
|
23
27
|
}
|
|
24
|
-
export declare class ActionsBarSeparator
|
|
25
|
-
|
|
26
|
-
id: string;
|
|
27
|
-
type: ActionsBarItemType;
|
|
28
|
+
export declare class ActionsBarSeparator extends ActionsBarItem {
|
|
29
|
+
icon: string;
|
|
28
30
|
/**
|
|
29
31
|
* Returns object to be used in the setter for action bar. In this case,
|
|
30
32
|
* a separator.
|
|
31
33
|
*
|
|
32
34
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
35
|
+
* @param icon - Icon to be displayed as the separator. If not provided, the default separator
|
|
36
|
+
* (a vertical bar) will be displayed.
|
|
37
|
+
*
|
|
38
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
39
|
+
*/
|
|
40
|
+
constructor({ position, icon, }: ActionsBarSeparatorProps);
|
|
41
|
+
}
|
|
42
|
+
export declare class ActionsBarSelector extends ActionsBarItem {
|
|
43
|
+
title: string;
|
|
44
|
+
options: SelectOption[];
|
|
45
|
+
defaultOption: SelectOption;
|
|
46
|
+
onChange: (value: string | number, event: ChangeEvent<HTMLInputElement>) => void;
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
* Returns object to be used in the setter for action bar. In this case,
|
|
50
|
+
* a selector.
|
|
51
|
+
*
|
|
52
|
+
* @param title - title to be used in the selector for the actions bar
|
|
53
|
+
* @param options - an array of options to be available in the selector
|
|
54
|
+
* @param defaultOption - the option to be initially selected, if not present, the first option is
|
|
55
|
+
* selected
|
|
56
|
+
* @param onChange - function to be called when selected value changes
|
|
57
|
+
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
58
|
+
* @param width - desired width for the selector in px, default is 140
|
|
59
|
+
*
|
|
60
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
61
|
+
*/
|
|
62
|
+
constructor({ id, title, options, defaultOption, onChange, position, width, }: ActionsBarSelectorProps);
|
|
63
|
+
}
|
|
64
|
+
export declare class ActionsBarToggleGroup extends ActionsBarItem {
|
|
65
|
+
title: string;
|
|
66
|
+
exclusive: boolean;
|
|
67
|
+
options: ToggleGroupOption[];
|
|
68
|
+
defaultOption: ToggleGroupOption;
|
|
69
|
+
onChange: (values: string | number | string[] | number[], event: MouseEvent<HTMLElement>) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Returns object to be used in the setter for action bar. In this case,
|
|
72
|
+
* a toggle group.
|
|
73
|
+
*
|
|
74
|
+
* @param title - title to be used in the selector for the actions bar
|
|
75
|
+
* @param exclusive - whether the toggle group should be exclusive or not - allow checking
|
|
76
|
+
* multiple options
|
|
77
|
+
* @param options - an array of options to be available in the toggle group
|
|
78
|
+
* @param defaultOption - the option to be initially checked, if not present, the first option is
|
|
79
|
+
* checked
|
|
80
|
+
* @param onChange - function to be called when checked value changes
|
|
81
|
+
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
33
82
|
*
|
|
34
83
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
35
84
|
*/
|
|
36
|
-
constructor({ position, }:
|
|
37
|
-
setItemId: (id: string) => void;
|
|
85
|
+
constructor({ id, title, exclusive, options, defaultOption, onChange, position, }: ActionsBarToggleGroupProps);
|
|
38
86
|
}
|
|
87
|
+
export {};
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionsBarSeparator = exports.ActionsBarButton = void 0;
|
|
18
|
+
exports.ActionsBarToggleGroup = exports.ActionsBarSelector = exports.ActionsBarSeparator = exports.ActionsBarButton = void 0;
|
|
4
19
|
var enums_1 = require("./enums");
|
|
5
20
|
// ActionsBar Extensible Area
|
|
6
|
-
var
|
|
21
|
+
var ActionsBarItem = /** @class */ (function () {
|
|
22
|
+
function ActionsBarItem(_a) {
|
|
23
|
+
var id = _a.id, type = _a.type, _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b;
|
|
24
|
+
this.id = '';
|
|
25
|
+
if (id) {
|
|
26
|
+
this.id = id;
|
|
27
|
+
}
|
|
28
|
+
this.type = type;
|
|
29
|
+
this.position = position;
|
|
30
|
+
}
|
|
31
|
+
ActionsBarItem.prototype.setItemId = function (id) {
|
|
32
|
+
this.id = "ActionsBar".concat(this.type, "_").concat(id);
|
|
33
|
+
};
|
|
34
|
+
return ActionsBarItem;
|
|
35
|
+
}());
|
|
36
|
+
var ActionsBarButton = /** @class */ (function (_super) {
|
|
37
|
+
__extends(ActionsBarButton, _super);
|
|
7
38
|
/**
|
|
8
39
|
* Returns object to be used in the setter for action bar. In this case,
|
|
9
40
|
* a button.
|
|
@@ -17,43 +48,94 @@ var ActionsBarButton = /** @class */ (function () {
|
|
|
17
48
|
*/
|
|
18
49
|
function ActionsBarButton(_a) {
|
|
19
50
|
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.tooltip, tooltip = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.position, position = _e === void 0 ? enums_1.ActionsBarPosition.RIGHT : _e;
|
|
20
|
-
var _this = this;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (id) {
|
|
26
|
-
this.id = id;
|
|
27
|
-
}
|
|
28
|
-
this.icon = icon;
|
|
29
|
-
this.tooltip = tooltip;
|
|
30
|
-
this.onClick = onClick;
|
|
31
|
-
this.position = position;
|
|
32
|
-
this.type = enums_1.ActionsBarItemType.BUTTON;
|
|
51
|
+
var _this = _super.call(this, { id: id, type: enums_1.ActionsBarItemType.BUTTON, position: position }) || this;
|
|
52
|
+
_this.icon = icon;
|
|
53
|
+
_this.tooltip = tooltip;
|
|
54
|
+
_this.onClick = onClick;
|
|
55
|
+
return _this;
|
|
33
56
|
}
|
|
34
57
|
return ActionsBarButton;
|
|
35
|
-
}());
|
|
58
|
+
}(ActionsBarItem));
|
|
36
59
|
exports.ActionsBarButton = ActionsBarButton;
|
|
37
|
-
var ActionsBarSeparator = /** @class */ (function () {
|
|
60
|
+
var ActionsBarSeparator = /** @class */ (function (_super) {
|
|
61
|
+
__extends(ActionsBarSeparator, _super);
|
|
38
62
|
/**
|
|
39
63
|
* Returns object to be used in the setter for action bar. In this case,
|
|
40
64
|
* a separator.
|
|
41
65
|
*
|
|
42
66
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
67
|
+
* @param icon - Icon to be displayed as the separator. If not provided, the default separator
|
|
68
|
+
* (a vertical bar) will be displayed.
|
|
43
69
|
*
|
|
44
70
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
45
71
|
*/
|
|
46
72
|
function ActionsBarSeparator(_a) {
|
|
47
|
-
var _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b;
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
_this.id = "ActionsBarSeparator_".concat(id);
|
|
52
|
-
};
|
|
53
|
-
this.position = position;
|
|
54
|
-
this.type = enums_1.ActionsBarItemType.SEPARATOR;
|
|
73
|
+
var _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c;
|
|
74
|
+
var _this = _super.call(this, { type: enums_1.ActionsBarItemType.SEPARATOR, position: position }) || this;
|
|
75
|
+
_this.icon = icon;
|
|
76
|
+
return _this;
|
|
55
77
|
}
|
|
56
78
|
return ActionsBarSeparator;
|
|
57
|
-
}());
|
|
79
|
+
}(ActionsBarItem));
|
|
58
80
|
exports.ActionsBarSeparator = ActionsBarSeparator;
|
|
81
|
+
var ActionsBarSelector = /** @class */ (function (_super) {
|
|
82
|
+
__extends(ActionsBarSelector, _super);
|
|
83
|
+
/**
|
|
84
|
+
* Returns object to be used in the setter for action bar. In this case,
|
|
85
|
+
* a selector.
|
|
86
|
+
*
|
|
87
|
+
* @param title - title to be used in the selector for the actions bar
|
|
88
|
+
* @param options - an array of options to be available in the selector
|
|
89
|
+
* @param defaultOption - the option to be initially selected, if not present, the first option is
|
|
90
|
+
* selected
|
|
91
|
+
* @param onChange - function to be called when selected value changes
|
|
92
|
+
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
93
|
+
* @param width - desired width for the selector in px, default is 140
|
|
94
|
+
*
|
|
95
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
96
|
+
*/
|
|
97
|
+
function ActionsBarSelector(_a) {
|
|
98
|
+
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.defaultOption, defaultOption = _d === void 0 ? options[0] : _d, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, _f = _a.position, position = _f === void 0 ? enums_1.ActionsBarPosition.RIGHT : _f, _g = _a.width, width = _g === void 0 ? 140 : _g;
|
|
99
|
+
var _this = _super.call(this, { id: id, type: enums_1.ActionsBarItemType.SELECTOR, position: position }) || this;
|
|
100
|
+
_this.width = 145;
|
|
101
|
+
_this.title = title;
|
|
102
|
+
_this.options = options;
|
|
103
|
+
_this.defaultOption = defaultOption;
|
|
104
|
+
_this.onChange = onChange;
|
|
105
|
+
_this.width = width;
|
|
106
|
+
return _this;
|
|
107
|
+
}
|
|
108
|
+
return ActionsBarSelector;
|
|
109
|
+
}(ActionsBarItem));
|
|
110
|
+
exports.ActionsBarSelector = ActionsBarSelector;
|
|
111
|
+
var ActionsBarToggleGroup = /** @class */ (function (_super) {
|
|
112
|
+
__extends(ActionsBarToggleGroup, _super);
|
|
113
|
+
/**
|
|
114
|
+
* Returns object to be used in the setter for action bar. In this case,
|
|
115
|
+
* a toggle group.
|
|
116
|
+
*
|
|
117
|
+
* @param title - title to be used in the selector for the actions bar
|
|
118
|
+
* @param exclusive - whether the toggle group should be exclusive or not - allow checking
|
|
119
|
+
* multiple options
|
|
120
|
+
* @param options - an array of options to be available in the toggle group
|
|
121
|
+
* @param defaultOption - the option to be initially checked, if not present, the first option is
|
|
122
|
+
* checked
|
|
123
|
+
* @param onChange - function to be called when checked value changes
|
|
124
|
+
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
125
|
+
*
|
|
126
|
+
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
127
|
+
*/
|
|
128
|
+
function ActionsBarToggleGroup(_a) {
|
|
129
|
+
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.exclusive, exclusive = _c === void 0 ? true : _c, _d = _a.options, options = _d === void 0 ? [] : _d, _e = _a.defaultOption, defaultOption = _e === void 0 ? options[0] : _e, _f = _a.onChange, onChange = _f === void 0 ? function () { } : _f, _g = _a.position, position = _g === void 0 ? enums_1.ActionsBarPosition.RIGHT : _g;
|
|
130
|
+
var _this = _super.call(this, { id: id, type: enums_1.ActionsBarItemType.TOGGLE_GROUP, position: position }) || this;
|
|
131
|
+
_this.title = title;
|
|
132
|
+
_this.exclusive = exclusive;
|
|
133
|
+
_this.options = options;
|
|
134
|
+
_this.defaultOption = defaultOption;
|
|
135
|
+
_this.onChange = onChange;
|
|
136
|
+
return _this;
|
|
137
|
+
}
|
|
138
|
+
return ActionsBarToggleGroup;
|
|
139
|
+
}(ActionsBarItem));
|
|
140
|
+
exports.ActionsBarToggleGroup = ActionsBarToggleGroup;
|
|
59
141
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/component.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare enum ActionsBarItemType {
|
|
2
2
|
BUTTON = "ACTIONS_BAR_BUTTON",
|
|
3
|
-
SEPARATOR = "ACTIONS_BAR_SEPARATOR"
|
|
3
|
+
SEPARATOR = "ACTIONS_BAR_SEPARATOR",
|
|
4
|
+
SELECTOR = "ACTIONS_BAR_SELECTOR",
|
|
5
|
+
TOGGLE_GROUP = "ACTIONS_BAR_TOGGLE_GROUP"
|
|
4
6
|
}
|
|
5
7
|
/**
|
|
6
8
|
* Enum with the position to insert the actions bar item (Separator or Button)
|
|
@@ -6,6 +6,8 @@ var ActionsBarItemType;
|
|
|
6
6
|
(function (ActionsBarItemType) {
|
|
7
7
|
ActionsBarItemType["BUTTON"] = "ACTIONS_BAR_BUTTON";
|
|
8
8
|
ActionsBarItemType["SEPARATOR"] = "ACTIONS_BAR_SEPARATOR";
|
|
9
|
+
ActionsBarItemType["SELECTOR"] = "ACTIONS_BAR_SELECTOR";
|
|
10
|
+
ActionsBarItemType["TOGGLE_GROUP"] = "ACTIONS_BAR_TOGGLE_GROUP";
|
|
9
11
|
})(ActionsBarItemType || (exports.ActionsBarItemType = ActionsBarItemType = {}));
|
|
10
12
|
/**
|
|
11
13
|
* Enum with the position to insert the actions bar item (Separator or Button)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/enums.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/enums.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;IACnC,uDAAiC,CAAA;IACjC,+DAAyC,CAAA;AAC3C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED;;GAEG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ActionsBarButton, ActionsBarSeparator, } from './component';
|
|
1
|
+
export { ActionsBarButton, ActionsBarSeparator, ActionsBarSelector, ActionsBarToggleGroup, } from './component';
|
|
2
2
|
export { ActionsBarInterface, } from './types';
|
|
3
|
-
export { ActionsBarPosition, } from './enums';
|
|
3
|
+
export { ActionsBarItemType, ActionsBarPosition, } from './enums';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionsBarPosition = exports.ActionsBarSeparator = exports.ActionsBarButton = void 0;
|
|
3
|
+
exports.ActionsBarPosition = exports.ActionsBarItemType = exports.ActionsBarToggleGroup = exports.ActionsBarSelector = exports.ActionsBarSeparator = exports.ActionsBarButton = void 0;
|
|
4
4
|
var component_1 = require("./component");
|
|
5
5
|
Object.defineProperty(exports, "ActionsBarButton", { enumerable: true, get: function () { return component_1.ActionsBarButton; } });
|
|
6
6
|
Object.defineProperty(exports, "ActionsBarSeparator", { enumerable: true, get: function () { return component_1.ActionsBarSeparator; } });
|
|
7
|
+
Object.defineProperty(exports, "ActionsBarSelector", { enumerable: true, get: function () { return component_1.ActionsBarSelector; } });
|
|
8
|
+
Object.defineProperty(exports, "ActionsBarToggleGroup", { enumerable: true, get: function () { return component_1.ActionsBarToggleGroup; } });
|
|
7
9
|
var enums_1 = require("./enums");
|
|
10
|
+
Object.defineProperty(exports, "ActionsBarItemType", { enumerable: true, get: function () { return enums_1.ActionsBarItemType; } });
|
|
8
11
|
Object.defineProperty(exports, "ActionsBarPosition", { enumerable: true, get: function () { return enums_1.ActionsBarPosition; } });
|
|
9
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAKqB;AAJnB,6GAAA,gBAAgB,OAAA;AAChB,gHAAA,mBAAmB,OAAA;AACnB,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AAKvB,iCAGiB;AAFf,2GAAA,kBAAkB,OAAA;AAClB,2GAAA,kBAAkB,OAAA"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { ChangeEvent, MouseEvent } from 'react';
|
|
1
2
|
import { PluginProvidedUiItemDescriptor } from '../base';
|
|
2
|
-
import { ActionsBarPosition } from './enums';
|
|
3
|
+
import { ActionsBarItemType, ActionsBarPosition } from './enums';
|
|
3
4
|
/**
|
|
4
5
|
* Interface for the generic Actions bar item. (`position` is mandatory)
|
|
5
6
|
*/
|
|
6
7
|
export interface ActionsBarInterface extends PluginProvidedUiItemDescriptor {
|
|
7
8
|
position: ActionsBarPosition;
|
|
8
9
|
}
|
|
10
|
+
export interface ActionsBarItemProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
position: ActionsBarPosition;
|
|
13
|
+
type: ActionsBarItemType;
|
|
14
|
+
}
|
|
9
15
|
export interface ActionsBarButtonProps {
|
|
10
16
|
id?: string;
|
|
11
17
|
icon: string;
|
|
@@ -15,4 +21,29 @@ export interface ActionsBarButtonProps {
|
|
|
15
21
|
}
|
|
16
22
|
export interface ActionsBarSeparatorProps {
|
|
17
23
|
position: ActionsBarPosition;
|
|
24
|
+
icon?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SelectOption {
|
|
27
|
+
value: string | number;
|
|
28
|
+
label: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ToggleGroupOption extends SelectOption {
|
|
31
|
+
}
|
|
32
|
+
export interface ActionsBarSelectorProps {
|
|
33
|
+
id?: string;
|
|
34
|
+
title: string;
|
|
35
|
+
options: SelectOption[];
|
|
36
|
+
defaultOption?: SelectOption;
|
|
37
|
+
onChange: (value: string | number, event: ChangeEvent<HTMLInputElement>) => void;
|
|
38
|
+
position: ActionsBarPosition;
|
|
39
|
+
width?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface ActionsBarToggleGroupProps {
|
|
42
|
+
id?: string;
|
|
43
|
+
title: string;
|
|
44
|
+
options: ToggleGroupOption[];
|
|
45
|
+
defaultOption?: ToggleGroupOption;
|
|
46
|
+
exclusive?: boolean;
|
|
47
|
+
onChange: (values: string | number | string[] | number[], event: MouseEvent<HTMLElement>) => void;
|
|
48
|
+
position: ActionsBarPosition;
|
|
18
49
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetDisplayActionBarCommandArguments } from './types';
|
|
2
|
+
export declare const actionsBar: {
|
|
3
|
+
/**
|
|
4
|
+
* Decides whether to display the actions bar
|
|
5
|
+
*
|
|
6
|
+
* @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
|
|
7
|
+
* level.
|
|
8
|
+
* Refer to {@link SetDisplayActionBarCommandArguments} to understand the argument structure.
|
|
9
|
+
*/
|
|
10
|
+
setDisplayActionBar: (arg: SetDisplayActionBarCommandArguments) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.actionsBar = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.actionsBar = {
|
|
6
|
+
/**
|
|
7
|
+
* Decides whether to display the actions bar
|
|
8
|
+
*
|
|
9
|
+
* @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
|
|
10
|
+
* level.
|
|
11
|
+
* Refer to {@link SetDisplayActionBarCommandArguments} to understand the argument structure.
|
|
12
|
+
*/
|
|
13
|
+
setDisplayActionBar: function (arg) {
|
|
14
|
+
var displayActionBar = arg.displayActionBar;
|
|
15
|
+
window.dispatchEvent(new CustomEvent(enums_1.ActionsBarEnum.SET_DISPLAY_ACTIONS_BAR, {
|
|
16
|
+
detail: {
|
|
17
|
+
displayActionBar: displayActionBar,
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/actions-bar/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAG5B,QAAA,UAAU,GAAG;IACxB;;;;;;OAMG;IACH,mBAAmB,EAAE,UAAC,GAAwC;QACpD,IAAA,gBAAgB,GAAK,GAAG,iBAAR,CAAS;QACjC,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAElC,sBAAc,CAAC,uBAAuB,EAAE;YACxC,MAAM,EAAE;gBACN,gBAAgB,kBAAA;aACjB;SACF,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionsBarEnum = void 0;
|
|
4
|
+
var ActionsBarEnum;
|
|
5
|
+
(function (ActionsBarEnum) {
|
|
6
|
+
ActionsBarEnum["SET_DISPLAY_ACTIONS_BAR"] = "SET_DISPLAY_ACTIONS_BAR_COMMAND";
|
|
7
|
+
})(ActionsBarEnum || (exports.ActionsBarEnum = ActionsBarEnum = {}));
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/actions-bar/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,6EAA2D,CAAA;AAC7D,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/actions-bar/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const uiCommands: {
|
|
2
|
+
actionsBar: {
|
|
3
|
+
setDisplayActionBar: (arg: import("./actions-bar/types").SetDisplayActionBarCommandArguments) => void;
|
|
4
|
+
};
|
|
2
5
|
chat: {
|
|
3
6
|
form: {
|
|
4
7
|
open: () => void;
|
|
@@ -14,6 +17,9 @@ export declare const uiCommands: {
|
|
|
14
17
|
open: () => void;
|
|
15
18
|
close: () => void;
|
|
16
19
|
};
|
|
20
|
+
navBar: {
|
|
21
|
+
setDisplayNavBar: (setDisplayNavBarCommandArguments: import("./nav-bar/types").SetDisplayNavBarCommandArguments) => void;
|
|
22
|
+
};
|
|
17
23
|
presentationArea: {
|
|
18
24
|
open: () => void;
|
|
19
25
|
close: () => void;
|
|
@@ -27,4 +33,7 @@ export declare const uiCommands: {
|
|
|
27
33
|
notification: {
|
|
28
34
|
send: (information: import("./notification/types").SendNotificationCommandArguments) => void;
|
|
29
35
|
};
|
|
36
|
+
layout: {
|
|
37
|
+
changeEnforcedLayout: import("./layout/types").ChangeEnforcedLayout;
|
|
38
|
+
};
|
|
30
39
|
};
|
|
@@ -8,13 +8,19 @@ var commands_4 = require("./presentation-area/commands");
|
|
|
8
8
|
var commands_5 = require("./user-status/commands");
|
|
9
9
|
var commands_6 = require("./conference/commands");
|
|
10
10
|
var commands_7 = require("./notification/commands");
|
|
11
|
+
var commands_8 = require("./actions-bar/commands");
|
|
12
|
+
var commands_9 = require("./layout/commands");
|
|
13
|
+
var commands_10 = require("./nav-bar/commands");
|
|
11
14
|
exports.uiCommands = {
|
|
15
|
+
actionsBar: commands_8.actionsBar,
|
|
12
16
|
chat: commands_1.chat,
|
|
13
17
|
externalVideo: commands_2.externalVideo,
|
|
14
18
|
sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
|
|
19
|
+
navBar: commands_10.navBar,
|
|
15
20
|
presentationArea: commands_4.presentationArea,
|
|
16
21
|
userStatus: commands_5.userStatus,
|
|
17
22
|
conference: commands_6.conference,
|
|
18
23
|
notification: commands_7.notification,
|
|
24
|
+
layout: commands_9.layout,
|
|
19
25
|
};
|
|
20
26
|
//# sourceMappingURL=commands.js.map
|
|
@@ -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;
|
|
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,mDAAoD;AACpD,8CAA2C;AAC3C,gDAA4C;AAE/B,QAAA,UAAU,GAAG;IACxB,UAAU,uBAAA;IACV,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,mBAAA;CACP,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationTypeUiCommand = void 0;
|
|
3
|
+
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
|
+
var enums_2 = require("./layout/enums");
|
|
7
|
+
Object.defineProperty(exports, "ChangeEnforcedLayoutTypeEnum", { enumerable: true, get: function () { return enums_2.ChangeEnforcedLayoutTypeEnum; } });
|
|
6
8
|
//# 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"}
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.layout = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.layout = {
|
|
6
|
+
/**
|
|
7
|
+
* <description>
|
|
8
|
+
*
|
|
9
|
+
* @param
|
|
10
|
+
*/
|
|
11
|
+
changeEnforcedLayout: (function (layoutType) {
|
|
12
|
+
window.dispatchEvent(new CustomEvent(enums_1.LayoutEnum.CHANGE_ENFORCED_LAYOUT, {
|
|
13
|
+
detail: {
|
|
14
|
+
layoutType: layoutType,
|
|
15
|
+
},
|
|
16
|
+
}));
|
|
17
|
+
}),
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum LayoutEnum {
|
|
2
|
+
CHANGE_ENFORCED_LAYOUT = "CHANGE_ENFORCED_LAYOUT"
|
|
3
|
+
}
|
|
4
|
+
export declare enum ChangeEnforcedLayoutTypeEnum {
|
|
5
|
+
CUSTOM_LAYOUT = "CUSTOM_LAYOUT",
|
|
6
|
+
SMART_LAYOUT = "SMART_LAYOUT",
|
|
7
|
+
PRESENTATION_FOCUS = "PRESENTATION_FOCUS",
|
|
8
|
+
VIDEO_FOCUS = "VIDEO_FOCUS",
|
|
9
|
+
CAMERAS_ONLY = "CAMERAS_ONLY",
|
|
10
|
+
PRESENTATION_ONLY = "PRESENTATION_ONLY",
|
|
11
|
+
PARTICIPANTS_AND_CHAT_ONLY = "PARTICIPANTS_AND_CHAT_ONLY",
|
|
12
|
+
MEDIA_ONLY = "MEDIA_ONLY"
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangeEnforcedLayoutTypeEnum = exports.LayoutEnum = void 0;
|
|
4
|
+
var LayoutEnum;
|
|
5
|
+
(function (LayoutEnum) {
|
|
6
|
+
LayoutEnum["CHANGE_ENFORCED_LAYOUT"] = "CHANGE_ENFORCED_LAYOUT";
|
|
7
|
+
})(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 = {}));
|
|
19
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChangeEnforcedLayoutTypeEnum } from './enums';
|
|
2
|
+
export interface ChangeEnforcedLayoutCommandArguments {
|
|
3
|
+
layoutType: ChangeEnforcedLayoutTypeEnum;
|
|
4
|
+
}
|
|
5
|
+
export type ChangeEnforcedLayout = (layoutType: ChangeEnforcedLayoutTypeEnum) => void;
|
|
6
|
+
export interface UiCommandsLayoutObject {
|
|
7
|
+
changeEnforcedLayout: ChangeEnforcedLayout;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SetDisplayNavBarCommandArguments } from './types';
|
|
2
|
+
export declare const navBar: {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the displayNavBar to true (show it) or false (hide it).
|
|
5
|
+
*
|
|
6
|
+
* @param setDisplayNavBarCommandArguments: object with a boolean that tells whether to display
|
|
7
|
+
* the navbar
|
|
8
|
+
*/
|
|
9
|
+
setDisplayNavBar: (setDisplayNavBarCommandArguments: SetDisplayNavBarCommandArguments) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navBar = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.navBar = {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the displayNavBar to true (show it) or false (hide it).
|
|
8
|
+
*
|
|
9
|
+
* @param setDisplayNavBarCommandArguments: object with a boolean that tells whether to display
|
|
10
|
+
* the navbar
|
|
11
|
+
*/
|
|
12
|
+
setDisplayNavBar: function (setDisplayNavBarCommandArguments) {
|
|
13
|
+
var displayNavBar = setDisplayNavBarCommandArguments.displayNavBar;
|
|
14
|
+
window.dispatchEvent(new CustomEvent(enums_1.NavBarEnum.SET_DISPLAY_NAV_BAR, {
|
|
15
|
+
detail: {
|
|
16
|
+
displayNavBar: displayNavBar,
|
|
17
|
+
},
|
|
18
|
+
}));
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/nav-bar/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAGxB,QAAA,MAAM,GAAG;IACpB;;;;;OAKG;IACH,gBAAgB,EAAE,UAAC,gCAAkE;QAC3E,IAAA,aAAa,GAAK,gCAAgC,cAArC,CAAsC;QAC3D,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,kBAAU,CAAC,mBAAmB,EAAE;YAChC,MAAM,EAAE;gBACN,aAAa,eAAA;aACd;SACF,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavBarEnum = void 0;
|
|
4
|
+
var NavBarEnum;
|
|
5
|
+
(function (NavBarEnum) {
|
|
6
|
+
NavBarEnum["SET_DISPLAY_NAV_BAR"] = "SET_DISPLAY_NAV_BAR_COMMAND";
|
|
7
|
+
})(NavBarEnum || (exports.NavBarEnum = NavBarEnum = {}));
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/nav-bar/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,iEAAmD,CAAA;AACrD,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/nav-bar/types.ts"],"names":[],"mappings":""}
|
|
@@ -5,10 +5,16 @@ import { UiCommandsPresentationAreaObject } from './presentation-area/types';
|
|
|
5
5
|
import { UiCommandsUserStatusObject } from './user-status/types';
|
|
6
6
|
import { UiCommandsConferenceObject } from './conference/types';
|
|
7
7
|
import { UiCommandsNotificationObject } from './notification/types';
|
|
8
|
+
import { UiCommandsActionsBarObject } from './actions-bar/types';
|
|
9
|
+
import { UiCommandsLayoutObject } from './layout/types';
|
|
10
|
+
import { UiCommandsNavBarObject } from './nav-bar/types';
|
|
8
11
|
export interface UiCommands {
|
|
12
|
+
layout: UiCommandsLayoutObject;
|
|
13
|
+
actionsBar: UiCommandsActionsBarObject;
|
|
9
14
|
chat: UiCommandsChatObject;
|
|
10
15
|
externalVideo: UiCommandsExternalVideoObject;
|
|
11
16
|
sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
|
|
17
|
+
navBar: UiCommandsNavBarObject;
|
|
12
18
|
presentationArea: UiCommandsPresentationAreaObject;
|
|
13
19
|
userStatus: UiCommandsUserStatusObject;
|
|
14
20
|
conference: UiCommandsConferenceObject;
|