Changeset View
Changeset View
Standalone View
Standalone View
web/input/input-state.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { | import { | ||||
type MediaType, | type MediaType, | ||||
type Dimensions, | type Dimensions, | ||||
type MediaMissionStep, | type MediaMissionStep, | ||||
} from 'lib/types/media-types'; | } from 'lib/types/media-types'; | ||||
import type { RawTextMessageInfo } from 'lib/types/messages/text'; | import type { RawTextMessageInfo } from 'lib/types/messages/text'; | ||||
import type { ThreadInfo } from 'lib/types/thread-types'; | import type { ThreadInfo, RelativeMemberInfo } from 'lib/types/thread-types'; | ||||
export type PendingMultimediaUpload = { | export type PendingMultimediaUpload = { | ||||
localID: string, | localID: string, | ||||
// Pending uploads are assigned a serverID once they are complete | // Pending uploads are assigned a serverID once they are complete | ||||
serverID: ?string, | serverID: ?string, | ||||
// Pending uploads are assigned a messageID once they are sent | // Pending uploads are assigned a messageID once they are sent | ||||
messageID: ?string, | messageID: ?string, | ||||
// This is set to true if the upload fails for whatever reason | // This is set to true if the upload fails for whatever reason | ||||
Show All 11 Lines | export type PendingMultimediaUpload = { | ||||
// cancelled | // cancelled | ||||
abort: ?() => void, | abort: ?() => void, | ||||
steps: MediaMissionStep[], | steps: MediaMissionStep[], | ||||
selectTime: number, | selectTime: number, | ||||
}; | }; | ||||
export type TypeaheadState = { | export type TypeaheadState = { | ||||
+canBeVisible: boolean, | +canBeVisible: boolean, | ||||
+keepUpdatingThreadMembers: boolean, | |||||
+frozenThreadMembers: $ReadOnlyArray<RelativeMemberInfo>, | |||||
+moveChoiceUp: ?() => void, | +moveChoiceUp: ?() => void, | ||||
+moveChoiceDown: ?() => void, | +moveChoiceDown: ?() => void, | ||||
+close: ?() => void, | +close: ?() => void, | ||||
+accept: ?() => void, | +accept: ?() => void, | ||||
}; | }; | ||||
// This type represents the input state for a particular thread | // This type represents the input state for a particular thread | ||||
export type InputState = { | export type InputState = { | ||||
Show All 34 Lines |