bigbluebutton-html-plugin-sdk 0.0.69 → 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.
@@ -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
- export declare class ActionsBarButton implements ActionsBarInterface {
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 implements ActionsBarInterface {
25
- position: ActionsBarPosition;
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, }: ActionsBarSeparatorProps);
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 ActionsBarButton = /** @class */ (function () {
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
- this.id = '';
22
- this.setItemId = function (id) {
23
- _this.id = "ActionsBarButton_".concat(id);
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
- this.id = '';
50
- this.setItemId = function (id) {
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":";;;AAAA,iCAAiE;AAKjE,6BAA6B;AAE7B;IAaE;;;;;;;;;;OAUG;IACH,0BAAY,EAEY;YADtB,EAAE,QAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EAAE,gBAAmC,EAAnC,QAAQ,mBAAG,0BAAkB,CAAC,KAAK,KAAA;QADtF,iBAWC;QAlCD,OAAE,GAAW,EAAE,CAAC;QAoChB,cAAS,GAAyB,UAAC,EAAU;YAC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,0BAAkB,CAAC,KAAK,KAAA;QAPrC,YASE,kBAAM,EAAE,EAAE,IAAA,EAAE,IAAI,EAAE,0BAAkB,CAAC,YAAY,EAAE,QAAQ,UAAA,EAAE,CAAC,SAM/D;QALC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC3B,CAAC;IACH,4BAAC;AAAD,CAAC,AA3CD,CAA2C,cAAc,GA2CxD;AA3CY,sDAAqB"}
@@ -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,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;AACrC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED;;GAEG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
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,yCAGqB;AAFnB,6GAAA,gBAAgB,OAAA;AAChB,gHAAA,mBAAmB,OAAA;AAKrB,iCAEiB;AADf,2GAAA,kBAAkB,OAAA"}
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
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",