bigbluebutton-html-plugin-sdk 0.0.58 → 0.0.59

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,5 +1,5 @@
1
- import { UserListDropdownInterface, UserListDropdownOptionProps, UserListDropdownSeparatorProps, UserListDropdownInformationProps } from './types';
2
- import { UserListDropdownItemType } from './enums';
1
+ import { UserListDropdownInterface, UserListDropdownOptionProps, UserListDropdownSeparatorProps, UserListDropdownTitleActionProps, UserListDropdownTitleActionOnClickArguments, UserListDropdownFixedContentInformationProps, UserListDropdownGenericContentInformationProps } from './types';
2
+ import { UserListDropdownItemType, UserListDropdownSeparatorPosition } from './enums';
3
3
  export declare class UserListDropdownOption implements UserListDropdownInterface {
4
4
  id: string;
5
5
  userId: string;
@@ -29,6 +29,7 @@ export declare class UserListDropdownOption implements UserListDropdownInterface
29
29
  export declare class UserListDropdownSeparator implements UserListDropdownInterface {
30
30
  id: string;
31
31
  userId: string;
32
+ position: UserListDropdownSeparatorPosition;
32
33
  type: UserListDropdownItemType;
33
34
  /**
34
35
  * Returns object to be used in the setter for the User List Dropdown. In this case,
@@ -39,10 +40,10 @@ export declare class UserListDropdownSeparator implements UserListDropdownInterf
39
40
  *
40
41
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
41
42
  */
42
- constructor({ userId }: UserListDropdownSeparatorProps);
43
+ constructor({ userId, position }: UserListDropdownSeparatorProps);
43
44
  setItemId: (id: string) => void;
44
45
  }
45
- export declare class UserListDropdownInformation implements UserListDropdownInterface {
46
+ export declare class UserListDropdownFixedContentInformation implements UserListDropdownInterface {
46
47
  id: string;
47
48
  userId: string;
48
49
  type: UserListDropdownItemType;
@@ -67,6 +68,54 @@ export declare class UserListDropdownInformation implements UserListDropdownInte
67
68
  *
68
69
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
69
70
  */
70
- constructor({ label, icon, iconRight, allowed, userId, textColor, }: UserListDropdownInformationProps);
71
+ constructor({ label, icon, iconRight, allowed, userId, textColor, }: UserListDropdownFixedContentInformationProps);
72
+ setItemId: (id: string) => void;
73
+ }
74
+ export declare class UserListDropdownGenericContentInformation implements UserListDropdownInterface {
75
+ id: string;
76
+ userId: string;
77
+ allowed: boolean;
78
+ type: UserListDropdownItemType;
79
+ contentFunction: (element: HTMLElement) => void;
80
+ /**
81
+ * Returns object to be used in the setter for the User List Dropdown. In this case,
82
+ * a button.
83
+ *
84
+ * @param label - label to be displayed in user list dropdown information.
85
+ * @param icon - icon to be used in the user list dropdown information.
86
+ * It goes on the left side of it.
87
+ * @param iconRight - icon to be used in the user list dropdown information.
88
+ * It goes on the right side of it.
89
+ * @param allowed - if false, the use list dropdown will not appear in the dropdown.
90
+ * @param textColor - Color that the text will have.
91
+ * @param userId - the userId in which this dropdown information will appear when the user
92
+ * list item is clicked.
93
+ *
94
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
95
+ */
96
+ constructor({ contentFunction, allowed, userId, }: UserListDropdownGenericContentInformationProps);
97
+ setItemId: (id: string) => void;
98
+ }
99
+ export declare class UserListDropdownTitleAction implements UserListDropdownInterface {
100
+ id: string;
101
+ userId: string;
102
+ type: UserListDropdownItemType;
103
+ icon: string;
104
+ tooltip: string;
105
+ onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
106
+ /**
107
+ * Returns object to be used in the setter for the User List Dropdown. In this case,
108
+ * a button (action) for the title.
109
+ *
110
+ * @param onClick - onClick function.
111
+ * @param tooltip - quick explanatory message that will appear when user hover the action.
112
+ * @param icon - icon to be used in the user list dropdown title action.
113
+ * It goes on the left side of it.
114
+ * @param userId - the userId in which this dropdown title action will appear when the user
115
+ * list item is clicked.
116
+ *
117
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
118
+ */
119
+ constructor({ icon, userId, onClick, tooltip, }: UserListDropdownTitleActionProps);
71
120
  setItemId: (id: string) => void;
72
121
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserListDropdownInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
3
+ exports.UserListDropdownTitleAction = exports.UserListDropdownGenericContentInformation = exports.UserListDropdownFixedContentInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
4
4
  var enums_1 = require("./enums");
5
5
  // UserListDropdown Extensible Area
6
6
  var UserListDropdownOption = /** @class */ (function () {
@@ -47,19 +47,21 @@ var UserListDropdownSeparator = /** @class */ (function () {
47
47
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
48
48
  */
49
49
  function UserListDropdownSeparator(_a) {
50
- var _b = _a.userId, userId = _b === void 0 ? '' : _b;
50
+ var _b = _a.userId, userId = _b === void 0 ? '' : _b, _c = _a.position, position = _c === void 0 ? enums_1.UserListDropdownSeparatorPosition.AFTER : _c;
51
51
  var _this = this;
52
52
  this.id = '';
53
+ this.position = enums_1.UserListDropdownSeparatorPosition.AFTER;
53
54
  this.setItemId = function (id) {
54
55
  _this.id = "UserListDropdownSeparator_".concat(id);
55
56
  };
56
57
  this.userId = userId;
58
+ this.position = position;
57
59
  this.type = enums_1.UserListDropdownItemType.SEPARATOR;
58
60
  }
59
61
  return UserListDropdownSeparator;
60
62
  }());
61
63
  exports.UserListDropdownSeparator = UserListDropdownSeparator;
62
- var UserListDropdownInformation = /** @class */ (function () {
64
+ var UserListDropdownFixedContentInformation = /** @class */ (function () {
63
65
  /**
64
66
  * Returns object to be used in the setter for the User List Dropdown. In this case,
65
67
  * a button.
@@ -76,12 +78,12 @@ var UserListDropdownInformation = /** @class */ (function () {
76
78
  *
77
79
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
78
80
  */
79
- function UserListDropdownInformation(_a) {
81
+ function UserListDropdownFixedContentInformation(_a) {
80
82
  var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.iconRight, iconRight = _d === void 0 ? '' : _d, _e = _a.allowed, allowed = _e === void 0 ? true : _e, _f = _a.userId, userId = _f === void 0 ? '' : _f, _g = _a.textColor, textColor = _g === void 0 ? '' : _g;
81
83
  var _this = this;
82
84
  this.id = '';
83
85
  this.setItemId = function (id) {
84
- _this.id = "UserListDropdownInformation_".concat(id);
86
+ _this.id = "UserListDropdownFixedContentInformation_".concat(id);
85
87
  };
86
88
  this.userId = userId;
87
89
  this.label = label;
@@ -89,9 +91,71 @@ var UserListDropdownInformation = /** @class */ (function () {
89
91
  this.iconRight = iconRight;
90
92
  this.textColor = textColor;
91
93
  this.allowed = allowed;
92
- this.type = enums_1.UserListDropdownItemType.INFORMATION;
94
+ this.type = enums_1.UserListDropdownItemType.FIXED_CONTENT_INFORMATION;
93
95
  }
94
- return UserListDropdownInformation;
96
+ return UserListDropdownFixedContentInformation;
95
97
  }());
96
- exports.UserListDropdownInformation = UserListDropdownInformation;
98
+ exports.UserListDropdownFixedContentInformation = UserListDropdownFixedContentInformation;
99
+ var UserListDropdownGenericContentInformation = /** @class */ (function () {
100
+ /**
101
+ * Returns object to be used in the setter for the User List Dropdown. In this case,
102
+ * a button.
103
+ *
104
+ * @param label - label to be displayed in user list dropdown information.
105
+ * @param icon - icon to be used in the user list dropdown information.
106
+ * It goes on the left side of it.
107
+ * @param iconRight - icon to be used in the user list dropdown information.
108
+ * It goes on the right side of it.
109
+ * @param allowed - if false, the use list dropdown will not appear in the dropdown.
110
+ * @param textColor - Color that the text will have.
111
+ * @param userId - the userId in which this dropdown information will appear when the user
112
+ * list item is clicked.
113
+ *
114
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
115
+ */
116
+ function UserListDropdownGenericContentInformation(_a) {
117
+ var contentFunction = _a.contentFunction, _b = _a.allowed, allowed = _b === void 0 ? true : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c;
118
+ var _this = this;
119
+ this.id = '';
120
+ this.setItemId = function (id) {
121
+ _this.id = "UserListDropdownGenericContentInformation_".concat(id);
122
+ };
123
+ this.userId = userId;
124
+ this.allowed = allowed;
125
+ this.contentFunction = contentFunction;
126
+ this.type = enums_1.UserListDropdownItemType.GENERIC_CONTENT_INFORMATION;
127
+ }
128
+ return UserListDropdownGenericContentInformation;
129
+ }());
130
+ exports.UserListDropdownGenericContentInformation = UserListDropdownGenericContentInformation;
131
+ var UserListDropdownTitleAction = /** @class */ (function () {
132
+ /**
133
+ * Returns object to be used in the setter for the User List Dropdown. In this case,
134
+ * a button (action) for the title.
135
+ *
136
+ * @param onClick - onClick function.
137
+ * @param tooltip - quick explanatory message that will appear when user hover the action.
138
+ * @param icon - icon to be used in the user list dropdown title action.
139
+ * It goes on the left side of it.
140
+ * @param userId - the userId in which this dropdown title action will appear when the user
141
+ * list item is clicked.
142
+ *
143
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
144
+ */
145
+ function UserListDropdownTitleAction(_a) {
146
+ var _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, onClick = _a.onClick, tooltip = _a.tooltip;
147
+ var _this = this;
148
+ this.id = '';
149
+ this.setItemId = function (id) {
150
+ _this.id = "UserListDropdownTitleAction_".concat(id);
151
+ };
152
+ this.userId = userId;
153
+ this.icon = icon;
154
+ this.tooltip = tooltip;
155
+ this.onClick = onClick;
156
+ this.type = enums_1.UserListDropdownItemType.TITLE_ACTION;
157
+ }
158
+ return UserListDropdownTitleAction;
159
+ }());
160
+ exports.UserListDropdownTitleAction = UserListDropdownTitleAction;
97
161
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/component.ts"],"names":[],"mappings":";;;AAIA,iCAAmD;AAEnD,mCAAmC;AAEnC;IAiBE;;;;;;;;;;;;;OAaG;IACH,gCAAY,EAGkB;YAF5B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,E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C,AAzCD,IAyCC;AAzCY,8FAAyC;AA2CtD;IAaE;;;;;;;;;;;;OAYG;IACH,qCAAY,EAEuB;YADjC,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EAAE,OAAO,aAAA,EAAE,OAAO,aAAA;QAD1C,iBAQC;QAjCD,OAAE,GAAW,EAAE,CAAC;QAmChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,sCAA+B,EAAE,CAAE,CAAC;QAChD,CAAC,CAAC;QATA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,gCAAwB,CAAC,YAAY,CAAC;IACpD,CAAC;IAKH,kCAAC;AAAD,CAAC,AAvCD,IAuCC;AAvCY,kEAA2B"}
@@ -1,5 +1,11 @@
1
1
  export declare enum UserListDropdownItemType {
2
2
  OPTION = "USER_LIST_DROPDOWN_OPTION",
3
3
  SEPARATOR = "USER_LIST_DROPDOWN_SEPARATOR",
4
- INFORMATION = "USER_LIST_DROPDOWN_INFORMATION"
4
+ FIXED_CONTENT_INFORMATION = "USER_LIST_DROPDOWN_FIXED_CONTENT_INFORMATION",
5
+ GENERIC_CONTENT_INFORMATION = "USER_LIST_DROPDOWN_GENERIC_CONTENT_INFORMATION",
6
+ TITLE_ACTION = "USER_LIST_DROPDOWN_TITLE_ACTION"
7
+ }
8
+ export declare enum UserListDropdownSeparatorPosition {
9
+ BEFORE = "BEFORE_DEFAULT_ITEMS",
10
+ AFTER = "AFTER_DEFAULT_ITEMS"
5
11
  }
@@ -1,11 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserListDropdownItemType = void 0;
3
+ exports.UserListDropdownSeparatorPosition = exports.UserListDropdownItemType = void 0;
4
4
  // User list dropdown items types:
5
5
  var UserListDropdownItemType;
6
6
  (function (UserListDropdownItemType) {
7
7
  UserListDropdownItemType["OPTION"] = "USER_LIST_DROPDOWN_OPTION";
8
8
  UserListDropdownItemType["SEPARATOR"] = "USER_LIST_DROPDOWN_SEPARATOR";
9
- UserListDropdownItemType["INFORMATION"] = "USER_LIST_DROPDOWN_INFORMATION";
9
+ UserListDropdownItemType["FIXED_CONTENT_INFORMATION"] = "USER_LIST_DROPDOWN_FIXED_CONTENT_INFORMATION";
10
+ UserListDropdownItemType["GENERIC_CONTENT_INFORMATION"] = "USER_LIST_DROPDOWN_GENERIC_CONTENT_INFORMATION";
11
+ UserListDropdownItemType["TITLE_ACTION"] = "USER_LIST_DROPDOWN_TITLE_ACTION";
10
12
  })(UserListDropdownItemType || (exports.UserListDropdownItemType = UserListDropdownItemType = {}));
13
+ var UserListDropdownSeparatorPosition;
14
+ (function (UserListDropdownSeparatorPosition) {
15
+ UserListDropdownSeparatorPosition["BEFORE"] = "BEFORE_DEFAULT_ITEMS";
16
+ UserListDropdownSeparatorPosition["AFTER"] = "AFTER_DEFAULT_ITEMS";
17
+ })(UserListDropdownSeparatorPosition || (exports.UserListDropdownSeparatorPosition = UserListDropdownSeparatorPosition = {}));
11
18
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/enums.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,gEAAoC,CAAA;IACpC,sEAA0C,CAAA;IAC1C,0EAA8C,CAAA;AAChD,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/enums.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAClC,gEAAoC,CAAA;IACpC,sEAA0C,CAAA;IAC1C,sGAA0E,CAAA;IAC1E,0GAA8E,CAAA;IAC9E,4EAAgD,CAAA;AAClD,CAAC,EANW,wBAAwB,wCAAxB,wBAAwB,QAMnC;AAED,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,oEAA+B,CAAA;IAC/B,kEAA6B,CAAA;AAC/B,CAAC,EAHW,iCAAiC,iDAAjC,iCAAiC,QAG5C"}
@@ -1,2 +1,3 @@
1
- export { UserListDropdownOption, UserListDropdownSeparator, UserListDropdownInformation, } from './component';
1
+ export { UserListDropdownOption, UserListDropdownSeparator, UserListDropdownGenericContentInformation, UserListDropdownFixedContentInformation, UserListDropdownTitleAction, } from './component';
2
2
  export { UserListDropdownInterface, } from './types';
3
+ export { UserListDropdownSeparatorPosition, } from './enums';
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserListDropdownInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
3
+ exports.UserListDropdownSeparatorPosition = exports.UserListDropdownTitleAction = exports.UserListDropdownFixedContentInformation = exports.UserListDropdownGenericContentInformation = exports.UserListDropdownSeparator = exports.UserListDropdownOption = void 0;
4
4
  var component_1 = require("./component");
5
5
  Object.defineProperty(exports, "UserListDropdownOption", { enumerable: true, get: function () { return component_1.UserListDropdownOption; } });
6
6
  Object.defineProperty(exports, "UserListDropdownSeparator", { enumerable: true, get: function () { return component_1.UserListDropdownSeparator; } });
7
- Object.defineProperty(exports, "UserListDropdownInformation", { enumerable: true, get: function () { return component_1.UserListDropdownInformation; } });
7
+ Object.defineProperty(exports, "UserListDropdownGenericContentInformation", { enumerable: true, get: function () { return component_1.UserListDropdownGenericContentInformation; } });
8
+ Object.defineProperty(exports, "UserListDropdownFixedContentInformation", { enumerable: true, get: function () { return component_1.UserListDropdownFixedContentInformation; } });
9
+ Object.defineProperty(exports, "UserListDropdownTitleAction", { enumerable: true, get: function () { return component_1.UserListDropdownTitleAction; } });
10
+ var enums_1 = require("./enums");
11
+ Object.defineProperty(exports, "UserListDropdownSeparatorPosition", { enumerable: true, get: function () { return enums_1.UserListDropdownSeparatorPosition; } });
8
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAIqB;AAHnB,mHAAA,sBAAsB,OAAA;AACtB,sHAAA,yBAAyB,OAAA;AACzB,wHAAA,2BAA2B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AALnB,mHAAA,sBAAsB,OAAA;AACtB,sHAAA,yBAAyB,OAAA;AACzB,sIAAA,yCAAyC,OAAA;AACzC,oIAAA,uCAAuC,OAAA;AACvC,wHAAA,2BAA2B,OAAA;AAK7B,iCAEiB;AADf,0HAAA,iCAAiC,OAAA"}
@@ -1,4 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
3
+ import { UserListDropdownSeparatorPosition } from './enums';
2
4
  /**
3
5
  * User List Dropdown Item - The general user list dropdown extensible area item
4
6
  *
@@ -19,8 +21,14 @@ export interface UserListDropdownOptionProps {
19
21
  }
20
22
  export interface UserListDropdownSeparatorProps {
21
23
  userId: string;
24
+ position?: UserListDropdownSeparatorPosition;
22
25
  }
23
- export interface UserListDropdownInformationProps {
26
+ export interface UserListDropdownGenericContentInformationProps {
27
+ contentFunction: (element: HTMLElement) => void;
28
+ allowed: boolean;
29
+ userId: string;
30
+ }
31
+ export interface UserListDropdownFixedContentInformationProps {
24
32
  label: string;
25
33
  icon?: string;
26
34
  iconRight?: string;
@@ -28,3 +36,12 @@ export interface UserListDropdownInformationProps {
28
36
  userId: string;
29
37
  textColor: string;
30
38
  }
39
+ export interface UserListDropdownTitleActionOnClickArguments {
40
+ browserEvent: React.MouseEvent<HTMLElement>;
41
+ }
42
+ export interface UserListDropdownTitleActionProps {
43
+ tooltip: string;
44
+ icon: string;
45
+ userId: string;
46
+ onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
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",