bigbluebutton-html-plugin-sdk 0.1.5 → 0.1.7
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 -1
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.d.ts +1 -1
- package/dist/cjs/ui-commands/captions/commands.d.ts +13 -0
- package/dist/cjs/ui-commands/captions/commands.js +24 -0
- package/dist/cjs/ui-commands/captions/commands.js.map +1 -0
- package/dist/cjs/ui-commands/captions/enums.d.ts +12 -0
- package/dist/cjs/ui-commands/captions/enums.js +18 -0
- package/dist/cjs/ui-commands/captions/enums.js.map +1 -0
- package/dist/cjs/ui-commands/captions/types.d.ts +7 -0
- package/dist/cjs/ui-commands/captions/types.js +3 -0
- package/dist/cjs/ui-commands/captions/types.js.map +1 -0
- package/dist/cjs/ui-commands/commands.d.ts +3 -0
- package/dist/cjs/ui-commands/commands.js +8 -6
- 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 +3 -1
- package/dist/cjs/ui-commands/index.js.map +1 -1
- package/dist/cjs/ui-commands/types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -210,7 +210,6 @@ See, it is basically a function that requires an array as an argument, with whic
|
|
|
210
210
|
That being said, here are the extensible areas we have so far:
|
|
211
211
|
|
|
212
212
|
- Action bar items (button, separator)
|
|
213
|
-
- Action Button Dropdown Items (option, separator)
|
|
214
213
|
- Apps Gallery Items (entry)
|
|
215
214
|
- Audio settings dropdown items (option, separator)
|
|
216
215
|
- Camera settings dropdown items (option, separator)
|
|
@@ -374,6 +373,8 @@ One other thing is that the type of the return is precisely the same type requir
|
|
|
374
373
|
- 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;
|
|
375
374
|
- user-status:
|
|
376
375
|
- setAwayStatus: this function will set the away status of the user to a certain status;
|
|
376
|
+
- captions:
|
|
377
|
+
- setDisplayAudioCaptions: This function will set the track of transcripted audio to be displayed or disable it;
|
|
377
378
|
|
|
378
379
|
See usage ahead:
|
|
379
380
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SetDisplayAudioCaptionsCommandArguments } from './types';
|
|
2
|
+
export declare const captions: {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the automatically generated audio captions to be displayed/or not in the client.
|
|
5
|
+
*
|
|
6
|
+
* @param setDisplayAudioCaptionsCommandArguments: object with a
|
|
7
|
+
* {@link CaptionsLanguageEnum} that tells the language to which the core will set the
|
|
8
|
+
* display of the audio captions. If the value is `CaptionsLanguageEnum.NONE`, it will hide the
|
|
9
|
+
* audio captions.
|
|
10
|
+
* Refer to {@link SetDisplayAudioCaptionsCommandArguments} to understand the argument structure.
|
|
11
|
+
*/
|
|
12
|
+
setDisplayAudioCaptions: (setDisplayAudioCaptions: SetDisplayAudioCaptionsCommandArguments) => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.captions = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.captions = {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the automatically generated audio captions to be displayed/or not in the client.
|
|
8
|
+
*
|
|
9
|
+
* @param setDisplayAudioCaptionsCommandArguments: object with a
|
|
10
|
+
* {@link CaptionsLanguageEnum} that tells the language to which the core will set the
|
|
11
|
+
* display of the audio captions. If the value is `CaptionsLanguageEnum.NONE`, it will hide the
|
|
12
|
+
* audio captions.
|
|
13
|
+
* Refer to {@link SetDisplayAudioCaptionsCommandArguments} to understand the argument structure.
|
|
14
|
+
*/
|
|
15
|
+
setDisplayAudioCaptions: function (setDisplayAudioCaptions) {
|
|
16
|
+
var displayAudioCaptions = setDisplayAudioCaptions.displayAudioCaptions;
|
|
17
|
+
window.dispatchEvent(new CustomEvent(enums_1.CaptionsEnum.SET_DISPLAY_AUDIO_CAPTIONS, {
|
|
18
|
+
detail: {
|
|
19
|
+
displayAudioCaptions: displayAudioCaptions,
|
|
20
|
+
},
|
|
21
|
+
}));
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/captions/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAuC;AAG1B,QAAA,QAAQ,GAAG;IACtB;;;;;;;;OAQG;IACH,uBAAuB,EAAE,UACvB,uBAAgE;QAG9D,IAAA,oBAAoB,GAClB,uBAAuB,qBADL,CACM;QAC5B,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,oBAAY,CAAC,0BAA0B,EAAE;YACzC,MAAM,EAAE;gBACN,oBAAoB,sBAAA;aACrB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;CAEF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum CaptionsEnum {
|
|
2
|
+
SET_DISPLAY_AUDIO_CAPTIONS = "SET_SHOW_AUDIO_CAPTIONS_COMMAND"
|
|
3
|
+
}
|
|
4
|
+
export declare enum CaptionsLanguageEnum {
|
|
5
|
+
NONE = "",
|
|
6
|
+
ENGLISH = "en-US",
|
|
7
|
+
SPANISH = "es-ES",
|
|
8
|
+
PORTUGUESE = "pt-PT",
|
|
9
|
+
PORTUGUESE_BR = "pt-BR",
|
|
10
|
+
FRENCH = "fr-FR",
|
|
11
|
+
GERMAN = "de-DE"
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaptionsLanguageEnum = exports.CaptionsEnum = void 0;
|
|
4
|
+
var CaptionsEnum;
|
|
5
|
+
(function (CaptionsEnum) {
|
|
6
|
+
CaptionsEnum["SET_DISPLAY_AUDIO_CAPTIONS"] = "SET_SHOW_AUDIO_CAPTIONS_COMMAND";
|
|
7
|
+
})(CaptionsEnum || (exports.CaptionsEnum = CaptionsEnum = {}));
|
|
8
|
+
var CaptionsLanguageEnum;
|
|
9
|
+
(function (CaptionsLanguageEnum) {
|
|
10
|
+
CaptionsLanguageEnum["NONE"] = "";
|
|
11
|
+
CaptionsLanguageEnum["ENGLISH"] = "en-US";
|
|
12
|
+
CaptionsLanguageEnum["SPANISH"] = "es-ES";
|
|
13
|
+
CaptionsLanguageEnum["PORTUGUESE"] = "pt-PT";
|
|
14
|
+
CaptionsLanguageEnum["PORTUGUESE_BR"] = "pt-BR";
|
|
15
|
+
CaptionsLanguageEnum["FRENCH"] = "fr-FR";
|
|
16
|
+
CaptionsLanguageEnum["GERMAN"] = "de-DE";
|
|
17
|
+
})(CaptionsLanguageEnum || (exports.CaptionsLanguageEnum = CaptionsLanguageEnum = {}));
|
|
18
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/captions/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,8EAA8D,CAAA;AAChE,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAED,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,4CAAoB,CAAA;IACpB,+CAAuB,CAAA;IACvB,wCAAgB,CAAA;IAChB,wCAAgB,CAAA;AAClB,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CaptionsLanguageEnum } from './enums';
|
|
2
|
+
export interface SetDisplayAudioCaptionsCommandArguments {
|
|
3
|
+
displayAudioCaptions: CaptionsLanguageEnum;
|
|
4
|
+
}
|
|
5
|
+
export interface UiCommandsCaptionsObject {
|
|
6
|
+
setDisplayAudioCaptions: (setDisplayAudioCaptionsCommandArguments: SetDisplayAudioCaptionsCommandArguments) => void;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/captions/types.ts"],"names":[],"mappings":""}
|
|
@@ -6,6 +6,9 @@ export declare const uiCommands: {
|
|
|
6
6
|
setSelfViewDisableAllDevices: (setSelfViewDisableAllDevicesCommandArguments: import("./camera/types").SetSelfViewDisableAllDevicesCommandArguments) => void;
|
|
7
7
|
setSelfViewDisable: (setSelfViewDisableCommandArguments: import("./camera/types").SetSelfViewDisableCommandArguments) => void;
|
|
8
8
|
};
|
|
9
|
+
captions: {
|
|
10
|
+
setDisplayAudioCaptions: (setDisplayAudioCaptions: import("./captions/types").SetDisplayAudioCaptionsCommandArguments) => void;
|
|
11
|
+
};
|
|
9
12
|
chat: {
|
|
10
13
|
form: {
|
|
11
14
|
open: () => void;
|
|
@@ -9,20 +9,22 @@ var commands_5 = require("./user-status/commands");
|
|
|
9
9
|
var commands_6 = require("./conference/commands");
|
|
10
10
|
var commands_7 = require("./notification/commands");
|
|
11
11
|
var commands_8 = require("./camera/commands");
|
|
12
|
-
var commands_9 = require("./
|
|
13
|
-
var commands_10 = require("./
|
|
14
|
-
var commands_11 = require("./
|
|
12
|
+
var commands_9 = require("./captions/commands");
|
|
13
|
+
var commands_10 = require("./actions-bar/commands");
|
|
14
|
+
var commands_11 = require("./layout/commands");
|
|
15
|
+
var commands_12 = require("./nav-bar/commands");
|
|
15
16
|
exports.uiCommands = {
|
|
16
|
-
actionsBar:
|
|
17
|
+
actionsBar: commands_10.actionsBar,
|
|
17
18
|
camera: commands_8.camera,
|
|
19
|
+
captions: commands_9.captions,
|
|
18
20
|
chat: commands_1.chat,
|
|
19
21
|
externalVideo: commands_2.externalVideo,
|
|
20
22
|
sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
|
|
21
|
-
navBar:
|
|
23
|
+
navBar: commands_12.navBar,
|
|
22
24
|
presentationArea: commands_4.presentationArea,
|
|
23
25
|
userStatus: commands_5.userStatus,
|
|
24
26
|
conference: commands_6.conference,
|
|
25
27
|
notification: commands_7.notification,
|
|
26
|
-
layout:
|
|
28
|
+
layout: commands_11.layout,
|
|
27
29
|
};
|
|
28
30
|
//# 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;AACnD,oDAAuD;AACvD,8CAA2C;AAC3C,
|
|
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;AACvD,8CAA2C;AAC3C,gDAA+C;AAC/C,oDAAoD;AACpD,+CAA2C;AAC3C,gDAA4C;AAE/B,QAAA,UAAU,GAAG;IACxB,UAAU,wBAAA;IACV,MAAM,mBAAA;IACN,QAAQ,qBAAA;IACR,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,MAAM,oBAAA;IACN,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;IACV,YAAY,yBAAA;IACZ,MAAM,oBAAA;CACP,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChangeEnforcedLayoutTypeEnum = exports.NotificationTypeUiCommand = void 0;
|
|
3
|
+
exports.CaptionsLanguageEnum = exports.ChangeEnforcedLayoutTypeEnum = exports.NotificationTypeUiCommand = void 0;
|
|
4
4
|
var enums_1 = require("./notification/enums");
|
|
5
5
|
Object.defineProperty(exports, "NotificationTypeUiCommand", { enumerable: true, get: function () { return enums_1.NotificationTypeUiCommand; } });
|
|
6
6
|
var enums_2 = require("./layout/enums");
|
|
7
7
|
Object.defineProperty(exports, "ChangeEnforcedLayoutTypeEnum", { enumerable: true, get: function () { return enums_2.ChangeEnforcedLayoutTypeEnum; } });
|
|
8
|
+
var enums_3 = require("./captions/enums");
|
|
9
|
+
Object.defineProperty(exports, "CaptionsLanguageEnum", { enumerable: true, get: function () { return enums_3.CaptionsLanguageEnum; } });
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;AAAA,8CAAiE;AAAxD,kHAAA,yBAAyB,OAAA;AAClC,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-commands/index.ts"],"names":[],"mappings":";;;AAAA,8CAAiE;AAAxD,kHAAA,yBAAyB,OAAA;AAClC,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA;AACrC,0CAAwD;AAA/C,6GAAA,oBAAoB,OAAA"}
|
|
@@ -9,11 +9,13 @@ import { UiCommandsActionsBarObject } from './actions-bar/types';
|
|
|
9
9
|
import { UiCommandsLayoutObject } from './layout/types';
|
|
10
10
|
import { UiCommandsNavBarObject } from './nav-bar/types';
|
|
11
11
|
import { UiCommandsCameraObject } from './camera/types';
|
|
12
|
+
import { UiCommandsCaptionsObject } from './captions/types';
|
|
12
13
|
export interface UiCommands {
|
|
13
14
|
layout: UiCommandsLayoutObject;
|
|
14
15
|
actionsBar: UiCommandsActionsBarObject;
|
|
15
16
|
camera: UiCommandsCameraObject;
|
|
16
17
|
chat: UiCommandsChatObject;
|
|
18
|
+
captions: UiCommandsCaptionsObject;
|
|
17
19
|
externalVideo: UiCommandsExternalVideoObject;
|
|
18
20
|
sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
|
|
19
21
|
navBar: UiCommandsNavBarObject;
|