bigbluebutton-html-plugin-sdk 0.0.94 → 0.0.96
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 +1045 -21
- package/dist/cjs/core/api/BbbPluginSdk.js +13 -6
- package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
- package/dist/cjs/core/api/types.d.ts +48 -1
- package/dist/cjs/core/auxiliary/plugin-information/locale-messages/types.d.ts +1 -1
- package/dist/cjs/data-channel/types.d.ts +2 -1
- package/dist/cjs/data-consumption/domain/meeting/index.d.ts +1 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/hooks.d.ts +3 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/hooks.js +9 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/types.d.ts +139 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/types.js +3 -0
- package/dist/cjs/data-consumption/domain/meeting/meeting-data/types.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/types.d.ts +2 -0
- package/dist/cjs/data-consumption/enums.d.ts +1 -0
- package/dist/cjs/data-consumption/enums.js +1 -0
- package/dist/cjs/data-consumption/enums.js.map +1 -1
- package/dist/cjs/data-consumption/factory/hooks.d.ts +4 -0
- package/dist/cjs/data-consumption/factory/hooks.js +55 -0
- package/dist/cjs/data-consumption/factory/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/factory/types.d.ts +3 -0
- package/dist/cjs/data-consumption/factory/types.js +3 -0
- package/dist/cjs/data-consumption/factory/types.js.map +1 -0
- package/dist/cjs/data-consumption/factory/utils.d.ts +2 -0
- package/dist/cjs/data-consumption/factory/utils.js +11 -0
- package/dist/cjs/data-consumption/factory/utils.js.map +1 -0
- package/dist/cjs/data-consumption/index.d.ts +1 -0
- package/dist/cjs/data-consumption/index.js +1 -0
- package/dist/cjs/data-consumption/index.js.map +1 -1
- package/dist/cjs/extensible-areas/base.d.ts +1 -0
- package/dist/cjs/extensible-areas/floating-window/component.d.ts +4 -1
- package/dist/cjs/extensible-areas/floating-window/component.js +4 -1
- package/dist/cjs/extensible-areas/floating-window/component.js.map +1 -1
- package/dist/cjs/extensible-areas/floating-window/types.d.ts +2 -0
- package/dist/cjs/extensible-areas/generic-content-item/component.d.ts +6 -2
- package/dist/cjs/extensible-areas/generic-content-item/component.js +6 -2
- package/dist/cjs/extensible-areas/generic-content-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/generic-content-item/types.d.ts +2 -0
- package/dist/cjs/extensible-areas/nav-bar-item/component.d.ts +6 -2
- package/dist/cjs/extensible-areas/nav-bar-item/component.js +6 -2
- package/dist/cjs/extensible-areas/nav-bar-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/nav-bar-item/types.d.ts +2 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/component.d.ts +9 -2
- package/dist/cjs/extensible-areas/options-dropdown-item/component.js +8 -2
- package/dist/cjs/extensible-areas/options-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/options-dropdown-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.d.ts +10 -3
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.js +9 -3
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/presentation-dropdown-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/screenshare-helper-item/component.d.ts +3 -1
- package/dist/cjs/extensible-areas/screenshare-helper-item/component.js +3 -1
- package/dist/cjs/extensible-areas/screenshare-helper-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/screenshare-helper-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.d.ts +7 -2
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.js +7 -2
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/types.d.ts +2 -0
- package/dist/cjs/extensible-areas/user-camera-helper-item/component.d.ts +3 -1
- package/dist/cjs/extensible-areas/user-camera-helper-item/component.js +3 -1
- package/dist/cjs/extensible-areas/user-camera-helper-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/user-camera-helper-item/types.d.ts +1 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.d.ts +15 -5
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js +15 -5
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js.map +1 -1
- package/dist/cjs/extensible-areas/user-list-dropdown-item/types.d.ts +5 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.d.ts +6 -2
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.js +6 -2
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.js.map +1 -1
- package/dist/cjs/extensible-areas/user-list-item-additional-information/types.d.ts +2 -0
- package/dist/cjs/learning-analytics-dashboard/commands.d.ts +5 -0
- package/dist/cjs/learning-analytics-dashboard/commands.js +43 -0
- package/dist/cjs/learning-analytics-dashboard/commands.js.map +1 -0
- package/dist/cjs/learning-analytics-dashboard/enums.d.ts +4 -1
- package/dist/cjs/learning-analytics-dashboard/enums.js +3 -0
- package/dist/cjs/learning-analytics-dashboard/enums.js.map +1 -1
- package/dist/cjs/learning-analytics-dashboard/types.d.ts +41 -2
- package/dist/cjs/server-commands/chat/commands.d.ts +18 -1
- package/dist/cjs/server-commands/chat/commands.js +25 -0
- package/dist/cjs/server-commands/chat/commands.js.map +1 -1
- package/dist/cjs/server-commands/chat/enum.d.ts +2 -1
- package/dist/cjs/server-commands/chat/enum.js +1 -0
- package/dist/cjs/server-commands/chat/enum.js.map +1 -1
- package/dist/cjs/server-commands/chat/types.d.ts +11 -0
- package/dist/cjs/server-commands/commands.d.ts +2 -0
- package/dist/cjs/ui-commands/chat/commands.d.ts +1 -1
- package/dist/cjs/ui-commands/chat/enums.d.ts +3 -0
- package/dist/cjs/ui-commands/chat/enums.js +8 -0
- package/dist/cjs/ui-commands/chat/enums.js.map +1 -0
- package/dist/cjs/ui-commands/chat/form/commands.d.ts +6 -3
- package/dist/cjs/ui-commands/chat/form/commands.js +13 -3
- package/dist/cjs/ui-commands/chat/form/commands.js.map +1 -1
- package/dist/cjs/ui-commands/chat/form/types.d.ts +4 -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/utils/logger/logger.d.ts +3 -1
- package/dist/cjs/utils/logger/logger.js +89 -1
- package/dist/cjs/utils/logger/logger.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/learning-analytics-dashboard/hooks.d.ts +0 -2
- package/dist/cjs/learning-analytics-dashboard/hooks.js +0 -14
- package/dist/cjs/learning-analytics-dashboard/hooks.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-camera-helper-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAiF;AAQjF,mCAAmC;AAEnC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-camera-helper-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAAiF;AAQjF,mCAAmC;AAEnC;IAqBE;;;;;;;;;;;;;;;;OAgBG;IACH,gCAAY,EAGkB;YAF5B,EAAE,QAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EAC3F,gBAAiD,EAAjD,QAAQ,mBAAG,oCAA4B,CAAC,SAAS,KAAA,EAAE,eAAe,qBAAA;QAFpE,iBAgBC;QArDD,OAAE,GAAW,EAAE,CAAC;QAuDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,iCAA0B,EAAE,CAAE,CAAC;QAC3C,CAAC,CAAC;QAhBA,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,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,gCAAwB,CAAC,MAAM,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAKH,6BAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,wDAAsB"}
|
|
@@ -8,6 +8,7 @@ export declare class UserListDropdownOption implements UserListDropdownInterface
|
|
|
8
8
|
icon: string;
|
|
9
9
|
tooltip: string;
|
|
10
10
|
allowed: boolean;
|
|
11
|
+
dataTest: string;
|
|
11
12
|
onClick: () => void;
|
|
12
13
|
/**
|
|
13
14
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
@@ -20,10 +21,11 @@ export declare class UserListDropdownOption implements UserListDropdownInterface
|
|
|
20
21
|
* @param allowed - if false, the use list dropdown will not appear in the dropdown.
|
|
21
22
|
* @param userId - the userId in which this dropdown option will appear when the user
|
|
22
23
|
* list item is clicked.
|
|
24
|
+
* @param dataTest - string attribute to be used for testing
|
|
23
25
|
*
|
|
24
26
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
25
27
|
*/
|
|
26
|
-
constructor({ label, icon, tooltip, allowed, onClick, userId, }: UserListDropdownOptionProps);
|
|
28
|
+
constructor({ label, icon, tooltip, allowed, dataTest, onClick, userId, }: UserListDropdownOptionProps);
|
|
27
29
|
setItemId: (id: string) => void;
|
|
28
30
|
}
|
|
29
31
|
export declare class UserListDropdownSeparator implements UserListDropdownInterface {
|
|
@@ -31,16 +33,18 @@ export declare class UserListDropdownSeparator implements UserListDropdownInterf
|
|
|
31
33
|
userId: string;
|
|
32
34
|
position: UserListDropdownSeparatorPosition;
|
|
33
35
|
type: UserListDropdownItemType;
|
|
36
|
+
dataTest: string;
|
|
34
37
|
/**
|
|
35
38
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
36
39
|
* a separator.
|
|
37
40
|
*
|
|
38
41
|
* @param userId - the userId in which this dropdown separator will appear when the user
|
|
39
42
|
* list item is clicked.
|
|
43
|
+
* @param dataTest - string attribute to be used for testing
|
|
40
44
|
*
|
|
41
45
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
42
46
|
*/
|
|
43
|
-
constructor({ userId, position }: UserListDropdownSeparatorProps);
|
|
47
|
+
constructor({ userId, position, dataTest }: UserListDropdownSeparatorProps);
|
|
44
48
|
setItemId: (id: string) => void;
|
|
45
49
|
}
|
|
46
50
|
export declare class UserListDropdownFixedContentInformation implements UserListDropdownInterface {
|
|
@@ -52,6 +56,7 @@ export declare class UserListDropdownFixedContentInformation implements UserList
|
|
|
52
56
|
iconRight: string;
|
|
53
57
|
textColor: string;
|
|
54
58
|
allowed: boolean;
|
|
59
|
+
dataTest: string;
|
|
55
60
|
/**
|
|
56
61
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
57
62
|
* a button.
|
|
@@ -65,10 +70,11 @@ export declare class UserListDropdownFixedContentInformation implements UserList
|
|
|
65
70
|
* @param textColor - Color that the text will have.
|
|
66
71
|
* @param userId - the userId in which this dropdown information will appear when the user
|
|
67
72
|
* list item is clicked.
|
|
73
|
+
* @param dataTest - string attribute to be used for testing
|
|
68
74
|
*
|
|
69
75
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
70
76
|
*/
|
|
71
|
-
constructor({ id, label, icon, iconRight, allowed, userId, textColor, }: UserListDropdownFixedContentInformationProps);
|
|
77
|
+
constructor({ id, label, icon, iconRight, allowed, userId, textColor, dataTest, }: UserListDropdownFixedContentInformationProps);
|
|
72
78
|
setItemId: (id: string) => void;
|
|
73
79
|
}
|
|
74
80
|
export declare class UserListDropdownGenericContentInformation implements UserListDropdownInterface {
|
|
@@ -76,6 +82,7 @@ export declare class UserListDropdownGenericContentInformation implements UserLi
|
|
|
76
82
|
userId: string;
|
|
77
83
|
allowed: boolean;
|
|
78
84
|
type: UserListDropdownItemType;
|
|
85
|
+
dataTest: string;
|
|
79
86
|
contentFunction: (element: HTMLElement) => void;
|
|
80
87
|
/**
|
|
81
88
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
@@ -90,10 +97,11 @@ export declare class UserListDropdownGenericContentInformation implements UserLi
|
|
|
90
97
|
* @param textColor - Color that the text will have.
|
|
91
98
|
* @param userId - the userId in which this dropdown information will appear when the user
|
|
92
99
|
* list item is clicked.
|
|
100
|
+
* @param dataTest - string attribute to be used for testing
|
|
93
101
|
*
|
|
94
102
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
95
103
|
*/
|
|
96
|
-
constructor({ id, contentFunction, allowed, userId, }: UserListDropdownGenericContentInformationProps);
|
|
104
|
+
constructor({ id, contentFunction, allowed, userId, dataTest, }: UserListDropdownGenericContentInformationProps);
|
|
97
105
|
setItemId: (id: string) => void;
|
|
98
106
|
}
|
|
99
107
|
export declare class UserListDropdownTitleAction implements UserListDropdownInterface {
|
|
@@ -102,6 +110,7 @@ export declare class UserListDropdownTitleAction implements UserListDropdownInte
|
|
|
102
110
|
type: UserListDropdownItemType;
|
|
103
111
|
icon: string;
|
|
104
112
|
tooltip: string;
|
|
113
|
+
dataTest: string;
|
|
105
114
|
onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
|
|
106
115
|
/**
|
|
107
116
|
* Returns object to be used in the setter for the User List Dropdown. In this case,
|
|
@@ -113,9 +122,10 @@ export declare class UserListDropdownTitleAction implements UserListDropdownInte
|
|
|
113
122
|
* It goes on the left side of it.
|
|
114
123
|
* @param userId - the userId in which this dropdown title action will appear when the user
|
|
115
124
|
* list item is clicked.
|
|
125
|
+
* @param dataTest - string attribute to be used for testing
|
|
116
126
|
*
|
|
117
127
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
118
128
|
*/
|
|
119
|
-
constructor({ id, icon, userId, onClick, tooltip, }: UserListDropdownTitleActionProps);
|
|
129
|
+
constructor({ id, icon, userId, onClick, tooltip, dataTest, }: UserListDropdownTitleActionProps);
|
|
120
130
|
setItemId: (id: string) => void;
|
|
121
131
|
}
|
|
@@ -15,11 +15,12 @@ var UserListDropdownOption = /** @class */ (function () {
|
|
|
15
15
|
* @param allowed - if false, the use list dropdown will not appear in the dropdown.
|
|
16
16
|
* @param userId - the userId in which this dropdown option will appear when the user
|
|
17
17
|
* list item is clicked.
|
|
18
|
+
* @param dataTest - string attribute to be used for testing
|
|
18
19
|
*
|
|
19
20
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
20
21
|
*/
|
|
21
22
|
function UserListDropdownOption(_a) {
|
|
22
|
-
var _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.allowed, allowed = _e === void 0 ? true : _e, _f = _a.onClick, onClick =
|
|
23
|
+
var _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.allowed, allowed = _e === void 0 ? true : _e, _f = _a.dataTest, dataTest = _f === void 0 ? '' : _f, _g = _a.onClick, onClick = _g === void 0 ? function () { } : _g, _h = _a.userId, userId = _h === void 0 ? '' : _h;
|
|
23
24
|
var _this = this;
|
|
24
25
|
this.id = '';
|
|
25
26
|
this.setItemId = function (id) {
|
|
@@ -30,6 +31,7 @@ var UserListDropdownOption = /** @class */ (function () {
|
|
|
30
31
|
this.icon = icon;
|
|
31
32
|
this.tooltip = tooltip;
|
|
32
33
|
this.allowed = allowed;
|
|
34
|
+
this.dataTest = dataTest;
|
|
33
35
|
this.onClick = onClick;
|
|
34
36
|
this.type = enums_1.UserListDropdownItemType.OPTION;
|
|
35
37
|
}
|
|
@@ -43,11 +45,12 @@ var UserListDropdownSeparator = /** @class */ (function () {
|
|
|
43
45
|
*
|
|
44
46
|
* @param userId - the userId in which this dropdown separator will appear when the user
|
|
45
47
|
* list item is clicked.
|
|
48
|
+
* @param dataTest - string attribute to be used for testing
|
|
46
49
|
*
|
|
47
50
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
48
51
|
*/
|
|
49
52
|
function UserListDropdownSeparator(_a) {
|
|
50
|
-
var _b = _a.userId, userId = _b === void 0 ? '' : _b, _c = _a.position, position = _c === void 0 ? enums_1.UserListDropdownSeparatorPosition.AFTER : _c;
|
|
53
|
+
var _b = _a.userId, userId = _b === void 0 ? '' : _b, _c = _a.position, position = _c === void 0 ? enums_1.UserListDropdownSeparatorPosition.AFTER : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d;
|
|
51
54
|
var _this = this;
|
|
52
55
|
this.id = '';
|
|
53
56
|
this.position = enums_1.UserListDropdownSeparatorPosition.AFTER;
|
|
@@ -56,6 +59,7 @@ var UserListDropdownSeparator = /** @class */ (function () {
|
|
|
56
59
|
};
|
|
57
60
|
this.userId = userId;
|
|
58
61
|
this.position = position;
|
|
62
|
+
this.dataTest = dataTest;
|
|
59
63
|
this.type = enums_1.UserListDropdownItemType.SEPARATOR;
|
|
60
64
|
}
|
|
61
65
|
return UserListDropdownSeparator;
|
|
@@ -75,11 +79,12 @@ var UserListDropdownFixedContentInformation = /** @class */ (function () {
|
|
|
75
79
|
* @param textColor - Color that the text will have.
|
|
76
80
|
* @param userId - the userId in which this dropdown information will appear when the user
|
|
77
81
|
* list item is clicked.
|
|
82
|
+
* @param dataTest - string attribute to be used for testing
|
|
78
83
|
*
|
|
79
84
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
80
85
|
*/
|
|
81
86
|
function UserListDropdownFixedContentInformation(_a) {
|
|
82
|
-
var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.iconRight, iconRight = _d === void 0 ? '' : _d, _e = _a.allowed, allowed = _e === void 0 ? true : _e, _f = _a.userId, userId = _f === void 0 ? '' : _f, _g = _a.textColor, textColor = _g === void 0 ? '' : _g;
|
|
87
|
+
var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.iconRight, iconRight = _d === void 0 ? '' : _d, _e = _a.allowed, allowed = _e === void 0 ? true : _e, _f = _a.userId, userId = _f === void 0 ? '' : _f, _g = _a.textColor, textColor = _g === void 0 ? '' : _g, _h = _a.dataTest, dataTest = _h === void 0 ? '' : _h;
|
|
83
88
|
var _this = this;
|
|
84
89
|
this.id = '';
|
|
85
90
|
this.setItemId = function (id) {
|
|
@@ -94,6 +99,7 @@ var UserListDropdownFixedContentInformation = /** @class */ (function () {
|
|
|
94
99
|
this.iconRight = iconRight;
|
|
95
100
|
this.textColor = textColor;
|
|
96
101
|
this.allowed = allowed;
|
|
102
|
+
this.dataTest = dataTest;
|
|
97
103
|
this.type = enums_1.UserListDropdownItemType.FIXED_CONTENT_INFORMATION;
|
|
98
104
|
}
|
|
99
105
|
return UserListDropdownFixedContentInformation;
|
|
@@ -113,11 +119,12 @@ var UserListDropdownGenericContentInformation = /** @class */ (function () {
|
|
|
113
119
|
* @param textColor - Color that the text will have.
|
|
114
120
|
* @param userId - the userId in which this dropdown information will appear when the user
|
|
115
121
|
* list item is clicked.
|
|
122
|
+
* @param dataTest - string attribute to be used for testing
|
|
116
123
|
*
|
|
117
124
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
118
125
|
*/
|
|
119
126
|
function UserListDropdownGenericContentInformation(_a) {
|
|
120
|
-
var id = _a.id, contentFunction = _a.contentFunction, _b = _a.allowed, allowed = _b === void 0 ? true : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c;
|
|
127
|
+
var id = _a.id, contentFunction = _a.contentFunction, _b = _a.allowed, allowed = _b === void 0 ? true : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d;
|
|
121
128
|
var _this = this;
|
|
122
129
|
this.id = '';
|
|
123
130
|
this.setItemId = function (id) {
|
|
@@ -128,6 +135,7 @@ var UserListDropdownGenericContentInformation = /** @class */ (function () {
|
|
|
128
135
|
}
|
|
129
136
|
this.userId = userId;
|
|
130
137
|
this.allowed = allowed;
|
|
138
|
+
this.dataTest = dataTest;
|
|
131
139
|
this.contentFunction = contentFunction;
|
|
132
140
|
this.type = enums_1.UserListDropdownItemType.GENERIC_CONTENT_INFORMATION;
|
|
133
141
|
}
|
|
@@ -145,11 +153,12 @@ var UserListDropdownTitleAction = /** @class */ (function () {
|
|
|
145
153
|
* It goes on the left side of it.
|
|
146
154
|
* @param userId - the userId in which this dropdown title action will appear when the user
|
|
147
155
|
* list item is clicked.
|
|
156
|
+
* @param dataTest - string attribute to be used for testing
|
|
148
157
|
*
|
|
149
158
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
150
159
|
*/
|
|
151
160
|
function UserListDropdownTitleAction(_a) {
|
|
152
|
-
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, onClick = _a.onClick, tooltip = _a.tooltip;
|
|
161
|
+
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, onClick = _a.onClick, tooltip = _a.tooltip, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d;
|
|
153
162
|
var _this = this;
|
|
154
163
|
this.id = '';
|
|
155
164
|
this.setItemId = function (id) {
|
|
@@ -161,6 +170,7 @@ var UserListDropdownTitleAction = /** @class */ (function () {
|
|
|
161
170
|
this.userId = userId;
|
|
162
171
|
this.icon = icon;
|
|
163
172
|
this.tooltip = tooltip;
|
|
173
|
+
this.dataTest = dataTest;
|
|
164
174
|
this.onClick = onClick;
|
|
165
175
|
this.type = enums_1.UserListDropdownItemType.TITLE_ACTION;
|
|
166
176
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/component.ts"],"names":[],"mappings":";;;AAQA,iCAAsF;AAEtF,mCAAmC;AAEnC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-dropdown-item/component.ts"],"names":[],"mappings":";;;AAQA,iCAAsF;AAEtF,mCAAmC;AAEnC;IAmBE;;;;;;;;;;;;;;OAcG;IACH,gCAAY,EAGkB;YAF5B,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EAAE,eAAkB,EAAlB,OAAO,mBAAG,cAAO,CAAC,KAAA,EACtF,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA;QAFb,iBAYC;QA7CD,OAAE,GAAW,EAAE,CAAC;QA+ChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,iC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8CC;AA9CY,kEAA2B"}
|
|
@@ -18,16 +18,19 @@ export interface UserListDropdownOptionProps {
|
|
|
18
18
|
allowed: boolean;
|
|
19
19
|
userId: string;
|
|
20
20
|
onClick: () => void;
|
|
21
|
+
dataTest?: string;
|
|
21
22
|
}
|
|
22
23
|
export interface UserListDropdownSeparatorProps {
|
|
23
24
|
userId: string;
|
|
24
25
|
position?: UserListDropdownSeparatorPosition;
|
|
26
|
+
dataTest?: string;
|
|
25
27
|
}
|
|
26
28
|
export interface UserListDropdownGenericContentInformationProps {
|
|
27
29
|
id?: string;
|
|
28
30
|
contentFunction: (element: HTMLElement) => void;
|
|
29
31
|
allowed: boolean;
|
|
30
32
|
userId: string;
|
|
33
|
+
dataTest?: string;
|
|
31
34
|
}
|
|
32
35
|
export interface UserListDropdownFixedContentInformationProps {
|
|
33
36
|
id?: string;
|
|
@@ -37,6 +40,7 @@ export interface UserListDropdownFixedContentInformationProps {
|
|
|
37
40
|
allowed: boolean;
|
|
38
41
|
userId: string;
|
|
39
42
|
textColor: string;
|
|
43
|
+
dataTest?: string;
|
|
40
44
|
}
|
|
41
45
|
export interface UserListDropdownTitleActionOnClickArguments {
|
|
42
46
|
browserEvent: React.MouseEvent<HTMLElement>;
|
|
@@ -47,4 +51,5 @@ export interface UserListDropdownTitleActionProps {
|
|
|
47
51
|
icon: string;
|
|
48
52
|
userId: string;
|
|
49
53
|
onClick: (args: UserListDropdownTitleActionOnClickArguments) => void;
|
|
54
|
+
dataTest?: string;
|
|
50
55
|
}
|
|
@@ -5,6 +5,7 @@ export declare class UserListItemIcon implements UserListItemAdditionalInformati
|
|
|
5
5
|
type: UserListItemAdditionalInformationType;
|
|
6
6
|
userId: string;
|
|
7
7
|
icon: string;
|
|
8
|
+
dataTest: string;
|
|
8
9
|
/**
|
|
9
10
|
* Returns object to be used in the setter for the User List Item Additional information Item.
|
|
10
11
|
* In this case, a icon.
|
|
@@ -13,10 +14,11 @@ export declare class UserListItemIcon implements UserListItemAdditionalInformati
|
|
|
13
14
|
* It goes on the left side of it.
|
|
14
15
|
* @param userId - the userId in which this information will appear when the user
|
|
15
16
|
* list item is clicked.
|
|
17
|
+
* @param dataTest - string attribute to be used for testing
|
|
16
18
|
*
|
|
17
19
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
18
20
|
*/
|
|
19
|
-
constructor({ id, icon, userId, }: UserListItemIconProps);
|
|
21
|
+
constructor({ id, icon, userId, dataTest, }: UserListItemIconProps);
|
|
20
22
|
setItemId: (id: string) => void;
|
|
21
23
|
}
|
|
22
24
|
export declare class UserListItemLabel implements UserListItemAdditionalInformationInterface {
|
|
@@ -25,6 +27,7 @@ export declare class UserListItemLabel implements UserListItemAdditionalInformat
|
|
|
25
27
|
userId: string;
|
|
26
28
|
icon: string;
|
|
27
29
|
label: string;
|
|
30
|
+
dataTest: string;
|
|
28
31
|
/**
|
|
29
32
|
* Returns object to be used in the setter for the User List Item Additional information Item.
|
|
30
33
|
* In this case, a label (Information).
|
|
@@ -34,9 +37,10 @@ export declare class UserListItemLabel implements UserListItemAdditionalInformat
|
|
|
34
37
|
* It goes on the left side of it.
|
|
35
38
|
* @param userId - the userId in which this information will appear when the user
|
|
36
39
|
* list item is clicked.
|
|
40
|
+
* @param dataTest - string attribute to be used for testing
|
|
37
41
|
*
|
|
38
42
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
39
43
|
*/
|
|
40
|
-
constructor({ id, icon, userId, label, }: UserListItemLabelProps);
|
|
44
|
+
constructor({ id, icon, userId, label, dataTest, }: UserListItemLabelProps);
|
|
41
45
|
setItemId: (id: string) => void;
|
|
42
46
|
}
|
|
@@ -12,11 +12,12 @@ var UserListItemIcon = /** @class */ (function () {
|
|
|
12
12
|
* It goes on the left side of it.
|
|
13
13
|
* @param userId - the userId in which this information will appear when the user
|
|
14
14
|
* list item is clicked.
|
|
15
|
+
* @param dataTest - string attribute to be used for testing
|
|
15
16
|
*
|
|
16
17
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
17
18
|
*/
|
|
18
19
|
function UserListItemIcon(_a) {
|
|
19
|
-
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c;
|
|
20
|
+
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d;
|
|
20
21
|
var _this = this;
|
|
21
22
|
this.id = '';
|
|
22
23
|
this.setItemId = function (id) {
|
|
@@ -27,6 +28,7 @@ var UserListItemIcon = /** @class */ (function () {
|
|
|
27
28
|
}
|
|
28
29
|
this.icon = icon;
|
|
29
30
|
this.userId = userId;
|
|
31
|
+
this.dataTest = dataTest;
|
|
30
32
|
this.type = enums_1.UserListItemAdditionalInformationType.ICON;
|
|
31
33
|
}
|
|
32
34
|
return UserListItemIcon;
|
|
@@ -42,11 +44,12 @@ var UserListItemLabel = /** @class */ (function () {
|
|
|
42
44
|
* It goes on the left side of it.
|
|
43
45
|
* @param userId - the userId in which this information will appear when the user
|
|
44
46
|
* list item is clicked.
|
|
47
|
+
* @param dataTest - string attribute to be used for testing
|
|
45
48
|
*
|
|
46
49
|
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
|
|
47
50
|
*/
|
|
48
51
|
function UserListItemLabel(_a) {
|
|
49
|
-
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, _d = _a.label, label = _d === void 0 ? '' : _d;
|
|
52
|
+
var id = _a.id, _b = _a.icon, icon = _b === void 0 ? '' : _b, _c = _a.userId, userId = _c === void 0 ? '' : _c, _d = _a.label, label = _d === void 0 ? '' : _d, _e = _a.dataTest, dataTest = _e === void 0 ? '' : _e;
|
|
50
53
|
var _this = this;
|
|
51
54
|
this.id = '';
|
|
52
55
|
this.setItemId = function (id) {
|
|
@@ -58,6 +61,7 @@ var UserListItemLabel = /** @class */ (function () {
|
|
|
58
61
|
this.icon = icon;
|
|
59
62
|
this.label = label;
|
|
60
63
|
this.userId = userId;
|
|
64
|
+
this.dataTest = dataTest;
|
|
61
65
|
this.type = enums_1.UserListItemAdditionalInformationType.LABEL;
|
|
62
66
|
}
|
|
63
67
|
return UserListItemLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-item-additional-information/component.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAMhE,oDAAoD;AAEpD;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/user-list-item-additional-information/component.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAMhE,oDAAoD;AAEpD;IAWE;;;;;;;;;;;OAWG;IACH,0BAAY,EAEY;YADtB,EAAE,QAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;QAD3C,iBAUC;QAhCD,OAAE,GAAW,EAAE,CAAC;QAkChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,2BAAoB,EAAE,CAAE,CAAC;QACrC,CAAC,CAAC;QAXA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,6CAAqC,CAAC,IAAI,CAAC;IACzD,CAAC;IAKH,uBAAC;AAAD,CAAC,AAtCD,IAsCC;AAtCY,4CAAgB;AAwC7B;IAaE;;;;;;;;;;;;OAYG;IACH,2BAAY,EAEa;YADvB,EAAE,QAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EAAE,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;QADvD,iBAWC;QApCD,OAAE,GAAW,EAAE,CAAC;QAsChB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,4BAAqB,EAAE,CAAE,CAAC;QACtC,CAAC,CAAC;QAZA,IAAI,EAAE,EAAE;YACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,6CAAqC,CAAC,KAAK,CAAC;IAC1D,CAAC;IAKH,wBAAC;AAAD,CAAC,AA1CD,IA0CC;AA1CY,8CAAiB"}
|
|
@@ -14,10 +14,12 @@ export interface UserListItemIconProps {
|
|
|
14
14
|
id?: string;
|
|
15
15
|
userId: string;
|
|
16
16
|
icon: string;
|
|
17
|
+
dataTest?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface UserListItemLabelProps {
|
|
19
20
|
id?: string;
|
|
20
21
|
userId: string;
|
|
21
22
|
icon: string;
|
|
22
23
|
label: string;
|
|
24
|
+
dataTest?: string;
|
|
23
25
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenericDataForLearningAnalyticsDashboard, LearningAnalyticsDashboardUserData, LearningAnalyticsDashboardDeleteUserData } from './types';
|
|
2
|
+
export declare const sendGenericDataForLearningAnalyticsDashboard: (data: GenericDataForLearningAnalyticsDashboard, pluginName: string) => void;
|
|
3
|
+
export declare const upsertUserData: (data: LearningAnalyticsDashboardUserData, pluginName: string, targetUserId?: string) => void;
|
|
4
|
+
export declare const deleteUserData: (data: LearningAnalyticsDashboardDeleteUserData, pluginName: string, targetUserId?: string) => void;
|
|
5
|
+
export declare const clearAllUsersData: (pluginName: string, cardTitle?: string) => void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clearAllUsersData = exports.deleteUserData = exports.upsertUserData = exports.sendGenericDataForLearningAnalyticsDashboard = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
var sendGenericDataForLearningAnalyticsDashboard = function (data, pluginName) {
|
|
6
|
+
window.dispatchEvent(new CustomEvent(enums_1.LearningAnalyticsDashboardEvents.GENERIC_DATA_SENT, {
|
|
7
|
+
detail: {
|
|
8
|
+
pluginName: pluginName,
|
|
9
|
+
data: data,
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
exports.sendGenericDataForLearningAnalyticsDashboard = sendGenericDataForLearningAnalyticsDashboard;
|
|
14
|
+
var upsertUserData = function (data, pluginName, targetUserId) {
|
|
15
|
+
window.dispatchEvent(new CustomEvent(enums_1.LearningAnalyticsDashboardEvents.UPSERT_USER_DATA_COMMAND_SENT, {
|
|
16
|
+
detail: {
|
|
17
|
+
pluginName: pluginName,
|
|
18
|
+
data: data,
|
|
19
|
+
targetUserId: targetUserId,
|
|
20
|
+
},
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
exports.upsertUserData = upsertUserData;
|
|
24
|
+
var deleteUserData = function (data, pluginName, targetUserId) {
|
|
25
|
+
window.dispatchEvent(new CustomEvent(enums_1.LearningAnalyticsDashboardEvents.DELETE_USER_DATA_COMMAND_SENT, {
|
|
26
|
+
detail: {
|
|
27
|
+
pluginName: pluginName,
|
|
28
|
+
data: data,
|
|
29
|
+
targetUserId: targetUserId,
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
exports.deleteUserData = deleteUserData;
|
|
34
|
+
var clearAllUsersData = function (pluginName, cardTitle) {
|
|
35
|
+
window.dispatchEvent(new CustomEvent(enums_1.LearningAnalyticsDashboardEvents.CLEAR_ALL_USERS_DATA_COMMAND_SENT, {
|
|
36
|
+
detail: {
|
|
37
|
+
pluginName: pluginName,
|
|
38
|
+
cardTitle: cardTitle,
|
|
39
|
+
},
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
exports.clearAllUsersData = clearAllUsersData;
|
|
43
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/learning-analytics-dashboard/commands.ts"],"names":[],"mappings":";;;AAOA,iCAA2D;AAEpD,IAAM,4CAA4C,GAAG,UAC1D,IAA8C,EAC9C,UAAkB;IAElB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAC2B,wCAAgC,CAAC,iBAAiB,EAAE;QAC1F,MAAM,EAAE;YACN,UAAU,YAAA;YACV,IAAI,MAAA;SACL;KACF,CAAC,CACL,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,4CAA4C,gDAavD;AAEK,IAAM,cAAc,GAAG,UAC5B,IAAwC,EACxC,UAAkB,EAClB,YAAqB;IAErB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEX,wCAAgC,CAAC,6BAA6B,EAC9D;QACE,MAAM,EAAE;YACN,UAAU,YAAA;YACV,IAAI,MAAA;YACJ,YAAY,cAAA;SACb;KACF,CACF,CACJ,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,cAAc,kBAkBzB;AAEK,IAAM,cAAc,GAAG,UAC5B,IAA8C,EAC9C,UAAkB,EAClB,YAAqB;IAErB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEX,wCAAgC,CAAC,6BAA6B,EAC9D;QACE,MAAM,EAAE;YACN,UAAU,YAAA;YACV,IAAI,MAAA;YACJ,YAAY,cAAA;SACb;KACF,CACF,CACJ,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,cAAc,kBAkBzB;AAEK,IAAM,iBAAiB,GAAG,UAC/B,UAAkB,EAClB,SAAkB;IAElB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEX,wCAAgC,CAAC,iCAAiC,EAClE;QACE,MAAM,EAAE;YACN,UAAU,YAAA;YACV,SAAS,WAAA;SACV;KACF,CACF,CACJ,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export declare enum LearningAnalyticsDashboardEvents {
|
|
2
|
-
GENERIC_DATA_SENT = "GENERIC_DATA_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT"
|
|
2
|
+
GENERIC_DATA_SENT = "GENERIC_DATA_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT",
|
|
3
|
+
UPSERT_USER_DATA_COMMAND_SENT = "UPSERT_USER_DATA_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT",
|
|
4
|
+
DELETE_USER_DATA_COMMAND_SENT = "DELETE_USER_DATA_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT",
|
|
5
|
+
CLEAR_ALL_USERS_DATA_COMMAND_SENT = "CLEAR_ALL_USERS_DATA_COMMAND_SENT_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT"
|
|
3
6
|
}
|
|
@@ -4,5 +4,8 @@ exports.LearningAnalyticsDashboardEvents = void 0;
|
|
|
4
4
|
var LearningAnalyticsDashboardEvents;
|
|
5
5
|
(function (LearningAnalyticsDashboardEvents) {
|
|
6
6
|
LearningAnalyticsDashboardEvents["GENERIC_DATA_SENT"] = "GENERIC_DATA_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT";
|
|
7
|
+
LearningAnalyticsDashboardEvents["UPSERT_USER_DATA_COMMAND_SENT"] = "UPSERT_USER_DATA_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT";
|
|
8
|
+
LearningAnalyticsDashboardEvents["DELETE_USER_DATA_COMMAND_SENT"] = "DELETE_USER_DATA_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT";
|
|
9
|
+
LearningAnalyticsDashboardEvents["CLEAR_ALL_USERS_DATA_COMMAND_SENT"] = "CLEAR_ALL_USERS_DATA_COMMAND_SENT_COMMAND_FOR_LEARNING_ANALYTICS_DASHBOARD_SENT";
|
|
7
10
|
})(LearningAnalyticsDashboardEvents || (exports.LearningAnalyticsDashboardEvents = LearningAnalyticsDashboardEvents = {}));
|
|
8
11
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/learning-analytics-dashboard/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/learning-analytics-dashboard/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAKX;AALD,WAAY,gCAAgC;IAC1C,4GAAwE,CAAA;IACxE,oIAAgG,CAAA;IAChG,oIAAgG,CAAA;IAChG,yJAAqH,CAAA;AACvH,CAAC,EALW,gCAAgC,gDAAhC,gCAAgC,QAK3C"}
|
|
@@ -3,8 +3,47 @@ export interface GenericDataForLearningAnalyticsDashboard {
|
|
|
3
3
|
columnTitle: string;
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
|
+
export type SendGenericDataForLearningAnalyticsDashboard = (data: GenericDataForLearningAnalyticsDashboard) => void;
|
|
7
|
+
export interface LearningAnalyticsDashboardUserData {
|
|
8
|
+
cardTitle: string;
|
|
9
|
+
columnTitle: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export type UpsertUserDataFunction = (data: LearningAnalyticsDashboardUserData, targetUserId?: string) => void;
|
|
13
|
+
export interface LearningAnalyticsDashboardDeleteUserData {
|
|
14
|
+
cardTitle: string;
|
|
15
|
+
columnTitle: string;
|
|
16
|
+
}
|
|
17
|
+
export type DeleteUserDataFunction = (data: LearningAnalyticsDashboardDeleteUserData, targetUserId?: string) => void;
|
|
18
|
+
export type ClearUsersDataFunction = (cardTitle?: string) => void;
|
|
6
19
|
export interface LearningAnalyticsDashboardEventDetails {
|
|
7
20
|
pluginName: string;
|
|
8
|
-
data: GenericDataForLearningAnalyticsDashboard;
|
|
21
|
+
data: GenericDataForLearningAnalyticsDashboard | LearningAnalyticsDashboardUserData | LearningAnalyticsDashboardDeleteUserData;
|
|
22
|
+
targetUserId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ClearLearningAnalyticsDashboardEventDetails {
|
|
25
|
+
pluginName: string;
|
|
26
|
+
cardTitle?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LearningAnalyticsDashboardWrapperObject {
|
|
29
|
+
/**
|
|
30
|
+
* Updates or insert a generic data entry in the learning dashboard for a target user
|
|
31
|
+
* (if target user is not passed, current user will be considered);
|
|
32
|
+
*
|
|
33
|
+
* @param data Data to insert or update
|
|
34
|
+
* @targetUserId string representing the internal userId of the target user (Optional)
|
|
35
|
+
*/
|
|
36
|
+
upsertUserData: UpsertUserDataFunction;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes generic data entry for target user (if target user is not passed,
|
|
39
|
+
* current user will be considered).
|
|
40
|
+
*
|
|
41
|
+
* @param data Data to be deleted
|
|
42
|
+
* @targetUserId string representing the internal userId of the target user (Optional)
|
|
43
|
+
*/
|
|
44
|
+
deleteUserData: DeleteUserDataFunction;
|
|
45
|
+
/**
|
|
46
|
+
* Clears all Users Data for a specific plugin. (No arguments required)
|
|
47
|
+
*/
|
|
48
|
+
clearAllUsersData: ClearUsersDataFunction;
|
|
9
49
|
}
|
|
10
|
-
export type SendGenericDataForLearningAnalyticsDashboard = (data: GenericDataForLearningAnalyticsDashboard) => void;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { ChatSendMessageCommandArguments } from './types';
|
|
1
|
+
import { ChatSendMessageCommandArguments, SendChatMessageArguments, CreatePrivateChatCommandArguments } from './types';
|
|
2
2
|
export declare const chat: (pluginName: string) => {
|
|
3
|
+
/**
|
|
4
|
+
* Sends chat message to specific chat.
|
|
5
|
+
*
|
|
6
|
+
* @param SendChatMessageArguments the text, custom metadata(optional), optional flag
|
|
7
|
+
* to tell whether or not the message will be custom, and the chatId;
|
|
8
|
+
* Refer to {@link SendChatMessageArguments} to understand the argument
|
|
9
|
+
* structure.
|
|
10
|
+
*/
|
|
11
|
+
sendChatMessage: (chatMessageArguments: SendChatMessageArguments) => void;
|
|
3
12
|
/**
|
|
4
13
|
* Sends chat message to the public chat.
|
|
5
14
|
*
|
|
@@ -19,4 +28,12 @@ export declare const chat: (pluginName: string) => {
|
|
|
19
28
|
* structure.
|
|
20
29
|
*/
|
|
21
30
|
sendCustomPublicChatMessage: (chatSendCustomPublicChatMessageCommandArguments: ChatSendMessageCommandArguments) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a private chat with a specific user.
|
|
33
|
+
*
|
|
34
|
+
* @param createPrivateChatCommandArguments the userId of the user to create a private chat with.
|
|
35
|
+
* Refer to {@link CreatePrivateChatCommandArguments} to understand the argument
|
|
36
|
+
* structure.
|
|
37
|
+
*/
|
|
38
|
+
createPrivateChat: (createPrivateChatCommandArguments: CreatePrivateChatCommandArguments) => void;
|
|
22
39
|
};
|
|
@@ -15,6 +15,19 @@ exports.chat = void 0;
|
|
|
15
15
|
var constants_1 = require("./constants");
|
|
16
16
|
var enum_1 = require("./enum");
|
|
17
17
|
var chat = function (pluginName) { return ({
|
|
18
|
+
/**
|
|
19
|
+
* Sends chat message to specific chat.
|
|
20
|
+
*
|
|
21
|
+
* @param SendChatMessageArguments the text, custom metadata(optional), optional flag
|
|
22
|
+
* to tell whether or not the message will be custom, and the chatId;
|
|
23
|
+
* Refer to {@link SendChatMessageArguments} to understand the argument
|
|
24
|
+
* structure.
|
|
25
|
+
*/
|
|
26
|
+
sendChatMessage: function (chatMessageArguments) {
|
|
27
|
+
window.dispatchEvent(new CustomEvent(enum_1.ChatCommandsEnum.SEND_MESSAGE, {
|
|
28
|
+
detail: __assign(__assign({ pluginName: pluginName }, chatMessageArguments), { custom: (chatMessageArguments === null || chatMessageArguments === void 0 ? void 0 : chatMessageArguments.custom) || false }),
|
|
29
|
+
}));
|
|
30
|
+
},
|
|
18
31
|
/**
|
|
19
32
|
* Sends chat message to the public chat.
|
|
20
33
|
*
|
|
@@ -42,6 +55,18 @@ var chat = function (pluginName) { return ({
|
|
|
42
55
|
detail: __assign({ chatId: constants_1.PUBLIC_CHAT_ID, pluginName: pluginName, custom: true }, chatSendCustomPublicChatMessageCommandArguments),
|
|
43
56
|
}));
|
|
44
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* Creates a private chat with a specific user.
|
|
60
|
+
*
|
|
61
|
+
* @param createPrivateChatCommandArguments the userId of the user to create a private chat with.
|
|
62
|
+
* Refer to {@link CreatePrivateChatCommandArguments} to understand the argument
|
|
63
|
+
* structure.
|
|
64
|
+
*/
|
|
65
|
+
createPrivateChat: function (createPrivateChatCommandArguments) {
|
|
66
|
+
window.dispatchEvent(new CustomEvent(enum_1.ChatCommandsEnum.CREATE_PRIVATE_CHAT, {
|
|
67
|
+
detail: __assign({}, createPrivateChatCommandArguments),
|
|
68
|
+
}));
|
|
69
|
+
},
|
|
45
70
|
}); };
|
|
46
71
|
exports.chat = chat;
|
|
47
72
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/server-commands/chat/commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yCAA6C;AAC7C,+BAA0C;
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/server-commands/chat/commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yCAA6C;AAC7C,+BAA0C;AAQnC,IAAM,IA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
6
6
|
ChatCommandsEnum["SEND_MESSAGE"] = "CHAT_SEND_MESSAGE";
|
|
7
|
+
ChatCommandsEnum["CREATE_PRIVATE_CHAT"] = "CHAT_CREATE_PRIVATE_CHAT";
|
|
7
8
|
})(ChatCommandsEnum || (exports.ChatCommandsEnum = ChatCommandsEnum = {}));
|
|
8
9
|
//# sourceMappingURL=enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../src/server-commands/chat/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../src/server-commands/chat/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,sDAAkC,CAAA;IAClC,oEAAgD,CAAA;AAClD,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -7,7 +7,18 @@ export interface ChatSendMessageEventArguments extends ChatSendMessageCommandArg
|
|
|
7
7
|
chatId: string;
|
|
8
8
|
custom: boolean;
|
|
9
9
|
}
|
|
10
|
+
export interface SendChatMessageArguments {
|
|
11
|
+
textMessageInMarkdownFormat: string;
|
|
12
|
+
chatId: string;
|
|
13
|
+
custom?: boolean;
|
|
14
|
+
pluginCustomMetadata?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreatePrivateChatCommandArguments {
|
|
17
|
+
userId: string;
|
|
18
|
+
}
|
|
10
19
|
export interface ServerCommandsChatObject {
|
|
20
|
+
sendChatMessage: (chatMessageArguments: SendChatMessageArguments) => void;
|
|
11
21
|
sendCustomPublicChatMessage: (chatSendCustomPublicChatMessageCommandArguments: ChatSendMessageCommandArguments) => void;
|
|
12
22
|
sendPublicChatMessage: (chatSendPublicChatMessageCommandArguments: ChatSendMessageCommandArguments) => void;
|
|
23
|
+
createPrivateChat: (createPrivateChatCommandArguments: CreatePrivateChatCommandArguments) => void;
|
|
13
24
|
}
|