UNPKG

box-ui-elements-mlh

Version:
68 lines (57 loc) 1.41 kB
// @flow import { VIEW_MODE_GRID, VIEW_MODE_LIST, ORIGIN_CONTENT_SIDEBAR, ORIGIN_PREVIEW, ORIGIN_CONTENT_PREVIEW, ORIGIN_DETAILS_SIDEBAR, ORIGIN_ACTIVITY_SIDEBAR, ORIGIN_SKILLS_SIDEBAR, ORIGIN_METADATA_SIDEBAR, ORIGIN_OPEN_WITH, } from '../../constants'; type ViewMode = typeof VIEW_MODE_GRID | typeof VIEW_MODE_LIST; type ErrorType = { code: string, details?: Object, displayMessage?: string, message?: string, }; type GetAvatarUrlCallback = string => Promise<?string>; type GetProfileUrlCallback = string => Promise<string>; type Page = { type: 'page', value: number, }; type AdditionalVersionInfo = { currentVersionId?: ?string, updateVersionToCurrent: () => void, }; type ElementOrigin = | typeof ORIGIN_CONTENT_SIDEBAR | typeof ORIGIN_CONTENT_PREVIEW | typeof ORIGIN_PREVIEW | typeof ORIGIN_DETAILS_SIDEBAR | typeof ORIGIN_ACTIVITY_SIDEBAR | typeof ORIGIN_SKILLS_SIDEBAR | typeof ORIGIN_METADATA_SIDEBAR | typeof ORIGIN_OPEN_WITH; type Alignment = 'left' | 'right'; type ModalOptions = { buttonClassName: string, buttonLabel: string, modalClassName: string, overlayClassName: string, }; export type { ViewMode, ErrorType, GetAvatarUrlCallback, GetProfileUrlCallback, AdditionalVersionInfo, ElementOrigin, Alignment, ModalOptions, Page, };