Skip to content

Commit

Permalink
feat(MeetingsAdapter): add types for meeting controls
Browse files Browse the repository at this point in the history
  • Loading branch information
CernaianuMihai authored and lalli-flores committed Aug 27, 2021
1 parent 71a7c5a commit f762b09
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/MeetingsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ import WebexAdapter from './WebexAdapter';
* @returns {external:Observable.<MeetingControlDisplay>}
*/

/**
* Enum for meeting control types
*
* @readonly
* @enum {string}
*/
export const MeetingControlType = {
JOIN: 'JOIN',
CANCEL: 'CANCEL',
CLOSE: 'CLOSE',
TOGGLE: 'TOGGLE',
MULTISELECT: 'MULTISELECT',
};

/**
* Display options of a meeting control.
*
Expand All @@ -67,6 +81,7 @@ import WebexAdapter from './WebexAdapter';
* @property {string} tooltip The text to display when user hovers over control
* @property {string} icon Momentum-ui icon name to display for the meeting control
* @property {string} text Text to display on the meeting control. If there is an icon and text, text takes precedence
* @property {MeetingControlType} type Type of the meeting control
*/

/**
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export {default as ActivitiesAdapter} from './ActivitiesAdapter';
export {
default as MeetingsAdapter,
MeetingControlState,
MeetingControlType,
MeetingState,
MediaPermissions,
} from './MeetingsAdapter';
Expand Down

0 comments on commit f762b09

Please sign in to comment.