bigbluebutton-html-plugin-sdk 0.0.34 → 0.0.36

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 (69) hide show
  1. package/README.md +5 -0
  2. package/dist/cjs/core/api/BbbPluginSdk.js +1 -0
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +3 -0
  5. package/dist/cjs/data-channel/constants.d.ts +1 -0
  6. package/dist/cjs/data-channel/constants.js +5 -0
  7. package/dist/cjs/data-channel/constants.js.map +1 -0
  8. package/dist/cjs/data-channel/enums.d.ts +3 -1
  9. package/dist/cjs/data-channel/enums.js +3 -1
  10. package/dist/cjs/data-channel/enums.js.map +1 -1
  11. package/dist/cjs/data-channel/hooks.d.ts +0 -1
  12. package/dist/cjs/data-channel/hooks.js +8 -7
  13. package/dist/cjs/data-channel/hooks.js.map +1 -1
  14. package/dist/cjs/data-channel/index.d.ts +2 -1
  15. package/dist/cjs/data-channel/index.js +3 -1
  16. package/dist/cjs/data-channel/index.js.map +1 -1
  17. package/dist/cjs/data-channel/types.d.ts +5 -2
  18. package/dist/cjs/data-channel/utils.d.ts +3 -0
  19. package/dist/cjs/data-channel/utils.js +32 -0
  20. package/dist/cjs/data-channel/utils.js.map +1 -0
  21. package/dist/cjs/extensible-areas/base.d.ts +2 -1
  22. package/dist/cjs/extensible-areas/generic-component/component.d.ts +18 -0
  23. package/dist/cjs/extensible-areas/generic-component/component.js +29 -0
  24. package/dist/cjs/extensible-areas/generic-component/component.js.map +1 -0
  25. package/dist/cjs/extensible-areas/generic-component/enums.d.ts +3 -0
  26. package/dist/cjs/extensible-areas/generic-component/enums.js +9 -0
  27. package/dist/cjs/extensible-areas/generic-component/enums.js.map +1 -0
  28. package/dist/cjs/extensible-areas/generic-component/index.d.ts +2 -0
  29. package/dist/cjs/extensible-areas/generic-component/index.js +6 -0
  30. package/dist/cjs/extensible-areas/generic-component/index.js.map +1 -0
  31. package/dist/cjs/extensible-areas/generic-component/types.d.ts +7 -0
  32. package/dist/cjs/extensible-areas/generic-component/types.js +3 -0
  33. package/dist/cjs/extensible-areas/generic-component/types.js.map +1 -0
  34. package/dist/cjs/extensible-areas/index.d.ts +1 -0
  35. package/dist/cjs/extensible-areas/index.js +1 -0
  36. package/dist/cjs/extensible-areas/index.js.map +1 -1
  37. package/dist/cjs/index.d.ts +1 -0
  38. package/dist/cjs/index.js +1 -0
  39. package/dist/cjs/index.js.map +1 -1
  40. package/dist/cjs/ui-commands/commands.d.ts +4 -0
  41. package/dist/cjs/ui-commands/commands.js +3 -1
  42. package/dist/cjs/ui-commands/commands.js.map +1 -1
  43. package/dist/cjs/ui-commands/index.d.ts +1 -0
  44. package/dist/cjs/ui-commands/index.js +18 -0
  45. package/dist/cjs/ui-commands/index.js.map +1 -0
  46. package/dist/cjs/ui-commands/layout/commands.d.ts +5 -0
  47. package/dist/cjs/ui-commands/layout/commands.js +17 -0
  48. package/dist/cjs/ui-commands/layout/commands.js.map +1 -0
  49. package/dist/cjs/ui-commands/layout/enums.d.ts +7 -0
  50. package/dist/cjs/ui-commands/layout/enums.js +13 -0
  51. package/dist/cjs/ui-commands/layout/enums.js.map +1 -0
  52. package/dist/cjs/ui-commands/layout/types.d.ts +5 -0
  53. package/dist/cjs/ui-commands/layout/types.js +3 -0
  54. package/dist/cjs/ui-commands/layout/types.js.map +1 -0
  55. package/dist/cjs/ui-commands/types.d.ts +2 -3
  56. package/dist/cjs/ui-events/external-video/index.d.ts +1 -0
  57. package/dist/cjs/ui-events/external-video/index.js +6 -0
  58. package/dist/cjs/ui-events/external-video/index.js.map +1 -0
  59. package/dist/cjs/ui-events/external-video/volume/enums.d.ts +3 -0
  60. package/dist/cjs/ui-events/external-video/volume/enums.js +8 -0
  61. package/dist/cjs/ui-events/external-video/volume/enums.js.map +1 -0
  62. package/dist/cjs/ui-events/external-video/volume/types.d.ts +6 -0
  63. package/dist/cjs/ui-events/external-video/volume/types.js +4 -0
  64. package/dist/cjs/ui-events/external-video/volume/types.js.map +1 -0
  65. package/dist/cjs/ui-events/index.d.ts +1 -0
  66. package/dist/cjs/ui-events/index.js +1 -0
  67. package/dist/cjs/ui-events/index.js.map +1 -1
  68. package/dist/cjs/ui-events/types.d.ts +2 -1
  69. package/package.json +1 -1
package/README.md CHANGED
@@ -28,6 +28,8 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
28
28
 
29
29
  - Floating window item (floatingWindow)
30
30
 
31
+ - Generic component (genericComponent)
32
+
31
33
  ### Getters available through the API:
32
34
  - `getSessionToken`: returns the user session token located on the user's URL.
33
35
 
@@ -65,6 +67,9 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
65
67
  - external-video:
66
68
  - volume:
67
69
  - set: this function will set the external video volume to a certain number between 0 and 1 (that is 0% and);
70
+ - layout:
71
+ - set: This function set the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
72
+ - unset: This function unset the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
68
73
 
69
74
  ### Dom Element Manipulation
70
75
  - `useChatMessageDomElements` hook: This hook will return the dom element of a chat message reactively, so one can modify whatever is inside, such as text, css, js, etc.;
@@ -87,6 +87,7 @@ var BbbPluginSdk = /** @class */ (function () {
87
87
  setUserCameraDropdownItems: function () { },
88
88
  setUserListItemAdditionalInformation: function () { },
89
89
  setFloatingWindows: function () { },
90
+ setGenericComponents: function () { },
90
91
  mapOfDispatchers: {
91
92
  '': function () { },
92
93
  },
@@ -1 +1 @@
1
- {"version":3,"file":"BbbPluginSdk.js","sourceRoot":"","sources":["../../../../src/core/api/BbbPluginSdk.ts"],"names":[],"mappings":";;;AAYA,uDAAwD;AAQxD,kDAA0D;AAC1D,gGAEgF;AAChF,wFAEwE;AACxE,oFAA+F;AAC/F,gFAAwF;AACxF,oFAA+F;AAC/F,4DAAoE;AACpE,uDAA0D;AAC1D,mEAA2E;AAE3E,+CAAmD;AAEnD,uFAAsG;AACt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AAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;gBACzB,wBAAwB,EAAE,cAAO,CAAC;gBAClC,2BAA2B,EAAE,cAAO,CAAC;gBACrC,4BAA4B,EAAE,cAAO,CAAC;gBACtC,kBAAkB,EAAE,cAAO,CAAC;gBAC5B,6BAA6B,EAAE,cAAO,CAAC;gBACvC,4BAA4B,EAAE,cAAO,CAAC;gBACtC,cAAc,EAAE,cAAO,CAAC;gBACxB,uBAAuB,EAAE,cAAO,CAAC;gBACjC,8BAA8B,EAAE,cAAO,CAAC;gBACxC,0BAA0B,EAAE,cAAO,CAAC;gBACpC,oCAAoC,EAAE,cAAO,CAAC;gBAC9C,kBAAkB,EAAE,cAAO,CAAC;gBAC5B,oBAAoB,EAAE,cAAO,CAAC;gBAC9B,gBAAgB,EAAE;oBAChB,EAAE,EAAE,cAAO,CAAC;iBACb;gBACD,eAAe,EAAE,cAAM,OAAA,IAAA,wBAAe,GAAE,EAAjB,CAAiB;gBACxC,UAAU,EAAE,UAAC,MAAM,IAAK,OAAA,IAAA,mBAAU,EAAC,MAAM,CAAC,EAAlB,CAAkB;gBAC1C,UAAU,YAAA;aACX,CAAC;SACH;QAED,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACH,mBAAC;AAAD,CAAC,AAzFD,IAyFC;AAzFqB,oCAAY"}
@@ -24,6 +24,7 @@ import { UsePluginSettingsFunction } from '../../data-consumption/domain/setting
24
24
  import { UseUiEventFunction } from '../../ui-events/types';
25
25
  import { UseLoadedChatMessagesFunction } from '../../data-consumption/domain/chat/loaded-chat-messages/types';
26
26
  import { UseTalkingIndicatorFunction } from '../../data-consumption/domain/user-voice/talking-indicator/types';
27
+ import { GenericComponentInterface } from '../../extensible-areas/generic-component/types';
27
28
  export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarInterface[]) => void;
28
29
  export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownInterface[]) => void;
29
30
  export type SetActionButtonDropdownItems = (actionButtonDropdownInterface: ActionButtonDropdownInterface[]) => void;
@@ -35,6 +36,7 @@ export type SetOptionsDropdownItems = (optionsDropdownItem: OptionsDropdownInter
35
36
  export type SetCameraSettingsDropdownItems = (cameraSettingsDropdownItem: CameraSettingsDropdownInterface[]) => void;
36
37
  export type SetUserCameraDropdownItems = (userCameraDropdownItem: UserCameraDropdownInterface[]) => void;
37
38
  export type SetUserListItemAdditionalInformation = (userListItemAdditionalInformation: UserListItemAdditionalInformationInterface[]) => void;
39
+ export type SetGenericComponents = (genericComponents: GenericComponentInterface[]) => void;
38
40
  /**
39
41
  * Object that makes plugin hooks and extensible area setters available for developers to use.
40
42
  */
@@ -52,6 +54,7 @@ export interface PluginApi {
52
54
  setUserCameraDropdownItems: SetUserCameraDropdownItems;
53
55
  setUserListItemAdditionalInformation: SetUserListItemAdditionalInformation;
54
56
  setFloatingWindows: SetFloatingWindows;
57
+ setGenericComponents: SetGenericComponents;
55
58
  /**
56
59
  * Returns an object containing the data on the current presentation being displayed
57
60
  * in the presentation area, and its current page.
@@ -0,0 +1 @@
1
+ export declare const RESET_DATA_CHANNEL = "RESET_DATA_CHANNEL";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESET_DATA_CHANNEL = void 0;
4
+ exports.RESET_DATA_CHANNEL = 'RESET_DATA_CHANNEL';
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/data-channel/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC"}
@@ -9,5 +9,7 @@ export declare enum DataChannelDispatcherUserRole {
9
9
  VIEWER = "VIEWER"
10
10
  }
11
11
  export declare enum DataChannelHooks {
12
- DATA_CHANNEL = "Hooks::DataChannel"
12
+ DATA_CHANNEL_BUILDER = "Hooks::DataChannelBuilder",
13
+ DATA_CHANNEL_RESET = "Hooks::DataChannelReset",
14
+ DATA_CHANNEL_DELETE = "Hooks::DataChannelDelete"
13
15
  }
@@ -15,6 +15,8 @@ var DataChannelDispatcherUserRole;
15
15
  })(DataChannelDispatcherUserRole || (exports.DataChannelDispatcherUserRole = DataChannelDispatcherUserRole = {}));
16
16
  var DataChannelHooks;
17
17
  (function (DataChannelHooks) {
18
- DataChannelHooks["DATA_CHANNEL"] = "Hooks::DataChannel";
18
+ DataChannelHooks["DATA_CHANNEL_BUILDER"] = "Hooks::DataChannelBuilder";
19
+ DataChannelHooks["DATA_CHANNEL_RESET"] = "Hooks::DataChannelReset";
20
+ DataChannelHooks["DATA_CHANNEL_DELETE"] = "Hooks::DataChannelDelete";
19
21
  })(DataChannelHooks || (exports.DataChannelHooks = DataChannelHooks = {}));
20
22
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-channel/enums.ts"],"names":[],"mappings":";;;AAAA,OAAO;AACP;;;;GAIG;AACH,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,wDAAuB,CAAA;IACvB,kDAAiB,CAAA;AACnB,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,uDAAmC,CAAA;AACrC,CAAC,EAFW,gBAAgB,gCAAhB,gBAAgB,QAE3B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-channel/enums.ts"],"names":[],"mappings":";;;AAAA,OAAO;AACP;;;;GAIG;AACH,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,wDAAuB,CAAA;IACvB,kDAAiB,CAAA;AACnB,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,sEAAkD,CAAA;IAClD,kEAA8C,CAAA;IAC9C,oEAAgD,CAAA;AAClD,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
@@ -1,3 +1,2 @@
1
1
  import { UseDataChannelStaticFunction } from './types';
2
- export declare const createChannelIdentifier: (channelName: string, pluginName: string) => string;
3
2
  export declare const useDataChannel: UseDataChannelStaticFunction;
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDataChannel = exports.createChannelIdentifier = void 0;
3
+ exports.useDataChannel = void 0;
4
4
  var react_1 = require("react");
5
5
  var enum_1 = require("../core/enum");
6
6
  var enums_1 = require("./enums");
7
- var createChannelIdentifier = function (channelName, pluginName) { return "".concat(channelName, "::").concat(pluginName); };
8
- exports.createChannelIdentifier = createChannelIdentifier;
7
+ var utils_1 = require("./utils");
8
+ var utils_2 = require("./utils");
9
9
  exports.useDataChannel = (function (channelName, pluginName, pluginApi) {
10
10
  var _a = (0, react_1.useState)({ loading: true }), data = _a[0], setData = _a[1];
11
11
  var _b = (0, react_1.useState)(), dispatcherFunction = _b[0], setDispatcherFunction = _b[1];
12
- var channelIdentifier = (0, exports.createChannelIdentifier)(channelName, pluginName);
12
+ var deletionFunction = function (deletionObjects) { return (0, utils_2.deletionFunctionUtil)(deletionObjects, channelName, pluginName); };
13
+ var channelIdentifier = (0, utils_1.createChannelIdentifier)(channelName, pluginName);
13
14
  var handleDataChange = (function (customEvent) {
14
15
  var eventDetail = customEvent.detail;
15
16
  setData(eventDetail.data);
@@ -23,20 +24,20 @@ exports.useDataChannel = (function (channelName, pluginName, pluginApi) {
23
24
  window.addEventListener("".concat(channelIdentifier, "::dispatcherFunction"), handleListenToChangeDisPatcherFunction);
24
25
  window.dispatchEvent(new CustomEvent(enum_1.HookEvents.SUBSCRIBED, {
25
26
  detail: {
26
- hook: enums_1.DataChannelHooks.DATA_CHANNEL,
27
+ hook: enums_1.DataChannelHooks.DATA_CHANNEL_BUILDER,
27
28
  hookArguments: { channelName: channelName, pluginName: pluginName },
28
29
  },
29
30
  }));
30
31
  return function () {
31
32
  window.dispatchEvent(new CustomEvent(enum_1.HookEvents.UNSUBSCRIBED, {
32
33
  detail: {
33
- hook: enums_1.DataChannelHooks.DATA_CHANNEL,
34
+ hook: enums_1.DataChannelHooks.DATA_CHANNEL_BUILDER,
34
35
  hookArguments: { channelName: channelName, pluginName: pluginName },
35
36
  },
36
37
  }));
37
38
  window.removeEventListener(channelIdentifier, handleDataChange);
38
39
  };
39
40
  }, []);
40
- return [data, dispatcherFunction];
41
+ return [data, dispatcherFunction, deletionFunction];
41
42
  });
42
43
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data-channel/hooks.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAS5C,qCAEsB;AAKtB,iCAA2C;AAEpC,IAAM,uBAAuB,GAAG,UAAC,WAAmB,EAAE,UAAkB,IAAK,OAAA,UAAG,WAAW,eAAK,UAAU,CAAE,EAA/B,CAA+B,CAAC;AAAvG,QAAA,uBAAuB,2BAAgF;AAEvG,QAAA,cAAc,GAAG,CAAC,UAAI,WAAmB,EACpD,UAAkB,EAAE,SAAoB;IAElC,IAAA,KAAkB,IAAA,gBAAQ,EAC9B,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,EAFM,IAAI,QAAA,EAAE,OAAO,QAEnB,CAAC;IACI,IAAA,KAA8C,IAAA,gBAAQ,GAAsB,EAA3E,kBAAkB,QAAA,EAAE,qBAAqB,QAAkC,CAAC;IAEnF,IAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAE3E,IAAM,gBAAgB,GAAkB,CAAC,UACvC,WAAoF;QAEpF,IAAM,WAAW,GAAG,WAAW,CAAC,MAE/B,CAAC;QACF,OAAO,CAAC,WAAW,CAAC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AE,wBAAgB,CAAC,oBAAoB;gBAC3C,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;aAC3C;SACF,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA2B,iBAAU,CAAC,YAAY,EAAE;gBACtF,MAAM,EAAE;oBACN,IAAI,EAAE,wBAAgB,CAAC,oBAAoB;oBAC3C,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;iBAC3C;aACF,CAAC,CAAC,CAAC;YACJ,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;QAClE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;AACtD,CAAC,CAAiC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { DataChannelDispatcherUserRole } from './enums';
2
- export { ToUserId, ToRole } from './types';
2
+ export { ToUserId, ToRole, DeletionFunction } from './types';
3
+ export { RESET_DATA_CHANNEL } from './constants';
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataChannelDispatcherUserRole = void 0;
3
+ exports.RESET_DATA_CHANNEL = exports.DataChannelDispatcherUserRole = void 0;
4
4
  var enums_1 = require("./enums");
5
5
  Object.defineProperty(exports, "DataChannelDispatcherUserRole", { enumerable: true, get: function () { return enums_1.DataChannelDispatcherUserRole; } });
6
+ var constants_1 = require("./constants");
7
+ Object.defineProperty(exports, "RESET_DATA_CHANNEL", { enumerable: true, get: function () { return constants_1.RESET_DATA_CHANNEL; } });
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-channel/index.ts"],"names":[],"mappings":";;;AAAA,iCAAwD;AAA/C,sHAAA,6BAA6B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-channel/index.ts"],"names":[],"mappings":";;;AAAA,iCAAwD;AAA/C,sHAAA,6BAA6B,OAAA;AAEtC,yCAAiD;AAAxC,+GAAA,kBAAkB,OAAA"}
@@ -1,5 +1,6 @@
1
1
  import { GraphqlResponseWrapper, PluginApi } from '..';
2
2
  import { DataChannelDispatcherUserRole } from './enums';
3
+ import { RESET_DATA_CHANNEL } from './constants';
3
4
  export interface DataChannelArguments {
4
5
  pluginName: string;
5
6
  channelName: string;
@@ -17,7 +18,9 @@ export interface ToRole {
17
18
  role: DataChannelDispatcherUserRole;
18
19
  }
19
20
  export type ObjectTo = ToUserId | ToRole;
21
+ export type DeletionObject = typeof RESET_DATA_CHANNEL | string;
20
22
  export type DispatcherFunction = <T>(objectToDispatch: T, objectsTo?: ObjectTo[]) => void;
23
+ export type DeletionFunction = (deletionObjects: DeletionObject[]) => void;
21
24
  export interface MapOfDispatchers {
22
25
  [key: string]: DispatcherFunction;
23
26
  }
@@ -33,5 +36,5 @@ export interface DataChannelMessageResponseType<T> {
33
36
  export interface DataChannelMessagesWrapper<T> {
34
37
  pluginDataChannelMessage: DataChannelMessageResponseType<T>[];
35
38
  }
36
- export type UseDataChannelFunctionFromPluginApi = <T>(channelName: string) => [GraphqlResponseWrapper<DataChannelMessagesWrapper<T>>, DispatcherFunction];
37
- export type UseDataChannelStaticFunction = <T>(channelName: string, pluginName: string, pluginApi: PluginApi) => [GraphqlResponseWrapper<DataChannelMessagesWrapper<T>>, DispatcherFunction?];
39
+ export type UseDataChannelFunctionFromPluginApi = <T>(channelName: string) => [GraphqlResponseWrapper<DataChannelMessagesWrapper<T>>, DispatcherFunction, DeletionFunction];
40
+ export type UseDataChannelStaticFunction = <T>(channelName: string, pluginName: string, pluginApi: PluginApi) => [GraphqlResponseWrapper<DataChannelMessagesWrapper<T>>, DispatcherFunction?, DeletionFunction?];
@@ -0,0 +1,3 @@
1
+ import { DeletionObject } from './types';
2
+ export declare const createChannelIdentifier: (channelName: string, pluginName: string) => string;
3
+ export declare const deletionFunctionUtil: (deletionObjects: DeletionObject[], channelName: string, pluginName: string) => void;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deletionFunctionUtil = exports.createChannelIdentifier = void 0;
4
+ var enum_1 = require("../core/enum");
5
+ var enums_1 = require("./enums");
6
+ var constants_1 = require("./constants");
7
+ var createChannelIdentifier = function (channelName, pluginName) { return "".concat(channelName, "::").concat(pluginName); };
8
+ exports.createChannelIdentifier = createChannelIdentifier;
9
+ var deletionFunctionUtil = function (deletionObjects, channelName, pluginName) {
10
+ deletionObjects.forEach(function (deletionObject) {
11
+ if (deletionObject === constants_1.RESET_DATA_CHANNEL) {
12
+ window.dispatchEvent(new CustomEvent(enum_1.HookEvents.UPDATED, {
13
+ detail: {
14
+ hook: enums_1.DataChannelHooks.DATA_CHANNEL_RESET,
15
+ hookArguments: { channelName: channelName, pluginName: pluginName },
16
+ data: undefined,
17
+ },
18
+ }));
19
+ }
20
+ else {
21
+ window.dispatchEvent(new CustomEvent(enum_1.HookEvents.UPDATED, {
22
+ detail: {
23
+ hook: enums_1.DataChannelHooks.DATA_CHANNEL_RESET,
24
+ hookArguments: { channelName: channelName, pluginName: pluginName },
25
+ data: deletionObject,
26
+ },
27
+ }));
28
+ }
29
+ });
30
+ };
31
+ exports.deletionFunctionUtil = deletionFunctionUtil;
32
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/data-channel/utils.ts"],"names":[],"mappings":";;;AAGA,qCAEsB;AAItB,iCAA2C;AAC3C,yCAAiD;AAE1C,IAAM,uBAAuB,GAAG,UAAC,WAAmB,EAAE,UAAkB,IAAK,OAAA,UAAG,WAAW,eAAK,UAAU,CAAE,EAA/B,CAA+B,CAAC;AAAvG,QAAA,uBAAuB,2BAAgF;AAE7G,IAAM,oBAAoB,GAAG,UAAC,eAAiC,EAAE,WAAmB,EAAE,UAAkB;IAC3G,eAAe,CAAC,OAAO,CAAC,UAAC,cAAc;QACnC,IAAI,cAAc,KAAK,8BAAkB,EAAE;YACvC,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA4B,iBAAU,CAAC,OAAO,EAAE;gBAChF,MAAM,EAAE;oBACJ,IAAI,EAAE,wBAAgB,CAAC,kBAAkB;oBACzC,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;oBAC1C,IAAI,EAAE,SAAS;iBAClB;aACJ,CAAC,CAAC,CAAC;SACP;aAAM;YACH,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA8B,iBAAU,CAAC,OAAO,EAAE;gBAClF,MAAM,EAAE;oBACJ,IAAI,EAAE,wBAAgB,CAAC,kBAAkB;oBACzC,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;oBAC1C,IAAI,EAAE,cAAc;iBACvB;aACJ,CAAC,CAAC,CAAC;SACP;IACL,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AApBY,QAAA,oBAAoB,wBAoBhC"}
@@ -3,6 +3,7 @@ import { ActionsBarItemType } from './actions-bar-item/enums';
3
3
  import { AudioSettingsDropdownItemType } from './audio-settings-dropdown-item/enums';
4
4
  import { CameraSettingsDropdownItemType } from './camera-settings-dropdown-item/enums';
5
5
  import { FloatingWindowType } from './floating-window/enums';
6
+ import { GenericComponentType } from './generic-component/enums';
6
7
  import { NavBarItemType } from './nav-bar-item/enums';
7
8
  import { OptionsDropdownItemType } from './options-dropdown-item/enums';
8
9
  import { PresentationDropdownItemType } from './presentation-dropdown-item/enums';
@@ -10,7 +11,7 @@ import { PresentationToolbarItemType } from './presentation-toolbar-item/enums';
10
11
  import { UserCameraDropdownItemType } from './user-camera-dropdown-item/enums';
11
12
  import { UserListDropdownItemType } from './user-list-dropdown-item/enums';
12
13
  import { UserListItemAdditionalInformationType } from './user-list-item-additional-information/enums';
13
- type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType;
14
+ type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType | GenericComponentType;
14
15
  export interface PluginProvidedUiItemDescriptor {
15
16
  /** Defined by BigBlueButton Plugin Engine. */
16
17
  id: string;
@@ -0,0 +1,18 @@
1
+ import { GenericComponentType } from './enums';
2
+ import { GenericComponentInterface, GenericComponentProps } from './types';
3
+ export declare class GenericComponent implements GenericComponentInterface {
4
+ id: string;
5
+ type: GenericComponentType;
6
+ contentFunction: (element: HTMLElement) => void;
7
+ /**
8
+ * Returns object to be used in the setter for the Navigation Bar. In this case,
9
+ * a button.
10
+ *
11
+ * @param contentFunction - function that gives the html element to render the content of
12
+ * the floating window
13
+ *
14
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
15
+ */
16
+ constructor({ contentFunction, }: GenericComponentProps);
17
+ setItemId: (id: string) => void;
18
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericComponent = void 0;
4
+ var enums_1 = require("./enums");
5
+ // GenericComponent Extensible Area
6
+ var GenericComponent = /** @class */ (function () {
7
+ /**
8
+ * Returns object to be used in the setter for the Navigation Bar. In this case,
9
+ * a button.
10
+ *
11
+ * @param contentFunction - function that gives the html element to render the content of
12
+ * the floating window
13
+ *
14
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
15
+ */
16
+ function GenericComponent(_a) {
17
+ var contentFunction = _a.contentFunction;
18
+ var _this = this;
19
+ this.id = '';
20
+ this.setItemId = function (id) {
21
+ _this.id = "GenericComponent_".concat(id);
22
+ };
23
+ this.contentFunction = contentFunction;
24
+ this.type = enums_1.GenericComponentType.CONTAINER;
25
+ }
26
+ return GenericComponent;
27
+ }());
28
+ exports.GenericComponent = GenericComponent;
29
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/component.ts"],"names":[],"mappings":";;;AAAA,iCAA+C;AAG/C,mCAAmC;AAEnC;IAOE;;;;;;;;OAQG;IACH,0BAAY,EAEY;YADtB,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,2BAAoB,EAAE,CAAE,CAAC;QACrC,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,4BAAoB,CAAC,SAAS,CAAC;IAC7C,CAAC;IAKH,uBAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,4CAAgB"}
@@ -0,0 +1,3 @@
1
+ export declare enum GenericComponentType {
2
+ CONTAINER = "FLOATING_WINDOW_CONTAINER"
3
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericComponentType = void 0;
4
+ // Floating window types:
5
+ var GenericComponentType;
6
+ (function (GenericComponentType) {
7
+ GenericComponentType["CONTAINER"] = "FLOATING_WINDOW_CONTAINER";
8
+ })(GenericComponentType || (exports.GenericComponentType = GenericComponentType = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/enums.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,+DAAuC,CAAA;AACzC,CAAC,EAFW,oBAAoB,oCAApB,oBAAoB,QAE/B"}
@@ -0,0 +1,2 @@
1
+ export { GenericComponent, } from './component';
2
+ export { GenericComponentInterface, } from './types';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericComponent = void 0;
4
+ var component_1 = require("./component");
5
+ Object.defineProperty(exports, "GenericComponent", { enumerable: true, get: function () { return component_1.GenericComponent; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/index.ts"],"names":[],"mappings":";;;AAAA,yCAEqB;AADnB,6GAAA,gBAAgB,OAAA"}
@@ -0,0 +1,7 @@
1
+ import { PluginProvidedUiItemDescriptor } from '../base';
2
+ export interface GenericComponentInterface extends PluginProvidedUiItemDescriptor {
3
+ }
4
+ export interface GenericComponentProps {
5
+ contentFunction: (element: HTMLElement) => void;
6
+ }
7
+ export type SetGenericComponents = (GenericComponents: GenericComponentInterface[]) => void;
@@ -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/generic-component/types.ts"],"names":[],"mappings":""}
@@ -10,3 +10,4 @@ export * from './camera-settings-dropdown-item';
10
10
  export * from './user-camera-dropdown-item';
11
11
  export * from './user-list-item-additional-information';
12
12
  export * from './floating-window';
13
+ export * from './generic-component';
@@ -26,4 +26,5 @@ __exportStar(require("./camera-settings-dropdown-item"), exports);
26
26
  __exportStar(require("./user-camera-dropdown-item"), exports);
27
27
  __exportStar(require("./user-list-item-additional-information"), exports);
28
28
  __exportStar(require("./floating-window"), exports);
29
+ __exportStar(require("./generic-component"), exports);
29
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensible-areas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,gEAA8C;AAC9C,qDAAmC;AACnC,iEAA+C;AAC/C,+DAA6C;AAC7C,iDAA+B;AAC/B,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,0EAAwD;AACxD,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensible-areas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,gEAA8C;AAC9C,qDAAmC;AACnC,iEAA+C;AAC/C,+DAA6C;AAC7C,iDAA+B;AAC/B,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,0EAAwD;AACxD,oDAAkC;AAClC,sDAAoC"}
@@ -2,4 +2,5 @@ export * from './extensible-areas';
2
2
  export * from './data-consumption';
3
3
  export * from './data-channel';
4
4
  export * from './ui-events';
5
+ export * from './ui-commands';
5
6
  export * from './core';
package/dist/cjs/index.js CHANGED
@@ -18,5 +18,6 @@ __exportStar(require("./extensible-areas"), exports);
18
18
  __exportStar(require("./data-consumption"), exports);
19
19
  __exportStar(require("./data-channel"), exports);
20
20
  __exportStar(require("./ui-events"), exports);
21
+ __exportStar(require("./ui-commands"), exports);
21
22
  __exportStar(require("./core"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,8CAA4B;AAE5B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,8CAA4B;AAE5B,gDAA8B;AAE9B,yCAAuB"}
@@ -10,4 +10,8 @@ export declare const uiCommands: {
10
10
  set: (setExternalVideoVolumeCommandArguments: import("./external-video/volume/types").SetExternalVideoVolumeCommandArguments) => void;
11
11
  };
12
12
  };
13
+ layout: {
14
+ set: (layoutToBeSet: import(".").LayoutComponentListEnum) => void;
15
+ unset: (layoutToBeSet: import(".").LayoutComponentListEnum) => void;
16
+ };
13
17
  };
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiCommands = void 0;
4
4
  var commands_1 = require("./chat/commands");
5
5
  var commands_2 = require("./external-video/commands");
6
+ var commands_3 = require("./layout/commands");
6
7
  exports.uiCommands = {
7
8
  chat: commands_1.chat,
8
- externalVideo: commands_2.externalVideo
9
+ externalVideo: commands_2.externalVideo,
10
+ layout: commands_3.layout,
9
11
  };
10
12
  //# 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;AAE7C,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;CACd,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,8CAA2C;AAE9B,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,MAAM,mBAAA;CACP,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './layout/enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./layout/enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,5 @@
1
+ import { LayoutComponentListEnum } from "./enums";
2
+ export declare const layout: {
3
+ set: (layoutToBeSet: LayoutComponentListEnum) => void;
4
+ unset: (layoutToBeSet: LayoutComponentListEnum) => void;
5
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.layout = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.layout = {
6
+ set: function (layoutToBeSet) {
7
+ window.dispatchEvent(new CustomEvent(enums_1.LayoutCommandsEnum.SET, {
8
+ detail: layoutToBeSet
9
+ }));
10
+ },
11
+ unset: function (layoutToBeSet) {
12
+ window.dispatchEvent(new CustomEvent(enums_1.LayoutCommandsEnum.UNSET, {
13
+ detail: layoutToBeSet
14
+ }));
15
+ }
16
+ };
17
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAsE;AAEzD,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,UAAC,aAAsC;QACxC,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAChC,0BAAkB,CAAC,GAAG,EAAE;YACpB,MAAM,EAAE,aAAa;SACxB,CACJ,CAAC,CAAC;IACP,CAAC;IACD,KAAK,EAAE,UAAC,aAAsC;QAC1C,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAChC,0BAAkB,CAAC,KAAK,EAAE;YACtB,MAAM,EAAE,aAAa;SACxB,CACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare enum LayoutCommandsEnum {
2
+ SET = "SET_LAYOUT_COMMAND",
3
+ UNSET = "UNSET_LAYOUT_COMMAND"
4
+ }
5
+ export declare enum LayoutComponentListEnum {
6
+ GENERIC_COMPONENT = "GENERIC_COMPONENT"
7
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LayoutComponentListEnum = exports.LayoutCommandsEnum = void 0;
4
+ var LayoutCommandsEnum;
5
+ (function (LayoutCommandsEnum) {
6
+ LayoutCommandsEnum["SET"] = "SET_LAYOUT_COMMAND";
7
+ LayoutCommandsEnum["UNSET"] = "UNSET_LAYOUT_COMMAND";
8
+ })(LayoutCommandsEnum || (exports.LayoutCommandsEnum = LayoutCommandsEnum = {}));
9
+ var LayoutComponentListEnum;
10
+ (function (LayoutComponentListEnum) {
11
+ LayoutComponentListEnum["GENERIC_COMPONENT"] = "GENERIC_COMPONENT";
12
+ })(LayoutComponentListEnum || (exports.LayoutComponentListEnum = LayoutComponentListEnum = {}));
13
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,gDAA0B,CAAA;IAC1B,oDAA8B,CAAA;AAClC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAC/B,kEAAuC,CAAA;AAC3C,CAAC,EAFW,uBAAuB,uCAAvB,uBAAuB,QAElC"}
@@ -0,0 +1,5 @@
1
+ import { LayoutComponentListEnum } from "./enums";
2
+ export interface UiCommandsLayoutObject {
3
+ set: (layoutToSet: LayoutComponentListEnum) => void;
4
+ unset: (layoutToUnset: LayoutComponentListEnum) => void;
5
+ }
@@ -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/layout/types.ts"],"names":[],"mappings":""}
@@ -1,9 +1,8 @@
1
1
  import { UiCommandsChatObject } from './chat/types';
2
2
  import { UiCommandsExternalVideoObject } from './external-video/types';
3
- export interface UiCommandsEventWrapper<T> extends Event {
4
- detail: T;
5
- }
3
+ import { UiCommandsLayoutObject } from './layout/types';
6
4
  export interface UiCommands {
7
5
  chat: UiCommandsChatObject;
8
6
  externalVideo: UiCommandsExternalVideoObject;
7
+ layout: UiCommandsLayoutObject;
9
8
  }
@@ -0,0 +1 @@
1
+ export { ExternalVideoVolumeEventsNames } from './volume/enums';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalVideoVolumeEventsNames = void 0;
4
+ var enums_1 = require("./volume/enums");
5
+ Object.defineProperty(exports, "ExternalVideoVolumeEventsNames", { enumerable: true, get: function () { return enums_1.ExternalVideoVolumeEventsNames; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui-events/external-video/index.ts"],"names":[],"mappings":";;;AAAA,wCAAgE;AAAvD,uHAAA,8BAA8B,OAAA"}
@@ -0,0 +1,3 @@
1
+ export declare enum ExternalVideoVolumeEventsNames {
2
+ VOLUME_VALUE_CHANGED = "VOLUME_VALUE_CHANGED"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalVideoVolumeEventsNames = void 0;
4
+ var ExternalVideoVolumeEventsNames;
5
+ (function (ExternalVideoVolumeEventsNames) {
6
+ ExternalVideoVolumeEventsNames["VOLUME_VALUE_CHANGED"] = "VOLUME_VALUE_CHANGED";
7
+ })(ExternalVideoVolumeEventsNames || (exports.ExternalVideoVolumeEventsNames = ExternalVideoVolumeEventsNames = {}));
8
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-events/external-video/volume/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACtC,+EAA6C,CAAA;AACjD,CAAC,EAFW,8BAA8B,8CAA9B,8BAA8B,QAEzC"}
@@ -0,0 +1,6 @@
1
+ import { ExternalVideoVolumeEventsNames } from './enums';
2
+ export type ExternalVideoVolumeEventPayloads = {
3
+ [ExternalVideoVolumeEventsNames.VOLUME_VALUE_CHANGED]: {
4
+ value: number;
5
+ };
6
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var enums_1 = require("./enums");
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ui-events/external-video/volume/types.ts"],"names":[],"mappings":";;AAAA,iCAAyD"}
@@ -1,3 +1,4 @@
1
1
  export { EventNames } from './types';
2
2
  export * from './chat';
3
3
  export * from './user-list';
4
+ export * from './external-video';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chat"), exports);
18
18
  __exportStar(require("./user-list"), exports);
19
+ __exportStar(require("./external-video"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,yCAAuB;AAEvB,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,yCAAuB;AAEvB,8CAA4B;AAE5B,mDAAiC"}
@@ -1,6 +1,7 @@
1
+ import { ExternalVideoVolumeEventPayloads } from './external-video/volume/types';
1
2
  import { ChatFormEventPayloads } from './chat/form/types';
2
3
  import { UserListEventPayloads } from './user-list/types';
3
- export type EventPayloads = ChatFormEventPayloads & UserListEventPayloads;
4
+ export type EventPayloads = ChatFormEventPayloads & UserListEventPayloads & ExternalVideoVolumeEventPayloads;
4
5
  export type EventNames = keyof EventPayloads;
5
6
  export interface UiEventsHookEventWrapper<T> extends Event {
6
7
  detail: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
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",