bigbluebutton-html-plugin-sdk 0.0.80 → 0.0.82
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 +4 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.d.ts +3 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js +3 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/actions-bar-item/component.d.ts +11 -6
- package/dist/cjs/extensible-areas/actions-bar-item/component.js +31 -10
- package/dist/cjs/extensible-areas/actions-bar-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/actions-bar-item/types.d.ts +7 -0
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -151,6 +151,10 @@ Here is as complete `manifest.json` example with all possible configurations:
|
|
|
151
151
|
|
|
152
152
|
To better understand remote-data-sources, please, refer to [this section](#external-data-resources)
|
|
153
153
|
|
|
154
|
+
## Testing SDK
|
|
155
|
+
|
|
156
|
+
To setup and run the automated tests for the plugin SDK samples, check the [testing doc](/tests/README.md)
|
|
157
|
+
|
|
154
158
|
## API
|
|
155
159
|
|
|
156
160
|
### Extensible UI areas
|
|
@@ -6,6 +6,7 @@ export declare class ActionButtonDropdownOption implements ActionButtonDropdownI
|
|
|
6
6
|
label: string;
|
|
7
7
|
icon: string;
|
|
8
8
|
tooltip: string;
|
|
9
|
+
dataTest: string;
|
|
9
10
|
allowed: boolean;
|
|
10
11
|
onClick: () => void;
|
|
11
12
|
/**
|
|
@@ -14,12 +15,13 @@ export declare class ActionButtonDropdownOption implements ActionButtonDropdownI
|
|
|
14
15
|
* @param label - label to be displayed on the option
|
|
15
16
|
* @param icon - icon to be displayed on the option
|
|
16
17
|
* @param tooltip - tooltip to be displayed when hovering over option
|
|
18
|
+
* @param dataTest - string attribute to be used for testing
|
|
17
19
|
* @param allowed - boolean indicating whether the option should be displayed
|
|
18
20
|
* @param onClick - function to be called when clicking
|
|
19
21
|
*
|
|
20
22
|
* @returns the option to be displayed in the action button dropdown
|
|
21
23
|
*/
|
|
22
|
-
constructor({ id, label, icon, tooltip, allowed, onClick, }: ActionButtonDropdownOptionProps);
|
|
24
|
+
constructor({ id, label, icon, tooltip, dataTest, allowed, onClick, }: ActionButtonDropdownOptionProps);
|
|
23
25
|
setItemId: (id: string) => void;
|
|
24
26
|
}
|
|
25
27
|
export declare class ActionButtonDropdownSeparator implements ActionButtonDropdownInterface {
|
|
@@ -10,13 +10,14 @@ var ActionButtonDropdownOption = /** @class */ (function () {
|
|
|
10
10
|
* @param label - label to be displayed on the option
|
|
11
11
|
* @param icon - icon to be displayed on the option
|
|
12
12
|
* @param tooltip - tooltip to be displayed when hovering over option
|
|
13
|
+
* @param dataTest - string attribute to be used for testing
|
|
13
14
|
* @param allowed - boolean indicating whether the option should be displayed
|
|
14
15
|
* @param onClick - function to be called when clicking
|
|
15
16
|
*
|
|
16
17
|
* @returns the option to be displayed in the action button dropdown
|
|
17
18
|
*/
|
|
18
19
|
function ActionButtonDropdownOption(_a) {
|
|
19
|
-
var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.tooltip, tooltip = _d === void 0 ? '' : _d, _e = _a.
|
|
20
|
+
var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.tooltip, tooltip = _d === void 0 ? '' : _d, _e = _a.dataTest, dataTest = _e === void 0 ? '' : _e, _f = _a.allowed, allowed = _f === void 0 ? true : _f, _g = _a.onClick, onClick = _g === void 0 ? function () { } : _g;
|
|
20
21
|
var _this = this;
|
|
21
22
|
this.id = '';
|
|
22
23
|
this.setItemId = function (id) {
|
|
@@ -28,6 +29,7 @@ var ActionButtonDropdownOption = /** @class */ (function () {
|
|
|
28
29
|
this.label = label;
|
|
29
30
|
this.icon = icon;
|
|
30
31
|
this.tooltip = tooltip;
|
|
32
|
+
this.dataTest = dataTest;
|
|
31
33
|
this.allowed = allowed;
|
|
32
34
|
this.onClick = onClick;
|
|
33
35
|
this.type = enums_1.ActionButtonDropdownItemType.OPTION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/action-button-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAKvD,uCAAuC;AAEvC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/action-button-dropdown-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAKvD,uCAAuC;AAEvC;IAiBE;;;;;;;;;;;OAWG;IACH,oCAAY,EAEsB;YADhC,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA;QAD5F,iBAaC;QAzCD,OAAE,GAAW,EAAE,CAAC;QA2ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,qCAA8B,EAAE,CAAE,CAAC;QAC/C,CAAC,CAAC;QAdA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,oCAA4B,CAAC,MAAM,CAAC;IAClD,CAAC;IAKH,iCAAC;AAAD,CAAC,AA/CD,IA+CC;AA/CY,gEAA0B;AAiDvC;IAKE;QAAA,iBAEC;QAND,OAAE,GAAW,EAAE,CAAC;QAQhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,wCAAiC,EAAE,CAAE,CAAC;QAClD,CAAC,CAAC;QALA,IAAI,CAAC,IAAI,GAAG,oCAA4B,CAAC,SAAS,CAAC;IACrD,CAAC;IAKH,oCAAC;AAAD,CAAC,AAZD,IAYC;AAZY,sEAA6B"}
|
|
@@ -5,7 +5,8 @@ declare class ActionsBarItem implements ActionsBarInterface {
|
|
|
5
5
|
id: string;
|
|
6
6
|
type: ActionsBarItemType;
|
|
7
7
|
position: ActionsBarPosition;
|
|
8
|
-
|
|
8
|
+
dataTest: string;
|
|
9
|
+
constructor({ id, type, position, dataTest, }: ActionsBarItemProps);
|
|
9
10
|
setItemId(id: string): void;
|
|
10
11
|
}
|
|
11
12
|
export declare class ActionsBarButton extends ActionsBarItem {
|
|
@@ -17,14 +18,15 @@ export declare class ActionsBarButton extends ActionsBarItem {
|
|
|
17
18
|
* a button.
|
|
18
19
|
*
|
|
19
20
|
* @param icon - icon to be used in the button for the action bar - it can be the iconName
|
|
20
|
-
* from
|
|
21
|
+
* from BigBlueButton or an svg
|
|
21
22
|
* @param tooltip - tooltip to be displayed when hovering the button
|
|
23
|
+
* @param dataTest - string attribute to be used for testing
|
|
22
24
|
* @param onClick - function to be called when clicking the button
|
|
23
25
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
24
26
|
*
|
|
25
27
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
26
28
|
*/
|
|
27
|
-
constructor({ id, icon, tooltip, onClick, position, }: ActionsBarButtonProps);
|
|
29
|
+
constructor({ id, icon, tooltip, dataTest, onClick, position, }: ActionsBarButtonProps);
|
|
28
30
|
}
|
|
29
31
|
export declare class ActionsBarSeparator extends ActionsBarItem {
|
|
30
32
|
icon: string;
|
|
@@ -35,10 +37,11 @@ export declare class ActionsBarSeparator extends ActionsBarItem {
|
|
|
35
37
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
36
38
|
* @param icon - Icon to be displayed as the separator. If not provided, the default separator
|
|
37
39
|
* (a vertical bar) will be displayed.
|
|
40
|
+
* @param dataTest - string attribute to be used for testing
|
|
38
41
|
*
|
|
39
42
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
40
43
|
*/
|
|
41
|
-
constructor({ position, icon, }: ActionsBarSeparatorProps);
|
|
44
|
+
constructor({ position, icon, dataTest, }: ActionsBarSeparatorProps);
|
|
42
45
|
}
|
|
43
46
|
export declare class ActionsBarSelector extends ActionsBarItem {
|
|
44
47
|
title: string;
|
|
@@ -54,13 +57,14 @@ export declare class ActionsBarSelector extends ActionsBarItem {
|
|
|
54
57
|
* @param options - an array of options to be available in the selector
|
|
55
58
|
* @param defaultOption - the option to be initially selected, if not present, the first option is
|
|
56
59
|
* selected
|
|
60
|
+
* @param dataTest - string attribute to be used for testing
|
|
57
61
|
* @param onChange - function to be called when selected value changes
|
|
58
62
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
59
63
|
* @param width - desired width for the selector in px, default is 140
|
|
60
64
|
*
|
|
61
65
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
62
66
|
*/
|
|
63
|
-
constructor({ id, title, options, defaultOption, onChange, position, width, }: ActionsBarSelectorProps);
|
|
67
|
+
constructor({ id, title, options, defaultOption, dataTest, onChange, position, width, }: ActionsBarSelectorProps);
|
|
64
68
|
}
|
|
65
69
|
export declare class ActionsBarToggleGroup extends ActionsBarItem {
|
|
66
70
|
title: string;
|
|
@@ -78,11 +82,12 @@ export declare class ActionsBarToggleGroup extends ActionsBarItem {
|
|
|
78
82
|
* @param options - an array of options to be available in the toggle group
|
|
79
83
|
* @param defaultOption - the option to be initially checked, if not present, the first option is
|
|
80
84
|
* checked
|
|
85
|
+
* @param dataTest - string attribute to be used for testing
|
|
81
86
|
* @param onChange - function to be called when checked value changes
|
|
82
87
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
83
88
|
*
|
|
84
89
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
85
90
|
*/
|
|
86
|
-
constructor({ id, title, exclusive, options, defaultOption, onChange, position, }: ActionsBarToggleGroupProps);
|
|
91
|
+
constructor({ id, title, exclusive, options, defaultOption, dataTest, onChange, position, }: ActionsBarToggleGroupProps);
|
|
87
92
|
}
|
|
88
93
|
export {};
|
|
@@ -20,13 +20,14 @@ var enums_1 = require("./enums");
|
|
|
20
20
|
// ActionsBar Extensible Area
|
|
21
21
|
var ActionsBarItem = /** @class */ (function () {
|
|
22
22
|
function ActionsBarItem(_a) {
|
|
23
|
-
var id = _a.id, type = _a.type, _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b;
|
|
23
|
+
var id = _a.id, type = _a.type, _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b, _c = _a.dataTest, dataTest = _c === void 0 ? '' : _c;
|
|
24
24
|
this.id = '';
|
|
25
25
|
if (id) {
|
|
26
26
|
this.id = id;
|
|
27
27
|
}
|
|
28
28
|
this.type = type;
|
|
29
29
|
this.position = position;
|
|
30
|
+
this.dataTest = dataTest;
|
|
30
31
|
}
|
|
31
32
|
ActionsBarItem.prototype.setItemId = function (id) {
|
|
32
33
|
this.id = "ActionsBar".concat(this.type, "_").concat(id);
|
|
@@ -40,18 +41,25 @@ var ActionsBarButton = /** @class */ (function (_super) {
|
|
|
40
41
|
* a button.
|
|
41
42
|
*
|
|
42
43
|
* @param icon - icon to be used in the button for the action bar - it can be the iconName
|
|
43
|
-
* from
|
|
44
|
+
* from BigBlueButton or an svg
|
|
44
45
|
* @param tooltip - tooltip to be displayed when hovering the button
|
|
46
|
+
* @param dataTest - string attribute to be used for testing
|
|
45
47
|
* @param onClick - function to be called when clicking the button
|
|
46
48
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
47
49
|
*
|
|
48
50
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
49
51
|
*/
|
|
50
52
|
function ActionsBarButton(_a) {
|
|
51
|
-
var id = _a.id, icon = _a.icon, _b = _a.tooltip, tooltip = _b === void 0 ? '' : _b, _c = _a.onClick, onClick =
|
|
52
|
-
var _this = _super.call(this, {
|
|
53
|
+
var id = _a.id, icon = _a.icon, _b = _a.tooltip, tooltip = _b === void 0 ? '' : _b, _c = _a.dataTest, dataTest = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.position, position = _e === void 0 ? enums_1.ActionsBarPosition.RIGHT : _e;
|
|
54
|
+
var _this = _super.call(this, {
|
|
55
|
+
id: id,
|
|
56
|
+
type: enums_1.ActionsBarItemType.BUTTON,
|
|
57
|
+
position: position,
|
|
58
|
+
dataTest: dataTest,
|
|
59
|
+
}) || this;
|
|
53
60
|
_this.icon = icon;
|
|
54
61
|
_this.tooltip = tooltip;
|
|
62
|
+
_this.dataTest = dataTest;
|
|
55
63
|
_this.onClick = onClick;
|
|
56
64
|
return _this;
|
|
57
65
|
}
|
|
@@ -67,12 +75,13 @@ var ActionsBarSeparator = /** @class */ (function (_super) {
|
|
|
67
75
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
68
76
|
* @param icon - Icon to be displayed as the separator. If not provided, the default separator
|
|
69
77
|
* (a vertical bar) will be displayed.
|
|
78
|
+
* @param dataTest - string attribute to be used for testing
|
|
70
79
|
*
|
|
71
80
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
72
81
|
*/
|
|
73
82
|
function ActionsBarSeparator(_a) {
|
|
74
|
-
var _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c;
|
|
75
|
-
var _this = _super.call(this, { type: enums_1.ActionsBarItemType.SEPARATOR, position: position }) || this;
|
|
83
|
+
var _b = _a.position, position = _b === void 0 ? enums_1.ActionsBarPosition.RIGHT : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d;
|
|
84
|
+
var _this = _super.call(this, { type: enums_1.ActionsBarItemType.SEPARATOR, position: position, dataTest: dataTest }) || this;
|
|
76
85
|
_this.icon = icon;
|
|
77
86
|
return _this;
|
|
78
87
|
}
|
|
@@ -89,6 +98,7 @@ var ActionsBarSelector = /** @class */ (function (_super) {
|
|
|
89
98
|
* @param options - an array of options to be available in the selector
|
|
90
99
|
* @param defaultOption - the option to be initially selected, if not present, the first option is
|
|
91
100
|
* selected
|
|
101
|
+
* @param dataTest - string attribute to be used for testing
|
|
92
102
|
* @param onChange - function to be called when selected value changes
|
|
93
103
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
94
104
|
* @param width - desired width for the selector in px, default is 140
|
|
@@ -96,8 +106,13 @@ var ActionsBarSelector = /** @class */ (function (_super) {
|
|
|
96
106
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
97
107
|
*/
|
|
98
108
|
function ActionsBarSelector(_a) {
|
|
99
|
-
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.defaultOption, defaultOption = _d === void 0 ? options[0] : _d, _e = _a.onChange, onChange =
|
|
100
|
-
var _this = _super.call(this, {
|
|
109
|
+
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.defaultOption, defaultOption = _d === void 0 ? options[0] : _d, _e = _a.dataTest, dataTest = _e === void 0 ? '' : _e, _f = _a.onChange, onChange = _f === void 0 ? function () { } : _f, _g = _a.position, position = _g === void 0 ? enums_1.ActionsBarPosition.RIGHT : _g, _h = _a.width, width = _h === void 0 ? 140 : _h;
|
|
110
|
+
var _this = _super.call(this, {
|
|
111
|
+
id: id,
|
|
112
|
+
type: enums_1.ActionsBarItemType.SELECTOR,
|
|
113
|
+
position: position,
|
|
114
|
+
dataTest: dataTest,
|
|
115
|
+
}) || this;
|
|
101
116
|
_this.width = 145;
|
|
102
117
|
_this.title = title;
|
|
103
118
|
_this.options = options;
|
|
@@ -121,14 +136,20 @@ var ActionsBarToggleGroup = /** @class */ (function (_super) {
|
|
|
121
136
|
* @param options - an array of options to be available in the toggle group
|
|
122
137
|
* @param defaultOption - the option to be initially checked, if not present, the first option is
|
|
123
138
|
* checked
|
|
139
|
+
* @param dataTest - string attribute to be used for testing
|
|
124
140
|
* @param onChange - function to be called when checked value changes
|
|
125
141
|
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
|
|
126
142
|
*
|
|
127
143
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
|
|
128
144
|
*/
|
|
129
145
|
function ActionsBarToggleGroup(_a) {
|
|
130
|
-
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.exclusive, exclusive = _c === void 0 ? true : _c, _d = _a.options, options = _d === void 0 ? [] : _d, _e = _a.defaultOption, defaultOption = _e === void 0 ? options[0] : _e, _f = _a.onChange, onChange =
|
|
131
|
-
var _this = _super.call(this, {
|
|
146
|
+
var id = _a.id, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.exclusive, exclusive = _c === void 0 ? true : _c, _d = _a.options, options = _d === void 0 ? [] : _d, _e = _a.defaultOption, defaultOption = _e === void 0 ? options[0] : _e, _f = _a.dataTest, dataTest = _f === void 0 ? '' : _f, _g = _a.onChange, onChange = _g === void 0 ? function () { } : _g, _h = _a.position, position = _h === void 0 ? enums_1.ActionsBarPosition.RIGHT : _h;
|
|
147
|
+
var _this = _super.call(this, {
|
|
148
|
+
id: id,
|
|
149
|
+
type: enums_1.ActionsBarItemType.TOGGLE_GROUP,
|
|
150
|
+
position: position,
|
|
151
|
+
dataTest: dataTest,
|
|
152
|
+
}) || this;
|
|
132
153
|
_this.title = title;
|
|
133
154
|
_this.exclusive = exclusive;
|
|
134
155
|
_this.options = options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iCAAiE;AAajE,6BAA6B;AAE7B;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/actions-bar-item/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iCAAiE;AAajE,6BAA6B;AAE7B;IASE,wBAAY,EAEU;YADpB,EAAE,QAAA,EAAE,IAAI,UAAA,EAAE,gBAAmC,EAAnC,QAAQ,mBAAG,0BAAkB,CAAC,KAAK,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;QAT9D,OAAE,GAAW,EAAE,CAAC;QAWd,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,kCAAS,GAAT,UAAU,EAAU;QAClB,IAAI,CAAC,EAAE,GAAG,oBAAa,IAAI,CAAC,IAAI,cAAI,EAAE,CAAE,CAAC;IAC3C,CAAC;IACH,qBAAC;AAAD,CAAC,AAvBD,IAuBC;AAED;IAAsC,oCAAc;IAOlD;;;;;;;;;;;;OAYG;IACH,0BAAY,EAEY;YADtB,EAAE,QAAA,EAAE,IAAI,UAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb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SAMH;QALC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC3B,CAAC;IACH,4BAAC;AAAD,CAAC,AA/CD,CAA2C,cAAc,GA+CxD;AA/CY,sDAAqB"}
|
|
@@ -11,6 +11,7 @@ export interface ActionsBarItemProps {
|
|
|
11
11
|
id?: string;
|
|
12
12
|
position: ActionsBarPosition;
|
|
13
13
|
type: ActionsBarItemType;
|
|
14
|
+
dataTest?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface ActionsBarButtonIconSvg {
|
|
16
17
|
svgContent: React.SVGProps<SVGSVGElement>;
|
|
@@ -27,17 +28,21 @@ export interface ActionsBarButtonProps {
|
|
|
27
28
|
icon: ActionsBarIconType;
|
|
28
29
|
tooltip: string;
|
|
29
30
|
position: ActionsBarPosition;
|
|
31
|
+
dataTest?: string;
|
|
30
32
|
onClick: () => void;
|
|
31
33
|
}
|
|
32
34
|
export interface ActionsBarSeparatorProps {
|
|
33
35
|
position: ActionsBarPosition;
|
|
34
36
|
icon?: string;
|
|
37
|
+
dataTest?: string;
|
|
35
38
|
}
|
|
36
39
|
export interface SelectOption {
|
|
37
40
|
value: string | number;
|
|
38
41
|
label: string;
|
|
42
|
+
dataTest?: string;
|
|
39
43
|
}
|
|
40
44
|
export interface ToggleGroupOption extends SelectOption {
|
|
45
|
+
dataTest?: string;
|
|
41
46
|
}
|
|
42
47
|
export interface ActionsBarSelectorProps {
|
|
43
48
|
id?: string;
|
|
@@ -47,6 +52,7 @@ export interface ActionsBarSelectorProps {
|
|
|
47
52
|
onChange: (value: string | number, event: ChangeEvent<HTMLInputElement>) => void;
|
|
48
53
|
position: ActionsBarPosition;
|
|
49
54
|
width?: number;
|
|
55
|
+
dataTest?: string;
|
|
50
56
|
}
|
|
51
57
|
export interface ActionsBarToggleGroupProps {
|
|
52
58
|
id?: string;
|
|
@@ -56,4 +62,5 @@ export interface ActionsBarToggleGroupProps {
|
|
|
56
62
|
exclusive?: boolean;
|
|
57
63
|
onChange: (values: string | number | string[] | number[], event: MouseEvent<HTMLElement>) => void;
|
|
58
64
|
position: ActionsBarPosition;
|
|
65
|
+
dataTest?: string;
|
|
59
66
|
}
|
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.82",
|
|
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,11 +14,14 @@
|
|
|
14
14
|
"react-dom": "^18.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
+
"@playwright/test": "^1.51.1",
|
|
17
18
|
"@types/node": "^20.4.4",
|
|
18
19
|
"@types/react": "^18.2.15",
|
|
19
20
|
"@types/react-dom": "^18.2.7",
|
|
20
21
|
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
|
21
22
|
"@typescript-eslint/parser": "^6.2.0",
|
|
23
|
+
"axios": "^1.8.4",
|
|
24
|
+
"dotenv": "^16.4.7",
|
|
22
25
|
"eslint": "^8.45.0",
|
|
23
26
|
"eslint-config-airbnb": "^19.0.4",
|
|
24
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -30,8 +33,10 @@
|
|
|
30
33
|
"lint-staged": "11.2.0",
|
|
31
34
|
"react": "^18.2.0",
|
|
32
35
|
"react-dom": "^18.2.0",
|
|
36
|
+
"sha.js": "^2.4.11",
|
|
33
37
|
"typescript": "^5.1.6",
|
|
34
|
-
"watch": "^
|
|
38
|
+
"watch": "^0.13.0",
|
|
39
|
+
"xml2js": "^0.6.2"
|
|
35
40
|
},
|
|
36
41
|
"scripts": {
|
|
37
42
|
"prepublishOnly": "npm run build # runs before publish",
|
|
@@ -39,7 +44,9 @@
|
|
|
39
44
|
"build:watch": "rm -rf dist && tsc -w --module CommonJS",
|
|
40
45
|
"lint": "eslint . --ignore-pattern node_modules",
|
|
41
46
|
"lint:fix": "npm run lint -- --fix",
|
|
42
|
-
"lint:watch": "watch 'yarn lint'"
|
|
47
|
+
"lint:watch": "watch 'yarn lint'",
|
|
48
|
+
"test": "npx playwright test",
|
|
49
|
+
"test-chromium-ci": "export CI='true' && npx playwright test --project=chromium"
|
|
43
50
|
},
|
|
44
51
|
"files": [
|
|
45
52
|
"dist"
|
|
@@ -63,4 +70,4 @@
|
|
|
63
70
|
"@browser-bunyan/console-formatted-stream": "^1.8.0",
|
|
64
71
|
"browser-bunyan": "^1.8.0"
|
|
65
72
|
}
|
|
66
|
-
}
|
|
73
|
+
}
|