Skip to content

Commit

Permalink
feat(FEC-12113): Add Side Panels Management to player UI (#674)
Browse files Browse the repository at this point in the history
Expose public enums needed across plugins

Related pr:
kaltura/playkit-js-ui-managers#1
kaltura/kaltura-player-js#544

solves: FEC-12113
  • Loading branch information
JonathanTGold committed May 16, 2022
1 parent cb08d13 commit 60ee1d1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as Components from './components';
import * as Utils from './utils';
import style from './styles/style.scss';
//Enums
import {SidePanelPositions, SidePanelModes} from 'reducers/shell';
import {SidePanelPositions, SidePanelModes, ReservedPresetNames, ReservedPresetAreas} from 'reducers/shell';
// Event
import * as Event from './event';
const {EventType} = Event;
Expand All @@ -41,4 +41,4 @@ export {Reducers as reducers, Presets as presets, Components as components, Util
export {UIManager};
export {VERSION, NAME};

export {SidePanelPositions, SidePanelModes};
export {SidePanelPositions, SidePanelModes, ReservedPresetNames, ReservedPresetAreas};
24 changes: 24 additions & 0 deletions src/reducers/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,30 @@ export const SidePanelModes = {
OVER: 'over'
};

export const ReservedPresetNames = {
Playback: 'Playback',
Live: 'Live',
Ads: 'Ads',
Error: 'Error',
Idle: 'Idle'
};

export const ReservedPresetAreas = {
PresetFloating: 'PresetFloating',
BottomBarLeftControls: 'BottomBarLeftControls',
BottomBarRightControls: 'BottomBarRightControls',
TopBarLeftControls: 'TopBarLeftControls',
TopBarRightControls: 'TopBarRightControls',
SidePanelTop: 'SidePanelTop',
SidePanelLeft: 'SidePanelLeft',
SidePanelRight: 'SidePanelRight',
SidePanelBottom: 'SidePanelBottom',
PresetArea: 'PresetArea',
InteractiveArea: 'InteractiveArea',
PlayerArea: 'PlayerArea',
VideoArea: 'VideoArea'
};

/**
* @return {Object} - preset settings
*/
Expand Down

0 comments on commit 60ee1d1

Please sign in to comment.