* Initial setup for new keyboard * fix the offset calculation onMove by adding isKeyboardFullyOpened * Done with the keyboard handling implementation * Handled keyboard focus and blured state using context * Added default height for input container * Android support * Tablet state handling * Fix for refreshing offset in list * Created a default context for mention post list * Fix linter errors * Fix tests * Minor * Fix the height issue for tablet view * Review comments * Dependency fix * Reveiw comment * keyboard animation only enabled with screen on top navigation * added tests * Added extra keyboard component for emoji picker (#9328) * Added extra keyboard component * handled swipe geature for extra keyboard * scroll to bottom visible on emoji picker * Check for stale event for keyboard geature area * fix keyboard stale event for mid-gesture change swipe direction * Closing emoji picker when message priority is opened * changing to thread view closes emoji picker * Close emoij picker and keyboard when attachment icons are clicked * handle android emoji picker behaviour * Remove emoji picker code * fix tests * Address reviev comments * Test fixes * usePreventDoubleTab for race condition and corrected comment on isInputAccessoryViewMode flag * File attachments option in bottom sheet quick action (#9331) * Added extra keyboard component * handled swipe geature for extra keyboard * File attachments option in bottom sheet quick action * Updated tests * i18n * fix test * Added tests * Review comment * fix tests * Integrated Emoji picker to Extra keyboard component. (#9339) * Added extra keyboard component * handled swipe geature for extra keyboard * scroll to bottom visible on emoji picker * Fix the post input container height change issue * Added emoji picker with search functionality * keyboard height not recorded fallback to default height, set search to false closing emoji picker * fix search funcitonality in android * scroll to end bottom dismissed with pressed * Fixed the scroll issue for android * fix the flickering post input issue * Wired up the emoji picker * Added keyboard and spaceback in emoji picker * intl extract * initial cursor position and simple calculation review comment * separated grapheme to utils file * Review comments * nitpick * Fix the bottom safe area and navigation stack restore fix * Fix test * disabled emoji picker in edit post screen * change the name of the variable to name it clarier * fix the tab gap issue in andriod * disabled the emoji skin tone change on andriod * fix the input container jump issue * fix the failing test * UX review * added white space after the attachment icon * When @ or / is press open keyboard on andriod also fix the scroll issue when keyboard is open * back bottom closes emoji picker and opening keyboard jump fix * reverted code * fixed the flickering issue of input and scroll position fix * Fix the gap issue in thread * fix the warning reaminated issue when opening a channel * Fix the extra space issue between input and emoij picker * Minor fix for extra space between input and emoji picker * Fix thread view bottom safe area and gap between keyboard and searched emojis * Fix the keyboard issue in tablet * Fix the warning issue react-native-keyboard-controller * Fix tests * Fix the tablet search hight issue * Replaced the ExtraKeyboardProvider with KeyboardProvider from rnkc for permalink * Bottom sheet jump issue resolved * Search do not close after selecting emoji in search list * Added the bottom inset height in search emoji for android * fix buid issue * Fix the cancel state to emoji picker * use portals for autocomplete * fix permalink extra space in post list * Portal only for android --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com> Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
229 lines
7 KiB
TypeScript
229 lines
7 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import PLAYBOOKS_SCREENS from '@playbooks/constants/screens';
|
|
|
|
export const ABOUT = 'About';
|
|
export const ACCOUNT = 'Account';
|
|
export const APPS_FORM = 'AppForm';
|
|
export const ATTACHMENT_OPTIONS = 'AttachmentOptions';
|
|
export const BOTTOM_SHEET = 'BottomSheet';
|
|
export const BROWSE_CHANNELS = 'BrowseChannels';
|
|
export const CALL = 'Call';
|
|
export const CALL_PARTICIPANTS = 'CallParticipants';
|
|
export const CALL_HOST_CONTROLS = 'CallHostControls';
|
|
export const CHANNEL = 'Channel';
|
|
export const CHANNEL_ADD_MEMBERS = 'ChannelAddMembers';
|
|
export const CHANNEL_BANNER = 'ChannelBanner';
|
|
export const CHANNEL_BOOKMARK = 'ChannelBookmarkAddOrEdit';
|
|
export const CHANNEL_FILES = 'ChannelFiles';
|
|
export const CHANNEL_INFO = 'ChannelInfo';
|
|
export const CHANNEL_NOTIFICATION_PREFERENCES = 'ChannelNotificationPreferences';
|
|
export const CODE = 'Code';
|
|
export const CONVERT_GM_TO_CHANNEL = 'ConvertGMToChannel';
|
|
export const CREATE_DIRECT_MESSAGE = 'CreateDirectMessage';
|
|
export const CREATE_OR_EDIT_CHANNEL = 'CreateOrEditChannel';
|
|
export const CREATE_TEAM = 'CreateTeam';
|
|
export const COMPONENT_LIBRARY = 'ComponentLibrary';
|
|
export const CUSTOM_STATUS = 'CustomStatus';
|
|
export const CUSTOM_STATUS_CLEAR_AFTER = 'CustomStatusClearAfter';
|
|
export const DRAFT = 'Draft';
|
|
export const DRAFT_SCHEDULED_POST_OPTIONS = 'DraftScheduledPostOptions';
|
|
export const EDIT_POST = 'EditPost';
|
|
export const EDIT_PROFILE = 'EditProfile';
|
|
export const EDIT_SERVER = 'EditServer';
|
|
export const EMOJI_PICKER = 'EmojiPicker';
|
|
export const FIND_CHANNELS = 'FindChannels';
|
|
export const FORGOT_PASSWORD = 'ForgotPassword';
|
|
export const GALLERY = 'Gallery';
|
|
export const GENERIC_OVERLAY = 'GenericOverlay';
|
|
export const GLOBAL_DRAFTS = 'GlobalDrafts';
|
|
export const GLOBAL_DRAFTS_AND_SCHEDULED_POSTS = 'GlobalDraftsAndScheduledPosts';
|
|
export const GLOBAL_THREADS = 'GlobalThreads';
|
|
export const HOME = 'Home';
|
|
export const INTEGRATION_SELECTOR = 'IntegrationSelector';
|
|
export const INTERACTIVE_DIALOG = 'InteractiveDialog';
|
|
export const INVITE = 'Invite';
|
|
export const IN_APP_NOTIFICATION = 'InAppNotification';
|
|
export const JOIN_TEAM = 'JoinTeam';
|
|
export const LATEX = 'Latex';
|
|
export const LOGIN = 'Login';
|
|
export const MANAGE_CHANNEL_MEMBERS = 'ManageChannelMembers';
|
|
export const MENTIONS = 'Mentions';
|
|
export const MFA = 'MFA';
|
|
export const ONBOARDING = 'Onboarding';
|
|
export const PDF_VIEWER = 'PdfViewer';
|
|
export const PERMALINK = 'Permalink';
|
|
export const PINNED_MESSAGES = 'PinnedMessages';
|
|
export const POST_OPTIONS = 'PostOptions';
|
|
export const POST_PRIORITY_PICKER = 'PostPriorityPicker';
|
|
export const REACTIONS = 'Reactions';
|
|
export const REPORT_PROBLEM = 'ReportProblem';
|
|
export const RESCHEDULE_DRAFT = 'RescheduleDraft';
|
|
export const REVIEW_APP = 'ReviewApp';
|
|
export const SAVED_MESSAGES = 'SavedMessages';
|
|
export const SCHEDULED_POST_OPTIONS = 'ScheduledPostOptions';
|
|
export const SEARCH = 'Search';
|
|
export const SELECT_TEAM = 'SelectTeam';
|
|
export const SERVER = 'Server';
|
|
export const SETTINGS = 'Settings';
|
|
export const SETTINGS_ADVANCED = 'SettingsAdvanced';
|
|
export const SETTINGS_DISPLAY = 'SettingsDisplay';
|
|
export const SETTINGS_DISPLAY_CLOCK = 'SettingsDisplayClock';
|
|
export const SETTINGS_DISPLAY_CRT = 'SettingsDisplayCRT';
|
|
export const SETTINGS_DISPLAY_THEME = 'SettingsDisplayTheme';
|
|
export const SETTINGS_DISPLAY_TIMEZONE = 'SettingsDisplayTimezone';
|
|
export const SETTINGS_DISPLAY_TIMEZONE_SELECT = 'SettingsDisplayTimezoneSelect';
|
|
export const SETTINGS_NOTIFICATION = 'SettingsNotification';
|
|
export const SETTINGS_NOTIFICATION_AUTO_RESPONDER = 'SettingsNotificationAutoResponder';
|
|
export const SETTINGS_NOTIFICATION_EMAIL = 'SettingsNotificationEmail';
|
|
export const SETTINGS_NOTIFICATION_MENTION = 'SettingsNotificationMention';
|
|
export const SETTINGS_NOTIFICATION_PUSH = 'SettingsNotificationPush';
|
|
export const SETTINGS_NOTIFICATION_CALL = 'SettingsNotificationCall';
|
|
export const SHARE_FEEDBACK = 'ShareFeedback';
|
|
export const SNACK_BAR = 'SnackBar';
|
|
export const SSO = 'SSO';
|
|
export const TABLE = 'Table';
|
|
export const TEAM_SELECTOR_LIST = 'TeamSelectorList';
|
|
export const TERMS_OF_SERVICE = 'TermsOfService';
|
|
export const THREAD = 'Thread';
|
|
export const THREAD_FOLLOW_BUTTON = 'ThreadFollowButton';
|
|
export const THREAD_OPTIONS = 'ThreadOptions';
|
|
export const USER_PROFILE = 'UserProfile';
|
|
|
|
export default {
|
|
ABOUT,
|
|
ACCOUNT,
|
|
APPS_FORM,
|
|
ATTACHMENT_OPTIONS,
|
|
BOTTOM_SHEET,
|
|
BROWSE_CHANNELS,
|
|
CALL,
|
|
CALL_PARTICIPANTS,
|
|
CALL_HOST_CONTROLS,
|
|
CHANNEL,
|
|
CHANNEL_ADD_MEMBERS,
|
|
CHANNEL_BANNER,
|
|
CHANNEL_BOOKMARK,
|
|
CHANNEL_FILES,
|
|
CHANNEL_INFO,
|
|
CHANNEL_NOTIFICATION_PREFERENCES,
|
|
CODE,
|
|
CONVERT_GM_TO_CHANNEL,
|
|
COMPONENT_LIBRARY,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_OR_EDIT_CHANNEL,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
CUSTOM_STATUS_CLEAR_AFTER,
|
|
DRAFT_SCHEDULED_POST_OPTIONS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
FORGOT_PASSWORD,
|
|
GALLERY,
|
|
GENERIC_OVERLAY,
|
|
GLOBAL_DRAFTS,
|
|
GLOBAL_DRAFTS_AND_SCHEDULED_POSTS,
|
|
GLOBAL_THREADS,
|
|
HOME,
|
|
INTEGRATION_SELECTOR,
|
|
INTERACTIVE_DIALOG,
|
|
INVITE,
|
|
IN_APP_NOTIFICATION,
|
|
JOIN_TEAM,
|
|
LATEX,
|
|
LOGIN,
|
|
MANAGE_CHANNEL_MEMBERS,
|
|
MENTIONS,
|
|
MFA,
|
|
ONBOARDING,
|
|
PDF_VIEWER,
|
|
PERMALINK,
|
|
PINNED_MESSAGES,
|
|
POST_OPTIONS,
|
|
POST_PRIORITY_PICKER,
|
|
REACTIONS,
|
|
REPORT_PROBLEM,
|
|
RESCHEDULE_DRAFT,
|
|
REVIEW_APP,
|
|
SAVED_MESSAGES,
|
|
SCHEDULED_POST_OPTIONS,
|
|
SEARCH,
|
|
SELECT_TEAM,
|
|
SERVER,
|
|
SETTINGS,
|
|
SETTINGS_ADVANCED,
|
|
SETTINGS_DISPLAY,
|
|
SETTINGS_DISPLAY_CLOCK,
|
|
SETTINGS_DISPLAY_CRT,
|
|
SETTINGS_DISPLAY_THEME,
|
|
SETTINGS_DISPLAY_TIMEZONE,
|
|
SETTINGS_DISPLAY_TIMEZONE_SELECT,
|
|
SETTINGS_NOTIFICATION,
|
|
SETTINGS_NOTIFICATION_AUTO_RESPONDER,
|
|
SETTINGS_NOTIFICATION_EMAIL,
|
|
SETTINGS_NOTIFICATION_MENTION,
|
|
SETTINGS_NOTIFICATION_PUSH,
|
|
SETTINGS_NOTIFICATION_CALL,
|
|
SHARE_FEEDBACK,
|
|
SNACK_BAR,
|
|
SSO,
|
|
TABLE,
|
|
TEAM_SELECTOR_LIST,
|
|
TERMS_OF_SERVICE,
|
|
THREAD,
|
|
THREAD_FOLLOW_BUTTON,
|
|
THREAD_OPTIONS,
|
|
USER_PROFILE,
|
|
...PLAYBOOKS_SCREENS,
|
|
} as const;
|
|
|
|
export const MODAL_SCREENS_WITHOUT_BACK = new Set<string>([
|
|
BROWSE_CHANNELS,
|
|
CHANNEL_INFO,
|
|
CHANNEL_ADD_MEMBERS,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
FIND_CHANNELS,
|
|
GALLERY,
|
|
INVITE,
|
|
MANAGE_CHANNEL_MEMBERS,
|
|
PDF_VIEWER,
|
|
PERMALINK,
|
|
RESCHEDULE_DRAFT,
|
|
]);
|
|
|
|
export const SCREENS_WITH_TRANSPARENT_BACKGROUND = new Set<string>([
|
|
PERMALINK,
|
|
REVIEW_APP,
|
|
SNACK_BAR,
|
|
GENERIC_OVERLAY,
|
|
]);
|
|
|
|
export const SCREENS_AS_BOTTOM_SHEET = new Set<string>([
|
|
ATTACHMENT_OPTIONS,
|
|
BOTTOM_SHEET,
|
|
DRAFT_SCHEDULED_POST_OPTIONS,
|
|
EMOJI_PICKER,
|
|
POST_OPTIONS,
|
|
POST_PRIORITY_PICKER,
|
|
THREAD_OPTIONS,
|
|
REACTIONS,
|
|
USER_PROFILE,
|
|
CALL_PARTICIPANTS,
|
|
CALL_HOST_CONTROLS,
|
|
SCHEDULED_POST_OPTIONS,
|
|
]);
|
|
|
|
export const SCREENS_WITH_EXTRA_KEYBOARD = new Set<string>([CHANNEL, THREAD]);
|
|
|
|
export const NOT_READY = [
|
|
CREATE_TEAM,
|
|
];
|