2021-05-18 04:25:07 +08:00
|
|
|
export const LAYOUT_TYPE = {
|
|
|
|
CUSTOM_LAYOUT: 'custom',
|
|
|
|
SMART_LAYOUT: 'smart',
|
|
|
|
PRESENTATION_FOCUS: 'presentationFocus',
|
|
|
|
VIDEO_FOCUS: 'videoFocus',
|
2023-11-24 15:07:41 +08:00
|
|
|
CAMERAS_ONLY: 'camerasOnly',
|
|
|
|
PRESENTATION_ONLY: 'presentationOnly',
|
2023-11-28 18:41:24 +08:00
|
|
|
PARTICIPANTS_AND_CHAT_ONLY: 'participantsAndChatOnly',
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export const DEVICE_TYPE = {
|
|
|
|
MOBILE: 'mobile',
|
|
|
|
TABLET_PORTRAIT: 'tablet_portrait',
|
|
|
|
TABLET_LANDSCAPE: 'tablet_landscape',
|
|
|
|
TABLET: 'tablet',
|
|
|
|
DESKTOP: 'desktop',
|
|
|
|
};
|
|
|
|
|
2022-03-04 01:46:20 +08:00
|
|
|
export const SMALL_VIEWPORT_BREAKPOINT = 640;
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
export const CAMERADOCK_POSITION = {
|
|
|
|
CONTENT_TOP: 'contentTop',
|
|
|
|
CONTENT_RIGHT: 'contentRight',
|
|
|
|
CONTENT_BOTTOM: 'contentBottom',
|
|
|
|
CONTENT_LEFT: 'contentLeft',
|
|
|
|
SIDEBAR_CONTENT_BOTTOM: 'sidebarContentBottom',
|
|
|
|
};
|
|
|
|
|
2023-11-28 19:14:22 +08:00
|
|
|
// list of layouts that are only available through join parameters
|
|
|
|
export const HIDDEN_LAYOUTS = [
|
|
|
|
LAYOUT_TYPE.CAMERAS_ONLY,
|
|
|
|
LAYOUT_TYPE.PRESENTATION_ONLY,
|
|
|
|
LAYOUT_TYPE.PARTICIPANTS_AND_CHAT_ONLY,
|
|
|
|
];
|
|
|
|
|
2024-10-09 22:42:34 +08:00
|
|
|
export const LAYOUT_ELEMENTS = {
|
|
|
|
LAYOUT_TYPE: 'layoutType',
|
|
|
|
PRESENTATION_STATE: 'presentationState',
|
|
|
|
FOCUSED_CAMERA: 'focusedCamera',
|
|
|
|
CAMERA_DOCK_SIZE: 'cameraDockSize',
|
|
|
|
CAMERA_DOCK_POSITION: 'cameradockPosition',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SYNC = {
|
|
|
|
PROPAGATE_ELEMENTS: 'propagateElements',
|
|
|
|
REPLICATE_ELEMENTS: 'replicateElements',
|
|
|
|
};
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
export const ACTIONS = {
|
|
|
|
SET_AUTO_ARRANGE_LAYOUT: 'setAutoArrangeLayout',
|
2021-07-26 22:03:31 +08:00
|
|
|
SET_IS_RTL: 'setIsRTL',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_LAYOUT_TYPE: 'setLayoutType',
|
|
|
|
SET_DEVICE_TYPE: 'setDeviceType',
|
2021-06-19 02:32:46 +08:00
|
|
|
SET_FONT_SIZE: 'setFontSize',
|
2021-05-18 04:25:07 +08:00
|
|
|
|
2022-02-05 02:08:19 +08:00
|
|
|
SET_FOCUSED_CAMERA_ID: 'focusedId',
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_LAYOUT_INPUT: 'setLayoutInput',
|
|
|
|
|
|
|
|
SET_SIDEBAR_NAVIGATION_PANEL: 'setSidebarNavigationPanel',
|
|
|
|
SET_SIDEBAR_CONTENT_PANEL: 'setSidebarcontentPanel',
|
|
|
|
|
|
|
|
SET_ID_CHAT_OPEN: 'setIdChatOpen',
|
|
|
|
|
|
|
|
SET_BROWSER_SIZE: 'setBrowserSize',
|
|
|
|
|
2021-07-13 00:24:53 +08:00
|
|
|
SET_HAS_BANNER_BAR: 'setHasBannerBar',
|
|
|
|
SET_HAS_NOTIFICATIONS_BAR: 'setHasNotificationsBar',
|
|
|
|
|
2023-11-28 22:45:12 +08:00
|
|
|
SET_HAS_NAVBAR: 'setHasNavBar',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_NAVBAR_OUTPUT: 'setNavBarOutput',
|
|
|
|
|
2023-11-28 22:45:12 +08:00
|
|
|
SET_HAS_ACTIONBAR: 'setHasActionBar',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_ACTIONBAR_OUTPUT: 'setActionBarOutput',
|
|
|
|
|
|
|
|
SET_SIDEBAR_NAVIGATION_IS_OPEN: 'setSidebarNavigationIsOpen',
|
|
|
|
SET_SIDEBAR_NAVIGATION_SIZE: 'setSidebarNavigationSize',
|
|
|
|
SET_SIDEBAR_NAVIGATION_OUTPUT: 'setSidebarNavigationOutput',
|
|
|
|
SET_SIDEBAR_NAVIGATION_IS_RESIZABLE: 'setSidebarNavigationIsResizable',
|
|
|
|
SET_SIDEBAR_NAVIGATION_RESIZABLE_EDGE: 'setSidebarNavigationResizableEdge',
|
|
|
|
|
|
|
|
SET_SIDEBAR_CONTENT_IS_OPEN: 'setSidebarContentIsOpen',
|
|
|
|
SET_SIDEBAR_CONTENT_SIZE: 'setSidebarContentSize',
|
|
|
|
SET_SIDEBAR_CONTENT_PANEL_TYPE: 'setSidebarContentPanelType',
|
|
|
|
SET_SIDEBAR_CONTENT_OUTPUT: 'setSidebarContentOutput',
|
|
|
|
SET_SIDEBAR_CONTENT_IS_RESIZABLE: 'setSidebarContentIsResizable',
|
|
|
|
SET_SIDEBAR_CONTENT_RESIZABLE_EDGE: 'setSidebarContentResizableEdge',
|
|
|
|
|
|
|
|
SET_MEDIA_AREA_SIZE: 'setMediaAreaSize',
|
|
|
|
|
|
|
|
SET_NUM_CAMERAS: 'setNumCameras',
|
|
|
|
SET_CAMERA_DOCK_IS_DRAGGING: 'setCameraDockIsDragging',
|
2021-07-13 03:47:06 +08:00
|
|
|
SET_CAMERA_DOCK_IS_RESIZING: 'setCameraDockIsResizing',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_CAMERA_DOCK_POSITION: 'setCameraDockPosition',
|
|
|
|
SET_CAMERA_DOCK_SIZE: 'setCameraDockSize',
|
2021-07-13 03:47:06 +08:00
|
|
|
SET_CAMERA_DOCK_OPTIMAL_GRID_SIZE: 'setCameraDockOptimalGridSize',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_CAMERA_DOCK_OUTPUT: 'setCameraDockOutput',
|
|
|
|
SET_CAMERA_DOCK_IS_DRAGGABLE: 'setCameraDockIsDraggable',
|
|
|
|
SET_CAMERA_DOCK_IS_RESIZABLE: 'setCameraDockIsResizable',
|
|
|
|
SET_CAMERA_DOCK_RESIZABLE_EDGE: 'setCameraDockResizableEdge',
|
|
|
|
|
|
|
|
SET_DROP_AREAS: 'setDropAreas',
|
|
|
|
|
|
|
|
SET_PRESENTATION_IS_OPEN: 'setPresentationIsOpen',
|
|
|
|
SET_PRESENTATION_CURRENT_SLIDE_SIZE: 'setPresentationCurrentSlideSize',
|
|
|
|
SET_PRESENTATION_NUM_CURRENT_SLIDE: 'setPresentationNumCurrentSlide',
|
2023-04-05 23:37:56 +08:00
|
|
|
SET_PRESENTATION_SLIDES_LENGTH: 'setPresentationSlidesLength',
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_PRESENTATION_SIZE: 'setPresentationSize',
|
|
|
|
SET_PRESENTATION_OUTPUT: 'setPresentationOutput',
|
|
|
|
SET_PRESENTATION_IS_RESIZABLE: 'setPresentationIsResizable',
|
|
|
|
SET_PRESENTATION_RESIZABLE_EDGE: 'setPresentationResizableEdge',
|
|
|
|
|
2021-07-06 00:52:25 +08:00
|
|
|
SET_FULLSCREEN_ELEMENT: 'setFullscreenElement',
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
SET_HAS_SCREEN_SHARE: 'setHasScreenShare',
|
|
|
|
SET_SCREEN_SHARE_SIZE: 'setScreenShareSize',
|
2021-06-17 00:05:42 +08:00
|
|
|
SET_SCREEN_SHARE_OUTPUT: 'setScreenShareOutput',
|
2021-05-18 04:25:07 +08:00
|
|
|
|
|
|
|
SET_HAS_EXTERNAL_VIDEO: 'setHasExternalVideo',
|
|
|
|
SET_EXTERNAL_VIDEO_SIZE: 'setExternalVideoSize',
|
2021-06-17 00:05:42 +08:00
|
|
|
SET_EXTERNAL_VIDEO_OUTPUT: 'setExternalVideoOutput',
|
2022-10-24 21:11:28 +08:00
|
|
|
|
2024-06-11 03:31:30 +08:00
|
|
|
SET_HAS_GENERIC_CONTENT: 'setHasGenericContent',
|
|
|
|
SET_GENERIC_CONTENT_OUTPUT: 'setGenericContentOutput',
|
2024-02-19 18:59:45 +08:00
|
|
|
|
2022-10-24 21:11:28 +08:00
|
|
|
SET_SHARED_NOTES_OUTPUT: 'setSharedNotesOutput',
|
2022-10-28 04:15:11 +08:00
|
|
|
SET_NOTES_IS_PINNED: 'setNotesIsPinned',
|
2024-03-26 05:13:57 +08:00
|
|
|
|
|
|
|
SET_PILE_CONTENT_FOR_PRESENTATION_AREA: 'setPileContentForPresentationArea',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const PRESENTATION_AREA = {
|
2024-06-11 03:31:30 +08:00
|
|
|
GENERIC_CONTENT: 'genericContent',
|
2024-03-26 05:13:57 +08:00
|
|
|
PINNED_NOTES: 'pinnedNotes',
|
|
|
|
EXTERNAL_VIDEO: 'externalVideo',
|
|
|
|
SCREEN_SHARE: 'screenShare',
|
|
|
|
WHITEBOARD_OPEN: 'whiteboardOpen',
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export const PANELS = {
|
|
|
|
USERLIST: 'userlist',
|
|
|
|
CHAT: 'chat',
|
|
|
|
POLL: 'poll',
|
|
|
|
CAPTIONS: 'captions',
|
|
|
|
BREAKOUT: 'breakoutroom',
|
|
|
|
SHARED_NOTES: 'shared-notes',
|
2020-04-26 03:03:35 +08:00
|
|
|
TIMER: 'timer',
|
2021-05-18 04:25:07 +08:00
|
|
|
WAITING_USERS: 'waiting-users',
|
2024-06-14 06:30:37 +08:00
|
|
|
GENERIC_CONTENT_SIDEKICK: 'generic-content-sidekick',
|
2021-05-18 04:25:07 +08:00
|
|
|
NONE: 'none',
|
|
|
|
};
|