bigbluebutton-html-plugin-sdk 0.0.72 → 0.1.2
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.
- package/README.md +3 -1
- package/dist/cjs/core/api/BbbPluginSdk.js +6 -0
- package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
- package/dist/cjs/core/api/types.d.ts +11 -1
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.d.ts +2 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.js +6 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/subscriptions.js.map +1 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.d.ts +20 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.js +3 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.js.map +1 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.d.ts +3 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js +60 -0
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.js.map +1 -0
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.js +3 -3
- package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.js.map +1 -1
- package/dist/cjs/extensible-areas/apps-gallery-item/component.d.ts +12 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/component.js +26 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/enums.d.ts +3 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/enums.js +8 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/index.d.ts +3 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/index.js +8 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/types.d.ts +11 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/types.js +3 -0
- package/dist/cjs/extensible-areas/apps-gallery-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/base.d.ts +2 -1
- package/dist/cjs/extensible-areas/index.d.ts +1 -0
- package/dist/cjs/extensible-areas/index.js +1 -0
- package/dist/cjs/extensible-areas/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,6 +172,7 @@ That being said, here are the extensible areas we have so far:
|
|
|
172
172
|
|
|
173
173
|
- Action bar items (button, separator)
|
|
174
174
|
- Action Button Dropdown Items (option, separator)
|
|
175
|
+
- Apps Gallery Items (entry)
|
|
175
176
|
- Audio settings dropdown items (option, separator)
|
|
176
177
|
- Camera settings dropdown items (option, separator)
|
|
177
178
|
- Options settings dropdown items (option, separator)
|
|
@@ -188,10 +189,11 @@ That being said, here are the extensible areas we have so far:
|
|
|
188
189
|
|
|
189
190
|
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.
|
|
190
191
|
|
|
191
|
-
###
|
|
192
|
+
### Auxiliar functions:
|
|
192
193
|
|
|
193
194
|
- `getSessionToken`: returns the user session token located on the user's URL.
|
|
194
195
|
- `getJoinUrl`: returns the join url associated with the parameters passed as an argument. Since it fetches the BigBlueButton API, this getter method is asynchronous.
|
|
196
|
+
- `useLocaleMessages`: returns the messages to be used in internationalization functions (recommend to use `react-intl`, as example, refer to official plugins)
|
|
195
197
|
|
|
196
198
|
### Realtime data consumption
|
|
197
199
|
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.BbbPluginSdk = void 0;
|
|
4
7
|
/* eslint-disable no-console */
|
|
@@ -24,6 +27,7 @@ var commands_2 = require("../../server-commands/commands");
|
|
|
24
27
|
var hooks_13 = require("../../learning-analytics-dashboard/hooks");
|
|
25
28
|
var utils_1 = require("../../remote-data/utils");
|
|
26
29
|
var hooks_14 = require("../../event-persistence/hooks");
|
|
30
|
+
var useLocaleMessages_1 = __importDefault(require("../auxiliary/plugin-information/locale-messages/useLocaleMessages"));
|
|
27
31
|
/**
|
|
28
32
|
* Class responsible for either initialize or get the PluginApi
|
|
29
33
|
*
|
|
@@ -73,6 +77,7 @@ var BbbPluginSdk = /** @class */ (function () {
|
|
|
73
77
|
pluginApi.sendGenericDataForLearningAnalyticsDashboard = function (data) { return (0, hooks_13.sendGenericDataForLearningAnalyticsDashboard)(data, pluginName); };
|
|
74
78
|
pluginApi.getRemoteData = function (dataSourceName) { return (0, utils_1.getRemoteData)(dataSourceName, pluginName); };
|
|
75
79
|
pluginApi.persistEvent = function (eventName, payload) { return (0, hooks_14.persistEventFunctionWrapper)(pluginName, eventName, payload); };
|
|
80
|
+
pluginApi.useLocaleMessages = function (fetchConfigs) { return (0, useLocaleMessages_1.default)({ pluginApi: pluginApi, fetchConfigs: fetchConfigs }); };
|
|
76
81
|
}
|
|
77
82
|
else {
|
|
78
83
|
throw new Error('Plugin name not set');
|
|
@@ -115,6 +120,7 @@ var BbbPluginSdk = /** @class */ (function () {
|
|
|
115
120
|
setActionButtonDropdownItems: function () { return []; },
|
|
116
121
|
setActionsBarItems: function () { return []; },
|
|
117
122
|
setAudioSettingsDropdownItems: function () { return []; },
|
|
123
|
+
setAppsGalleryItems: function () { return []; },
|
|
118
124
|
setPresentationDropdownItems: function () { return []; },
|
|
119
125
|
setNavBarItems: function () { return []; },
|
|
120
126
|
setScreenshareHelperItems: function () { return []; },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BbbPluginSdk.js","sourceRoot":"","sources":["../../../../src/core/api/BbbPluginSdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BbbPlugin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AmIC;AAnIqB,oCAAY"}
|
|
@@ -29,14 +29,16 @@ import { UseMeetingFunction } from '../../data-consumption/domain/meeting/from-c
|
|
|
29
29
|
import { ServerCommands } from '../../server-commands/types';
|
|
30
30
|
import { SendGenericDataForLearningAnalyticsDashboard } from '../../learning-analytics-dashboard/types';
|
|
31
31
|
import { UseUserCameraDomElementsFunction } from '../../dom-element-manipulation/user-camera/types';
|
|
32
|
-
import { ScreenshareHelperInterface, UserCameraHelperInterface } from '../../extensible-areas';
|
|
32
|
+
import { AppsGalleryInterface, ScreenshareHelperInterface, UserCameraHelperInterface } from '../../extensible-areas';
|
|
33
33
|
import { GetDataSource } from '../../remote-data/types';
|
|
34
34
|
import { PersistEventFunction } from '../../event-persistence/types';
|
|
35
|
+
import { UseLocaleMessagesFunction } from '../auxiliary/plugin-information/locale-messages/types';
|
|
35
36
|
export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarInterface[]) => string[];
|
|
36
37
|
export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownInterface[]) => string[];
|
|
37
38
|
export type SetActionButtonDropdownItems = (actionButtonDropdownInterface: ActionButtonDropdownInterface[]) => string[];
|
|
38
39
|
export type SetActionsBarItems = (actionsBarItems: ActionsBarInterface[]) => string[];
|
|
39
40
|
export type SetAudioSettingsDropdownItems = (audioSettingsDropdownItem: AudioSettingsDropdownInterface[]) => string[];
|
|
41
|
+
export type SetAppsGalleryItems = (appsGalleryItems: AppsGalleryInterface[]) => string[];
|
|
40
42
|
export type SetPresentationDropdownItems = (userListDropdownItem: PresentationDropdownInterface[]) => string[];
|
|
41
43
|
export type SetNavBarItems = (navBarItem: NavBarInterface[]) => string[];
|
|
42
44
|
export type SetScreenshareHelperItems = (screenshareHelperItem: ScreenshareHelperInterface[]) => string[];
|
|
@@ -56,6 +58,7 @@ export interface PluginApi {
|
|
|
56
58
|
setActionButtonDropdownItems: SetActionButtonDropdownItems;
|
|
57
59
|
setActionsBarItems: SetActionsBarItems;
|
|
58
60
|
setAudioSettingsDropdownItems: SetAudioSettingsDropdownItems;
|
|
61
|
+
setAppsGalleryItems: SetAppsGalleryItems;
|
|
59
62
|
setPresentationDropdownItems: SetPresentationDropdownItems;
|
|
60
63
|
setNavBarItems: SetNavBarItems;
|
|
61
64
|
setScreenshareHelperItems: SetScreenshareHelperItems;
|
|
@@ -186,6 +189,13 @@ export interface PluginApi {
|
|
|
186
189
|
useUserCameraDomElements?: UseUserCameraDomElementsFunction;
|
|
187
190
|
getSessionToken?: GetSessionTokenFunction;
|
|
188
191
|
getJoinUrl?: GetJoinUrlFunction;
|
|
192
|
+
/**
|
|
193
|
+
* Return messages to be used in the internacionalization functions (react-intl is recommended)
|
|
194
|
+
*
|
|
195
|
+
* @param fetchConfigs - fetch configuration object for the locale files (otional,
|
|
196
|
+
* usefull in dev environments).
|
|
197
|
+
*/
|
|
198
|
+
useLocaleMessages?: UseLocaleMessagesFunction;
|
|
189
199
|
/**
|
|
190
200
|
* Send data to the Learning analytics dashboard
|
|
191
201
|
*
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_PLUGIN_INFORMATION = void 0;
|
|
4
|
+
var GET_PLUGIN_INFORMATION = "\nsubscription GetPluginInformation {\n plugin {\n javascriptEntrypointIntegrity\n javascriptEntrypointUrl\n localesBaseUrl\n name\n }\n}\n";
|
|
5
|
+
exports.GET_PLUGIN_INFORMATION = GET_PLUGIN_INFORMATION;
|
|
6
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/subscriptions.ts"],"names":[],"mappings":";;;AAAA,IAAM,sBAAsB,GAAG,2JAS9B,CAAC;AAEO,wDAAsB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PluginApi } from 'src/core/api/types';
|
|
2
|
+
interface UseLocaleMessagesProps {
|
|
3
|
+
pluginApi: PluginApi;
|
|
4
|
+
fetchConfigs?: RequestInit;
|
|
5
|
+
}
|
|
6
|
+
interface PluginInformationResult {
|
|
7
|
+
javascriptEntrypointIntegrity: string;
|
|
8
|
+
javascriptEntrypointUrl: string;
|
|
9
|
+
localesBaseUrl: string;
|
|
10
|
+
}
|
|
11
|
+
interface GraphqlResponseWrapper {
|
|
12
|
+
plugin: PluginInformationResult[];
|
|
13
|
+
}
|
|
14
|
+
interface IntlMessages {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
messages: Record<string, string>;
|
|
17
|
+
currentLocale: string;
|
|
18
|
+
}
|
|
19
|
+
type UseLocaleMessagesFunction = (fetchConfigs?: RequestInit) => IntlMessages;
|
|
20
|
+
export { UseLocaleMessagesProps, PluginInformationResult, GraphqlResponseWrapper, IntlMessages, UseLocaleMessagesFunction, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
var React = __importStar(require("react"));
|
|
27
|
+
var ui_data_hooks_1 = require("../../../../ui-data-hooks");
|
|
28
|
+
var utils_1 = require("../../../../utils");
|
|
29
|
+
var subscriptions_1 = require("./subscriptions");
|
|
30
|
+
function useLocaleMessagesAuxiliary(_a) {
|
|
31
|
+
var pluginApi = _a.pluginApi, fetchConfigs = _a.fetchConfigs;
|
|
32
|
+
var currentLocale = pluginApi.useUiData(ui_data_hooks_1.IntlLocaleUiDataNames.CURRENT_LOCALE, {
|
|
33
|
+
locale: 'en',
|
|
34
|
+
fallbackLocale: 'en',
|
|
35
|
+
});
|
|
36
|
+
var _b = React.useState(true), loading = _b[0], setLoading = _b[1];
|
|
37
|
+
var _c = React.useState({}), messages = _c[0], setMessages = _c[1];
|
|
38
|
+
var pluginInformation = pluginApi.useCustomSubscription(subscriptions_1.GET_PLUGIN_INFORMATION).data;
|
|
39
|
+
React.useEffect(function () {
|
|
40
|
+
if (pluginInformation && pluginInformation.plugin && currentLocale.locale) {
|
|
41
|
+
var localesBaseUrl = pluginInformation.plugin[0].localesBaseUrl;
|
|
42
|
+
var locale = currentLocale.locale;
|
|
43
|
+
var localeUrl_1 = "".concat(localesBaseUrl, "/").concat(locale, ".json");
|
|
44
|
+
fetch(localeUrl_1, fetchConfigs).then(function (result) { return result.json(); }).then(function (localeMessages) {
|
|
45
|
+
setLoading(false);
|
|
46
|
+
setMessages(localeMessages);
|
|
47
|
+
}).catch(function (err) {
|
|
48
|
+
setLoading(false);
|
|
49
|
+
utils_1.pluginLogger.error("Something went wrong while trying to fetch ".concat(localeUrl_1, ": "), err);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, [pluginInformation, currentLocale]);
|
|
53
|
+
return {
|
|
54
|
+
messages: messages,
|
|
55
|
+
loading: loading,
|
|
56
|
+
currentLocale: currentLocale.locale,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.default = useLocaleMessagesAuxiliary;
|
|
60
|
+
//# sourceMappingURL=useLocaleMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocaleMessages.js","sourceRoot":"","sources":["../../../../../../src/core/auxiliary/plugin-information/locale-messages/useLocaleMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,2DAAkE;AAClE,2CAAiD;AAEjD,iDAAyD;AAEzD,SAAS,0BAA0B,CACjC,EAAmD;QAAjD,SAAS,eAAA,EAAE,YAAY,kBAAA;IAEzB,IAAM,aAAa,GAAG,SAAS,CAAC,SAAU,CAAC,qCAAqB,CAAC,cAAc,EAAE;QAC/E,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEG,IAAA,KAAwB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAA3C,OAAO,QAAA,EAAE,UAAU,QAAwB,CAAC;IAC7C,IAAA,KAA0B,KAAK,CAAC,QAAQ,CAAyB,EAAE,CAAC,EAAnE,QAAQ,QAAA,EAAE,WAAW,QAA8C,CAAC;IAEnE,IAAM,iBAAiB,GAAK,SAAS,CAAC,qBAAsB,CAClE,sCAAsB,CACvB,KAF8B,CAE7B;IAEF,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,EAAE;YACjE,IAAA,cAAc,GAAK,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,eAAhC,CAAiC;YAC/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;YACjC,IAAM,WAAS,GAAG,UAAG,cAAc,cAAI,MAAM,UAAO,CAAC;YACrD,KAAK,CAAC,WAAS,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,IAAI,EAAE,EAAb,CAAa,CAAC,CAAC,IAAI,CAAC,UAAC,cAAc;gBACjF,UAAU,CAAC,KAAK,CAAC,CAAC;gBAClB,WAAW,CAAC,cAAc,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,GAAG;gBACX,UAAU,CAAC,KAAK,CAAC,CAAC;gBAClB,oBAAY,CAAC,KAAK,CAAC,qDAA8C,WAAS,OAAI,EAAE,GAAG,CAAC,CAAC;YACvF,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IACvC,OAAO;QACL,QAAQ,UAAA;QACR,OAAO,SAAA;QACP,aAAa,EAAE,aAAa,CAAC,MAAM;KACpC,CAAC;AACJ,CAAC;AAED,kBAAe,0BAA0B,CAAC"}
|
|
@@ -13,9 +13,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.filterPluginSpecificSettings = void 0;
|
|
15
15
|
var filterPluginSpecificSettings = function (completeSettings) {
|
|
16
|
-
var _a;
|
|
17
|
-
var pluginSettings = (_a = completeSettings
|
|
18
|
-
.data) === null || _a === void 0 ? void 0 : _a.meeting_clientPluginSettings[0].settings;
|
|
16
|
+
var _a, _b;
|
|
17
|
+
var pluginSettings = (_b = (_a = completeSettings
|
|
18
|
+
.data) === null || _a === void 0 ? void 0 : _a.meeting_clientPluginSettings[0]) === null || _b === void 0 ? void 0 : _b.settings;
|
|
19
19
|
return __assign(__assign({}, completeSettings), { data: pluginSettings });
|
|
20
20
|
};
|
|
21
21
|
exports.filterPluginSpecificSettings = filterPluginSpecificSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAA4B,GAAG,UAC1C,gBAAkF;;IAElF,IAAM,cAAc,GAAG,MAAA,gBAAgB;SACpC,IAAI,0CAAE,4BAA4B,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAA4B,GAAG,UAC1C,gBAAkF;;IAElF,IAAM,cAAc,GAAG,MAAA,MAAA,gBAAgB;SACpC,IAAI,0CAAE,4BAA4B,CAAC,CAAC,CAAC,0CAAE,QAAQ,CAAC;IACnD,6BACK,gBAAgB,KACnB,IAAI,EAAE,cAAc,IACpB;AACJ,CAAC,CAAC;AATW,QAAA,4BAA4B,gCASvC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppsGalleryType } from './enums';
|
|
2
|
+
import { AppsGalleryInterface, AppsGalleryItemProps } from './types';
|
|
3
|
+
export declare class AppsGalleryEntry implements AppsGalleryInterface {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: AppsGalleryType;
|
|
7
|
+
icon: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
constructor({ id, name, icon, onClick, }: AppsGalleryItemProps);
|
|
10
|
+
setItemId(id: string): void;
|
|
11
|
+
}
|
|
12
|
+
export default AppsGalleryEntry;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppsGalleryEntry = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
var AppsGalleryEntry = /** @class */ (function () {
|
|
6
|
+
function AppsGalleryEntry(_a) {
|
|
7
|
+
var id = _a.id, name = _a.name, icon = _a.icon, onClick = _a.onClick;
|
|
8
|
+
this.id = '';
|
|
9
|
+
this.name = '';
|
|
10
|
+
this.type = enums_1.AppsGalleryType.ENTRY;
|
|
11
|
+
this.icon = '';
|
|
12
|
+
if (id) {
|
|
13
|
+
this.id = id;
|
|
14
|
+
}
|
|
15
|
+
this.name = name;
|
|
16
|
+
this.icon = icon;
|
|
17
|
+
this.onClick = onClick;
|
|
18
|
+
}
|
|
19
|
+
AppsGalleryEntry.prototype.setItemId = function (id) {
|
|
20
|
+
this.id = id;
|
|
21
|
+
};
|
|
22
|
+
return AppsGalleryEntry;
|
|
23
|
+
}());
|
|
24
|
+
exports.AppsGalleryEntry = AppsGalleryEntry;
|
|
25
|
+
exports.default = AppsGalleryEntry;
|
|
26
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/apps-gallery-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAG1C;IAWE,0BAAY,EAKW;YAJrB,EAAE,QAAA,EACF,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,OAAO,aAAA;QAdT,OAAE,GAAW,EAAE,CAAC;QAEhB,SAAI,GAAW,EAAE,CAAC;QAElB,SAAI,GAAoB,uBAAe,CAAC,KAAK,CAAC;QAE9C,SAAI,GAAW,EAAE,CAAC;QAUhB,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,oCAAS,GAAT,UAAU,EAAU;QAClB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IACH,uBAAC;AAAD,CAAC,AA5BD,IA4BC;AA5BY,4CAAgB;AA8B7B,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppsGalleryType = void 0;
|
|
4
|
+
var AppsGalleryType;
|
|
5
|
+
(function (AppsGalleryType) {
|
|
6
|
+
AppsGalleryType["ENTRY"] = "APPS_GALLERY_ENTRY";
|
|
7
|
+
})(AppsGalleryType || (exports.AppsGalleryType = AppsGalleryType = {}));
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/extensible-areas/apps-gallery-item/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,+CAA4B,CAAA;AAC9B,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppsGalleryType = exports.AppsGalleryEntry = void 0;
|
|
4
|
+
var component_1 = require("./component");
|
|
5
|
+
Object.defineProperty(exports, "AppsGalleryEntry", { enumerable: true, get: function () { return component_1.AppsGalleryEntry; } });
|
|
6
|
+
var enums_1 = require("./enums");
|
|
7
|
+
Object.defineProperty(exports, "AppsGalleryType", { enumerable: true, get: function () { return enums_1.AppsGalleryType; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensible-areas/apps-gallery-item/index.ts"],"names":[],"mappings":";;;AAAA,yCAEqB;AADnB,6GAAA,gBAAgB,OAAA;AAKlB,iCAEiB;AADf,wGAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PluginProvidedUiItemDescriptor } from '../base';
|
|
2
|
+
import { AppsGalleryType } from './enums';
|
|
3
|
+
export interface AppsGalleryInterface extends PluginProvidedUiItemDescriptor {
|
|
4
|
+
type: AppsGalleryType;
|
|
5
|
+
}
|
|
6
|
+
export interface AppsGalleryItemProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
name: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/extensible-areas/apps-gallery-item/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionButtonDropdownItemType } from './action-button-dropdown-item/enums';
|
|
2
2
|
import { ActionsBarItemType } from './actions-bar-item/enums';
|
|
3
|
+
import { AppsGalleryType } from './apps-gallery-item/enums';
|
|
3
4
|
import { AudioSettingsDropdownItemType } from './audio-settings-dropdown-item/enums';
|
|
4
5
|
import { CameraSettingsDropdownItemType } from './camera-settings-dropdown-item/enums';
|
|
5
6
|
import { FloatingWindowType } from './floating-window/enums';
|
|
@@ -13,7 +14,7 @@ import { UserCameraHelperItemType } from './user-camera-helper-item/enums';
|
|
|
13
14
|
import { UserCameraDropdownItemType } from './user-camera-dropdown-item/enums';
|
|
14
15
|
import { UserListDropdownItemType } from './user-list-dropdown-item/enums';
|
|
15
16
|
import { UserListItemAdditionalInformationType } from './user-list-item-additional-information/enums';
|
|
16
|
-
type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType | GenericContentType | ScreenshareHelperItemType | UserCameraHelperItemType;
|
|
17
|
+
type PluginProvidedUiItemType = PresentationToolbarItemType | UserListDropdownItemType | ActionButtonDropdownItemType | ActionsBarItemType | AppsGalleryType | AudioSettingsDropdownItemType | PresentationDropdownItemType | NavBarItemType | OptionsDropdownItemType | CameraSettingsDropdownItemType | UserCameraDropdownItemType | UserListItemAdditionalInformationType | FloatingWindowType | GenericContentType | ScreenshareHelperItemType | UserCameraHelperItemType;
|
|
17
18
|
export interface PluginProvidedUiItemDescriptor {
|
|
18
19
|
/** Defined by BigBlueButton Plugin Engine. */
|
|
19
20
|
id: string;
|
|
@@ -2,6 +2,7 @@ export * from './presentation-toolbar-item';
|
|
|
2
2
|
export * from './user-list-dropdown-item';
|
|
3
3
|
export * from './action-button-dropdown-item';
|
|
4
4
|
export * from './actions-bar-item';
|
|
5
|
+
export * from './apps-gallery-item';
|
|
5
6
|
export * from './audio-settings-dropdown-item';
|
|
6
7
|
export * from './presentation-dropdown-item';
|
|
7
8
|
export * from './nav-bar-item';
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./presentation-toolbar-item"), exports);
|
|
|
18
18
|
__exportStar(require("./user-list-dropdown-item"), exports);
|
|
19
19
|
__exportStar(require("./action-button-dropdown-item"), exports);
|
|
20
20
|
__exportStar(require("./actions-bar-item"), exports);
|
|
21
|
+
__exportStar(require("./apps-gallery-item"), exports);
|
|
21
22
|
__exportStar(require("./audio-settings-dropdown-item"), exports);
|
|
22
23
|
__exportStar(require("./presentation-dropdown-item"), exports);
|
|
23
24
|
__exportStar(require("./nav-bar-item"), exports);
|
|
@@ -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,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,4DAA0C;AAC1C,0EAAwD;AACxD,oDAAkC;AAClC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensible-areas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,gEAA8C;AAC9C,qDAAmC;AACnC,sDAAoC;AACpC,iEAA+C;AAC/C,+DAA6C;AAC7C,iDAA+B;AAC/B,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,4DAA0C;AAC1C,0EAAwD;AACxD,oDAAkC;AAClC,yDAAuC"}
|