bigbluebutton-html-plugin-sdk 0.0.48 → 0.0.51

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 (58) hide show
  1. package/README.md +5 -1
  2. package/dist/cjs/core/api/BbbPluginSdk.js +1 -1
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +3 -3
  5. package/dist/cjs/data-channel/enums.d.ts +2 -1
  6. package/dist/cjs/data-channel/enums.js +1 -0
  7. package/dist/cjs/data-channel/enums.js.map +1 -1
  8. package/dist/cjs/data-channel/hooks.js +7 -1
  9. package/dist/cjs/data-channel/hooks.js.map +1 -1
  10. package/dist/cjs/data-channel/types.d.ts +9 -2
  11. package/dist/cjs/data-channel/utils.d.ts +1 -0
  12. package/dist/cjs/data-channel/utils.js +14 -1
  13. package/dist/cjs/data-channel/utils.js.map +1 -1
  14. package/dist/cjs/extensible-areas/base.d.ts +2 -2
  15. package/dist/cjs/extensible-areas/generic-content-item/component.d.ts +43 -0
  16. package/dist/cjs/extensible-areas/generic-content-item/component.js +64 -0
  17. package/dist/cjs/extensible-areas/generic-content-item/component.js.map +1 -0
  18. package/dist/cjs/extensible-areas/generic-content-item/enums.d.ts +4 -0
  19. package/dist/cjs/extensible-areas/generic-content-item/enums.js +10 -0
  20. package/dist/cjs/extensible-areas/generic-content-item/enums.js.map +1 -0
  21. package/dist/cjs/extensible-areas/generic-content-item/index.d.ts +2 -0
  22. package/dist/cjs/extensible-areas/generic-content-item/index.js +7 -0
  23. package/dist/cjs/extensible-areas/generic-content-item/index.js.map +1 -0
  24. package/dist/cjs/extensible-areas/generic-content-item/types.d.ts +12 -0
  25. package/dist/cjs/extensible-areas/generic-content-item/types.js.map +1 -0
  26. package/dist/cjs/extensible-areas/index.d.ts +1 -1
  27. package/dist/cjs/extensible-areas/index.js +1 -1
  28. package/dist/cjs/extensible-areas/index.js.map +1 -1
  29. package/dist/cjs/ui-commands/commands.d.ts +4 -0
  30. package/dist/cjs/ui-commands/commands.js +2 -0
  31. package/dist/cjs/ui-commands/commands.js.map +1 -1
  32. package/dist/cjs/ui-commands/sidekick-options-container/commands.d.ts +10 -0
  33. package/dist/cjs/ui-commands/sidekick-options-container/commands.js +19 -0
  34. package/dist/cjs/ui-commands/sidekick-options-container/commands.js.map +1 -0
  35. package/dist/cjs/ui-commands/sidekick-options-container/enums.d.ts +4 -0
  36. package/dist/cjs/ui-commands/sidekick-options-container/enums.js +9 -0
  37. package/dist/cjs/ui-commands/sidekick-options-container/enums.js.map +1 -0
  38. package/dist/cjs/ui-commands/sidekick-options-container/types.d.ts +4 -0
  39. package/dist/cjs/ui-commands/sidekick-options-container/types.js +3 -0
  40. package/dist/cjs/ui-commands/sidekick-options-container/types.js.map +1 -0
  41. package/dist/cjs/ui-commands/types.d.ts +2 -0
  42. package/dist/cjs/ui-data-hooks/layout/presentation-area/enums.d.ts +1 -1
  43. package/dist/cjs/ui-data-hooks/layout/presentation-area/enums.js +1 -1
  44. package/dist/cjs/ui-data-hooks/layout/presentation-area/enums.js.map +1 -1
  45. package/dist/cjs/ui-data-hooks/layout/presentation-area/types.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/dist/cjs/extensible-areas/generic-component/component.d.ts +0 -17
  48. package/dist/cjs/extensible-areas/generic-component/component.js +0 -28
  49. package/dist/cjs/extensible-areas/generic-component/component.js.map +0 -1
  50. package/dist/cjs/extensible-areas/generic-component/enums.d.ts +0 -3
  51. package/dist/cjs/extensible-areas/generic-component/enums.js +0 -9
  52. package/dist/cjs/extensible-areas/generic-component/enums.js.map +0 -1
  53. package/dist/cjs/extensible-areas/generic-component/index.d.ts +0 -2
  54. package/dist/cjs/extensible-areas/generic-component/index.js +0 -6
  55. package/dist/cjs/extensible-areas/generic-component/index.js.map +0 -1
  56. package/dist/cjs/extensible-areas/generic-component/types.d.ts +0 -7
  57. package/dist/cjs/extensible-areas/generic-component/types.js.map +0 -1
  58. /package/dist/cjs/extensible-areas/{generic-component → generic-content-item}/types.js +0 -0
package/README.md CHANGED
@@ -97,6 +97,7 @@ That being said, here are the extensible areas we have so far:
97
97
  - Action Button Dropdown Items (option, separator)
98
98
  - Audio settings dropdown items (option, separator)
99
99
  - Camera settings dropdown items (option, separator)
100
+ - Options settings dropdown items (option, separator)
100
101
  - Nav bar items (button, info)
101
102
  - Presentation dropdown items (option, separator)
102
103
  - Presentation toolbar items (button, separator, spinner)
@@ -104,7 +105,7 @@ That being said, here are the extensible areas we have so far:
104
105
  - User list dropdown items (option, separator)
105
106
  - User list item additional information (item, label)
106
107
  - Floating window item (floatingWindow)
107
- - Generic component (genericComponent)
108
+ - Generic Content (main, sidekick)
108
109
 
109
110
  Mind that no plugin will interfere into another's extensible area. So feel free to set whatever you need into a certain plugin with no worries.
110
111
 
@@ -237,6 +238,9 @@ One other thing is that the type of the return is precisely the same type requir
237
238
  - external-video:
238
239
  - volume:
239
240
  - set: this function will set the external video volume to a certain number between 0 and 1 (that is 0% and);
241
+ - sidekick-options-container:
242
+ - open: this function will open the sidekick options panel automatically;
243
+ - close: this function will close the sidekick options panel automatically (and also the sidebar content if open, to avoid inconsistencies in ui);
240
244
 
241
245
  See usage ahead:
242
246
 
@@ -112,7 +112,7 @@ var BbbPluginSdk = /** @class */ (function () {
112
112
  setUserCameraDropdownItems: function () { return []; },
113
113
  setUserListItemAdditionalInformation: function () { return []; },
114
114
  setFloatingWindows: function () { return []; },
115
- setGenericComponents: function () { return []; },
115
+ setGenericContentItems: function () { return []; },
116
116
  mapOfPushEntryFunctions: {
117
117
  '': function () { },
118
118
  },
@@ -1 +1 @@
1
- {"version":3,"file":"BbbPluginSdk.js","sourceRoot":"","sources":["../../../../src/core/api/BbbPluginSdk.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,+BAAkC;AAOlC,kDAA4D;AAO5D,uDAAwD;AAQxD,kDAAiE;AACjE,gGAEgF;AAChF,wFAEwE;AACxE,oFAA+F;AAC/F,gF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E;gBAChC,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,AA3GD,IA2GC;AA3GqB,oCAAY"}
@@ -23,7 +23,7 @@ import { GetJoinUrlFunction } from '../auxiliary/join-url/types';
23
23
  import { UsePluginSettingsFunction } from '../../data-consumption/domain/settings/plugin-settings/types';
24
24
  import { UseLoadedChatMessagesFunction } from '../../data-consumption/domain/chat/loaded-chat-messages/types';
25
25
  import { UseTalkingIndicatorFunction } from '../../data-consumption/domain/user-voice/talking-indicator/types';
26
- import { GenericComponentInterface } from '../../extensible-areas/generic-component/types';
26
+ import { GenericContentInterface } from '../../extensible-areas/generic-content-item/types';
27
27
  import { UseUiDataFunction } from '../../ui-data-hooks/types';
28
28
  import { UseMeetingFunction } from '../../data-consumption/domain/meeting/from-core/types';
29
29
  export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarInterface[]) => string[];
@@ -37,7 +37,7 @@ export type SetOptionsDropdownItems = (optionsDropdownItem: OptionsDropdownInter
37
37
  export type SetCameraSettingsDropdownItems = (cameraSettingsDropdownItem: CameraSettingsDropdownInterface[]) => string[];
38
38
  export type SetUserCameraDropdownItems = (userCameraDropdownItem: UserCameraDropdownInterface[]) => string[];
39
39
  export type SetUserListItemAdditionalInformation = (userListItemAdditionalInformation: UserListItemAdditionalInformationInterface[]) => string[];
40
- export type SetGenericComponents = (genericComponents: GenericComponentInterface[]) => string[];
40
+ export type SetGenericContentItems = (genericContents: GenericContentInterface[]) => string[];
41
41
  /**
42
42
  * Object that makes plugin hooks and extensible area setters available for developers to use.
43
43
  */
@@ -55,7 +55,7 @@ export interface PluginApi {
55
55
  setUserCameraDropdownItems: SetUserCameraDropdownItems;
56
56
  setUserListItemAdditionalInformation: SetUserListItemAdditionalInformation;
57
57
  setFloatingWindows: SetFloatingWindows;
58
- setGenericComponents: SetGenericComponents;
58
+ setGenericContentItems: SetGenericContentItems;
59
59
  /**
60
60
  * Returns an object containing the data on the current presentation being displayed
61
61
  * in the presentation area, and its current page.
@@ -11,7 +11,8 @@ export declare enum DataChannelPushEntryFunctionUserRole {
11
11
  export declare enum DataChannelHooks {
12
12
  DATA_CHANNEL_BUILDER = "Hooks::DataChannelBuilder",
13
13
  DATA_CHANNEL_RESET = "Hooks::DataChannelReset",
14
- DATA_CHANNEL_DELETE = "Hooks::DataChannelDelete"
14
+ DATA_CHANNEL_DELETE = "Hooks::DataChannelDelete",
15
+ DATA_CHANNEL_REPLACE = "Hooks::DataChannelReplace"
15
16
  }
16
17
  export declare enum DataChannelTypes {
17
18
  All_ITEMS = "Hooks::DataChannel::AllItems",
@@ -18,6 +18,7 @@ var DataChannelHooks;
18
18
  DataChannelHooks["DATA_CHANNEL_BUILDER"] = "Hooks::DataChannelBuilder";
19
19
  DataChannelHooks["DATA_CHANNEL_RESET"] = "Hooks::DataChannelReset";
20
20
  DataChannelHooks["DATA_CHANNEL_DELETE"] = "Hooks::DataChannelDelete";
21
+ DataChannelHooks["DATA_CHANNEL_REPLACE"] = "Hooks::DataChannelReplace";
21
22
  })(DataChannelHooks || (exports.DataChannelHooks = DataChannelHooks = {}));
22
23
  var DataChannelTypes;
23
24
  (function (DataChannelTypes) {
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-channel/enums.ts"],"names":[],"mappings":";;;AAAA,OAAO;AACP;;;;GAIG;AACH,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAC9C,+DAAuB,CAAA;IACvB,+DAAuB,CAAA;IACvB,yDAAiB,CAAA;AACnB,CAAC,EAJW,oCAAoC,oDAApC,oCAAoC,QAI/C;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,sEAAkD,CAAA;IAClD,kEAA8C,CAAA;IAC9C,oEAAgD,CAAA;AAClD,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,8DAA0C,CAAA;IAC1C,8DAA0C,CAAA;IAC1C,kEAA8C,CAAA;AAChD,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-channel/enums.ts"],"names":[],"mappings":";;;AAAA,OAAO;AACP;;;;GAIG;AACH,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAC9C,+DAAuB,CAAA;IACvB,+DAAuB,CAAA;IACvB,yDAAiB,CAAA;AACnB,CAAC,EAJW,oCAAoC,oDAApC,oCAAoC,QAI/C;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,sEAAkD,CAAA;IAClD,kEAA8C,CAAA;IAC9C,oEAAgD,CAAA;IAChD,sEAAkD,CAAA;AACpD,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,8DAA0C,CAAA;IAC1C,8DAA0C,CAAA;IAC1C,kEAA8C,CAAA;AAChD,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
@@ -9,6 +9,7 @@ exports.useDataChannelGeneral = (function (channelName, subChannelName, pluginNa
9
9
  var _a = (0, react_1.useState)({ loading: true }), data = _a[0], setData = _a[1];
10
10
  var _b = (0, react_1.useState)(), pushEntryFunction = _b[0], setPushEntryFunction = _b[1];
11
11
  var deleteEntryFunction = function (objectToDelete) { return (0, utils_1.deleteEntryFunctionUtil)(objectToDelete, channelName, subChannelName, pluginName); };
12
+ var replaceEntryFunction = function (entryId, payloadJson) { return (0, utils_1.replaceEntryFunctionUtil)(entryId, channelName, subChannelName, pluginName, payloadJson); };
12
13
  var channelIdentifier = (0, utils_1.createChannelIdentifier)(channelName, subChannelName, pluginName);
13
14
  var handleDataChange = (function (customEvent) {
14
15
  var eventDetail = customEvent.detail;
@@ -50,6 +51,11 @@ exports.useDataChannelGeneral = (function (channelName, subChannelName, pluginNa
50
51
  window.removeEventListener(channelIdentifier, handleDataChange);
51
52
  };
52
53
  }, []);
53
- return [data, pushEntryFunction, deleteEntryFunction];
54
+ return [
55
+ data,
56
+ pushEntryFunction,
57
+ deleteEntryFunction,
58
+ replaceEntryFunction,
59
+ ];
54
60
  });
55
61
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data-channel/hooks.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAY5C,qCAEsB;AAKtB,iCAA6D;AAC7D,iCAA2E;AAE9D,QAAA,qBAAqB,GAAG,CAAC,UACpC,WAAmB,EAAE,cAAsB,EAC3C,UAAkB,EAAE,SAAoB,EACxC,eAAiC;IAE3B,IAAA,KAAkB,IAAA,gBAAQ,EAC9B,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,EAFM,IAAI,QAAA,EAAE,OAAO,QAEnB,CAAC;IACI,IAAA,KAA4C,IAAA,gBAAQ,GAAwB,EAA3E,iBAAiB,QAAA,EAAE,oBAAoB,QAAoC,CAAC;IAEnF,IAAM,mBAAmB,GAAwB,UAC/C,cAAgC,IAC7B,OAAA,IAAA,+BAAuB,EAAC,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,CAAC,EAAhF,CAAgF,CAAC;IAEtF,IAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,WAAW,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IAE3F,IAAM,gBAAgB,GAAkB,CAAC,UACvC,WAAwF;QAExF,IAAM,WAAW,GAAG,WAAW,CAAC,MAE/B,CAAC;QACF,I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iB;QACjB,mBAAmB;QACnB,oBAAoB;KACrB,CAAC;AACJ,CAAC,CAAiC,CAAC"}
@@ -23,6 +23,11 @@ export type ObjectTo = ToUserId | ToRole;
23
23
  export type ObjectToDelete = typeof RESET_DATA_CHANNEL | string;
24
24
  export type PushEntryFunction<T = object> = (objectToBePushed: T, receivers?: ObjectTo[]) => void;
25
25
  export type DeleteEntryFunction = (objectToDelete: ObjectToDelete[]) => void;
26
+ export type ReplaceEntryFunction<T = object> = (entryId: string, payloadJson: T) => void;
27
+ export interface ReplaceEntryFunctionArguments<T> {
28
+ entryId: string;
29
+ payloadJson: T;
30
+ }
26
31
  export interface MapOfPushEntryFunctions {
27
32
  [key: string]: PushEntryFunction;
28
33
  }
@@ -39,10 +44,12 @@ export interface DataChannelEntryResponseType<T> {
39
44
  export type UseDataChannelFunctionFromPluginApi = <T>(channelName: string, dataChannelType?: DataChannelTypes, subChannelName?: string) => [
40
45
  GraphqlResponseWrapper<DataChannelEntryResponseType<T>[]>,
41
46
  PushEntryFunction<T>,
42
- DeleteEntryFunction
47
+ DeleteEntryFunction,
48
+ ReplaceEntryFunction<T>
43
49
  ];
44
50
  export type UseDataChannelStaticFunction = <T>(channelName: string, subChannelName: string, pluginName: string, pluginApi: PluginApi, dataChannelType: DataChannelTypes) => [
45
51
  GraphqlResponseWrapper<DataChannelEntryResponseType<T>[]>,
46
52
  PushEntryFunction<T>?,
47
- DeleteEntryFunction?
53
+ DeleteEntryFunction?,
54
+ ReplaceEntryFunction<T>?
48
55
  ];
@@ -3,3 +3,4 @@ import { GraphqlResponseWrapper } from '../core/types';
3
3
  export declare const createChannelIdentifier: (channelName: string, subChannelName: string, pluginName: string) => string;
4
4
  export declare const formatResponseForPubSubOrKeyValue: <T>(dataResult: GraphqlResponseWrapper<DataChannelEntryResponseType<T>[]>) => GraphqlResponseWrapper<DataChannelEntryResponseType<T>>;
5
5
  export declare const deleteEntryFunctionUtil: (objectsToDelete: ObjectToDelete[], channelName: string, subChannelName: string, pluginName: string) => void;
6
+ export declare const replaceEntryFunctionUtil: <T>(entryId: string, channelName: string, subChannelName: string, pluginName: string, newPayloadJson: T) => void;
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.deleteEntryFunctionUtil = exports.formatResponseForPubSubOrKeyValue = exports.createChannelIdentifier = void 0;
14
+ exports.replaceEntryFunctionUtil = exports.deleteEntryFunctionUtil = exports.formatResponseForPubSubOrKeyValue = exports.createChannelIdentifier = void 0;
15
15
  var enum_1 = require("../core/enum");
16
16
  var enums_1 = require("./enums");
17
17
  var constants_1 = require("./constants");
@@ -42,4 +42,17 @@ var deleteEntryFunctionUtil = function (objectsToDelete, channelName, subChannel
42
42
  });
43
43
  };
44
44
  exports.deleteEntryFunctionUtil = deleteEntryFunctionUtil;
45
+ var replaceEntryFunctionUtil = function (entryId, channelName, subChannelName, pluginName, newPayloadJson) {
46
+ window.dispatchEvent(new CustomEvent(enum_1.HookEvents.UPDATED, {
47
+ detail: {
48
+ hook: enums_1.DataChannelHooks.DATA_CHANNEL_REPLACE,
49
+ hookArguments: { channelName: channelName, pluginName: pluginName, subChannelName: subChannelName },
50
+ data: {
51
+ entryId: entryId,
52
+ payloadJson: newPayloadJson,
53
+ },
54
+ },
55
+ }));
56
+ };
57
+ exports.replaceEntryFunctionUtil = replaceEntryFunctionUtil;
45
58
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/data-channel/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,qCAEsB;AAKtB,iCAA2C;AAC3C,yCAAiD;AAE1C,IAAM,uBAAuB,GAAG,UAAC,WAAmB,EAAE,cAAsB,EAAE,UAAkB,IAAK,OAAA,UAAG,WAAW,eAAK,cAAc,eAAK,UAAU,CAAE,EAAlD,CAAkD,CAAC;AAAlJ,QAAA,uBA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AEjB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAAwD,iBAAU,CAAC,OAAO,EAAE;QACzF,MAAM,EAAE;YACN,IAAI,EAAE,wBAAgB,CAAC,oBAAoB;YAC3C,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE,cAAc,gBAAA,EAAE;YAC1D,IAAI,EAAE;gBACJ,OAAO,SAAA;gBACP,WAAW,EAAE,cAAc;aAC5B;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,wBAAwB,4BAmBnC"}
@@ -3,7 +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
+ import { GenericContentType } from './generic-content-item/enums';
7
7
  import { NavBarItemType } from './nav-bar-item/enums';
8
8
  import { OptionsDropdownItemType } from './options-dropdown-item/enums';
9
9
  import { PresentationDropdownItemType } from './presentation-dropdown-item/enums';
@@ -11,7 +11,7 @@ import { PresentationToolbarItemType } from './presentation-toolbar-item/enums';
11
11
  import { UserCameraDropdownItemType } from './user-camera-dropdown-item/enums';
12
12
  import { UserListDropdownItemType } from './user-list-dropdown-item/enums';
13
13
  import { UserListItemAdditionalInformationType } from './user-list-item-additional-information/enums';
14
- type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType | GenericComponentType;
14
+ type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType | GenericContentType;
15
15
  export interface PluginProvidedUiItemDescriptor {
16
16
  /** Defined by BigBlueButton Plugin Engine. */
17
17
  id: string;
@@ -0,0 +1,43 @@
1
+ import { GenericContentType } from './enums';
2
+ import { GenericContentInterface, GenericContentMainAreaProps, GenericContentSidekickAreaProps } from './types';
3
+ export declare class GenericContentMainArea implements GenericContentInterface {
4
+ id: string;
5
+ type: GenericContentType;
6
+ contentFunction: (element: HTMLElement) => void;
7
+ /**
8
+ * Returns an object that when used in the setter as a generic content will be rendered
9
+ * over the meeting main presentation.
10
+ *
11
+ * @param contentFunction - function that gives the html element to render the content of
12
+ * the generic component
13
+ *
14
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
15
+ */
16
+ constructor({ contentFunction, }: GenericContentMainAreaProps);
17
+ setItemId: (id: string) => void;
18
+ }
19
+ export declare class GenericContentSidekickArea implements GenericContentInterface {
20
+ id: string;
21
+ type: GenericContentType;
22
+ name: string;
23
+ section: string;
24
+ buttonIcon: string;
25
+ contentFunction: (element: HTMLElement) => void;
26
+ /**
27
+ * Returns an object that when used in the setter as a generic content will be rendered
28
+ * in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
29
+ * which is added to the sidebar navigation and, when clicked, toggles the rendering of the
30
+ * given generic sidekick content.
31
+ *
32
+ * @param contentFunction - function that gives the html element to render the content of
33
+ * the generic component
34
+ * @param name - the label of the associated sidebar navigation button
35
+ * @param section - section name under which the associated sidebar navigation button will be
36
+ * displayed
37
+ * @param buttonIcon - the icon of the associated sidebar navigation button
38
+ *
39
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
40
+ */
41
+ constructor({ contentFunction, name, section, buttonIcon, }: GenericContentSidekickAreaProps);
42
+ setItemId: (id: string) => void;
43
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericContentSidekickArea = exports.GenericContentMainArea = void 0;
4
+ var enums_1 = require("./enums");
5
+ // GenericContent Extensible Area
6
+ var GenericContentMainArea = /** @class */ (function () {
7
+ /**
8
+ * Returns an object that when used in the setter as a generic content will be rendered
9
+ * over the meeting main presentation.
10
+ *
11
+ * @param contentFunction - function that gives the html element to render the content of
12
+ * the generic component
13
+ *
14
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
15
+ */
16
+ function GenericContentMainArea(_a) {
17
+ var contentFunction = _a.contentFunction;
18
+ var _this = this;
19
+ this.id = '';
20
+ this.setItemId = function (id) {
21
+ _this.id = id;
22
+ };
23
+ this.contentFunction = contentFunction;
24
+ this.type = enums_1.GenericContentType.MAIN_AREA;
25
+ }
26
+ return GenericContentMainArea;
27
+ }());
28
+ exports.GenericContentMainArea = GenericContentMainArea;
29
+ var GenericContentSidekickArea = /** @class */ (function () {
30
+ /**
31
+ * Returns an object that when used in the setter as a generic content will be rendered
32
+ * in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
33
+ * which is added to the sidebar navigation and, when clicked, toggles the rendering of the
34
+ * given generic sidekick content.
35
+ *
36
+ * @param contentFunction - function that gives the html element to render the content of
37
+ * the generic component
38
+ * @param name - the label of the associated sidebar navigation button
39
+ * @param section - section name under which the associated sidebar navigation button will be
40
+ * displayed
41
+ * @param buttonIcon - the icon of the associated sidebar navigation button
42
+ *
43
+ * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
44
+ */
45
+ function GenericContentSidekickArea(_a) {
46
+ var contentFunction = _a.contentFunction, name = _a.name, section = _a.section, buttonIcon = _a.buttonIcon;
47
+ var _this = this;
48
+ this.id = '';
49
+ this.name = '';
50
+ this.section = '';
51
+ this.buttonIcon = '';
52
+ this.setItemId = function (id) {
53
+ _this.id = id;
54
+ };
55
+ this.contentFunction = contentFunction;
56
+ this.name = name;
57
+ this.section = section;
58
+ this.buttonIcon = buttonIcon;
59
+ this.type = enums_1.GenericContentType.SIDEKICK_AREA;
60
+ }
61
+ return GenericContentSidekickArea;
62
+ }());
63
+ exports.GenericContentSidekickArea = GenericContentSidekickArea;
64
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAaE;;;;;;;;;;;;;;OAcG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA;QAD5C,iBAQC;QAnCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QA6BxB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QATA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;IAC/C,CAAC;IAKH,iCAAC;AAAD,CAAC,AAzCD,IAyCC;AAzCY,gEAA0B"}
@@ -0,0 +1,4 @@
1
+ export declare enum GenericContentType {
2
+ MAIN_AREA = "GENERIC_CONTENT_MAIN_AREA",
3
+ SIDEKICK_AREA = "GENERIC_CONTENT_SIDEKICK_AREA"
4
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericContentType = void 0;
4
+ // Generic Component types:
5
+ var GenericContentType;
6
+ (function (GenericContentType) {
7
+ GenericContentType["MAIN_AREA"] = "GENERIC_CONTENT_MAIN_AREA";
8
+ GenericContentType["SIDEKICK_AREA"] = "GENERIC_CONTENT_SIDEKICK_AREA";
9
+ })(GenericContentType || (exports.GenericContentType = GenericContentType = {}));
10
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/enums.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AAC3B,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;IACvC,qEAA+C,CAAA;AACjD,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
@@ -0,0 +1,2 @@
1
+ export { GenericContentMainArea, GenericContentSidekickArea, } from './component';
2
+ export { GenericContentInterface, } from './types';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericContentSidekickArea = exports.GenericContentMainArea = void 0;
4
+ var component_1 = require("./component");
5
+ Object.defineProperty(exports, "GenericContentMainArea", { enumerable: true, get: function () { return component_1.GenericContentMainArea; } });
6
+ Object.defineProperty(exports, "GenericContentSidekickArea", { enumerable: true, get: function () { return component_1.GenericContentSidekickArea; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAGqB;AAFnB,mHAAA,sBAAsB,OAAA;AACtB,uHAAA,0BAA0B,OAAA"}
@@ -0,0 +1,12 @@
1
+ import { PluginProvidedUiItemDescriptor } from '../base';
2
+ export interface GenericContentInterface extends PluginProvidedUiItemDescriptor {
3
+ }
4
+ export interface GenericContentMainAreaProps {
5
+ contentFunction: (element: HTMLElement) => void;
6
+ }
7
+ export interface GenericContentSidekickAreaProps {
8
+ contentFunction: (element: HTMLElement) => void;
9
+ name: string;
10
+ section: string;
11
+ buttonIcon: string;
12
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/types.ts"],"names":[],"mappings":""}
@@ -10,4 +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';
13
+ export * from './generic-content-item';
@@ -26,5 +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
+ __exportStar(require("./generic-content-item"), exports);
30
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;AAClC,sDAAoC"}
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,yDAAuC"}
@@ -10,4 +10,8 @@ export declare const uiCommands: {
10
10
  set: (setExternalVideoVolumeCommandArguments: import("./external-video/volume/types").SetExternalVideoVolumeCommandArguments) => void;
11
11
  };
12
12
  };
13
+ sidekickOptionsContainer: {
14
+ open: () => void;
15
+ close: () => 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("./sidekick-options-container/commands");
6
7
  exports.uiCommands = {
7
8
  chat: commands_1.chat,
8
9
  externalVideo: commands_2.externalVideo,
10
+ sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
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,kEAAiF;AAEpE,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;CACzB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const sidekickOptionsContainer: {
2
+ /**
3
+ * Opens the sidekick container automatically.
4
+ */
5
+ open: () => void;
6
+ /**
7
+ * Closes the sidekick container (and sidebard content panel) automatically.
8
+ */
9
+ close: () => void;
10
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sidekickOptionsContainer = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.sidekickOptionsContainer = {
6
+ /**
7
+ * Opens the sidekick container automatically.
8
+ */
9
+ open: function () {
10
+ window.dispatchEvent(new Event(enums_1.SidekickOptionsContainerEnum.OPEN));
11
+ },
12
+ /**
13
+ * Closes the sidekick container (and sidebard content panel) automatically.
14
+ */
15
+ close: function () {
16
+ window.dispatchEvent(new Event(enums_1.SidekickOptionsContainerEnum.CLOSE));
17
+ },
18
+ };
19
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-options-container/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAE1C,QAAA,wBAAwB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE;QACJ,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,EAAE;QACL,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,oCAA4B,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum SidekickOptionsContainerEnum {
2
+ OPEN = "OPEN_SIDEKICK_OPTIONS_CONTAINER_COMMAND",
3
+ CLOSE = "CLOSE_SIDEKICK_OPTIONS_CONTAINER_COMMAND"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SidekickOptionsContainerEnum = void 0;
4
+ var SidekickOptionsContainerEnum;
5
+ (function (SidekickOptionsContainerEnum) {
6
+ SidekickOptionsContainerEnum["OPEN"] = "OPEN_SIDEKICK_OPTIONS_CONTAINER_COMMAND";
7
+ SidekickOptionsContainerEnum["CLOSE"] = "CLOSE_SIDEKICK_OPTIONS_CONTAINER_COMMAND";
8
+ })(SidekickOptionsContainerEnum || (exports.SidekickOptionsContainerEnum = SidekickOptionsContainerEnum = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/sidekick-options-container/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,gFAAgD,CAAA;IAChD,kFAAkD,CAAA;AACpD,CAAC,EAHW,4BAA4B,4CAA5B,4BAA4B,QAGvC"}
@@ -0,0 +1,4 @@
1
+ export interface UiCommandsSidekickOptionsContainerObject {
2
+ open: () => void;
3
+ close: () => void;
4
+ }
@@ -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/sidekick-options-container/types.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  import { UiCommandsChatObject } from './chat/types';
2
2
  import { UiCommandsExternalVideoObject } from './external-video/types';
3
+ import { UiCommandsSidekickOptionsContainerObject } from './sidekick-options-container/types';
3
4
  export interface UiCommands {
4
5
  chat: UiCommandsChatObject;
5
6
  externalVideo: UiCommandsExternalVideoObject;
7
+ sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
6
8
  }
@@ -6,5 +6,5 @@ export declare enum UiLayouts {
6
6
  EXTERNAL_VIDEO = "EXTERNAL_VIDEO",
7
7
  SCREEN_SHARE = "SCREEN_SHARE",
8
8
  WHITEBOARD = "WHITEBOARD",
9
- GENERIC_COMPONENT = "GENERIC_COMPONENT"
9
+ GENERIC_CONTENT = "GENERIC_CONTENT"
10
10
  }
@@ -11,6 +11,6 @@ var UiLayouts;
11
11
  UiLayouts["EXTERNAL_VIDEO"] = "EXTERNAL_VIDEO";
12
12
  UiLayouts["SCREEN_SHARE"] = "SCREEN_SHARE";
13
13
  UiLayouts["WHITEBOARD"] = "WHITEBOARD";
14
- UiLayouts["GENERIC_COMPONENT"] = "GENERIC_COMPONENT";
14
+ UiLayouts["GENERIC_CONTENT"] = "GENERIC_CONTENT";
15
15
  })(UiLayouts || (exports.UiLayouts = UiLayouts = {}));
16
16
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-data-hooks/layout/presentation-area/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAEX;AAFD,WAAY,gCAAgC;IAC1C,uEAAmC,CAAA;AACrC,CAAC,EAFW,gCAAgC,gDAAhC,gCAAgC,QAE3C;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,0CAA6B,CAAA;IAC7B,sCAAyB,CAAA;IACzB,oDAAuC,CAAA;AACzC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-data-hooks/layout/presentation-area/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAEX;AAFD,WAAY,gCAAgC;IAC1C,uEAAmC,CAAA;AACrC,CAAC,EAFW,gCAAgC,gDAAhC,gCAAgC,QAE3C;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,0CAA6B,CAAA;IAC7B,sCAAyB,CAAA;IACzB,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
@@ -2,7 +2,7 @@ import { LayoutPresentatioAreaUiDataNames, UiLayouts } from './enums';
2
2
  export type LayoutPresentationAreaUiDataPayloads = {
3
3
  [LayoutPresentatioAreaUiDataNames.CURRENT_ELEMENT]: {
4
4
  currentElement?: UiLayouts;
5
- genericComponentId?: string;
5
+ genericContentId?: string;
6
6
  isOpen: boolean;
7
7
  }[];
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.51",
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",
@@ -1,17 +0,0 @@
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 as a generic component
9
- *
10
- * @param contentFunction - function that gives the html element to render the content of
11
- * the generic component
12
- *
13
- * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
14
- */
15
- constructor({ contentFunction, }: GenericComponentProps);
16
- setItemId: (id: string) => void;
17
- }
@@ -1,28 +0,0 @@
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 as a generic component
9
- *
10
- * @param contentFunction - function that gives the html element to render the content of
11
- * the generic component
12
- *
13
- * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
14
- */
15
- function GenericComponent(_a) {
16
- var contentFunction = _a.contentFunction;
17
- var _this = this;
18
- this.id = '';
19
- this.setItemId = function (id) {
20
- _this.id = "GenericComponent_".concat(id);
21
- };
22
- this.contentFunction = contentFunction;
23
- this.type = enums_1.GenericComponentType.CONTAINER;
24
- }
25
- return GenericComponent;
26
- }());
27
- exports.GenericComponent = GenericComponent;
28
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
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;;;;;;;OAOG;IACH,0BAAY,EAEY;YADtB,eAAe,qBAAA;QADjB,iBAKC;QAnBD,OAAE,GAAW,EAAE,CAAC;QAqBhB,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,AAzBD,IAyBC;AAzBY,4CAAgB"}
@@ -1,3 +0,0 @@
1
- export declare enum GenericComponentType {
2
- CONTAINER = "GENERIC_COMPONENT"
3
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GenericComponentType = void 0;
4
- // Generic Component types:
5
- var GenericComponentType;
6
- (function (GenericComponentType) {
7
- GenericComponentType["CONTAINER"] = "GENERIC_COMPONENT";
8
- })(GenericComponentType || (exports.GenericComponentType = GenericComponentType = {}));
9
- //# sourceMappingURL=enums.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/enums.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AAC3B,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,uDAA+B,CAAA;AACjC,CAAC,EAFW,oBAAoB,oCAApB,oBAAoB,QAE/B"}
@@ -1,2 +0,0 @@
1
- export { GenericComponent, } from './component';
2
- export { GenericComponentInterface, } from './types';
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/index.ts"],"names":[],"mappings":";;;AAAA,yCAEqB;AADnB,6GAAA,gBAAgB,OAAA"}
@@ -1,7 +0,0 @@
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;
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-component/types.ts"],"names":[],"mappings":""}