2025-02-11 16:17:13 +02:00
|
|
|
import { NativeToolbarButton, ToolbarButton } from './types';
|
2024-02-28 13:52:04 -06:00
|
|
|
|
2025-04-14 16:19:52 -05:00
|
|
|
/**
|
|
|
|
|
* Dummy toolbar threschold value for 9 buttons. It is used as a placeholder in THRESHOLDS that would work only when
|
|
|
|
|
* this value is overiden.
|
|
|
|
|
*/
|
|
|
|
|
export const DUMMY_9_BUTTONS_THRESHOLD_VALUE = Symbol('9_BUTTONS_THRESHOLD_VALUE');
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Dummy toolbar threschold value for 10 buttons. It is used as a placeholder in THRESHOLDS that would work only when
|
|
|
|
|
* this value is overiden.
|
|
|
|
|
*/
|
|
|
|
|
export const DUMMY_10_BUTTONS_THRESHOLD_VALUE = Symbol('10_BUTTONS_THRESHOLD_VALUE');
|
|
|
|
|
|
2021-07-08 16:42:07 +03:00
|
|
|
/**
|
2021-11-04 22:10:43 +01:00
|
|
|
* Thresholds for displaying toolbox buttons.
|
2021-07-08 16:42:07 +03:00
|
|
|
*/
|
|
|
|
|
export const THRESHOLDS = [
|
2025-04-14 16:19:52 -05:00
|
|
|
|
|
|
|
|
// This entry won't be used unless the order is overridden trough the mainToolbarButtons config prop.
|
|
|
|
|
{
|
|
|
|
|
width: 675,
|
|
|
|
|
order: DUMMY_10_BUTTONS_THRESHOLD_VALUE
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// This entry won't be used unless the order is overridden trough the mainToolbarButtons config prop.
|
|
|
|
|
{
|
|
|
|
|
width: 625,
|
|
|
|
|
order: DUMMY_9_BUTTONS_THRESHOLD_VALUE
|
|
|
|
|
},
|
2023-04-27 19:19:53 -05:00
|
|
|
{
|
|
|
|
|
width: 565,
|
2024-05-17 09:53:08 -05:00
|
|
|
order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'reactions', 'participants-pane', 'tileview' ]
|
2023-04-27 19:19:53 -05:00
|
|
|
},
|
2021-07-08 16:42:07 +03:00
|
|
|
{
|
|
|
|
|
width: 520,
|
2024-05-17 09:53:08 -05:00
|
|
|
order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'participants-pane', 'tileview' ]
|
2021-07-08 16:42:07 +03:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 470,
|
2024-05-17 09:53:08 -05:00
|
|
|
order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'participants-pane' ]
|
2021-07-08 16:42:07 +03:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 420,
|
2024-05-17 09:53:08 -05:00
|
|
|
order: [ 'microphone', 'camera', 'desktop', 'chat', 'participants-pane' ]
|
2021-07-08 16:42:07 +03:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 370,
|
2024-05-17 09:53:08 -05:00
|
|
|
order: [ 'microphone', 'camera', 'chat', 'participants-pane' ]
|
2021-07-08 16:42:07 +03:00
|
|
|
},
|
|
|
|
|
{
|
2022-01-10 12:45:46 +02:00
|
|
|
width: 225,
|
2021-07-08 16:42:07 +03:00
|
|
|
order: [ 'microphone', 'camera', 'chat' ]
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-01-10 12:45:46 +02:00
|
|
|
width: 200,
|
2021-07-08 16:42:07 +03:00
|
|
|
order: [ 'microphone', 'camera' ]
|
|
|
|
|
}
|
|
|
|
|
];
|
2021-07-22 15:26:56 +03:00
|
|
|
|
2025-02-11 16:17:13 +02:00
|
|
|
/**
|
|
|
|
|
* Thresholds for displaying native toolbox buttons.
|
|
|
|
|
*/
|
|
|
|
|
export const NATIVE_THRESHOLDS = [
|
|
|
|
|
{
|
|
|
|
|
width: 560,
|
|
|
|
|
order: [ 'microphone', 'camera', 'chat', 'screensharing', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 500,
|
|
|
|
|
order: [ 'microphone', 'camera', 'chat', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 440,
|
|
|
|
|
order: [ 'microphone', 'camera', 'chat', 'raisehand', 'overflowmenu', 'hangup' ]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 380,
|
|
|
|
|
order: [ 'microphone', 'camera', 'chat', 'overflowmenu', 'hangup' ]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
width: 320,
|
|
|
|
|
order: [ 'microphone', 'camera', 'overflowmenu', 'hangup' ]
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
2024-05-17 09:53:08 -05:00
|
|
|
/**
|
|
|
|
|
* Main toolbar buttons priority used to determine which button should be picked to fill empty spaces for disabled
|
|
|
|
|
* buttons.
|
|
|
|
|
*/
|
|
|
|
|
export const MAIN_TOOLBAR_BUTTONS_PRIORITY = [
|
|
|
|
|
'microphone',
|
|
|
|
|
'camera',
|
|
|
|
|
'desktop',
|
|
|
|
|
'chat',
|
|
|
|
|
'raisehand',
|
|
|
|
|
'reactions',
|
|
|
|
|
'participants-pane',
|
|
|
|
|
'tileview',
|
2025-02-11 16:17:13 +02:00
|
|
|
'overflowmenu',
|
|
|
|
|
'hangup',
|
2024-05-17 09:53:08 -05:00
|
|
|
'invite',
|
|
|
|
|
'toggle-camera',
|
|
|
|
|
'videoquality',
|
|
|
|
|
'fullscreen',
|
|
|
|
|
'security',
|
|
|
|
|
'closedcaptions',
|
|
|
|
|
'recording',
|
|
|
|
|
'livestreaming',
|
|
|
|
|
'linktosalesforce',
|
|
|
|
|
'sharedvideo',
|
|
|
|
|
'shareaudio',
|
|
|
|
|
'noisesuppression',
|
|
|
|
|
'whiteboard',
|
|
|
|
|
'etherpad',
|
|
|
|
|
'select-background',
|
|
|
|
|
'stats',
|
|
|
|
|
'settings',
|
|
|
|
|
'shortcuts',
|
|
|
|
|
'profile',
|
|
|
|
|
'embedmeeting',
|
|
|
|
|
'feedback',
|
|
|
|
|
'download',
|
|
|
|
|
'help'
|
|
|
|
|
];
|
2021-09-23 17:39:05 +03:00
|
|
|
|
|
|
|
|
export const TOOLBAR_TIMEOUT = 4000;
|
2021-12-13 15:51:05 +02:00
|
|
|
|
2023-09-20 11:19:54 +02:00
|
|
|
export const DRAWER_MAX_HEIGHT = '80dvh - 64px';
|
2022-01-04 13:21:00 +02:00
|
|
|
|
2023-03-07 16:39:27 +02:00
|
|
|
// Around 300 to be displayed above components like chat
|
2023-04-20 14:00:42 +03:00
|
|
|
export const ZINDEX_DIALOG_PORTAL = 302;
|
2023-05-18 14:16:37 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Color for spinner displayed in the toolbar.
|
|
|
|
|
*/
|
|
|
|
|
export const SPINNER_COLOR = '#929292';
|
2024-02-28 13:52:04 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The list of all possible UI buttons.
|
|
|
|
|
*
|
|
|
|
|
* @protected
|
|
|
|
|
* @type Array<string>
|
|
|
|
|
*/
|
|
|
|
|
export const TOOLBAR_BUTTONS: ToolbarButton[] = [
|
|
|
|
|
'camera',
|
|
|
|
|
'chat',
|
|
|
|
|
'closedcaptions',
|
|
|
|
|
'desktop',
|
|
|
|
|
'download',
|
|
|
|
|
'embedmeeting',
|
|
|
|
|
'etherpad',
|
|
|
|
|
'feedback',
|
|
|
|
|
'filmstrip',
|
|
|
|
|
'fullscreen',
|
|
|
|
|
'hangup',
|
|
|
|
|
'help',
|
|
|
|
|
'highlight',
|
|
|
|
|
'invite',
|
|
|
|
|
'linktosalesforce',
|
|
|
|
|
'livestreaming',
|
|
|
|
|
'microphone',
|
|
|
|
|
'mute-everyone',
|
|
|
|
|
'mute-video-everyone',
|
|
|
|
|
'participants-pane',
|
|
|
|
|
'profile',
|
|
|
|
|
'raisehand',
|
|
|
|
|
'recording',
|
|
|
|
|
'security',
|
|
|
|
|
'select-background',
|
|
|
|
|
'settings',
|
|
|
|
|
'shareaudio',
|
|
|
|
|
'noisesuppression',
|
|
|
|
|
'sharedvideo',
|
|
|
|
|
'shortcuts',
|
|
|
|
|
'stats',
|
|
|
|
|
'tileview',
|
|
|
|
|
'toggle-camera',
|
|
|
|
|
'videoquality',
|
|
|
|
|
'whiteboard'
|
|
|
|
|
];
|
|
|
|
|
|
2025-02-11 16:17:13 +02:00
|
|
|
/**
|
|
|
|
|
* The list of all possible native buttons.
|
|
|
|
|
*
|
|
|
|
|
* @protected
|
|
|
|
|
* @type Array<string>
|
|
|
|
|
*/
|
|
|
|
|
export const NATIVE_TOOLBAR_BUTTONS: NativeToolbarButton[] = [
|
|
|
|
|
'camera',
|
|
|
|
|
'chat',
|
|
|
|
|
'hangup',
|
|
|
|
|
'microphone',
|
|
|
|
|
'overflowmenu',
|
|
|
|
|
'raisehand',
|
|
|
|
|
'screensharing',
|
|
|
|
|
'tileview'
|
|
|
|
|
];
|
|
|
|
|
|
2024-02-29 17:39:13 -06:00
|
|
|
/**
|
|
|
|
|
* The toolbar buttons to show when in visitors mode.
|
|
|
|
|
*/
|
|
|
|
|
export const VISITORS_MODE_BUTTONS: ToolbarButton[] = [
|
|
|
|
|
'chat',
|
2024-09-13 18:35:34 -05:00
|
|
|
'closedcaptions',
|
2025-02-11 16:17:13 +02:00
|
|
|
'fullscreen',
|
2024-02-29 17:39:13 -06:00
|
|
|
'hangup',
|
|
|
|
|
'raisehand',
|
|
|
|
|
'settings',
|
|
|
|
|
'stats',
|
2025-02-11 16:17:13 +02:00
|
|
|
'tileview',
|
2024-02-29 17:39:13 -06:00
|
|
|
'videoquality'
|
|
|
|
|
];
|