Update dependencies (#2040)

* Update dependencies

* Update snapshots
This commit is contained in:
Elias Nahum 2018-09-17 10:22:38 -03:00 committed by GitHub
parent 6471bcbed3
commit 07f88071c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 2989 additions and 4564 deletions

View file

@ -1,5 +1,8 @@
{
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
@ -10,6 +13,12 @@
}
},
"parser": "babel-eslint",
"settings": {
"react": {
"pragma": "React",
"version": "16.5"
}
},
"plugins": [
"react",
"header"
@ -220,7 +229,7 @@
"react/jsx-uses-vars": 2,
"react/jsx-no-comment-textnodes": 2,
"react/no-danger": 0,
"react/no-deprecated": 2,
"react/no-deprecated": 1,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,

View file

@ -180,7 +180,7 @@ configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.name == 'android-jsc') {
details.useTarget group: details.requested.group, name: 'android-jsc-intl', version: 'r216113'
details.useTarget group: details.requested.group, name: 'android-jsc-intl', version: 'r224109'
}
}
}

View file

@ -2,6 +2,7 @@ package com.mattermost.rnbeta;
import com.mattermost.share.SharePackage;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.content.Context;
import android.os.Bundle;
@ -96,7 +97,7 @@ public class MainApplication extends NavigationApplication implements INotificat
}
@Override
public boolean clearHostOnActivityDestroy() {
public boolean clearHostOnActivityDestroy(Activity activity) {
// This solves the issue where the splash screen does not go away
// after the app is killed by the OS cause of memory or a long time in the background
return false;

View file

@ -25,7 +25,7 @@ allprojects {
}
maven {
// Local Maven repo containing AARs with JSC library built for Android
url "$rootDir/../node_modules/jsc-android/android"
url "$rootDir/../node_modules/jsc-android/dist"
}
}
}

View file

@ -2,7 +2,6 @@
exports[`AnnouncementBanner should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <AnnouncementBanner
bannerColor="#ddd"
@ -17,6 +16,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -348,15 +348,26 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;
exports[`AnnouncementBanner should match snapshot 2`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <AnnouncementBanner
bannerColor="#ddd"
@ -371,6 +382,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -382,8 +394,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -2,7 +2,6 @@
exports[`CustomList should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <CustomList
createSections={[Function]}
@ -46,6 +45,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -195,8 +195,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -2,7 +2,6 @@
exports[`UserListRow should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <UserListRow
id="123455"
@ -21,6 +20,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -448,20 +448,31 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction],
},
},
"hydrateIn": undefined,
},
}
`;
exports[`UserListRow should match snapshot for currentUser with (you) populated in list 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <UserListRow
id="123455"
@ -480,6 +491,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -895,8 +907,19 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction] {
@ -911,16 +934,22 @@ ShallowWrapper {
},
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
],
},
},
},
"hydrateIn": undefined,
},
}
`;
exports[`UserListRow should match snapshot for deactivated user 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <UserListRow
id="123455"
@ -939,6 +968,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -1354,8 +1384,19 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction] {
@ -1370,9 +1411,16 @@ ShallowWrapper {
},
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
],
},
},
},
"hydrateIn": undefined,
},
}
`;

View file

@ -2,7 +2,6 @@
exports[`DateHeader component should match snapshot with suffix 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <DateHeader
dateLineString="date-1531152392-index-2"
@ -18,6 +17,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -311,20 +311,31 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction],
},
},
"hydrateIn": undefined,
},
}
`;
exports[`DateHeader component should match snapshot without suffix 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <DateHeader
dateLineString="date-1531152392"
@ -340,6 +351,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -633,13 +645,25 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction],
},
},
"hydrateIn": undefined,
},
}
`;

View file

@ -42,7 +42,6 @@ exports[`ShowMoreButton should match, button snapshot 2`] = `
exports[`ShowMoreButton should match, full snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <ShowMoreButton
highlight={false}
@ -59,6 +58,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -76,6 +76,12 @@ ShallowWrapper {
"#2f3e4e",
]
}
end={
Object {
"x": 0.5,
"y": 1,
}
}
locations={
Array [
0,
@ -83,6 +89,12 @@ ShallowWrapper {
1,
]
}
start={
Object {
"x": 0.5,
"y": 0,
}
}
style={
Object {
"flex": 1,
@ -192,11 +204,19 @@ ShallowWrapper {
"rgba(47,62,78,0.75)",
"#2f3e4e",
],
"end": Object {
"x": 0.5,
"y": 1,
},
"locations": Array [
0,
0.7,
1,
],
"start": Object {
"x": 0.5,
"y": 0,
},
"style": Object {
"flex": 1,
"height": 50,
@ -488,6 +508,12 @@ ShallowWrapper {
"#2f3e4e",
]
}
end={
Object {
"x": 0.5,
"y": 1,
}
}
locations={
Array [
0,
@ -495,6 +521,12 @@ ShallowWrapper {
1,
]
}
start={
Object {
"x": 0.5,
"y": 0,
}
}
style={
Object {
"flex": 1,
@ -604,11 +636,19 @@ ShallowWrapper {
"rgba(47,62,78,0.75)",
"#2f3e4e",
],
"end": Object {
"x": 0.5,
"y": 1,
},
"locations": Array [
0,
0.7,
1,
],
"start": Object {
"x": 0.5,
"y": 0,
},
"style": Object {
"flex": 1,
"height": 50,
@ -890,8 +930,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -2,7 +2,6 @@
exports[`ChannelItem should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <ChannelItem
channelId="channel_id"
@ -39,6 +38,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -796,8 +796,19 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction] {
@ -812,9 +823,16 @@ ShallowWrapper {
},
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
],
},
},
},
"hydrateIn": undefined,
},
}
`;

View file

@ -272,7 +272,7 @@ export default class SettingsDrawer extends PureComponent {
<DrawerItem
defaultMessage='Recent Mentions'
i18nId='search_header.title2'
iconName='ios-at-outline'
iconName='ios-at'
iconType='ion'
onPress={this.goToMentions}
separator={true}
@ -281,7 +281,7 @@ export default class SettingsDrawer extends PureComponent {
<DrawerItem
defaultMessage='Flagged Posts'
i18nId='search_header.title3'
iconName='ios-flag-outline'
iconName='ios-flag'
iconType='ion'
onPress={this.goToFlagged}
separator={false}

View file

@ -2,7 +2,6 @@
exports[`ErrorTeamsList should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <ErrorTeamsList
actions={
@ -24,6 +23,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -159,8 +159,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -140,7 +140,7 @@ export default class FlaggedPosts extends PureComponent {
id: 'mobile.flagged_posts.empty_description',
defaultMessage: 'Flags are a way to mark messages for follow up. Your flags are personal, and cannot be seen by other users.',
})}
iconName='ios-flag-outline'
iconName='ios-flag'
title={formatMessage({id: 'mobile.flagged_posts.empty_title', defaultMessage: 'No Flagged Posts'})}
theme={theme}
/>

View file

@ -271,7 +271,7 @@ export default class ImagePreview extends PureComponent {
} else if (file.source || isVideo(file.data)) {
icon = (
<Icon
name='ios-download-outline'
name='ios-download'
size={26}
color='#fff'
/>

View file

@ -2,7 +2,6 @@
exports[`MoreChannels should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <MoreChannels
actions={
@ -50,6 +49,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -60,7 +60,7 @@ ShallowWrapper {
"props": Object {
"children": Array [
<Connect(StatusBar) />,
<UNDEFINED>
<React.Fragment>
<Component
style={
Object {
@ -72,7 +72,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -87,7 +86,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -133,7 +131,7 @@ ShallowWrapper {
}
}
/>
</UNDEFINED>,
</React.Fragment>,
],
},
"ref": null,
@ -164,7 +162,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -179,7 +176,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -238,7 +234,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -253,7 +248,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -353,7 +347,7 @@ ShallowWrapper {
"props": Object {
"children": Array [
<Connect(StatusBar) />,
<UNDEFINED>
<React.Fragment>
<Component
style={
Object {
@ -365,7 +359,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -380,7 +373,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -426,7 +418,7 @@ ShallowWrapper {
}
}
/>
</UNDEFINED>,
</React.Fragment>,
],
},
"ref": null,
@ -457,7 +449,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -472,7 +463,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -531,7 +521,6 @@ ShallowWrapper {
autoCapitalize="none"
backgroundColor="transparent"
blurOnSubmit={true}
cancelTitle={undefined}
inputHeight={33}
inputStyle={
Object {
@ -546,7 +535,6 @@ ShallowWrapper {
onFocus={[Function]}
onSearchButtonPress={[Function]}
onSelectionChange={[Function]}
placeholder={undefined}
placeholderTextColor="rgba(170,170,170,0.5)"
tintColorDelete="rgba(170,170,170,0.5)"
tintColorSearch="rgba(170,170,170,0.5)"
@ -643,8 +631,19 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction] {
@ -668,9 +667,24 @@ ShallowWrapper {
},
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
Object {
"isThrow": false,
"value": undefined,
},
Object {
"isThrow": false,
"value": undefined,
},
],
},
},
},
"hydrateIn": undefined,
},
}
`;

View file

@ -2,7 +2,6 @@
exports[`OptionModalList should match snapshot for Android 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <OptionsModalList
items={
@ -32,6 +31,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -1229,15 +1229,26 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;
exports[`OptionModalList should match snapshot for iOS 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <OptionsModalList
items={
@ -1267,6 +1278,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -2772,8 +2784,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -140,7 +140,7 @@ export default class RecentMentions extends PureComponent {
id: 'mobile.recent_mentions.empty_description',
defaultMessage: 'Messages containing your username and other words that trigger mentions will appear here.',
})}
iconName='ios-at-outline'
iconName='ios-at'
title={formatMessage({id: 'mobile.recent_mentions.empty_title', defaultMessage: 'No Recent Mentions'})}
theme={theme}
/>

View file

@ -2,7 +2,6 @@
exports[`SelectTeam should match snapshot for fail of teams 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <SelectTeam
actions={
@ -25,6 +24,12 @@ ShallowWrapper {
[Function],
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
],
},
}
}
@ -41,6 +46,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -90,15 +96,26 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;
exports[`SelectTeam should match snapshot for teams 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <SelectTeam
actions={
@ -121,6 +138,12 @@ ShallowWrapper {
[Function],
],
],
"results": Array [
Object {
"isThrow": false,
"value": undefined,
},
],
},
}
}
@ -145,6 +168,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -602,8 +626,20 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
}
`;

View file

@ -33,9 +33,7 @@ exports[`NotificationSettingsEmailAndroid should match snapshot 2`] = `
transparent={true}
visible={false}
>
<Component
style={undefined}
>
<Component>
<Component
style={Object {}}
>

View file

@ -2,7 +2,6 @@
exports[`user_profile should match snapshot 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <UserProfile
actions={
@ -46,6 +45,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
@ -983,13 +983,25 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"context": Object {
"intl": Object {
"formatMessage": [MockFunction],
},
},
"hydrateIn": undefined,
},
}
`;

5926
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,106 +7,105 @@
"license": "Apache 2.0",
"private": true,
"dependencies": {
"@types/react-native-calendars": "1.20.2",
"analytics-react-native": "1.2.0",
"commonmark": "github:mattermost/commonmark.js#971456e6d3f07b14effac73718d1de768586876a",
"commonmark-react-renderer": "github:mattermost/commonmark-react-renderer#86fa63f898802953842526c2030f3b63c5d1ae7a",
"deep-equal": "1.0.1",
"fuse.js": "^3.2.0",
"fuse.js": "3.2.1",
"intl": "1.2.5",
"jail-monkey": "1.0.0",
"jsc-android": "216113.0.3",
"jsc-android": "224109.1.0",
"mattermost-redux": "github:mattermost/mattermost-redux#c7aa1f1dc8dd67f9806b2cbb3a6103ff8a9c16fd",
"mime-db": "1.33.0",
"mime-db": "1.36.0",
"moment-timezone": "0.5.21",
"prop-types": "15.6.1",
"react": "16.3.2",
"react-intl": "2.4.0",
"prop-types": "15.6.2",
"react": "16.5.1",
"react-intl": "2.5.0",
"react-native": "github:enahum/react-native#mm",
"react-native-animatable": "1.2.4",
"react-native-animatable": "1.3.0",
"react-native-bottom-sheet": "1.0.3",
"react-native-button": "2.3.0",
"react-native-calendars": "github:enahum/react-native-calendars#b96954bf85126222b311b638fe458a8194f25bed",
"react-native-circular-progress": "0.2.0",
"react-native-cookies": "3.2.0",
"react-native-device-info": "github:enahum/react-native-device-info#a7bb3cff1086780b2c791a3e43e5b826fdf3ab11",
"react-native-circular-progress": "1.0.1",
"react-native-cookies": "3.3.0",
"react-native-device-info": "github:enahum/react-native-device-info#3b1a676801215444b1758aa76b6f0fe0fc449650",
"react-native-doc-viewer": "2.7.8",
"react-native-document-picker": "2.1.0",
"react-native-drawer-layout": "2.0.0",
"react-native-exception-handler": "2.7.5",
"react-native-exception-handler": "2.9.0",
"react-native-image-gallery": "github:enahum/react-native-image-gallery#a98b1051e94f5a394541ca1ff9b15e2c9ffed84f",
"react-native-image-picker": "0.26.7",
"react-native-keyboard-aware-scroll-view": "0.5.0",
"react-native-keychain": "3.0.0-rc.3",
"react-native-linear-gradient": "2.4.0",
"react-native-image-picker": "0.26.10",
"react-native-keyboard-aware-scroll-view": "0.7.2",
"react-native-keychain": "3.0.0",
"react-native-linear-gradient": "2.4.2",
"react-native-local-auth": "github:enahum/react-native-local-auth#cc9ce2f468fbf7b431dfad3191a31aaa9227a6ab",
"react-native-navigation": "1.1.450",
"react-native-notifications": "github:enahum/react-native-notifications#36952db3957a26332a762b89f49bbc87ebb0bed4",
"react-native-navigation": "1.1.486",
"react-native-notifications": "github:enahum/react-native-notifications#e5bf431716613b6abf312698dde194537420f966",
"react-native-passcode-status": "1.1.1",
"react-native-permissions": "1.1.1",
"react-native-safe-area": "0.2.3",
"react-native-section-list-get-item-layout": "2.2.2",
"react-native-safe-area": "0.5.0",
"react-native-section-list-get-item-layout": "2.2.3",
"react-native-sentry": "0.38.3",
"react-native-slider": "0.11.0",
"react-native-status-bar-size": "0.3.3",
"react-native-svg": "6.3.1",
"react-native-tableview": "2.1.0",
"react-native-svg": "6.5.2",
"react-native-tableview": "2.3.1",
"react-native-tooltip": "5.2.0",
"react-native-vector-icons": "4.6.0",
"react-native-video": "3.2.0",
"react-native-vector-icons": "5.0.0",
"react-native-video": "3.2.1",
"react-native-youtube": "github:enahum/react-native-youtube#3f395b620ae4e05a3f1c6bdeef3a1158e78daadc",
"react-navigation": "1.5.11",
"react-navigation": "2.14.0",
"react-redux": "5.0.7",
"redux": "4.0.0",
"redux-batched-actions": "0.2.1",
"redux-batched-actions": "0.4.0",
"redux-persist": "4.10.2",
"redux-persist-transform-filter": "0.0.16",
"redux-thunk": "2.2.0",
"redux-persist-transform-filter": "0.0.18",
"redux-thunk": "2.3.0",
"reselect": "3.0.1",
"rn-fetch-blob": "github:enahum/react-native-fetch-blob#c754e92c0d4193de65ec23bba4844980be37c496",
"rn-placeholder": "github:enahum/rn-placeholder#4b065f892d7a7f9d921a969f2e72e609ebc0a212",
"semver": "5.5.0",
"rn-placeholder": "github:enahum/rn-placeholder#d15069a4f37ce8724147c07f771eeca83fa0d60a",
"semver": "5.5.1",
"shallow-equals": "1.0.0",
"tinycolor2": "1.4.1",
"url-parse": "1.4.0"
"url-parse": "1.4.3"
},
"devDependencies": {
"babel-cli": "6.26.0",
"babel-eslint": "8.2.3",
"babel-eslint": "9.0.0",
"babel-plugin-module-resolver": "3.1.1",
"babel-plugin-transform-remove-console": "6.9.1",
"babel-preset-env": "1.6.1",
"babel-plugin-transform-remove-console": "6.9.4",
"babel-preset-env": "1.7.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-latest": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-react-native": "4.0.0",
"babel-preset-react-native": "4.0.1",
"babel-preset-stage-0": "6.24.1",
"babel-register": "6.26.0",
"deep-freeze": "0.0.1",
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"enzyme-to-json": "3.3.3",
"eslint": "4.19.1",
"eslint-plugin-header": "1.2.0",
"eslint-plugin-jest": "21.15.1",
"eslint-plugin-react": "7.7.0",
"jest": "22.4.3",
"jest-cli": "22.4.3",
"enzyme": "3.6.0",
"enzyme-adapter-react-16": "1.5.0",
"enzyme-to-json": "3.3.4",
"eslint": "5.5.0",
"eslint-plugin-header": "2.0.0",
"eslint-plugin-jest": "21.22.0",
"eslint-plugin-react": "7.11.1",
"jest": "23.6.0",
"jest-cli": "23.6.0",
"jsdom-global": "3.0.2",
"nyc": "11.7.1",
"react-dom": "16.3.2",
"redux-mock-store": "1.5.1",
"remote-redux-devtools": "0.5.12",
"nyc": "13.0.1",
"react-dom": "16.5.1",
"redux-mock-store": "1.5.3",
"remote-redux-devtools": "0.5.13",
"remotedev-rn-debugger": "0.8.3",
"socketcluster": "11.4.2",
"underscore": "1.9.0"
"socketcluster": "14.1.1",
"underscore": "1.9.1"
},
"scripts": {
"start": "node ./node_modules/react-native/local-cli/cli.js start --config ../../../../packager/config.js",
"check": "eslint --ignore-path .gitignore --ignore-pattern node_modules --quiet .",
"fix": "eslint --ignore-path .gitignore --ignore-pattern node_modules --quiet . --fix",
"postinstall": "make post-install",
"test": "jest --forceExit",
"test": "jest --forceExit --detectOpenHandles",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
},