-
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.
[self-view-disabled] - resolving conflict errors
- Loading branch information
Showing
14 changed files
with
196 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { NavBarEnum } from './enums'; | ||
import { SetDisplayNavBarCommandArguments } from './types'; | ||
|
||
export const navBar = { | ||
/** | ||
* Sets the displayNavBar to true (show it) or false (hide it). | ||
* | ||
* @param setDisplayNavBarCommandArguments: object with a boolean that tells whether to display | ||
* the navbar | ||
*/ | ||
setDisplayNavBar: (setDisplayNavBarCommandArguments: SetDisplayNavBarCommandArguments) => { | ||
const { displayNavBar } = setDisplayNavBarCommandArguments; | ||
window.dispatchEvent( | ||
new CustomEvent< | ||
SetDisplayNavBarCommandArguments | ||
>(NavBarEnum.SET_DISPLAY_NAV_BAR, { | ||
detail: { | ||
displayNavBar, | ||
}, | ||
}), | ||
); | ||
}, | ||
}; |
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 NavBarEnum { | ||
SET_DISPLAY_NAV_BAR = 'SET_DISPLAY_NAV_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,7 @@ | ||
export interface SetDisplayNavBarCommandArguments { | ||
displayNavBar: boolean; | ||
} | ||
|
||
export interface UiCommandsNavBarObject { | ||
setDisplayNavBar: (setDisplayNavBarCommandArguments: SetDisplayNavBarCommandArguments) => 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