bigbluebutton-html-plugin-sdk 0.0.57 → 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.
Files changed (51) hide show
  1. package/README.md +7 -3
  2. package/dist/cjs/core/api/BbbPluginSdk.js +3 -2
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +3 -1
  5. package/dist/cjs/core/enum.d.ts +9 -3
  6. package/dist/cjs/core/enum.js +9 -3
  7. package/dist/cjs/core/enum.js.map +1 -1
  8. package/dist/cjs/data-channel/hooks.js +2 -2
  9. package/dist/cjs/data-channel/hooks.js.map +1 -1
  10. package/dist/cjs/data-channel/utils.js +3 -3
  11. package/dist/cjs/data-channel/utils.js.map +1 -1
  12. package/dist/cjs/data-consumption/factory/hookCreator.js +7 -7
  13. package/dist/cjs/data-consumption/factory/hookCreator.js.map +1 -1
  14. package/dist/cjs/dom-element-manipulation/chat/message/hooks.d.ts +1 -1
  15. package/dist/cjs/dom-element-manipulation/chat/message/hooks.js +56 -30
  16. package/dist/cjs/dom-element-manipulation/chat/message/hooks.js.map +1 -1
  17. package/dist/cjs/dom-element-manipulation/chat/message/types.d.ts +1 -0
  18. package/dist/cjs/dom-element-manipulation/user-camera/hooks.d.ts +1 -1
  19. package/dist/cjs/dom-element-manipulation/user-camera/hooks.js +56 -31
  20. package/dist/cjs/dom-element-manipulation/user-camera/hooks.js.map +1 -1
  21. package/dist/cjs/dom-element-manipulation/user-camera/types.d.ts +2 -1
  22. package/dist/cjs/extensible-areas/base.d.ts +2 -1
  23. package/dist/cjs/extensible-areas/index.d.ts +1 -0
  24. package/dist/cjs/extensible-areas/index.js +1 -0
  25. package/dist/cjs/extensible-areas/index.js.map +1 -1
  26. package/dist/cjs/extensible-areas/screenshare-helper-item/component.d.ts +2 -2
  27. package/dist/cjs/extensible-areas/screenshare-helper-item/component.js.map +1 -1
  28. package/dist/cjs/extensible-areas/screenshare-helper-item/types.d.ts +6 -2
  29. package/dist/cjs/extensible-areas/user-camera-helper-item/component.d.ts +31 -0
  30. package/dist/cjs/extensible-areas/user-camera-helper-item/component.js +42 -0
  31. package/dist/cjs/extensible-areas/user-camera-helper-item/component.js.map +1 -0
  32. package/dist/cjs/extensible-areas/user-camera-helper-item/enums.d.ts +12 -0
  33. package/dist/cjs/extensible-areas/user-camera-helper-item/enums.js +19 -0
  34. package/dist/cjs/extensible-areas/user-camera-helper-item/enums.js.map +1 -0
  35. package/dist/cjs/extensible-areas/user-camera-helper-item/index.d.ts +3 -0
  36. package/dist/cjs/extensible-areas/user-camera-helper-item/index.js +8 -0
  37. package/dist/cjs/extensible-areas/user-camera-helper-item/index.js.map +1 -0
  38. package/dist/cjs/extensible-areas/user-camera-helper-item/types.d.ts +33 -0
  39. package/dist/cjs/extensible-areas/user-camera-helper-item/types.js +3 -0
  40. package/dist/cjs/extensible-areas/user-camera-helper-item/types.js.map +1 -0
  41. package/dist/cjs/extensible-areas/user-list-dropdown-item/component.d.ts +54 -5
  42. package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js +72 -8
  43. package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js.map +1 -1
  44. package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.d.ts +7 -1
  45. package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js +9 -2
  46. package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js.map +1 -1
  47. package/dist/cjs/extensible-areas/user-list-dropdown-item/index.d.ts +2 -1
  48. package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js +6 -2
  49. package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js.map +1 -1
  50. package/dist/cjs/extensible-areas/user-list-dropdown-item/types.d.ts +18 -1
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ScreenshareHelperItemType, ScreenshareHelperItemPosition } from './enums';
2
- import { ScreenshareHelperButtonProps, ScreenshareHelperButtonInterface } from './types';
2
+ import { ScreenshareHelperButtonProps, ScreenshareHelperButtonInterface, ScreenshareHelperButtonOnclickCallback } from './types';
3
3
  export declare class ScreenshareHelperButton implements ScreenshareHelperButtonInterface {
4
4
  id: string;
5
5
  type: ScreenshareHelperItemType;
@@ -8,7 +8,7 @@ export declare class ScreenshareHelperButton implements ScreenshareHelperButtonI
8
8
  tooltip: string;
9
9
  disabled: boolean;
10
10
  position: ScreenshareHelperItemPosition;
11
- onClick: () => void;
11
+ onClick: (args: ScreenshareHelperButtonOnclickCallback) => void;
12
12
  /**
13
13
  * Returns object to be used in the setter for the Screenshare Helper. In this case,
14
14
  * a button.
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/screenshare-helper-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAmF;AAMnF,oCAAoC;AAEpC;IAiBE;;;;;;;;;;;;;;;OAeG;IACH,iCAAY,EAGmB;YAF7B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACxE,gBAAkD,EAAlD,QAAQ,mBAAG,qCAA6B,CAAC,SAAS,KAAA;QAFpD,iBAWC;QA3CD,OAAE,GAAW,EAAE,CAAC;QA6ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,kCAA2B,EAAE,CAAE,CAAC;QAC5C,CAAC,CAAC;QAXA,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,IAAI,GAAG,iCAAyB,CAAC,MAAM,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKH,8BAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,0DAAuB"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/screenshare-helper-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAmF;AAOnF,oCAAoC;AAEpC;IAiBE;;;;;;;;;;;;;;;OAeG;IACH,iCAAY,EAGmB;YAF7B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACxE,gBAAkD,EAAlD,QAAQ,mBAAG,qCAA6B,CAAC,SAAS,KAAA;QAFpD,iBAWC;QA3CD,OAAE,GAAW,EAAE,CAAC;QA6ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,kCAA2B,EAAE,CAAE,CAAC;QAC5C,CAAC,CAAC;QAXA,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,IAAI,GAAG,iCAAyB,CAAC,MAAM,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKH,8BAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,0DAAuB"}
@@ -1,15 +1,19 @@
1
+ /// <reference types="react" />
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
2
3
  import { ScreenshareHelperItemPosition } from './enums';
3
4
  export interface ScreenshareHelperInterface extends PluginProvidedUiItemDescriptor {
4
5
  position: ScreenshareHelperItemPosition;
5
6
  }
7
+ export interface ScreenshareHelperButtonOnclickCallback {
8
+ browserClickEvent: React.MouseEvent<HTMLElement>;
9
+ }
6
10
  export interface ScreenshareHelperButtonInterface extends ScreenshareHelperInterface {
7
11
  label: string;
8
12
  icon: string;
9
13
  tooltip: string;
10
14
  disabled: boolean;
11
15
  position: ScreenshareHelperItemPosition;
12
- onClick: () => void;
16
+ onClick: (args: ScreenshareHelperButtonOnclickCallback) => void;
13
17
  }
14
18
  export interface ScreenshareHelperButtonProps {
15
19
  label?: string;
@@ -18,5 +22,5 @@ export interface ScreenshareHelperButtonProps {
18
22
  disabled: boolean;
19
23
  hasSeparator: boolean;
20
24
  position: ScreenshareHelperItemPosition;
21
- onClick: () => void;
25
+ onClick: (args: ScreenshareHelperButtonOnclickCallback) => void;
22
26
  }
@@ -0,0 +1,31 @@
1
+ import { UserCameraHelperItemType, UserCameraHelperItemPosition } from './enums';
2
+ import { UserCameraHelperButtonProps, UserCameraHelperButtonInterface, UserCameraHelperButtonOnclickCallback, UserCameraHelperCallbackFunctionArguments } from './types';
3
+ export declare class UserCameraHelperButton implements UserCameraHelperButtonInterface {
4
+ id: string;
5
+ type: UserCameraHelperItemType;
6
+ label: string;
7
+ displayFunction?: (args: UserCameraHelperCallbackFunctionArguments) => boolean;
8
+ icon: string;
9
+ tooltip: string;
10
+ disabled: boolean;
11
+ position: UserCameraHelperItemPosition;
12
+ onClick: (args: UserCameraHelperButtonOnclickCallback) => void;
13
+ /**
14
+ * Returns object to be used in the setter for the UserCamera Helper. In this case,
15
+ * a button.
16
+ *
17
+ * @param label - label to be displayed in userCamera helper button (Not mandatory).
18
+ * @param tooltip - label to be displayed when hovering the userCamera helper button.
19
+ * @param icon - icon to be used in the userCamera helper button. It goes in the left side of it.
20
+ * @param onClick - function to be called when clicking the button.
21
+ * @param displayFunction - function to tell BBB core which cameras will receive this extensible
22
+ * area.
23
+ * @param position - position to place the userCamera helper button.
24
+ * See {@link UserCameraHelperItemPosition}
25
+ * @param disabled - if true, the userCamera helper button will not be clickable
26
+ *
27
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
28
+ */
29
+ constructor({ label, icon, tooltip, disabled, onClick, position, displayFunction, }: UserCameraHelperButtonProps);
30
+ setItemId: (id: string) => void;
31
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCameraHelperButton = void 0;
4
+ var enums_1 = require("./enums");
5
+ // UserCameraHelper Extensible Area
6
+ var UserCameraHelperButton = /** @class */ (function () {
7
+ /**
8
+ * Returns object to be used in the setter for the UserCamera Helper. In this case,
9
+ * a button.
10
+ *
11
+ * @param label - label to be displayed in userCamera helper button (Not mandatory).
12
+ * @param tooltip - label to be displayed when hovering the userCamera helper button.
13
+ * @param icon - icon to be used in the userCamera helper button. It goes in the left side of it.
14
+ * @param onClick - function to be called when clicking the button.
15
+ * @param displayFunction - function to tell BBB core which cameras will receive this extensible
16
+ * area.
17
+ * @param position - position to place the userCamera helper button.
18
+ * See {@link UserCameraHelperItemPosition}
19
+ * @param disabled - if true, the userCamera helper button will not be clickable
20
+ *
21
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
22
+ */
23
+ function UserCameraHelperButton(_a) {
24
+ var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.tooltip, tooltip = _d === void 0 ? '' : _d, _e = _a.disabled, disabled = _e === void 0 ? true : _e, _f = _a.onClick, onClick = _f === void 0 ? function () { } : _f, _g = _a.position, position = _g === void 0 ? enums_1.UserCameraHelperItemPosition.TOP_RIGHT : _g, displayFunction = _a.displayFunction;
25
+ var _this = this;
26
+ this.id = '';
27
+ this.setItemId = function (id) {
28
+ _this.id = "UserCameraHelperButton_".concat(id);
29
+ };
30
+ this.label = label;
31
+ this.icon = icon;
32
+ this.tooltip = tooltip;
33
+ this.disabled = disabled;
34
+ this.onClick = onClick;
35
+ this.displayFunction = displayFunction;
36
+ this.type = enums_1.UserCameraHelperItemType.BUTTON;
37
+ this.position = position;
38
+ }
39
+ return UserCameraHelperButton;
40
+ }());
41
+ exports.UserCameraHelperButton = UserCameraHelperButton;
42
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-camera-helper-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAiF;AAQjF,mCAAmC;AAEnC;IAmBE;;;;;;;;;;;;;;;OAeG;IACH,gCAAY,EAGkB;YAF5B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACxE,gBAAiD,EAAjD,QAAQ,mBAAG,oCAA4B,CAAC,SAAS,KAAA,EAAE,eAAe,qBAAA;QAFpE,iBAYC;QA9CD,OAAE,GAAW,EAAE,CAAC;QAgDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,iCAA0B,EAAE,CAAE,CAAC;QAC3C,CAAC,CAAC;QAZA,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,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,gCAAwB,CAAC,MAAM,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKH,6BAAC;AAAD,CAAC,AApDD,IAoDC;AApDY,wDAAsB"}
@@ -0,0 +1,12 @@
1
+ export declare enum UserCameraHelperItemType {
2
+ BUTTON = "SCREENSHARE_HELPER_BUTTON"
3
+ }
4
+ /**
5
+ * Enum with the position to insert the userCamera helper item (Information or Button)
6
+ */
7
+ export declare enum UserCameraHelperItemPosition {
8
+ TOP_RIGHT = "TOP_RIGHT",
9
+ TOP_LEFT = "TOP_LEFT",
10
+ BOTTOM_RIGHT = "BOTTOM_RIGHT",
11
+ BOTTOM_LEFT = "BOTTOM_LEFT"
12
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCameraHelperItemPosition = exports.UserCameraHelperItemType = void 0;
4
+ // UserCamera Helper items types:
5
+ var UserCameraHelperItemType;
6
+ (function (UserCameraHelperItemType) {
7
+ UserCameraHelperItemType["BUTTON"] = "SCREENSHARE_HELPER_BUTTON";
8
+ })(UserCameraHelperItemType || (exports.UserCameraHelperItemType = UserCameraHelperItemType = {}));
9
+ /**
10
+ * Enum with the position to insert the userCamera helper item (Information or Button)
11
+ */
12
+ var UserCameraHelperItemPosition;
13
+ (function (UserCameraHelperItemPosition) {
14
+ UserCameraHelperItemPosition["TOP_RIGHT"] = "TOP_RIGHT";
15
+ UserCameraHelperItemPosition["TOP_LEFT"] = "TOP_LEFT";
16
+ UserCameraHelperItemPosition["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
17
+ UserCameraHelperItemPosition["BOTTOM_LEFT"] = "BOTTOM_LEFT";
18
+ })(UserCameraHelperItemPosition || (exports.UserCameraHelperItemPosition = UserCameraHelperItemPosition = {}));
19
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-camera-helper-item/enums.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IAClC,gEAAoC,CAAA;AACtC,CAAC,EAFW,wBAAwB,wCAAxB,wBAAwB,QAEnC;AAED;;GAEG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACtC,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,6DAA6B,CAAA;IAC7B,2DAA2B,CAAA;AAC7B,CAAC,EALW,4BAA4B,4CAA5B,4BAA4B,QAKvC"}
@@ -0,0 +1,3 @@
1
+ export { UserCameraHelperButton, } from './component';
2
+ export { UserCameraHelperInterface, } from './types';
3
+ export { UserCameraHelperItemPosition, } from './enums';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCameraHelperItemPosition = exports.UserCameraHelperButton = void 0;
4
+ var component_1 = require("./component");
5
+ Object.defineProperty(exports, "UserCameraHelperButton", { enumerable: true, get: function () { return component_1.UserCameraHelperButton; } });
6
+ var enums_1 = require("./enums");
7
+ Object.defineProperty(exports, "UserCameraHelperItemPosition", { enumerable: true, get: function () { return enums_1.UserCameraHelperItemPosition; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-camera-helper-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAEqB;AADnB,mHAAA,sBAAsB,OAAA;AAKxB,iCAEiB;AADf,qHAAA,4BAA4B,OAAA"}
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { PluginProvidedUiItemDescriptor } from '../base';
3
+ import { UserCameraHelperItemPosition } from './enums';
4
+ export interface UserCameraHelperInterface extends PluginProvidedUiItemDescriptor {
5
+ position: UserCameraHelperItemPosition;
6
+ }
7
+ export interface UserCameraHelperButtonOnclickCallback {
8
+ userId: string;
9
+ streamId: string;
10
+ browserClickEvent: React.MouseEvent<HTMLElement>;
11
+ }
12
+ export interface UserCameraHelperCallbackFunctionArguments {
13
+ streamId: string;
14
+ userId: string;
15
+ }
16
+ export interface UserCameraHelperButtonInterface extends UserCameraHelperInterface {
17
+ label: string;
18
+ icon: string;
19
+ tooltip: string;
20
+ disabled: boolean;
21
+ position: UserCameraHelperItemPosition;
22
+ displayFunction?: (args: UserCameraHelperCallbackFunctionArguments) => boolean;
23
+ onClick: (args: UserCameraHelperButtonOnclickCallback) => void;
24
+ }
25
+ export interface UserCameraHelperButtonProps {
26
+ label?: string;
27
+ icon: string;
28
+ tooltip: string;
29
+ disabled: boolean;
30
+ displayFunction?: (args: UserCameraHelperCallbackFunctionArguments) => boolean;
31
+ position: UserCameraHelperItemPosition;
32
+ onClick: (args: UserCameraHelperButtonOnclickCallback) => void;
33
+ }
@@ -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/extensible-areas/user-camera-helper-item/types.ts"],"names":[],"mappings":""}
@@ -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,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACvE,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA;QAFb,iBAWC;QAzCD,OAAE,GAAW,EAAE,CAAC;QA2ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,iCAA0B,EAAE,CAAE,CAAC;QAC3C,CAAC,CAAC;QAXA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,gCAAwB,CAAC,MAAM,CAAC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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.57",
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",