bigbluebutton-html-plugin-sdk 0.0.67 → 0.0.68
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 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ui-commands/commands.d.ts +3 -0
- package/dist/cjs/ui-commands/commands.js +2 -0
- package/dist/cjs/ui-commands/commands.js.map +1 -1
- package/dist/cjs/ui-commands/index.d.ts +1 -0
- package/dist/cjs/ui-commands/index.js +6 -0
- package/dist/cjs/ui-commands/index.js.map +1 -0
- package/dist/cjs/ui-commands/notification/commands.d.ts +7 -0
- package/dist/cjs/ui-commands/notification/commands.js +15 -0
- package/dist/cjs/ui-commands/notification/commands.js.map +1 -0
- package/dist/cjs/ui-commands/notification/enums.d.ts +10 -0
- package/dist/cjs/ui-commands/notification/enums.js +16 -0
- package/dist/cjs/ui-commands/notification/enums.js.map +1 -0
- package/dist/cjs/ui-commands/notification/types.d.ts +17 -0
- package/dist/cjs/ui-commands/notification/types.js +3 -0
- package/dist/cjs/ui-commands/notification/types.js.map +1 -0
- package/dist/cjs/ui-commands/types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -287,6 +287,8 @@ One other thing is that the type of the return is precisely the same type requir
|
|
|
287
287
|
- close: this function will close the presentation area content automatically;
|
|
288
288
|
- conference:
|
|
289
289
|
- setSpeakerLevel: this function will set the speaker volume level(audio output) of the conference to a certain number between 0 and 1;
|
|
290
|
+
- notification:
|
|
291
|
+
- send: This function will send a notification for the client to render, keep in mind that it's only client-side. Should you want it to be rendered in multiple clients, use this with a data-channel;
|
|
290
292
|
- user-status:
|
|
291
293
|
- setAwayStatus: this function will set the away status of the user to a certain status;
|
|
292
294
|
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./data-consumption"), exports);
|
|
|
19
19
|
__exportStar(require("./data-channel"), exports);
|
|
20
20
|
__exportStar(require("./ui-data-hooks"), exports);
|
|
21
21
|
__exportStar(require("./server-commands"), exports);
|
|
22
|
+
__exportStar(require("./ui-commands"), exports);
|
|
22
23
|
__exportStar(require("./core"), exports);
|
|
23
24
|
__exportStar(require("./utils"), exports);
|
|
24
25
|
//# 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":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,kDAAgC;AAEhC,oDAAkC;AAElC,yCAAuB;AAEvB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,kDAAgC;AAEhC,oDAAkC;AAElC,gDAA8B;AAE9B,yCAAuB;AAEvB,0CAAwB"}
|
|
@@ -24,4 +24,7 @@ export declare const uiCommands: {
|
|
|
24
24
|
conference: {
|
|
25
25
|
setSpeakerLevel: (setSpeakerLevelCommandArguments: import("./conference/types").SetSpeakerLevelCommandArguments) => void;
|
|
26
26
|
};
|
|
27
|
+
notification: {
|
|
28
|
+
send: (information: import("./notification/types").SendNotificationCommandArguments) => void;
|
|
29
|
+
};
|
|
27
30
|
};
|
|
@@ -7,6 +7,7 @@ var commands_3 = require("./sidekick-options-container/commands");
|
|
|
7
7
|
var commands_4 = require("./presentation-area/commands");
|
|
8
8
|
var commands_5 = require("./user-status/commands");
|
|
9
9
|
var commands_6 = require("./conference/commands");
|
|
10
|
+
var commands_7 = require("./notification/commands");
|
|
10
11
|
exports.uiCommands = {
|
|
11
12
|
chat: commands_1.chat,
|
|
12
13
|
externalVideo: commands_2.externalVideo,
|
|
@@ -14,5 +15,6 @@ exports.uiCommands = {
|
|
|
14
15
|
presentationArea: commands_4.presentationArea,
|
|
15
16
|
userStatus: commands_5.userStatus,
|
|
16
17
|
conference: commands_6.conference,
|
|
18
|
+
notification: commands_7.notification,
|
|
17
19
|
};
|
|
18
20
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;AACnD,oDAAuD;AAE1C,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;IACV,YAAY,yBAAA;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationTypeUiCommand } from './notification/enums';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTypeUiCommand = void 0;
|
|
4
|
+
var enums_1 = require("./notification/enums");
|
|
5
|
+
Object.defineProperty(exports, "NotificationTypeUiCommand", { enumerable: true, get: function () { return enums_1.NotificationTypeUiCommand; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;AAAA,8CAAiE;AAAxD,kHAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notification = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.notification = {
|
|
6
|
+
/**
|
|
7
|
+
* Sends notification to be rendered in the front-end.
|
|
8
|
+
*/
|
|
9
|
+
send: function (information) {
|
|
10
|
+
window.dispatchEvent(new CustomEvent(enums_1.NotificationEnum.SEND, {
|
|
11
|
+
detail: information,
|
|
12
|
+
}));
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/notification/commands.ts"],"names":[],"mappings":";;;AAAA,iCAA2C;AAG9B,QAAA,YAAY,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,UAAC,WAA6C;QAClD,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,wBAAgB,CAAC,IAAI,EAAE;YACvB,MAAM,EAAE,WAAW;SACpB,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTypeUiCommand = exports.NotificationEnum = void 0;
|
|
4
|
+
var NotificationEnum;
|
|
5
|
+
(function (NotificationEnum) {
|
|
6
|
+
NotificationEnum["SEND"] = "SEND_NOTIFICATION";
|
|
7
|
+
})(NotificationEnum || (exports.NotificationEnum = NotificationEnum = {}));
|
|
8
|
+
var NotificationTypeUiCommand;
|
|
9
|
+
(function (NotificationTypeUiCommand) {
|
|
10
|
+
NotificationTypeUiCommand["INFO"] = "info";
|
|
11
|
+
NotificationTypeUiCommand["DEFAULT"] = "default";
|
|
12
|
+
NotificationTypeUiCommand["WARNING"] = "warning";
|
|
13
|
+
NotificationTypeUiCommand["SUCCESS"] = "success";
|
|
14
|
+
NotificationTypeUiCommand["ERROR"] = "error";
|
|
15
|
+
})(NotificationTypeUiCommand || (exports.NotificationTypeUiCommand = NotificationTypeUiCommand = {}));
|
|
16
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/notification/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,8CAA0B,CAAA;AAC5B,CAAC,EAFW,gBAAgB,gCAAhB,gBAAgB,QAE3B;AAED,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACnC,0CAAa,CAAA;IACb,gDAAmB,CAAA;IACnB,gDAAmB,CAAA;IACnB,gDAAmB,CAAA;IACnB,4CAAe,CAAA;AACjB,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NotificationTypeUiCommand } from './enums';
|
|
2
|
+
export interface SendNotificationCommandArgumentsOptions {
|
|
3
|
+
helpLabel?: string;
|
|
4
|
+
helpLink?: string;
|
|
5
|
+
autoClose?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SendNotificationCommandArguments {
|
|
8
|
+
message: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
type: NotificationTypeUiCommand;
|
|
11
|
+
options?: SendNotificationCommandArgumentsOptions;
|
|
12
|
+
content?: string;
|
|
13
|
+
small?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface UiCommandsNotificationObject {
|
|
16
|
+
send: (information: SendNotificationCommandArguments) => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/notification/types.ts"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,7 @@ import { UiCommandsSidekickOptionsContainerObject } from './sidekick-options-con
|
|
|
4
4
|
import { UiCommandsPresentationAreaObject } from './presentation-area/types';
|
|
5
5
|
import { UiCommandsUserStatusObject } from './user-status/types';
|
|
6
6
|
import { UiCommandsConferenceObject } from './conference/types';
|
|
7
|
+
import { UiCommandsNotificationObject } from './notification/types';
|
|
7
8
|
export interface UiCommands {
|
|
8
9
|
chat: UiCommandsChatObject;
|
|
9
10
|
externalVideo: UiCommandsExternalVideoObject;
|
|
@@ -11,4 +12,5 @@ export interface UiCommands {
|
|
|
11
12
|
presentationArea: UiCommandsPresentationAreaObject;
|
|
12
13
|
userStatus: UiCommandsUserStatusObject;
|
|
13
14
|
conference: UiCommandsConferenceObject;
|
|
15
|
+
notification: UiCommandsNotificationObject;
|
|
14
16
|
}
|