bigbluebutton-html-plugin-sdk 0.0.29 → 0.0.30

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 (36) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/core/api/BbbPluginSdk.js +3 -0
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +10 -0
  5. package/dist/cjs/core/enum.d.ts +1 -0
  6. package/dist/cjs/core/enum.js +1 -0
  7. package/dist/cjs/core/enum.js.map +1 -1
  8. package/dist/cjs/data-consumption/domain/chat/index.d.ts +1 -0
  9. package/dist/cjs/data-consumption/domain/chat/index.js +3 -0
  10. package/dist/cjs/data-consumption/domain/chat/index.js.map +1 -0
  11. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/hooks.d.ts +2 -0
  12. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/hooks.js +8 -0
  13. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/hooks.js.map +1 -0
  14. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/types.d.ts +8 -0
  15. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/types.js +3 -0
  16. package/dist/cjs/data-consumption/domain/chat/loaded-chat-messages/types.js.map +1 -0
  17. package/dist/cjs/data-consumption/index.d.ts +1 -0
  18. package/dist/cjs/data-consumption/index.js +1 -0
  19. package/dist/cjs/data-consumption/index.js.map +1 -1
  20. package/dist/cjs/extensible-areas/base.d.ts +2 -1
  21. package/dist/cjs/extensible-areas/floating-window/component.d.ts +30 -0
  22. package/dist/cjs/extensible-areas/floating-window/component.js +41 -0
  23. package/dist/cjs/extensible-areas/floating-window/component.js.map +1 -0
  24. package/dist/cjs/extensible-areas/floating-window/enums.d.ts +3 -0
  25. package/dist/cjs/extensible-areas/floating-window/enums.js +9 -0
  26. package/dist/cjs/extensible-areas/floating-window/enums.js.map +1 -0
  27. package/dist/cjs/extensible-areas/floating-window/index.d.ts +2 -0
  28. package/dist/cjs/extensible-areas/floating-window/index.js +6 -0
  29. package/dist/cjs/extensible-areas/floating-window/index.js.map +1 -0
  30. package/dist/cjs/extensible-areas/floating-window/types.d.ts +12 -0
  31. package/dist/cjs/extensible-areas/floating-window/types.js +3 -0
  32. package/dist/cjs/extensible-areas/floating-window/types.js.map +1 -0
  33. package/dist/cjs/extensible-areas/index.d.ts +1 -0
  34. package/dist/cjs/extensible-areas/index.js +1 -0
  35. package/dist/cjs/extensible-areas/index.js.map +1 -1
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -26,6 +26,8 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
26
26
 
27
27
  - User list item additional information (item, label)
28
28
 
29
+ - Floating window item (floatingWindow)
30
+
29
31
  ### Getters available through the API:
30
32
  - `getSessionToken`: returns the user session token located on the user's URL.
31
33
 
@@ -40,6 +42,8 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
40
42
 
41
43
  - `useUsersBasicInfo` hook: provides information regarding all users (only crucial information: userId, name and role);
42
44
 
45
+ - `useLoadedChatMessages` hook: provides information regarding the loaded chat messages;
46
+
43
47
  - `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.
44
48
 
45
49
  - `usePluginSettings` hook: it provides all the specific settings regarding the current plugin it's been loaded from.
@@ -12,6 +12,7 @@ var getter_1 = require("../auxiliary/session-token/getter");
12
12
  var getter_2 = require("../auxiliary/join-url/getter");
13
13
  var settings_1 = require("../../data-consumption/domain/settings");
14
14
  var hooks_7 = require("../../ui-events/hooks");
15
+ var hooks_8 = require("../../data-consumption/domain/chat/loaded-chat-messages/hooks");
15
16
  /**
16
17
  * Class responsible for either initialize or get the PluginApi
17
18
  *
@@ -40,6 +41,7 @@ var BbbPluginSdk = /** @class */ (function () {
40
41
  pluginApi.useLoadedUserList = (function () { return (0, hooks_4.useLoadedUserList)(); });
41
42
  pluginApi.useCurrentUser = (function () { return (0, hooks_5.useCurrentUser)(); });
42
43
  pluginApi.useUsersBasicInfo = (function () { return (0, hooks_6.useUsersBasicInfo)(); });
44
+ pluginApi.useLoadedChatMessages = (function () { return (0, hooks_8.useLoadedChatMessages)(); });
43
45
  pluginApi.useUiEvent = (function (eventName, callback) { return (0, hooks_7.useUiEvent)(eventName, callback); });
44
46
  pluginApi.uiCommands = commands_1.uiCommands;
45
47
  var pluginName = pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.pluginName;
@@ -80,6 +82,7 @@ var BbbPluginSdk = /** @class */ (function () {
80
82
  setCameraSettingsDropdownItems: function () { },
81
83
  setUserCameraDropdownItems: function () { },
82
84
  setUserListItemAdditionalInformation: function () { },
85
+ setFloatingWindows: function () { },
83
86
  mapOfDispatchers: {
84
87
  '': function () { },
85
88
  },
@@ -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;AAInD;;;;;;GAMG;AACH;IAAA;IAiFA,CAAC;IAhFC;;;;;;;;;;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,GAA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W,yBAAY,GAA1B,UAA2B,IAAY,EAAE,UAAmB;QAC1D,IAAI,CAAC,MAAM,CAAC,WAAW;YAAE,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;QACjD,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,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,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,AApFD,IAoFC;AApFqB,oCAAY"}
@@ -14,12 +14,14 @@ import { UseCurrentPresentationFunction } from '../../data-consumption/domain/pr
14
14
  import { UseLoadedUserListFunction } from '../../data-consumption/domain/users/loaded-user-list/types';
15
15
  import { UseCurrentUserFunction } from '../../data-consumption/domain/users/current-user/types';
16
16
  import { UseUsersBasicInfoFunction } from '../../data-consumption/domain/users/users-basic-info/types';
17
+ import { SetFloatingWindows } from '../../extensible-areas/floating-window/types';
17
18
  import { UseCustomSubscriptionFunction } from '../../data-consumption/domain/shared/custom-subscription/types';
18
19
  import { MapOfDispatchers, UseDataChannelFunctionFromPluginApi } from '../../data-channel/types';
19
20
  import { GetSessionTokenFunction } from '../auxiliary/session-token/types';
20
21
  import { GetJoinUrlFunction } from '../auxiliary/join-url/types';
21
22
  import { UsePluginSettingsFunction } from '../../data-consumption/domain/settings/plugin-settings/types';
22
23
  import { UseUiEventFunction } from '../../ui-events/types';
24
+ import { UseLoadedChatMessagesFunction } from '../../data-consumption/domain/chat/loaded-chat-messages/types';
23
25
  export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
24
26
  export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownItem[]) => void;
25
27
  export type SetActionButtonDropdownItems = (actionButtonDropdownItem: ActionButtonDropdownItem[]) => void;
@@ -47,6 +49,7 @@ export interface PluginApi {
47
49
  setCameraSettingsDropdownItems: SetCameraSettingsDropdownItems;
48
50
  setUserCameraDropdownItems: SetUserCameraDropdownItems;
49
51
  setUserListItemAdditionalInformation: SetUserListItemAdditionalInformation;
52
+ setFloatingWindows: SetFloatingWindows;
50
53
  /**
51
54
  * Returns an object containing the data on the current presentation being displayed
52
55
  * in the presentation area, and its current page.
@@ -78,6 +81,13 @@ export interface PluginApi {
78
81
  *
79
82
  */
80
83
  useUsersBasicInfo?: UseUsersBasicInfoFunction;
84
+ /**
85
+ * Returns an object containing brief data on the messages already loaded in the chat.
86
+ *
87
+ * @returns `GraphqlResponseWrapper` with the LoadedChatMessages.
88
+ *
89
+ */
90
+ useLoadedChatMessages?: UseLoadedChatMessagesFunction;
81
91
  /**
82
92
  * Returns an object containing the settings for the current plugin (with pluginName
83
93
  * defined in the pluginApi). It needs to be explicitly written in the client settings
@@ -7,6 +7,7 @@ export declare enum Hooks {
7
7
  CURRENT_PRESENTATION = "Hooks::UseCurrentPresentation",
8
8
  LOADED_USER_LIST = "Hooks::UseLoadedUserList",
9
9
  CURRENT_USER = "Hooks::UseCurrentUser",
10
+ LOADED_CHAT_MESSAGES = "Hooks::UseLoadedChatMessages",
10
11
  CUSTOM_SUBSCRIPTION = "Hooks::CustomSubscription",
11
12
  DATA_CHANNEL = "Hooks::DataChannel"
12
13
  }
@@ -12,6 +12,7 @@ var Hooks;
12
12
  Hooks["CURRENT_PRESENTATION"] = "Hooks::UseCurrentPresentation";
13
13
  Hooks["LOADED_USER_LIST"] = "Hooks::UseLoadedUserList";
14
14
  Hooks["CURRENT_USER"] = "Hooks::UseCurrentUser";
15
+ Hooks["LOADED_CHAT_MESSAGES"] = "Hooks::UseLoadedChatMessages";
15
16
  Hooks["CUSTOM_SUBSCRIPTION"] = "Hooks::CustomSubscription";
16
17
  Hooks["DATA_CHANNEL"] = "Hooks::DataChannel";
17
18
  })(Hooks || (exports.Hooks = Hooks = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/core/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,2CAA6B,CAAA;IAC7B,sDAAwC,CAAA;IACxC,4DAA8C,CAAA;AAChD,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,KAMX;AAND,WAAY,KAAK;IACf,+DAAsD,CAAA;IACtD,sDAA6C,CAAA;IAC7C,+CAAsC,CAAA;IACtC,0DAAiD,CAAA;IACjD,4CAAmC,CAAA;AACrC,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB"}
1
+ {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/core/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,2CAA6B,CAAA;IAC7B,sDAAwC,CAAA;IACxC,4DAA8C,CAAA;AAChD,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,KAOX;AAPD,WAAY,KAAK;IACf,+DAAsD,CAAA;IACtD,sDAA6C,CAAA;IAC7C,+CAAsC,CAAA;IACtC,8DAAqD,CAAA;IACrD,0DAAiD,CAAA;IACjD,4CAAmC,CAAA;AACrC,CAAC,EAPW,KAAK,qBAAL,KAAK,QAOhB"}
@@ -0,0 +1 @@
1
+ export { LoadedChatMessage } from './loaded-chat-messages/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/chat/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { LoadedChatMessage } from './types';
2
+ export declare const useLoadedChatMessages: () => import("../../../..").GraphqlResponseWrapper<LoadedChatMessage[]>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useLoadedChatMessages = void 0;
4
+ var enum_1 = require("../../../../core/enum");
5
+ var hookCreator_1 = require("../../../factory/hookCreator");
6
+ var useLoadedChatMessages = function () { return (0, hookCreator_1.createDataConsumptionHook)(enum_1.Hooks.LOADED_CHAT_MESSAGES); };
7
+ exports.useLoadedChatMessages = useLoadedChatMessages;
8
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/chat/loaded-chat-messages/hooks.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,4DAAyE;AAGlE,IAAM,qBAAqB,GAAG,cAAM,OAAA,IAAA,uCAAyB,EAGlE,YAAK,CAAC,oBAAoB,CAC3B,EAJ0C,CAI1C,CAAC;AAJW,QAAA,qBAAqB,yBAIhC"}
@@ -0,0 +1,8 @@
1
+ import { GraphqlResponseWrapper } from '../../../../core';
2
+ export interface LoadedChatMessage {
3
+ createdAt: string;
4
+ message: string;
5
+ messageId: string;
6
+ senderUserId: string;
7
+ }
8
+ export type UseLoadedChatMessagesFunction = () => GraphqlResponseWrapper<LoadedChatMessage[]>;
@@ -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/data-consumption/domain/chat/loaded-chat-messages/types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from './domain/presentations';
2
+ export * from './domain/chat';
2
3
  export * from './domain/users';
3
4
  export * from './domain/shared';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./domain/presentations"), exports);
18
+ __exportStar(require("./domain/chat"), exports);
18
19
  __exportStar(require("./domain/users"), exports);
19
20
  __exportStar(require("./domain/shared"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,iDAA+B;AAC/B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC"}
@@ -2,6 +2,7 @@ import { ActionButtonDropdownItemType } from './action-button-dropdown-item/enum
2
2
  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
+ import { FloatingWindowType } from './floating-window/enums';
5
6
  import { NavBarItemType } from './nav-bar-item/enums';
6
7
  import { OptionsDropdownItemType } from './options-dropdown-item/enums';
7
8
  import { PresentationDropdownItemType } from './presentation-dropdown-item/enums';
@@ -9,7 +10,7 @@ import { PresentationToolbarItemType } from './presentation-toolbar-item/enums';
9
10
  import { UserCameraDropdownItemType } from './user-camera-dropdown-item/enums';
10
11
  import { UserListDropdownItemType } from './user-list-dropdown-item/enums';
11
12
  import { UserListItemAdditionalInformationType } from './user-list-item-additional-information/enums';
12
- type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType;
13
+ type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType;
13
14
  export interface PluginProvidedUiItemDescriptor {
14
15
  /** Defined by BigBlueButton Plugin Engine. */
15
16
  id: string;
@@ -0,0 +1,30 @@
1
+ import { FloatingWindowType } from './enums';
2
+ import { FloatingWindowInterface, FloatingWindowProps } from './types';
3
+ export declare class FloatingWindow implements FloatingWindowInterface {
4
+ id: string;
5
+ type: FloatingWindowType;
6
+ top: number;
7
+ left: number;
8
+ movable: boolean;
9
+ backgroundColor: string;
10
+ boxShadow: string;
11
+ contentFunction: (element: HTMLElement) => void;
12
+ /**
13
+ * Returns object to be used in the setter for the Navigation Bar. In this case,
14
+ * a button.
15
+ *
16
+ * @param top - position in which the the top left corner of the floating window is relative
17
+ * to the top of the rendered window.
18
+ * @param left - position in which the the top left corner of the floating window is relative
19
+ * to the left of the rendered window.
20
+ * @param movable - tells whether the floating window is movable or static.
21
+ * @param backgroundColor - background color of the floating window.
22
+ * @param boxShadow - box shadow to apply to the floating window
23
+ * @param contentFunction - function that gives the html element to render the content of
24
+ * the floating window
25
+ *
26
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
27
+ */
28
+ constructor({ top, left, movable, backgroundColor, boxShadow, contentFunction, }: FloatingWindowProps);
29
+ setItemId: (id: string) => void;
30
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FloatingWindow = void 0;
4
+ var enums_1 = require("./enums");
5
+ // FloatingWindow Extensible Area
6
+ var FloatingWindow = /** @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 top - position in which the the top left corner of the floating window is relative
12
+ * to the top of the rendered window.
13
+ * @param left - position in which the the top left corner of the floating window is relative
14
+ * to the left of the rendered window.
15
+ * @param movable - tells whether the floating window is movable or static.
16
+ * @param backgroundColor - background color of the floating window.
17
+ * @param boxShadow - box shadow to apply to the floating window
18
+ * @param contentFunction - function that gives the html element to render the content of
19
+ * the floating window
20
+ *
21
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
22
+ */
23
+ function FloatingWindow(_a) {
24
+ var top = _a.top, left = _a.left, movable = _a.movable, backgroundColor = _a.backgroundColor, boxShadow = _a.boxShadow, contentFunction = _a.contentFunction;
25
+ var _this = this;
26
+ this.id = '';
27
+ this.setItemId = function (id) {
28
+ _this.id = "FloatingWindow_".concat(id);
29
+ };
30
+ this.top = top;
31
+ this.left = left;
32
+ this.movable = movable;
33
+ this.backgroundColor = backgroundColor;
34
+ this.boxShadow = boxShadow;
35
+ this.contentFunction = contentFunction;
36
+ this.type = enums_1.FloatingWindowType.CONTAINER;
37
+ }
38
+ return FloatingWindow;
39
+ }());
40
+ exports.FloatingWindow = FloatingWindow;
41
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AAAA,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"}
@@ -0,0 +1,3 @@
1
+ export declare enum FloatingWindowType {
2
+ CONTAINER = "FLOATING_WINDOW_CONTAINER"
3
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FloatingWindowType = void 0;
4
+ // Floating window types:
5
+ var FloatingWindowType;
6
+ (function (FloatingWindowType) {
7
+ FloatingWindowType["CONTAINER"] = "FLOATING_WINDOW_CONTAINER";
8
+ })(FloatingWindowType || (exports.FloatingWindowType = FloatingWindowType = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/enums.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;AACzC,CAAC,EAFW,kBAAkB,kCAAlB,kBAAkB,QAE7B"}
@@ -0,0 +1,2 @@
1
+ export { FloatingWindow, } from './component';
2
+ export { FloatingWindowInterface, } from './types';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FloatingWindow = void 0;
4
+ var component_1 = require("./component");
5
+ Object.defineProperty(exports, "FloatingWindow", { enumerable: true, get: function () { return component_1.FloatingWindow; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/index.ts"],"names":[],"mappings":";;;AAAA,yCAEqB;AADnB,2GAAA,cAAc,OAAA"}
@@ -0,0 +1,12 @@
1
+ import { PluginProvidedUiItemDescriptor } from '../base';
2
+ export interface FloatingWindowInterface extends PluginProvidedUiItemDescriptor {
3
+ }
4
+ export interface FloatingWindowProps {
5
+ top: number;
6
+ left: number;
7
+ movable: boolean;
8
+ backgroundColor: string;
9
+ boxShadow: string;
10
+ contentFunction: (element: HTMLElement) => void;
11
+ }
12
+ export type SetFloatingWindows = (FloatingWindows: FloatingWindowInterface[]) => 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/floating-window/types.ts"],"names":[],"mappings":""}
@@ -9,3 +9,4 @@ export * from './options-dropdown-item';
9
9
  export * from './camera-settings-dropdown-item';
10
10
  export * from './user-camera-dropdown-item';
11
11
  export * from './user-list-item-additional-information';
12
+ export * from './floating-window';
@@ -25,4 +25,5 @@ __exportStar(require("./options-dropdown-item"), exports);
25
25
  __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
+ __exportStar(require("./floating-window"), exports);
28
29
  //# 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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
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",