* Refactor post draft component Re-styled ReadOnly channels Remove filename from upload error * Update canSubmit based on file attachment changes * Fix error message for max file size * Fix select autocomplete values on iOS * Style readonly and refactor accessory view for iOS * Make PostDraft scrollViewNativeID prop not required * Update ReadOnly to have a background with 0.40 opacity * Update max file size error message * Fix shift+enter with HW keyboard
18 lines
922 B
JavaScript
18 lines
922 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const ACCESSORIES_CONTAINER_NATIVE_ID = 'channelAccessoriesContainer';
|
|
export const CHANNEL_POST_TEXTBOX_CURSOR_CHANGE = 'onChannelTextBoxCursorChange';
|
|
export const CHANNEL_POST_TEXTBOX_VALUE_CHANGE = 'onChannelTextBoxValueChange';
|
|
export const ICON_SIZE = 24;
|
|
export const INSERT_TO_COMMENT = 'insert_to_comment';
|
|
export const INSERT_TO_DRAFT = 'insert_to_draft';
|
|
export const IS_REACTION_REGEX = /(^\+:([^:\s]*):)$/i;
|
|
export const MAX_FILE_COUNT = 5;
|
|
export const MAX_MESSAGE_LENGTH_FALLBACK = 4000;
|
|
export const TYPING_VISIBLE = 'typingVisible';
|
|
export const TYPING_HEIGHT = 18;
|
|
export const MAX_FILE_COUNT_WARNING = 'onMaxFileCountWarning';
|
|
export const UPLOAD_FILES = 'onUploadFiles';
|
|
export const PASTE_FILES = 'onPasteFiles';
|
|
export const UPDATE_NATIVE_SCROLLVIEW = 'onUpdateNativeScrollView';
|