From f762b0926f313b6de2de8f6f05ff4f597925d801 Mon Sep 17 00:00:00 2001 From: Mihai Cernaianu Date: Fri, 6 Aug 2021 10:13:22 +0300 Subject: [PATCH] feat(MeetingsAdapter): add types for meeting controls --- src/MeetingsAdapter.js | 15 +++++++++++++++ src/index.js | 1 + 2 files changed, 16 insertions(+) diff --git a/src/MeetingsAdapter.js b/src/MeetingsAdapter.js index 7ca24a6..aa9447b 100644 --- a/src/MeetingsAdapter.js +++ b/src/MeetingsAdapter.js @@ -59,6 +59,20 @@ import WebexAdapter from './WebexAdapter'; * @returns {external:Observable.} */ +/** + * 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. * @@ -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 */ /** diff --git a/src/index.js b/src/index.js index e17854e..4a94505 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,7 @@ export {default as ActivitiesAdapter} from './ActivitiesAdapter'; export { default as MeetingsAdapter, MeetingControlState, + MeetingControlType, MeetingState, MediaPermissions, } from './MeetingsAdapter';