bigbluebutton-html-plugin-sdk 0.0.2 → 0.0.4
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 +2 -2
- package/dist/cjs/core/getPluginApi.d.ts +3 -2
- package/dist/cjs/core/getPluginApi.js +8 -11
- package/dist/cjs/core/getPluginApi.js.map +1 -1
- package/dist/cjs/core/index.d.ts +1 -1
- package/dist/cjs/core/index.js +15 -2
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/data-consumption/hooks/index.d.ts +1 -1
- package/dist/cjs/data-consumption/hooks/index.js +5 -1
- package/dist/cjs/data-consumption/hooks/index.js.map +1 -1
- package/dist/cjs/data-consumption/hooks/presentation.d.ts +3 -3
- package/dist/cjs/data-consumption/hooks/presentation.js +9 -5
- package/dist/cjs/data-consumption/hooks/presentation.js.map +1 -1
- package/dist/cjs/data-consumption/types/presentation.d.ts +10 -10
- package/dist/cjs/enums.d.ts +3 -2
- package/dist/cjs/enums.js +10 -9
- package/dist/cjs/enums.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +18 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/common.d.ts +10 -10
- package/dist/cjs/types/common.js +24 -24
- package/dist/cjs/types/common.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -2
- package/dist/cjs/types/index.js +16 -4
- package/dist/cjs/types/index.js.map +1 -1
- package/package.json +17 -20
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Information
|
|
4
4
|
|
|
5
|
-
SDK for developing BigBlueButton plugins, an example implementation of it can be found in `./samples/sample-
|
|
5
|
+
SDK for developing BigBlueButton plugins, an example implementation of it can be found in `./samples/sample-presentation-toolbar-plugin` (Refer to `./samples/sample-presentation-toolbar-plugin/README.md`).
|
|
6
6
|
|
|
7
7
|
## API
|
|
8
8
|
### Extensible UI areas
|
|
9
|
-
-
|
|
9
|
+
- Presentation toolbar items (button, separator, spinner)
|
|
10
10
|
|
|
11
11
|
### Realtime data consumption
|
|
12
12
|
- `useCurrentPresentation` hook: provides information regarding the current presentation.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PluginApi } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type GetPluginApi = (uuid: string) => PluginApi;
|
|
3
|
+
declare const getPluginApi: GetPluginApi;
|
|
4
|
+
export { getPluginApi, GetPluginApi, };
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPluginApi = void 0;
|
|
4
|
-
|
|
4
|
+
var getPluginApi = function (uuid) {
|
|
5
5
|
if (window.bbb_plugins) {
|
|
6
6
|
if (Object.keys(window.bbb_plugins).indexOf(uuid) !== -1) {
|
|
7
7
|
return window.bbb_plugins[uuid];
|
|
8
8
|
}
|
|
9
|
-
else {
|
|
10
|
-
window.bbb_plugins[uuid] = {
|
|
11
|
-
setWhiteboardToolbarItems: function () { },
|
|
12
|
-
};
|
|
13
|
-
return window.bbb_plugins[uuid];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
window.bbb_plugins = {};
|
|
18
9
|
window.bbb_plugins[uuid] = {
|
|
19
|
-
|
|
10
|
+
setPresentationToolbarItems: function () { },
|
|
20
11
|
};
|
|
21
12
|
return window.bbb_plugins[uuid];
|
|
22
13
|
}
|
|
14
|
+
window.bbb_plugins = {};
|
|
15
|
+
window.bbb_plugins[uuid] = {
|
|
16
|
+
setPresentationToolbarItems: function () { },
|
|
17
|
+
};
|
|
18
|
+
return window.bbb_plugins[uuid];
|
|
23
19
|
};
|
|
20
|
+
exports.getPluginApi = getPluginApi;
|
|
24
21
|
//# sourceMappingURL=getPluginApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPluginApi.js","sourceRoot":"","sources":["../../../src/core/getPluginApi.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getPluginApi.js","sourceRoot":"","sources":["../../../src/core/getPluginApi.ts"],"names":[],"mappings":";;;AAQA,IAAM,YAAY,GAAiB,UAAC,IAAY;IAC9C,IAAI,MAAM,CAAC,WAAW,EAAE;QACtB,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACjC;QACD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YACzB,2BAA2B,EAAE,cAAO,CAAC;SACtC,CAAC;QACF,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KACjC;IACD,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;QACzB,2BAA2B,EAAE,cAAO,CAAC;KACtC,CAAC;IACF,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC;AAGA,oCAAY"}
|
package/dist/cjs/core/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './getPluginApi';
|
package/dist/cjs/core/index.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "getPluginApi", { enumerable: true, get: function () { return getPluginApi_1.getPluginApi; } });
|
|
17
|
+
__exportStar(require("./getPluginApi"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useCurrentPresentation
|
|
1
|
+
export { default as useCurrentPresentation } from './presentation';
|
|
@@ -1,5 +1,9 @@
|
|
|
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 });
|
|
6
|
+
exports.useCurrentPresentation = void 0;
|
|
3
7
|
var presentation_1 = require("./presentation");
|
|
4
|
-
Object.defineProperty(exports, "useCurrentPresentation", { enumerable: true, get: function () { return presentation_1.
|
|
8
|
+
Object.defineProperty(exports, "useCurrentPresentation", { enumerable: true, get: function () { return __importDefault(presentation_1).default; } });
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data-consumption/hooks/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data-consumption/hooks/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAmE;AAA1D,uIAAA,OAAO,OAA0B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const useCurrentPresentation: () =>
|
|
3
|
-
export
|
|
1
|
+
import { CurrentPresentation } from '../../types';
|
|
2
|
+
declare const useCurrentPresentation: () => CurrentPresentation | undefined;
|
|
3
|
+
export default useCurrentPresentation;
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useCurrentPresentation = void 0;
|
|
4
3
|
var react_1 = require("react");
|
|
5
4
|
var index_1 = require("../../index");
|
|
6
5
|
var useCurrentPresentation = function () {
|
|
7
|
-
var _a = react_1.useState(), presentationInfo = _a[0], setPresentationInfo = _a[1];
|
|
6
|
+
var _a = (0, react_1.useState)(), presentationInfo = _a[0], setPresentationInfo = _a[1];
|
|
8
7
|
var handleCurrentPresentationUpdateEvent = (function (event) {
|
|
9
8
|
if (event.detail.hook === index_1.Internal.BbbHooks.UseCurrentPresentation) {
|
|
10
9
|
setPresentationInfo(event.detail.data);
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
react_1.useEffect(function () {
|
|
12
|
+
(0, react_1.useEffect)(function () {
|
|
14
13
|
window.addEventListener(index_1.Internal.BbbHookEvents.Update, handleCurrentPresentationUpdateEvent);
|
|
15
|
-
window.dispatchEvent(new
|
|
14
|
+
window.dispatchEvent(new CustomEvent(index_1.Internal.BbbHookEvents.Subscribe, {
|
|
15
|
+
detail: { hook: index_1.Internal.BbbHooks.UseCurrentPresentation },
|
|
16
|
+
}));
|
|
16
17
|
return function () {
|
|
18
|
+
window.dispatchEvent(new CustomEvent(index_1.Internal.BbbHookEvents.Unsubscribe, {
|
|
19
|
+
detail: { hook: index_1.Internal.BbbHooks.UseCurrentPresentation },
|
|
20
|
+
}));
|
|
17
21
|
window.removeEventListener(index_1.Internal.BbbHookEvents.Update, handleCurrentPresentationUpdateEvent);
|
|
18
22
|
};
|
|
19
23
|
}, []);
|
|
20
24
|
return presentationInfo;
|
|
21
25
|
};
|
|
22
|
-
exports.
|
|
26
|
+
exports.default = useCurrentPresentation;
|
|
23
27
|
//# sourceMappingURL=presentation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../src/data-consumption/hooks/presentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../src/data-consumption/hooks/presentation.ts"],"names":[],"mappings":";;AAAA,+BAA4C;AAC5C,qCAAuC;AAIvC,IAAM,sBAAsB,GAA0C;IAC9D,IAAA,KAA0C,IAAA,gBAAQ,GAAmC,EAApF,gBAAgB,QAAA,EAAE,mBAAmB,QAA+C,CAAC;IAC5F,IAAM,oCAAoC,GAAkB,CAC1D,UAAC,KAAkD;QACjD,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAQ,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YAClE,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACxC;IACH,CAAC,CAAkB,CAAC;IAEtB,IAAA,iBAAS,EAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,gBAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,oCAAoC,CAAC,CAAC;QAC7F,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,gBAAQ,CAAC,aAAa,CAAC,SAAS,EAAE;YACrE,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAQ,CAAC,QAAQ,CAAC,sBAAsB,EAAE;SAC3D,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,gBAAQ,CAAC,aAAa,CAAC,WAAW,EAAE;gBACvE,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAQ,CAAC,QAAQ,CAAC,sBAAsB,EAAE;aAC3D,CAAC,CAAC,CAAC;YACJ,MAAM,CAAC,mBAAmB,CACxB,gBAAQ,CAAC,aAAa,CAAC,MAAM,EAC7B,oCAAoC,CACrC,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
presentationId: string;
|
|
3
|
-
currentPage: PresentationPage;
|
|
4
|
-
}
|
|
5
|
-
export interface PresentationPage {
|
|
6
|
-
id: string;
|
|
7
|
-
num: number;
|
|
8
|
-
urls: PresentationPageUrls;
|
|
9
|
-
}
|
|
10
|
-
export interface PresentationPageUrls {
|
|
1
|
+
export interface CurrentPresentationPageUrls {
|
|
11
2
|
thumbnail: string;
|
|
12
3
|
png: string;
|
|
13
4
|
svg: string;
|
|
14
5
|
text: string;
|
|
15
6
|
}
|
|
7
|
+
export interface CurrentPresentationPage {
|
|
8
|
+
id: string;
|
|
9
|
+
num: number;
|
|
10
|
+
urls: CurrentPresentationPageUrls;
|
|
11
|
+
}
|
|
12
|
+
export interface CurrentPresentation {
|
|
13
|
+
presentationId: string;
|
|
14
|
+
currentPage: CurrentPresentationPage;
|
|
15
|
+
}
|
package/dist/cjs/enums.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare enum BbbHookEvents {
|
|
2
2
|
Update = "UPDATE_HOOK",
|
|
3
|
-
|
|
3
|
+
Subscribe = "SUBSCRIBE_TO_HOOK",
|
|
4
|
+
Unsubscribe = "UNSUBSCRIBE_FROM_HOOK"
|
|
4
5
|
}
|
|
5
6
|
declare enum BbbHooks {
|
|
6
7
|
UseCurrentPresentation = "BbbHooks::UseCurrentPresentation"
|
|
@@ -9,7 +10,7 @@ export declare const Internal: {
|
|
|
9
10
|
BbbHookEvents: typeof BbbHookEvents;
|
|
10
11
|
BbbHooks: typeof BbbHooks;
|
|
11
12
|
};
|
|
12
|
-
export declare enum
|
|
13
|
+
export declare enum PresentationToolbarItemType {
|
|
13
14
|
BUTTON = "PRESENTATION_TOOLBAR_BUTTON",
|
|
14
15
|
SPINNER = "PRESENTATION_TOOLBAR_SPINNER",
|
|
15
16
|
SEPARATOR = "PRESENTATION_TOOLBAR_SEPARATOR"
|
package/dist/cjs/enums.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PresentationToolbarItemType = exports.Internal = void 0;
|
|
4
4
|
var BbbHookEvents;
|
|
5
5
|
(function (BbbHookEvents) {
|
|
6
6
|
BbbHookEvents["Update"] = "UPDATE_HOOK";
|
|
7
|
-
BbbHookEvents["
|
|
7
|
+
BbbHookEvents["Subscribe"] = "SUBSCRIBE_TO_HOOK";
|
|
8
|
+
BbbHookEvents["Unsubscribe"] = "UNSUBSCRIBE_FROM_HOOK";
|
|
8
9
|
})(BbbHookEvents || (BbbHookEvents = {}));
|
|
9
10
|
var BbbHooks;
|
|
10
11
|
(function (BbbHooks) {
|
|
@@ -12,13 +13,13 @@ var BbbHooks;
|
|
|
12
13
|
})(BbbHooks || (BbbHooks = {}));
|
|
13
14
|
exports.Internal = {
|
|
14
15
|
BbbHookEvents: BbbHookEvents,
|
|
15
|
-
BbbHooks: BbbHooks
|
|
16
|
+
BbbHooks: BbbHooks,
|
|
16
17
|
};
|
|
17
18
|
// Presentation toolbar items types:
|
|
18
|
-
var
|
|
19
|
-
(function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})(
|
|
19
|
+
var PresentationToolbarItemType;
|
|
20
|
+
(function (PresentationToolbarItemType) {
|
|
21
|
+
PresentationToolbarItemType["BUTTON"] = "PRESENTATION_TOOLBAR_BUTTON";
|
|
22
|
+
PresentationToolbarItemType["SPINNER"] = "PRESENTATION_TOOLBAR_SPINNER";
|
|
23
|
+
PresentationToolbarItemType["SEPARATOR"] = "PRESENTATION_TOOLBAR_SEPARATOR";
|
|
24
|
+
})(PresentationToolbarItemType || (exports.PresentationToolbarItemType = PresentationToolbarItemType = {}));
|
|
24
25
|
//# sourceMappingURL=enums.js.map
|
package/dist/cjs/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,uCAAsB,CAAA;IACtB,gDAA+B,CAAA;IAC/B,sDAAqC,CAAA;AACvC,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AAED,IAAK,QAEJ;AAFD,WAAK,QAAQ;IACX,uEAA2D,CAAA;AAC7D,CAAC,EAFI,QAAQ,KAAR,QAAQ,QAEZ;AAEY,QAAA,QAAQ,GAAG;IACtB,aAAa,eAAA;IACb,QAAQ,UAAA;CACT,CAAC;AAEF,oCAAoC;AACpC,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACrC,qEAAsC,CAAA;IACtC,uEAAwC,CAAA;IACxC,2EAA4C,CAAA;AAC9C,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './data-consumption/hooks';
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './enums';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var hooks_1 = require("./data-consumption/hooks");
|
|
8
|
-
Object.defineProperty(exports, "useCurrentPresentation", { enumerable: true, get: function () { return hooks_1.useCurrentPresentation; } });
|
|
9
|
-
var core_1 = require("./core");
|
|
10
|
-
Object.defineProperty(exports, "getPluginApi", { enumerable: true, get: function () { return core_1.getPluginApi; } });
|
|
11
|
-
var enums_1 = require("./enums");
|
|
12
|
-
Object.defineProperty(exports, "Internal", { enumerable: true, get: function () { return enums_1.Internal; } });
|
|
13
|
-
Object.defineProperty(exports, "WhiteboardToolbarItemType", { enumerable: true, get: function () { return enums_1.WhiteboardToolbarItemType; } });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./data-consumption/hooks"), exports);
|
|
19
|
+
__exportStar(require("./core"), exports);
|
|
20
|
+
__exportStar(require("./enums"), exports);
|
|
14
21
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AAExB,2DAAyC;AAEzC,yCAAuB;AAEvB,0CAAwB"}
|
|
@@ -3,41 +3,41 @@ export interface PluginProvidedUiItemDescriptor {
|
|
|
3
3
|
type: string;
|
|
4
4
|
setItemId: (id: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface PresentationToolbarItem extends PluginProvidedUiItemDescriptor {
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface PresentationToolbarButtonProps {
|
|
9
9
|
label: string;
|
|
10
10
|
tooltip: string;
|
|
11
11
|
onClick: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class PresentationToolbarButton implements PresentationToolbarItem {
|
|
14
14
|
id: string;
|
|
15
15
|
type: string;
|
|
16
16
|
label: string;
|
|
17
17
|
tooltip: string;
|
|
18
18
|
onClick: () => void;
|
|
19
|
-
constructor({ label, tooltip, onClick }:
|
|
19
|
+
constructor({ label, tooltip, onClick }: PresentationToolbarButtonProps);
|
|
20
20
|
setItemId: (id: string) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare class
|
|
22
|
+
export declare class PresentationToolbarSpinner implements PresentationToolbarItem {
|
|
23
23
|
id: string;
|
|
24
24
|
type: string;
|
|
25
25
|
constructor();
|
|
26
26
|
setItemId: (id: string) => void;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface PresentationToolbarSeparatorProps {
|
|
29
29
|
width: number;
|
|
30
30
|
}
|
|
31
|
-
export declare class
|
|
31
|
+
export declare class PresentationToolbarSeparator implements PresentationToolbarItem {
|
|
32
32
|
id: string;
|
|
33
33
|
type: string;
|
|
34
34
|
width: number;
|
|
35
|
-
constructor({ width }:
|
|
35
|
+
constructor({ width }: PresentationToolbarSeparatorProps);
|
|
36
36
|
setItemId: (id: string) => void;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
|
|
39
39
|
export interface PluginApi {
|
|
40
|
-
|
|
40
|
+
setPresentationToolbarItems: SetPresentationToolbarItems;
|
|
41
41
|
}
|
|
42
42
|
export interface PluginBrowserWindow extends Window {
|
|
43
43
|
bbb_plugins: {
|
package/dist/cjs/types/common.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PresentationToolbarSeparator = exports.PresentationToolbarSpinner = exports.PresentationToolbarButton = void 0;
|
|
4
4
|
var index_1 = require("../index");
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var PresentationToolbarButton = /** @class */ (function () {
|
|
6
|
+
function PresentationToolbarButton(_a) {
|
|
7
|
+
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.tooltip, tooltip = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d;
|
|
7
8
|
var _this = this;
|
|
8
|
-
|
|
9
|
-
this.id = "";
|
|
9
|
+
this.id = '';
|
|
10
10
|
this.setItemId = function (id) {
|
|
11
|
-
_this.id = "
|
|
11
|
+
_this.id = "PresentationToolbarButton_".concat(id);
|
|
12
12
|
};
|
|
13
13
|
this.label = label;
|
|
14
14
|
this.tooltip = tooltip;
|
|
15
15
|
this.onClick = onClick;
|
|
16
|
-
this.type = index_1.
|
|
16
|
+
this.type = index_1.PresentationToolbarItemType.BUTTON;
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return PresentationToolbarButton;
|
|
19
19
|
}());
|
|
20
|
-
exports.
|
|
21
|
-
var
|
|
22
|
-
function
|
|
20
|
+
exports.PresentationToolbarButton = PresentationToolbarButton;
|
|
21
|
+
var PresentationToolbarSpinner = /** @class */ (function () {
|
|
22
|
+
function PresentationToolbarSpinner() {
|
|
23
23
|
var _this = this;
|
|
24
|
-
this.id =
|
|
24
|
+
this.id = '';
|
|
25
25
|
this.setItemId = function (id) {
|
|
26
|
-
_this.id = "
|
|
26
|
+
_this.id = "PresentationToolbarButton_".concat(id);
|
|
27
27
|
};
|
|
28
|
-
this.type = index_1.
|
|
28
|
+
this.type = index_1.PresentationToolbarItemType.SPINNER;
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return PresentationToolbarSpinner;
|
|
31
31
|
}());
|
|
32
|
-
exports.
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
var _this = this;
|
|
32
|
+
exports.PresentationToolbarSpinner = PresentationToolbarSpinner;
|
|
33
|
+
var PresentationToolbarSeparator = /** @class */ (function () {
|
|
34
|
+
function PresentationToolbarSeparator(_a) {
|
|
36
35
|
var width = _a.width;
|
|
37
|
-
|
|
36
|
+
var _this = this;
|
|
37
|
+
this.id = '';
|
|
38
38
|
this.setItemId = function (id) {
|
|
39
|
-
_this.id = "
|
|
39
|
+
_this.id = "PresentationToolbarButton_".concat(id);
|
|
40
40
|
};
|
|
41
41
|
this.width = width;
|
|
42
|
-
this.type = index_1.
|
|
42
|
+
this.type = index_1.PresentationToolbarItemType.SEPARATOR;
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return PresentationToolbarSeparator;
|
|
45
45
|
}());
|
|
46
|
-
exports.
|
|
46
|
+
exports.PresentationToolbarSeparator = PresentationToolbarSeparator;
|
|
47
47
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;AAAA,kCAAuD;AAgBvD;IAWE,mCAAY,EAAgF;YAA9E,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA;QAA1D,iBAKC;QAfD,OAAE,GAAW,EAAE,CAAC;QAiBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,oCAA6B,EAAE,CAAE,CAAC;QAC9C,CAAC,CAAC;QARA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,mCAA2B,CAAC,MAAM,CAAC;IACjD,CAAC;IAKH,gCAAC;AAAD,CAAC,AArBD,IAqBC;AArBY,8DAAyB;AAuBtC;IAKE;QAAA,iBAEC;QAND,OAAE,GAAW,EAAE,CAAC;QAQhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,oCAA6B,EAAE,CAAE,CAAC;QAC9C,CAAC,CAAC;QALA,IAAI,CAAC,IAAI,GAAG,mCAA2B,CAAC,OAAO,CAAC;IAClD,CAAC;IAKH,iCAAC;AAAD,CAAC,AAZD,IAYC;AAZY,gEAA0B;AAiBvC;IAOE,sCAAY,EAA6C;YAA3C,KAAK,WAAA;QAAnB,iBAGC;QATD,OAAE,GAAW,EAAE,CAAC;QAWhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,oCAA6B,EAAE,CAAE,CAAC;QAC9C,CAAC,CAAC;QANA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,mCAA2B,CAAC,SAAS,CAAC;IACpD,CAAC;IAKH,mCAAC;AAAD,CAAC,AAfD,IAeC;AAfY,oEAA4B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from '../data-consumption/types/presentation';
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "WhiteboardToolbarSeparator", { enumerable: true, get: function () { return common_1.WhiteboardToolbarSeparator; } });
|
|
6
|
-
Object.defineProperty(exports, "WhiteboardToolbarButton", { enumerable: true, get: function () { return common_1.WhiteboardToolbarButton; } });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("../data-consumption/types/presentation"), exports);
|
|
7
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yEAAuD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bigbluebutton-html-plugin-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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",
|
|
@@ -14,33 +14,30 @@
|
|
|
14
14
|
"react-dom": "^18.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^
|
|
18
|
-
"@types/react": "^
|
|
19
|
-
"@types/react-dom": "^
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^2.
|
|
21
|
-
"@typescript-eslint/parser": "^2.
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"eslint-config-
|
|
24
|
-
"eslint-
|
|
25
|
-
"eslint-plugin-
|
|
26
|
-
"eslint-plugin-
|
|
27
|
-
"eslint-plugin-
|
|
28
|
-
"eslint-plugin-react": "^
|
|
29
|
-
"eslint-
|
|
30
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
31
|
-
"eslint-watch": "^6.0.1",
|
|
17
|
+
"@types/node": "^20.4.4",
|
|
18
|
+
"@types/react": "^18.2.15",
|
|
19
|
+
"@types/react-dom": "^18.2.7",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
|
21
|
+
"@typescript-eslint/parser": "^6.2.0",
|
|
22
|
+
"eslint": "^8.45.0",
|
|
23
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
24
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
25
|
+
"eslint-plugin-import": "^2.27.5",
|
|
26
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
27
|
+
"eslint-plugin-react": "^7.33.0",
|
|
28
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
29
|
+
"eslint-watch": "^8.0.0",
|
|
32
30
|
"react": "^18.2.0",
|
|
33
31
|
"react-dom": "^18.2.0",
|
|
34
|
-
"typescript": "^
|
|
32
|
+
"typescript": "^5.1.6",
|
|
33
|
+
"lint-staged": "11.2.0",
|
|
35
34
|
"watch": "^1.0.2"
|
|
36
35
|
},
|
|
37
36
|
"scripts": {
|
|
38
37
|
"prepublishOnly": "npm run build # runs before publish",
|
|
39
|
-
"prepublishOnly-p": "npm run build-p && npm run build:esm-p # runs before publish",
|
|
40
38
|
"build": "rm -rf dist/cjs && tsc --module CommonJS --outDir dist/cjs",
|
|
41
|
-
"build-p": "rm -rf dist/cjs && tsc --module CommonJS --outDir dist/cjs -p tsconfig.production.json",
|
|
42
39
|
"build:watch": "rm -rf dist && tsc -w --module CommonJS",
|
|
43
|
-
"lint": "eslint ./src
|
|
40
|
+
"lint": "eslint ./src/*.{ts,tsx}",
|
|
44
41
|
"lint:fix": "npm run lint -- --fix",
|
|
45
42
|
"lint:watch": "watch 'yarn lint'"
|
|
46
43
|
},
|