bigbluebutton-html-plugin-sdk 0.0.42 → 0.0.47

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 (42) hide show
  1. package/README.md +97 -35
  2. package/dist/cjs/core/api/BbbPluginSdk.js +2 -0
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +9 -0
  5. package/dist/cjs/data-consumption/domain/meeting/from-core/hooks.d.ts +2 -0
  6. package/dist/cjs/data-consumption/domain/meeting/from-core/hooks.js +8 -0
  7. package/dist/cjs/data-consumption/domain/meeting/from-core/hooks.js.map +1 -0
  8. package/dist/cjs/data-consumption/domain/meeting/from-core/types.d.ts +7 -0
  9. package/dist/cjs/data-consumption/domain/meeting/from-core/types.js.map +1 -0
  10. package/dist/cjs/data-consumption/domain/meeting/index.d.ts +1 -0
  11. package/dist/cjs/data-consumption/domain/meeting/index.js +3 -0
  12. package/dist/cjs/data-consumption/domain/meeting/index.js.map +1 -0
  13. package/dist/cjs/data-consumption/enums.d.ts +1 -0
  14. package/dist/cjs/data-consumption/enums.js +1 -0
  15. package/dist/cjs/data-consumption/enums.js.map +1 -1
  16. package/dist/cjs/data-consumption/index.d.ts +1 -0
  17. package/dist/cjs/data-consumption/index.js +1 -0
  18. package/dist/cjs/data-consumption/index.js.map +1 -1
  19. package/dist/cjs/index.d.ts +0 -1
  20. package/dist/cjs/index.js +0 -1
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/cjs/ui-commands/commands.d.ts +0 -4
  23. package/dist/cjs/ui-commands/commands.js +0 -2
  24. package/dist/cjs/ui-commands/commands.js.map +1 -1
  25. package/dist/cjs/ui-commands/external-video/commands.js.map +1 -1
  26. package/dist/cjs/ui-commands/external-video/volume/commands.d.ts +2 -1
  27. package/dist/cjs/ui-commands/external-video/volume/commands.js +3 -2
  28. package/dist/cjs/ui-commands/external-video/volume/commands.js.map +1 -1
  29. package/dist/cjs/ui-commands/types.d.ts +0 -2
  30. package/package.json +2 -2
  31. package/dist/cjs/ui-commands/index.d.ts +0 -1
  32. package/dist/cjs/ui-commands/index.js +0 -18
  33. package/dist/cjs/ui-commands/index.js.map +0 -1
  34. package/dist/cjs/ui-commands/layout/commands.d.ts +0 -5
  35. package/dist/cjs/ui-commands/layout/commands.js +0 -17
  36. package/dist/cjs/ui-commands/layout/commands.js.map +0 -1
  37. package/dist/cjs/ui-commands/layout/enums.d.ts +0 -7
  38. package/dist/cjs/ui-commands/layout/enums.js +0 -13
  39. package/dist/cjs/ui-commands/layout/enums.js.map +0 -1
  40. package/dist/cjs/ui-commands/layout/types.d.ts +0 -5
  41. package/dist/cjs/ui-commands/layout/types.js.map +0 -1
  42. /package/dist/cjs/{ui-commands/layout → data-consumption/domain/meeting/from-core}/types.js +0 -0
package/README.md CHANGED
@@ -1,58 +1,115 @@
1
- # BigBlueButton SDK for HTML plugins
1
+ # BigBlueButton SDK for HTML5 Client Plugins
2
2
 
3
- ## Information
3
+ This repository contains the SDK for developing BigBlueButton plugins.
4
+ Plugins are React components that can be loaded from external sources
5
+ by the BigBlueButton HTML5 client to extend its functionalities.
4
6
 
5
- SDK for developing BigBlueButton plugins, examples of implementations can be found in `./samples/sample-presentation-toolbar-plugin` (Refer to `./samples/sample-presentation-toolbar-plugin/README.md`) or `./samples/sample-user-list-dropdown-plugin`.
7
+ ## Examples
8
+
9
+ A variety of example implementations to manipulate different parts of the
10
+ BBB client can be found in the [`samples`](samples) folder.
11
+
12
+ ## Usage
13
+
14
+ This is a general instruction on how to use a plugin.
15
+ For a detailed configuration example of each use case,
16
+ have a look at the READMEs in the respective [samples](samples)-folders.
17
+
18
+ ### Running the Plugin from Source
19
+
20
+ For development purposes you can run a plugin locally from source.
21
+
22
+ For example if you take the [`sample-action-button-dropdown-plugin`](samples/sample-action-button-dropdown-plugin),
23
+ you do the following:
24
+
25
+ 1. Start the development server:
26
+
27
+ ```bash
28
+ cd $HOME/src/bigbluebutton-html-plugin-sdk/samples/sample-action-button-dropdown-plugin
29
+ npm install
30
+ npm start
31
+ ```
32
+ 2. Add reference to it on BigBlueButton's `settings.yml`:
33
+
34
+ ```yaml
35
+ public:
36
+ plugins:
37
+ - name: SampleActionButtonDropdownPlugin
38
+ url: http://127.0.0.1:4701/static/SampleActionButtonDropdownPlugin.js
39
+ ```
40
+
41
+ _N.B.:_ Be aware that in this case the url is interpreted from the plugin in the browser,
42
+ so the localhost is actually your local development machine.
43
+
44
+ ### Building the Plugin
45
+
46
+ To build a plugin for production use
47
+ (again, using the example of [`sample-action-button-dropdown-plugin`](samples/sample-action-button-dropdown-plugin)),
48
+ follow these steps:
49
+
50
+ ```bash
51
+ cd $HOME/src/bigbluebutton-html-plugin-sdk/samples/sample-action-button-dropdown-plugin
52
+ npm install
53
+ npm run build-bundle
54
+ ```
55
+
56
+ The above command will generate the `dist` folder, containing the bundled JavaScript file named `SampleActionButtonDropdownPlugin.js`.
57
+ This file can be hosted on any HTTPS server.
58
+
59
+ To use the plugin with BigBlueButton, add the plugin's URL to `settings.yml` as shown below:
60
+
61
+ ```yaml
62
+ public:
63
+ app:
64
+ ... // All app configurations
65
+ plugins:
66
+ - name: SampleActionButtonDropdownPlugin
67
+ url: <<PLUGIN_URL>>
68
+ ... // All other configurations
69
+ ```
70
+
71
+ #### Hosting the Plugin on a BBB Server
72
+
73
+ While the plugin can be hosted on any Server, it is also possible to host the bundled file directly on
74
+ a BigBlueButton server. For that you copy the `dist/SampleActionButtonDropdownPlugin.js` to the folder `/var/www/bigbluebutton-default/assets/plugins`.
75
+ In this case, the `<<PLUGIN_URL>>` will be `https://<your-host>/plugins/SampleActionButtonDropdownPlugin.js`.
6
76
 
7
77
  ## API
78
+
8
79
  ### Extensible UI areas
9
- - Action bar items (button, separator)
10
80
 
81
+ - Action bar items (button, separator)
11
82
  - Action Button Dropdown Items (option, separator)
12
-
13
83
  - Audio settings dropdown items (option, separator)
14
-
15
84
  - Camera settings dropdown items (option, separator)
16
-
17
85
  - Nav bar items (button, info)
18
-
19
- - Presentation dropdown items (option, separator)
20
-
86
+ - Presentation dropdown items (option, separator)
21
87
  - Presentation toolbar items (button, separator, spinner)
22
-
23
88
  - User camera settings dropdown items (option, separator)
24
-
25
89
  - User list dropdown items (option, separator)
26
-
27
90
  - User list item additional information (item, label)
28
-
29
91
  - Floating window item (floatingWindow)
30
-
31
92
  - Generic component (genericComponent)
32
93
 
33
94
  ### Getters available through the API:
34
- - `getSessionToken`: returns the user session token located on the user's URL.
35
95
 
96
+ - `getSessionToken`: returns the user session token located on the user's URL.
36
97
  - `getJoinUrl`: returns the join url associated with the parameters passed as an argument. Since it fetches the BigBlueButton API, this getter method is asynchronous.
37
98
 
38
99
  ### Realtime data consumption
39
- - `useCurrentPresentation` hook: provides information regarding the current presentation;
40
100
 
101
+ - `useCurrentPresentation` hook: provides information regarding the current presentation;
41
102
  - `useLoadedUserList` hook: provides information regarding the loaded user list (displayed in the screen);
42
-
43
103
  - `useCurrentUser` hook: provides information regarding the current user;
44
-
45
104
  - `useUsersBasicInfo` hook: provides information regarding all users (only crucial information: userId, name and role);
46
-
47
105
  - `useLoadedChatMessages` hook: provides information regarding the loaded chat messages;
48
-
49
106
  - `useCustomSubscription` hook: with this hook, the developer can query pretty much anything graphql can provide. Note: Make sure that, on BBB version change, the custom subscriptions you make will work as expected.
50
-
51
107
  - `usePluginSettings` hook: it provides all the specific settings regarding the current plugin it's been loaded from.
52
-
53
108
  - `useTalkingIndicator` hook: it gives you invormation on the user-voice data, that is, who is talking or muted.
109
+ - `useMeeting` hook: it gives you information on the current meeting that the user is on.
54
110
 
55
111
  ### Real time data exchange
112
+
56
113
  - `useDataChannel` hook: this will allow you to exchange information (Send and receive) amongst different users through the same plugin;
57
114
 
58
115
  So for this hook to read the data from the data channel, the developer will be able to choose the format in which they want it.The possible formats are described down below:
@@ -70,7 +127,7 @@ const [
70
127
  deleteEntryFunction, // Function to delete specific item or wipe all
71
128
  ] = useDataChannel(
72
129
  channelName, // Defined according to what is on settings.yml from bbb-htlm5
73
- DataChannelTypes.All_ITEMS, // | LATEST_ITEM | NEW_ITEMS -> ALL_ITEMS is default
130
+ DataChannelTypes.All_ITEMS, // | LATEST_ITEM | NEW_ITEMS -> ALL_ITEMS is default
74
131
  subChannelName = 'default', // If no subchannelName is specified, it will be 'default'
75
132
  );
76
133
  ```
@@ -82,6 +139,7 @@ The data-channel name must be written in the settings.yml.
82
139
  All the permission for writing and deleting must be in the yaml too just like the example below:
83
140
 
84
141
  ```yaml
142
+ public:
85
143
  plugins:
86
144
  - name: PluginName
87
145
  url: http://<your-hosted-plugin>/PluginName.js
@@ -112,6 +170,7 @@ export type ObjectTo = ToUserId | ToRole;
112
170
  ```
113
171
 
114
172
  ### Real time ui data consumption
173
+
115
174
  - `useUiData` hook: This will return certain data from the UI depending on the parameter the developer uses. It works just like the useUiEvent hook, but instead of passing a callback as a parameter to be run everytime the event occurs, it will return the data directly, keep in mind that the second parameter is the default value that this function will assume. Possible choices:
116
175
  - IntlLocaleUiDataNames.CURRENT_LOCALE;
117
176
  - ChatFormUiDataNames.CURRENT_CHAT_INPUT_TEXT;
@@ -121,6 +180,7 @@ export type ObjectTo = ToUserId | ToRole;
121
180
  - UserListUiDataNames.USER_LIST_IS_OPEN;
122
181
 
123
182
  Example of usage:
183
+
124
184
  ```typscript
125
185
  const currentLocale = pluginApi.useUiData(IntlLocaleUiDataNames.CURRENT_LOCALE, {
126
186
  locale: 'en',
@@ -128,19 +188,21 @@ const currentLocale = pluginApi.useUiData(IntlLocaleUiDataNames.CURRENT_LOCALE,
128
188
  });
129
189
  ```
130
190
 
131
-
132
191
  ### Ui Commands to automatize tasks in BBB
192
+
133
193
  `uiCommands` object: It basically contains all the possible commands available to the developer to interact with the core BBB UI, see the ones implemented down below:
134
- - chat:
135
- - form:
136
- - open: this function will open the sidebar chat panel automatically;
137
- - fill: this function will fill the form input field of the chat passed in the argument as {text: string}
138
- - external-video:
139
- - volume:
140
- - set: this function will set the external video volume to a certain number between 0 and 1 (that is 0% and);
141
- - layout:
142
- - set: This function set the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
143
- - unset: This function unset the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
194
+
195
+ - chat:
196
+ - form:
197
+ - open: this function will open the sidebar chat panel automatically;
198
+ - fill: this function will fill the form input field of the chat passed in the argument as {text: string}
199
+ - external-video:
200
+ - volume:
201
+ - set: this function will set the external video volume to a certain number between 0 and 1 (that is 0% and);
202
+ - layout:
203
+ - set: This function set the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
204
+ - unset: This function unset the current layout with its argument (example: LayoutComponentListEnum.GENERIC_COMPONENT)
144
205
 
145
206
  ### Dom Element Manipulation
207
+
146
208
  - `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.;
@@ -16,6 +16,7 @@ var hooks_7 = require("../../data-consumption/domain/chat/loaded-chat-messages/h
16
16
  var hooks_8 = require("../../dom-element-manipulation/chat/message/hooks");
17
17
  var hooks_9 = require("../../data-consumption/domain/user-voice/talking-indicator/hooks");
18
18
  var hooks_10 = require("../../ui-data-hooks/hooks");
19
+ var hooks_11 = require("../../data-consumption/domain/meeting/from-core/hooks");
19
20
  /**
20
21
  * Class responsible for either initialize or get the PluginApi
21
22
  *
@@ -43,6 +44,7 @@ var BbbPluginSdk = /** @class */ (function () {
43
44
  pluginApi.useCurrentPresentation = (function () { return (0, hooks_2.useCurrentPresentation)(); });
44
45
  pluginApi.useLoadedUserList = (function () { return (0, hooks_4.useLoadedUserList)(); });
45
46
  pluginApi.useCurrentUser = (function () { return (0, hooks_5.useCurrentUser)(); });
47
+ pluginApi.useMeeting = (function () { return (0, hooks_11.useMeeting)(); });
46
48
  pluginApi.useUsersBasicInfo = (function () { return (0, hooks_6.useUsersBasicInfo)(); });
47
49
  pluginApi.useTalkingIndicator = (function () { return (0, hooks_9.useTalkingIndicator)(); });
48
50
  pluginApi.useLoadedChatMessages = (function () { return (0, hooks_7.useLoadedChatMessages)(); });
@@ -1 +1 @@
1
- {"version":3,"file":"BbbPluginSdk.js","sourceRoot":"","sources":["../../../../src/core/api/BbbPluginSdk.ts"],"names":[],"mappings":";;;AAMA,kDAA4D;AAO5D,uDAAwD;AAQxD,kDAAiE;AACjE,gGAEgF;AAChF,wFAEwE;AACxE,oFAA+F;AAC/F,gFAAwF;AACxF,oFAA+F;AAC/F,4DAAoE;AACpE,uDAA0D;AAC1D,mEAA2E;AAE3E,uFAAsG;AACtG,2EAA8F;AAE9F,0FAAuG;AACvG,oDAAsD;AAItD;;;;;;GAMG;AACH;IAAA;IA2FA,CAAC;IA1FC;;;;;;;;;;OAUG;IACW,uBAAU,GAAxB,UAAyB,IAAY;QACnC,IAAM,SAAS,GAAc,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACtD,SAAS,CAAC,qBAAqB,GAAG,CAAC,UACjC,KAAa,EACb,sBAAsD,IACnD,OAAA,IAAA,6BAAqB,EAAC,KAAK,EAAE,sBAAsB,CAAC,EAApD,CAAoD,CAAkC,CAAC;QAC5F,SAAS,CAAC,sBAAsB,GAAG,CACjC,cAAM,OAAA,IAAA,8BAAsB,GAAE,EAAxB,CAAwB,CAAmC,CAAC;QACpE,SAAS,CAAC,iBAAiB,GAAG,CAAC,cAAM,OAAA,IAAA,yBAAiB,GAAE,EAAnB,CAAmB,CAA8B,CAAC;QACvF,SAAS,CAAC,cAAc,GAAG,CAAC,cAAM,OAAA,IAAA,sBAAc,GAAE,EAAhB,CAAgB,CAA2B,CAAC;QAC9E,SAAS,CAAC,iBAAiB,GAAG,CAAC,cAAM,OAAA,IAAA,yBAAiB,GAAE,EAAnB,CAAmB,CAA8B,CAAC;QACvF,SAAS,CAAC,mBAAmB,GAAG,CAAC,cAAM,OAAA,IAAA,2BAAmB,GAAE,EAArB,CAAqB,CAAgC,CAAC;QAC7F,SAAS,CAAC,qBAAqB,GAAG,CAChC,cAAM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EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBACxB,uBAAuB,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBACjC,8BAA8B,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBACxC,0BAA0B,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBACpC,oCAAoC,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBAC9C,kBAAkB,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBAC5B,oBAAoB,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;gBAC9B,uBAAuB,EAAE;oBACvB,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,AA5FD,IA4FC;AA5FqB,oCAAY"}
@@ -25,6 +25,7 @@ import { UseLoadedChatMessagesFunction } from '../../data-consumption/domain/cha
25
25
  import { UseTalkingIndicatorFunction } from '../../data-consumption/domain/user-voice/talking-indicator/types';
26
26
  import { GenericComponentInterface } from '../../extensible-areas/generic-component/types';
27
27
  import { UseUiDataFunction } from '../../ui-data-hooks/types';
28
+ import { UseMeetingFunction } from '../../data-consumption/domain/meeting/from-core/types';
28
29
  export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarInterface[]) => string[];
29
30
  export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownInterface[]) => string[];
30
31
  export type SetActionButtonDropdownItems = (actionButtonDropdownInterface: ActionButtonDropdownInterface[]) => string[];
@@ -79,6 +80,14 @@ export interface PluginApi {
79
80
  *
80
81
  */
81
82
  useCurrentUser?: UseCurrentUserFunction;
83
+ /**
84
+ * Returns an object containing the data on the current meeting, i.e. the meeting on which the
85
+ * plugin is running.
86
+ *
87
+ * @returns `GraphqlResponseWrapper` with the CurrentMeeting type.
88
+ *
89
+ */
90
+ useMeeting?: UseMeetingFunction;
82
91
  /**
83
92
  * Returns an object containing the brief data on every user in te meeting.
84
93
  *
@@ -0,0 +1,2 @@
1
+ import { Meeting } from './types';
2
+ export declare const useMeeting: () => import("../../../..").GraphqlResponseWrapper<Meeting[]>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useMeeting = void 0;
4
+ var enums_1 = require("../../../enums");
5
+ var hookCreator_1 = require("../../../factory/hookCreator");
6
+ var useMeeting = function () { return (0, hookCreator_1.createDataConsumptionHook)(enums_1.DataConsumptionHooks.MEETING); };
7
+ exports.useMeeting = useMeeting;
8
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/meeting/from-core/hooks.ts"],"names":[],"mappings":";;;AAAA,wCAAsD;AACtD,4DAAyE;AAGlE,IAAM,UAAU,GAAG,cAAM,OAAA,IAAA,uCAAyB,EAGvD,4BAAoB,CAAC,OAAO,CAC7B,EAJ+B,CAI/B,CAAC;AAJW,QAAA,UAAU,cAIrB"}
@@ -0,0 +1,7 @@
1
+ import { GraphqlResponseWrapper } from '../../../../core';
2
+ export interface Meeting {
3
+ name: string;
4
+ meetingId: string;
5
+ loginUrl?: string;
6
+ }
7
+ export type UseMeetingFunction = () => GraphqlResponseWrapper<Meeting[]>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/meeting/from-core/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { Meeting } from './from-core/types';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/data-consumption/domain/meeting/index.ts"],"names":[],"mappings":""}
@@ -3,6 +3,7 @@ export declare enum DataConsumptionHooks {
3
3
  LOADED_USER_LIST = "Hooks::UseLoadedUserList",
4
4
  CURRENT_USER = "Hooks::UseCurrentUser",
5
5
  LOADED_CHAT_MESSAGES = "Hooks::UseLoadedChatMessages",
6
+ MEETING = "Hooks::UseMeeting",
6
7
  TALKING_INDICATOR = "Hooks::UseTalkingIndicator",
7
8
  CUSTOM_SUBSCRIPTION = "Hooks::CustomSubscription"
8
9
  }
@@ -7,6 +7,7 @@ var DataConsumptionHooks;
7
7
  DataConsumptionHooks["LOADED_USER_LIST"] = "Hooks::UseLoadedUserList";
8
8
  DataConsumptionHooks["CURRENT_USER"] = "Hooks::UseCurrentUser";
9
9
  DataConsumptionHooks["LOADED_CHAT_MESSAGES"] = "Hooks::UseLoadedChatMessages";
10
+ DataConsumptionHooks["MEETING"] = "Hooks::UseMeeting";
10
11
  DataConsumptionHooks["TALKING_INDICATOR"] = "Hooks::UseTalkingIndicator";
11
12
  DataConsumptionHooks["CUSTOM_SUBSCRIPTION"] = "Hooks::CustomSubscription";
12
13
  })(DataConsumptionHooks || (exports.DataConsumptionHooks = DataConsumptionHooks = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-consumption/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,8EAAsD,CAAA;IACtD,qEAA6C,CAAA;IAC7C,8DAAsC,CAAA;IACtC,6EAAqD,CAAA;IACrD,wEAAgD,CAAA;IAChD,yEAAiD,CAAA;AACnD,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-consumption/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,8EAAsD,CAAA;IACtD,qEAA6C,CAAA;IAC7C,8DAAsC,CAAA;IACtC,6EAAqD,CAAA;IACrD,qDAA6B,CAAA;IAC7B,wEAAgD,CAAA;IAChD,yEAAiD,CAAA;AACnD,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B"}
@@ -1,5 +1,6 @@
1
1
  export * from './domain/presentations';
2
2
  export * from './domain/chat';
3
+ export * from './domain/meeting';
3
4
  export * from './domain/users';
4
5
  export * from './domain/user-voice';
5
6
  export * from './domain/shared';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./domain/presentations"), exports);
18
18
  __exportStar(require("./domain/chat"), exports);
19
+ __exportStar(require("./domain/meeting"), exports);
19
20
  __exportStar(require("./domain/users"), exports);
20
21
  __exportStar(require("./domain/user-voice"), exports);
21
22
  __exportStar(require("./domain/shared"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,gDAA8B;AAC9B,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,gDAA8B;AAC9B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC"}
@@ -2,5 +2,4 @@ export * from './extensible-areas';
2
2
  export * from './data-consumption';
3
3
  export * from './data-channel';
4
4
  export * from './ui-data-hooks';
5
- export * from './ui-commands';
6
5
  export * from './core';
package/dist/cjs/index.js CHANGED
@@ -18,6 +18,5 @@ __exportStar(require("./extensible-areas"), exports);
18
18
  __exportStar(require("./data-consumption"), exports);
19
19
  __exportStar(require("./data-channel"), exports);
20
20
  __exportStar(require("./ui-data-hooks"), exports);
21
- __exportStar(require("./ui-commands"), exports);
22
21
  __exportStar(require("./core"), exports);
23
22
  //# 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,kDAAgC;AAEhC,gDAA8B;AAE9B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,kDAAgC;AAEhC,yCAAuB"}
@@ -10,8 +10,4 @@ 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
- };
17
13
  };
@@ -3,10 +3,8 @@ 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");
7
6
  exports.uiCommands = {
8
7
  chat: commands_1.chat,
9
8
  externalVideo: commands_2.externalVideo,
10
- layout: commands_3.layout,
11
9
  };
12
10
  //# 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,8CAA2C;AAE9B,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,MAAM,mBAAA;CACP,CAAC"}
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 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/external-video/commands.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAE9B,QAAA,aAAa,GAAG;IACzB,MAAM,mBAAA;CACT,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/external-video/commands.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAE9B,QAAA,aAAa,GAAG;IAC3B,MAAM,mBAAA;CACP,CAAC"}
@@ -3,7 +3,8 @@ export declare const volume: {
3
3
  /**
4
4
  * Sets the volume of the external video to a certain level. Needs to be a value between 0 and 1.
5
5
  *
6
- * @param setExternalVideoVolumeCommandArguments the volume to which the core will set in the external video.
6
+ * @param setExternalVideoVolumeCommandArguments the volume to which the core will set in the
7
+ * external video.
7
8
  * Refer to {@link SetExternalVideoVolumeCommandArguments} to understand the argument structure.
8
9
  */
9
10
  set: (setExternalVideoVolumeCommandArguments: SetExternalVideoVolumeCommandArguments) => void;
@@ -6,7 +6,8 @@ exports.volume = {
6
6
  /**
7
7
  * Sets the volume of the external video to a certain level. Needs to be a value between 0 and 1.
8
8
  *
9
- * @param setExternalVideoVolumeCommandArguments the volume to which the core will set in the external video.
9
+ * @param setExternalVideoVolumeCommandArguments the volume to which the core will set in the
10
+ * external video.
10
11
  * Refer to {@link SetExternalVideoVolumeCommandArguments} to understand the argument structure.
11
12
  */
12
13
  set: function (setExternalVideoVolumeCommandArguments) {
@@ -17,7 +18,7 @@ exports.volume = {
17
18
  }));
18
19
  }
19
20
  else {
20
- console.warn('Not possible to set a volume less than zero or higher than 1.');
21
+ throw new Error('Not possible to set a volume less than zero or higher than one');
21
22
  }
22
23
  },
23
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../src/ui-commands/external-video/volume/commands.ts"],"names":[],"mappings":";;;AAAA,iCAA0D;AAG7C,QAAA,MAAM,GAAG;IACpB;;;;;OAKG;IACH,GAAG,EAAE,UAAC,sCAA8E;QAClF,IAAM,aAAa,GAAG,sCAAsC,CAAC,MAAM,CAAC;QACpE,IAAI,aAAa,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,EAAE;YAC5C,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,uCAA+B,CAAC,GAAG,EAAE;gBACrC,MAAM,EAAE,sCAAsC;aAC/C,CAAC,CACH,CAAC;SACH;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;SAC/E;IAEH,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../src/ui-commands/external-video/volume/commands.ts"],"names":[],"mappings":";;;AAAA,iCAA0D;AAG7C,QAAA,MAAM,GAAG;IACpB;;;;;;OAMG;IACH,GAAG,EAAE,UAAC,sCAA8E;QAClF,IAAM,aAAa,GAAG,sCAAsC,CAAC,MAAM,CAAC;QACpE,IAAI,aAAa,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,EAAE;YAC5C,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,uCAA+B,CAAC,GAAG,EAAE;gBACrC,MAAM,EAAE,sCAAsC;aAC/C,CAAC,CACH,CAAC;SACH;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;SACnF;IACH,CAAC;CACF,CAAC"}
@@ -1,8 +1,6 @@
1
1
  import { UiCommandsChatObject } from './chat/types';
2
2
  import { UiCommandsExternalVideoObject } from './external-video/types';
3
- import { UiCommandsLayoutObject } from './layout/types';
4
3
  export interface UiCommands {
5
4
  chat: UiCommandsChatObject;
6
5
  externalVideo: UiCommandsExternalVideoObject;
7
- layout: UiCommandsLayoutObject;
8
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.42",
3
+ "version": "0.0.47",
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",
@@ -37,7 +37,7 @@
37
37
  "prepublishOnly": "npm run build # runs before publish",
38
38
  "build": "rm -rf dist/cjs && tsc --module CommonJS --outDir dist/cjs",
39
39
  "build:watch": "rm -rf dist && tsc -w --module CommonJS",
40
- "lint": "eslint ./src/*.{ts,tsx}",
40
+ "lint": "eslint . --ignore-pattern node_modules",
41
41
  "lint:fix": "npm run lint -- --fix",
42
42
  "lint:watch": "watch 'yarn lint'"
43
43
  },
@@ -1 +0,0 @@
1
- export * from './layout/enums';
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -1,5 +0,0 @@
1
- import { LayoutComponentListEnum } from "./enums";
2
- export declare const layout: {
3
- set: (layoutToBeSet: LayoutComponentListEnum) => void;
4
- unset: (layoutToBeSet: LayoutComponentListEnum) => void;
5
- };
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- import { LayoutComponentListEnum } from "./enums";
2
- export interface UiCommandsLayoutObject {
3
- set: (layoutToSet: LayoutComponentListEnum) => void;
4
- unset: (layoutToUnset: LayoutComponentListEnum) => void;
5
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/layout/types.ts"],"names":[],"mappings":""}