-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
147 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ActionsBarEnum } from './enums'; | ||
import { SetDisplayActionBarCommandArguments } from './types'; | ||
|
||
export const actionsBar = { | ||
/** | ||
* Decides whether to display the actions bar | ||
* | ||
* @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker | ||
* level. | ||
* Refer to {@link SetDisplayActionBarCommandArguments} to understand the argument structure. | ||
*/ | ||
setDisplayActionBar: (arg: SetDisplayActionBarCommandArguments) => { | ||
const { displayActionBar } = arg; | ||
window.dispatchEvent(new CustomEvent< | ||
SetDisplayActionBarCommandArguments | ||
>(ActionsBarEnum.SET_DISPLAY_ACTIONS_BAR, { | ||
detail: { | ||
displayActionBar, | ||
}, | ||
})); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export enum ActionsBarEnum { | ||
SET_DISPLAY_ACTIONS_BAR = 'SET_DISPLAY_ACTIONS_BAR_COMMAND', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface SetDisplayActionBarCommandArguments { | ||
displayActionBar: boolean; | ||
} | ||
|
||
export interface UiCommandsActionsBarObject { | ||
setDisplayActionBar: ( | ||
arg: SetDisplayActionBarCommandArguments | ||
) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { NotificationTypeUiCommand } from './notification/enums'; | ||
export { ChangeEnforcedLayoutTypeEnum } from './layout/enums'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ChangeEnforcedLayoutTypeEnum, LayoutEnum } from './enums'; | ||
import { ChangeEnforcedLayout, ChangeEnforcedLayoutCommandArguments } from './types'; | ||
|
||
export const layout = { | ||
/** | ||
* <description> | ||
* | ||
* @param | ||
*/ | ||
changeEnforcedLayout: ((layoutType: ChangeEnforcedLayoutTypeEnum) => { | ||
window.dispatchEvent( | ||
new CustomEvent< | ||
ChangeEnforcedLayoutCommandArguments | ||
>(LayoutEnum.CHANGE_ENFORCED_LAYOUT, { | ||
detail: { | ||
layoutType, | ||
}, | ||
}), | ||
); | ||
}) as ChangeEnforcedLayout, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export enum LayoutEnum { | ||
CHANGE_ENFORCED_LAYOUT = 'CHANGE_ENFORCED_LAYOUT', | ||
} | ||
|
||
export enum ChangeEnforcedLayoutTypeEnum { | ||
CUSTOM_LAYOUT = 'CUSTOM_LAYOUT', | ||
SMART_LAYOUT = 'SMART_LAYOUT', | ||
PRESENTATION_FOCUS = 'PRESENTATION_FOCUS', | ||
VIDEO_FOCUS = 'VIDEO_FOCUS', | ||
CAMERAS_ONLY = 'CAMERAS_ONLY', | ||
PRESENTATION_ONLY = 'PRESENTATION_ONLY', | ||
PARTICIPANTS_AND_CHAT_ONLY = 'PARTICIPANTS_AND_CHAT_ONLY', | ||
MEDIA_ONLY = 'MEDIA_ONLY', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ChangeEnforcedLayoutTypeEnum } from './enums'; | ||
|
||
export interface ChangeEnforcedLayoutCommandArguments { | ||
layoutType: ChangeEnforcedLayoutTypeEnum; | ||
} | ||
|
||
export type ChangeEnforcedLayout = (layoutType: ChangeEnforcedLayoutTypeEnum) => void; | ||
|
||
export interface UiCommandsLayoutObject { | ||
changeEnforcedLayout: ChangeEnforcedLayout; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters