bigbluebutton-html-plugin-sdk 0.0.59 → 0.0.61

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 (32) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/extensible-areas/floating-window/component.d.ts +5 -3
  3. package/dist/cjs/extensible-areas/floating-window/component.js +3 -2
  4. package/dist/cjs/extensible-areas/floating-window/component.js.map +1 -1
  5. package/dist/cjs/extensible-areas/floating-window/types.d.ts +2 -1
  6. package/dist/cjs/extensible-areas/generic-content-item/component.d.ts +4 -3
  7. package/dist/cjs/extensible-areas/generic-content-item/component.js +1 -1
  8. package/dist/cjs/extensible-areas/generic-content-item/component.js.map +1 -1
  9. package/dist/cjs/extensible-areas/generic-content-item/types.d.ts +3 -2
  10. package/dist/cjs/ui-commands/commands.d.ts +6 -0
  11. package/dist/cjs/ui-commands/commands.js +4 -0
  12. package/dist/cjs/ui-commands/commands.js.map +1 -1
  13. package/dist/cjs/ui-commands/conference/commands.d.ts +12 -0
  14. package/dist/cjs/ui-commands/conference/commands.js +28 -0
  15. package/dist/cjs/ui-commands/conference/commands.js.map +1 -0
  16. package/dist/cjs/ui-commands/conference/enums.d.ts +3 -0
  17. package/dist/cjs/ui-commands/conference/enums.js +8 -0
  18. package/dist/cjs/ui-commands/conference/enums.js.map +1 -0
  19. package/dist/cjs/ui-commands/conference/types.d.ts +6 -0
  20. package/dist/cjs/ui-commands/conference/types.js +3 -0
  21. package/dist/cjs/ui-commands/conference/types.js.map +1 -0
  22. package/dist/cjs/ui-commands/types.d.ts +4 -0
  23. package/dist/cjs/ui-commands/user-status/commands.d.ts +11 -0
  24. package/dist/cjs/ui-commands/user-status/commands.js +22 -0
  25. package/dist/cjs/ui-commands/user-status/commands.js.map +1 -0
  26. package/dist/cjs/ui-commands/user-status/enums.d.ts +3 -0
  27. package/dist/cjs/ui-commands/user-status/enums.js +8 -0
  28. package/dist/cjs/ui-commands/user-status/enums.js.map +1 -0
  29. package/dist/cjs/ui-commands/user-status/types.d.ts +6 -0
  30. package/dist/cjs/ui-commands/user-status/types.js +3 -0
  31. package/dist/cjs/ui-commands/user-status/types.js.map +1 -0
  32. package/package.json +1 -1
package/README.md CHANGED
@@ -249,6 +249,10 @@ One other thing is that the type of the return is precisely the same type requir
249
249
  - presentation-area:
250
250
  - open: this function will open the presentation area content automatically;
251
251
  - close: this function will close the presentation area content automatically;
252
+ - conference:
253
+ - setSpeakerLevel: this function will set the speaker volume level(audio output) of the conference to a certain number between 0 and 1;
254
+ - user-status:
255
+ - setAwayStatus: this function will set the away status of the user to a certain status;
252
256
 
253
257
  See usage ahead:
254
258
 
@@ -1,3 +1,4 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { FloatingWindowType } from './enums';
2
3
  import { FloatingWindowInterface, FloatingWindowProps } from './types';
3
4
  export declare class FloatingWindow implements FloatingWindowInterface {
@@ -8,19 +9,20 @@ export declare class FloatingWindow implements FloatingWindowInterface {
8
9
  movable: boolean;
9
10
  backgroundColor: string;
10
11
  boxShadow: string;
11
- contentFunction: (element: HTMLElement) => void;
12
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
12
13
  /**
13
14
  * Returns object to be used in the setter for the Floating Window
14
15
  *
15
16
  * @param top - position in which the the top left corner of the floating window is relative
16
- * to the top of the rendered window.
17
+ * to the top of the rendered window. It must return the root element where the floating window
18
+ * was rendered.
17
19
  * @param left - position in which the the top left corner of the floating window is relative
18
20
  * to the left of the rendered window.
19
21
  * @param movable - tells whether the floating window is movable or static.
20
22
  * @param backgroundColor - background color of the floating window.
21
23
  * @param boxShadow - box shadow to apply to the floating window
22
24
  * @param contentFunction - function that gives the html element to render the content of
23
- * the floating window
25
+ * the floating window. It must return the root element where the floating window was rendered.
24
26
  *
25
27
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
26
28
  */
@@ -8,14 +8,15 @@ var FloatingWindow = /** @class */ (function () {
8
8
  * Returns object to be used in the setter for the Floating Window
9
9
  *
10
10
  * @param top - position in which the the top left corner of the floating window is relative
11
- * to the top of the rendered window.
11
+ * to the top of the rendered window. It must return the root element where the floating window
12
+ * was rendered.
12
13
  * @param left - position in which the the top left corner of the floating window is relative
13
14
  * to the left of the rendered window.
14
15
  * @param movable - tells whether the floating window is movable or static.
15
16
  * @param backgroundColor - background color of the floating window.
16
17
  * @param boxShadow - box shadow to apply to the floating window
17
18
  * @param contentFunction - function that gives the html element to render the content of
18
- * the floating window
19
+ * the floating window. It must return the root element where the floating window was rendered.
19
20
  *
20
21
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
21
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AAAA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAiBE;;;;;;;;;;;;;;OAcG;IACH,wBAAY,EAOU;YANpB,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,SAAS,eAAA,EACT,eAAe,qBAAA;QANjB,iBAgBC;QA/CD,OAAE,GAAW,EAAE,CAAC;QAiDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yBAAkB,EAAE,CAAE,CAAC;QACnC,CAAC,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,qBAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,wCAAc"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAiBE;;;;;;;;;;;;;;;OAeG;IACH,wBAAY,EAOU;YANpB,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,SAAS,eAAA,EACT,eAAe,qBAAA;QANjB,iBAgBC;QAhDD,OAAE,GAAW,EAAE,CAAC;QAkDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yBAAkB,EAAE,CAAE,CAAC;QACnC,CAAC,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,qBAAC;AAAD,CAAC,AAtDD,IAsDC;AAtDY,wCAAc"}
@@ -1,3 +1,4 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
2
3
  export interface FloatingWindowInterface extends PluginProvidedUiItemDescriptor {
3
4
  }
@@ -7,6 +8,6 @@ export interface FloatingWindowProps {
7
8
  movable: boolean;
8
9
  backgroundColor: string;
9
10
  boxShadow: string;
10
- contentFunction: (element: HTMLElement) => void;
11
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
11
12
  }
12
13
  export type SetFloatingWindows = (FloatingWindows: FloatingWindowInterface[]) => void;
@@ -1,9 +1,10 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { GenericContentType } from './enums';
2
3
  import { GenericContentInterface, GenericContentMainAreaProps, GenericContentSidekickAreaProps } from './types';
3
4
  export declare class GenericContentMainArea implements GenericContentInterface {
4
5
  id: string;
5
6
  type: GenericContentType;
6
- contentFunction: (element: HTMLElement) => void;
7
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
7
8
  /**
8
9
  * Returns an object that when used in the setter as a generic content will be rendered
9
10
  * over the meeting main presentation.
@@ -23,7 +24,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
23
24
  section: string;
24
25
  buttonIcon: string;
25
26
  open: boolean;
26
- contentFunction: (element: HTMLElement) => void;
27
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
27
28
  /**
28
29
  * Returns an object that when used in the setter as a generic content will be rendered
29
30
  * in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
@@ -31,7 +32,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
31
32
  * given generic sidekick content.
32
33
  *
33
34
  * @param contentFunction - function that gives the html element to render the content of
34
- * the generic component
35
+ * the generic content. It must return the root element where the generic content was rendered.
35
36
  * @param name - the label of the associated sidebar navigation button
36
37
  * @param section - section name under which the associated sidebar navigation button will be
37
38
  * displayed
@@ -34,7 +34,7 @@ var GenericContentSidekickArea = /** @class */ (function () {
34
34
  * given generic sidekick content.
35
35
  *
36
36
  * @param contentFunction - function that gives the html element to render the content of
37
- * the generic component
37
+ * the generic content. It must return the root element where the generic content was rendered.
38
38
  * @param name - the label of the associated sidebar navigation button
39
39
  * @param section - section name under which the associated sidebar navigation button will be
40
40
  * displayed
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAeE;;;;;;;;;;;;;;;OAeG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA;QADlD,iBASC;QAvCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QAExB,SAAI,GAAY,KAAK,CAAC;QA+BtB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QAVA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAKH,iCAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gEAA0B"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAeE;;;;;;;;;;;;;;;OAeG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA;QADlD,iBASC;QAvCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QAExB,SAAI,GAAY,KAAK,CAAC;QA+BtB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QAVA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAKH,iCAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gEAA0B"}
@@ -1,11 +1,12 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
2
3
  export interface GenericContentInterface extends PluginProvidedUiItemDescriptor {
3
4
  }
4
5
  export interface GenericContentMainAreaProps {
5
- contentFunction: (element: HTMLElement) => void;
6
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
6
7
  }
7
8
  export interface GenericContentSidekickAreaProps {
8
- contentFunction: (element: HTMLElement) => void;
9
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
9
10
  name: string;
10
11
  section: string;
11
12
  buttonIcon: string;
@@ -18,4 +18,10 @@ export declare const uiCommands: {
18
18
  open: () => void;
19
19
  close: () => void;
20
20
  };
21
+ userStatus: {
22
+ setAwayStatus: (setAwayStatusCommandArguments: import("./user-status/types").SetAwayStatusCommandArguments) => void;
23
+ };
24
+ conference: {
25
+ setSpeakerLevel: (setSpeakerLevelCommandArguments: import("./conference/types").SetSpeakerLevelCommandArguments) => void;
26
+ };
21
27
  };
@@ -5,10 +5,14 @@ var commands_1 = require("./chat/commands");
5
5
  var commands_2 = require("./external-video/commands");
6
6
  var commands_3 = require("./sidekick-options-container/commands");
7
7
  var commands_4 = require("./presentation-area/commands");
8
+ var commands_5 = require("./user-status/commands");
9
+ var commands_6 = require("./conference/commands");
8
10
  exports.uiCommands = {
9
11
  chat: commands_1.chat,
10
12
  externalVideo: commands_2.externalVideo,
11
13
  sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
12
14
  presentationArea: commands_4.presentationArea,
15
+ userStatus: commands_5.userStatus,
16
+ conference: commands_6.conference,
13
17
  };
14
18
  //# 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;AAEnD,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,gBAAgB,6BAAA;CACjB,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;AAEtC,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;CACX,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SetSpeakerLevelCommandArguments } from './types';
2
+ export declare const conference: {
3
+ /**
4
+ * Sets the volume of the speakers in the conference to a certain level.
5
+ * Needs to be a value between 0 and 1.
6
+ *
7
+ * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
8
+ * level.
9
+ * Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
10
+ */
11
+ setSpeakerLevel: (setSpeakerLevelCommandArguments: SetSpeakerLevelCommandArguments) => void;
12
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.conference = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.conference = {
6
+ /**
7
+ * Sets the volume of the speakers in the conference to a certain level.
8
+ * Needs to be a value between 0 and 1.
9
+ *
10
+ * @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
11
+ * level.
12
+ * Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
13
+ */
14
+ setSpeakerLevel: function (setSpeakerLevelCommandArguments) {
15
+ var level = setSpeakerLevelCommandArguments.level;
16
+ if (level <= 1 && level >= 0) {
17
+ window.dispatchEvent(new CustomEvent(enums_1.ConferenceEnum.SET_SPEAKER_LEVEL, {
18
+ detail: {
19
+ level: level,
20
+ },
21
+ }));
22
+ }
23
+ else {
24
+ throw new Error('Not possible to set the speaker volume less than zero or higher than one');
25
+ }
26
+ },
27
+ };
28
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAG5B,QAAA,UAAU,GAAG;IACxB;;;;;;;OAOG;IACH,eAAe,EAAE,UAAC,+BAAgE;QACxE,IAAA,KAAK,GAAK,+BAA+B,MAApC,CAAqC;QAClD,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;YAC5B,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,sBAAc,CAAC,iBAAiB,EAAE;gBAClC,MAAM,EAAE;oBACN,KAAK,OAAA;iBACN;aACF,CAAC,CACH,CAAC;SACH;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;SAC7F;IACH,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare enum ConferenceEnum {
2
+ SET_SPEAKER_LEVEL = "SET_SPEAKER_LEVEL_COMMAND"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConferenceEnum = void 0;
4
+ var ConferenceEnum;
5
+ (function (ConferenceEnum) {
6
+ ConferenceEnum["SET_SPEAKER_LEVEL"] = "SET_SPEAKER_LEVEL_COMMAND";
7
+ })(ConferenceEnum || (exports.ConferenceEnum = ConferenceEnum = {}));
8
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,iEAA+C,CAAA;AACjD,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
@@ -0,0 +1,6 @@
1
+ export interface SetSpeakerLevelCommandArguments {
2
+ level: number;
3
+ }
4
+ export interface UiCommandsConferenceObject {
5
+ setSpeakerLevel: (setSpeakerlevelCommandArguments: SetSpeakerLevelCommandArguments) => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/types.ts"],"names":[],"mappings":""}
@@ -2,9 +2,13 @@ import { UiCommandsChatObject } from './chat/types';
2
2
  import { UiCommandsExternalVideoObject } from './external-video/types';
3
3
  import { UiCommandsSidekickOptionsContainerObject } from './sidekick-options-container/types';
4
4
  import { UiCommandsPresentationAreaObject } from './presentation-area/types';
5
+ import { UiCommandsUserStatusObject } from './user-status/types';
6
+ import { UiCommandsConferenceObject } from './conference/types';
5
7
  export interface UiCommands {
6
8
  chat: UiCommandsChatObject;
7
9
  externalVideo: UiCommandsExternalVideoObject;
8
10
  sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
9
11
  presentationArea: UiCommandsPresentationAreaObject;
12
+ userStatus: UiCommandsUserStatusObject;
13
+ conference: UiCommandsConferenceObject;
10
14
  }
@@ -0,0 +1,11 @@
1
+ import { SetAwayStatusCommandArguments } from './types';
2
+ export declare const userStatus: {
3
+ /**
4
+ * Sets the away status of the user to a certain status.
5
+ *
6
+ * @param setAwayStatusCommandArguments the status to which the core will set the user
7
+ * status.
8
+ * Refer to {@link SetAwayStatusCommandArguments} to understand the argument structure.
9
+ */
10
+ setAwayStatus: (setAwayStatusCommandArguments: SetAwayStatusCommandArguments) => void;
11
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userStatus = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.userStatus = {
6
+ /**
7
+ * Sets the away status of the user to a certain status.
8
+ *
9
+ * @param setAwayStatusCommandArguments the status to which the core will set the user
10
+ * status.
11
+ * Refer to {@link SetAwayStatusCommandArguments} to understand the argument structure.
12
+ */
13
+ setAwayStatus: function (setAwayStatusCommandArguments) {
14
+ var away = setAwayStatusCommandArguments.away;
15
+ window.dispatchEvent(new CustomEvent(enums_1.UserStatusEnum.SET_AWAY_STATUS, {
16
+ detail: {
17
+ away: away,
18
+ },
19
+ }));
20
+ },
21
+ };
22
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAG5B,QAAA,UAAU,GAAG;IACxB;;;;;;OAMG;IACH,aAAa,EAAE,UAAC,6BAA4D;QAClE,IAAA,IAAI,GAAK,6BAA6B,KAAlC,CAAmC;QAC/C,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,sBAAc,CAAC,eAAe,EAAE;YAChC,MAAM,EAAE;gBACN,IAAI,MAAA;aACL;SACF,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare enum UserStatusEnum {
2
+ SET_AWAY_STATUS = "SET_AWAY_USER_STATUS_COMMAND"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserStatusEnum = void 0;
4
+ var UserStatusEnum;
5
+ (function (UserStatusEnum) {
6
+ UserStatusEnum["SET_AWAY_STATUS"] = "SET_AWAY_USER_STATUS_COMMAND";
7
+ })(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
8
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,kEAAgD,CAAA;AAClD,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
@@ -0,0 +1,6 @@
1
+ export interface SetAwayStatusCommandArguments {
2
+ away: boolean;
3
+ }
4
+ export interface UiCommandsUserStatusObject {
5
+ setAwayStatus: (setAwayStatusCommandArguments: SetAwayStatusCommandArguments) => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
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",