Bump flow version
Reviewed By: priteshrnandgaonkar Differential Revision: D12839991 fbshipit-source-id: 1dcca0a0bc682bf24430c7313d4af14b87cfc44d
This commit is contained in:
committed by
Facebook Github Bot
parent
5ec2add066
commit
0a6dbfcf3e
@@ -23,4 +23,4 @@ module.name_mapper='flipper' -> '<PROJECT_ROOT>/src/index.js'
|
|||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
0.76.0
|
^0.84.0
|
||||||
|
|||||||
2
flow-typed/electron-menu.js
vendored
2
flow-typed/electron-menu.js
vendored
@@ -59,7 +59,7 @@ type Electron$MenuItemOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
declare class Electron$MenuItem {
|
declare class Electron$MenuItem {
|
||||||
constructor: (options: Electron$MenuItemOptions) => void;
|
constructor(options: Electron$MenuItemOptions): Electron$MenuItem;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
|
|||||||
62
flow-typed/npm/electron-v3.0.0-beta.4.js
vendored
62
flow-typed/npm/electron-v3.0.0-beta.4.js
vendored
@@ -1842,11 +1842,11 @@ declare module 'electron' {
|
|||||||
((eventName: 'devtools-focused', callback: () => void) => void);
|
((eventName: 'devtools-focused', callback: () => void) => void);
|
||||||
}
|
}
|
||||||
declare class BrowserView {
|
declare class BrowserView {
|
||||||
constructor: (
|
constructor(
|
||||||
options?: ?{
|
options?: ?{
|
||||||
webPreferences?: ?{},
|
webPreferences?: ?{},
|
||||||
},
|
},
|
||||||
) => BrowserView;
|
): BrowserView;
|
||||||
static getAllViews: () => Array<BrowserView>;
|
static getAllViews: () => Array<BrowserView>;
|
||||||
static fromWebContents: (webContents: WebContents) => BrowserView | null;
|
static fromWebContents: (webContents: WebContents) => BrowserView | null;
|
||||||
static fromId: (id: number) => BrowserView;
|
static fromId: (id: number) => BrowserView;
|
||||||
@@ -1862,7 +1862,7 @@ declare module 'electron' {
|
|||||||
id: number;
|
id: number;
|
||||||
}
|
}
|
||||||
declare class BrowserWindow {
|
declare class BrowserWindow {
|
||||||
constructor: (
|
constructor(
|
||||||
options?: ?{
|
options?: ?{
|
||||||
width?: ?number,
|
width?: ?number,
|
||||||
height?: ?number,
|
height?: ?number,
|
||||||
@@ -1968,7 +1968,7 @@ declare module 'electron' {
|
|||||||
navigateOnDragDrop?: ?boolean,
|
navigateOnDragDrop?: ?boolean,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
) => BrowserWindow;
|
): BrowserWindow;
|
||||||
static getAllWindows: () => Array<BrowserWindow>;
|
static getAllWindows: () => Array<BrowserWindow>;
|
||||||
static getFocusedWindow: () => BrowserWindow | null;
|
static getFocusedWindow: () => BrowserWindow | null;
|
||||||
static fromWebContents: (webContents: WebContents) => BrowserWindow;
|
static fromWebContents: (webContents: WebContents) => BrowserWindow;
|
||||||
@@ -2237,7 +2237,7 @@ declare module 'electron' {
|
|||||||
closed: boolean;
|
closed: boolean;
|
||||||
}
|
}
|
||||||
declare class ClientRequest {
|
declare class ClientRequest {
|
||||||
constructor: (options: Object | string) => ClientRequest;
|
constructor(options: Object | string): ClientRequest;
|
||||||
setHeader: (name: string, value: {}) => void;
|
setHeader: (name: string, value: {}) => void;
|
||||||
getHeader: (
|
getHeader: (
|
||||||
name: string,
|
name: string,
|
||||||
@@ -2463,7 +2463,7 @@ declare module 'electron' {
|
|||||||
((eventName: 'error', callback: () => void) => void);
|
((eventName: 'error', callback: () => void) => void);
|
||||||
}
|
}
|
||||||
declare class Menu {
|
declare class Menu {
|
||||||
constructor: () => Menu;
|
constructor(): Menu;
|
||||||
static setApplicationMenu: (menu: Menu | null) => void;
|
static setApplicationMenu: (menu: Menu | null) => void;
|
||||||
static getApplicationMenu: () => Menu | null;
|
static getApplicationMenu: () => Menu | null;
|
||||||
static sendActionToFirstResponder: (action: string) => void;
|
static sendActionToFirstResponder: (action: string) => void;
|
||||||
@@ -2500,7 +2500,7 @@ declare module 'electron' {
|
|||||||
) => void);
|
) => void);
|
||||||
}
|
}
|
||||||
declare class MenuItem {
|
declare class MenuItem {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
click?: ?Function,
|
click?: ?Function,
|
||||||
role?: ?string,
|
role?: ?string,
|
||||||
type?: ?'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio',
|
type?: ?'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio',
|
||||||
@@ -2514,7 +2514,7 @@ declare module 'electron' {
|
|||||||
submenu?: ?Array<MenuItemConstructorOptions> | Menu,
|
submenu?: ?Array<MenuItemConstructorOptions> | Menu,
|
||||||
id?: ?string,
|
id?: ?string,
|
||||||
position?: ?string,
|
position?: ?string,
|
||||||
}) => MenuItem;
|
}): MenuItem;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
@@ -2564,7 +2564,7 @@ declare module 'electron' {
|
|||||||
}) => void;
|
}) => void;
|
||||||
}
|
}
|
||||||
declare class Notification {
|
declare class Notification {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
title: string,
|
title: string,
|
||||||
subtitle?: ?string,
|
subtitle?: ?string,
|
||||||
body: string,
|
body: string,
|
||||||
@@ -2575,7 +2575,7 @@ declare module 'electron' {
|
|||||||
sound?: ?string,
|
sound?: ?string,
|
||||||
actions?: ?Array<NotificationAction>,
|
actions?: ?Array<NotificationAction>,
|
||||||
closeButtonText?: ?string,
|
closeButtonText?: ?string,
|
||||||
}) => Notification;
|
}): Notification;
|
||||||
static isSupported: () => boolean;
|
static isSupported: () => boolean;
|
||||||
show: () => void;
|
show: () => void;
|
||||||
close: () => void;
|
close: () => void;
|
||||||
@@ -2676,7 +2676,7 @@ declare module 'electron' {
|
|||||||
) => void;
|
) => void;
|
||||||
}
|
}
|
||||||
declare class TouchBar {
|
declare class TouchBar {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
items: Array<
|
items: Array<
|
||||||
| TouchBarButton
|
| TouchBarButton
|
||||||
| TouchBarColorPicker
|
| TouchBarColorPicker
|
||||||
@@ -2699,7 +2699,7 @@ declare module 'electron' {
|
|||||||
| TouchBarSlider
|
| TouchBarSlider
|
||||||
| TouchBarSpacer
|
| TouchBarSpacer
|
||||||
| null,
|
| null,
|
||||||
}) => TouchBar;
|
}): TouchBar;
|
||||||
static TouchBarButton: Class<TouchBarButton>;
|
static TouchBarButton: Class<TouchBarButton>;
|
||||||
static TouchBarColorPicker: Class<TouchBarColorPicker>;
|
static TouchBarColorPicker: Class<TouchBarColorPicker>;
|
||||||
static TouchBarGroup: Class<TouchBarGroup>;
|
static TouchBarGroup: Class<TouchBarGroup>;
|
||||||
@@ -2712,7 +2712,7 @@ declare module 'electron' {
|
|||||||
escapeItem: TouchBarItem;
|
escapeItem: TouchBarItem;
|
||||||
}
|
}
|
||||||
declare class Tray {
|
declare class Tray {
|
||||||
constructor: (image: NativeImage | string) => Tray;
|
constructor(image: NativeImage | string): Tray;
|
||||||
destroy: () => void;
|
destroy: () => void;
|
||||||
setImage: (image: NativeImage | string) => void;
|
setImage: (image: NativeImage | string) => void;
|
||||||
setPressedImage: (image: NativeImage | string) => void;
|
setPressedImage: (image: NativeImage | string) => void;
|
||||||
@@ -3637,51 +3637,51 @@ declare module 'electron' {
|
|||||||
((listener: Function) => void);
|
((listener: Function) => void);
|
||||||
}
|
}
|
||||||
declare class TouchBarButton {
|
declare class TouchBarButton {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
label?: ?string,
|
label?: ?string,
|
||||||
backgroundColor?: ?string,
|
backgroundColor?: ?string,
|
||||||
icon?: ?NativeImage,
|
icon?: ?NativeImage,
|
||||||
iconPosition?: ?'left' | 'right' | 'overlay',
|
iconPosition?: ?'left' | 'right' | 'overlay',
|
||||||
click?: ?Function,
|
click?: ?Function,
|
||||||
}) => TouchBarButton;
|
}): TouchBarButton;
|
||||||
label: string;
|
label: string;
|
||||||
backgroundColor: string;
|
backgroundColor: string;
|
||||||
icon: NativeImage;
|
icon: NativeImage;
|
||||||
}
|
}
|
||||||
declare class TouchBarColorPicker {
|
declare class TouchBarColorPicker {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
availableColors?: ?Array<string>,
|
availableColors?: ?Array<string>,
|
||||||
selectedColor?: ?string,
|
selectedColor?: ?string,
|
||||||
change?: ?Function,
|
change?: ?Function,
|
||||||
}) => TouchBarColorPicker;
|
}): TouchBarColorPicker;
|
||||||
availableColors: Array<string>;
|
availableColors: Array<string>;
|
||||||
selectedColor: string;
|
selectedColor: string;
|
||||||
}
|
}
|
||||||
declare class TouchBarGroup {
|
declare class TouchBarGroup {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
items: TouchBar,
|
items: TouchBar,
|
||||||
}) => TouchBarGroup;
|
}): TouchBarGroup;
|
||||||
}
|
}
|
||||||
declare class TouchBarLabel {
|
declare class TouchBarLabel {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
label?: ?string,
|
label?: ?string,
|
||||||
textColor?: ?string,
|
textColor?: ?string,
|
||||||
}) => TouchBarLabel;
|
}): TouchBarLabel;
|
||||||
label: string;
|
label: string;
|
||||||
textColor: string;
|
textColor: string;
|
||||||
}
|
}
|
||||||
declare class TouchBarPopover {
|
declare class TouchBarPopover {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
label?: ?string,
|
label?: ?string,
|
||||||
icon?: ?NativeImage,
|
icon?: ?NativeImage,
|
||||||
items?: ?TouchBar,
|
items?: ?TouchBar,
|
||||||
showCloseButton?: ?boolean,
|
showCloseButton?: ?boolean,
|
||||||
}) => TouchBarPopover;
|
}): TouchBarPopover;
|
||||||
label: string;
|
label: string;
|
||||||
icon: NativeImage;
|
icon: NativeImage;
|
||||||
}
|
}
|
||||||
declare class TouchBarScrubber {
|
declare class TouchBarScrubber {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
items: Array<ScrubberItem>,
|
items: Array<ScrubberItem>,
|
||||||
select: Function,
|
select: Function,
|
||||||
highlight: Function,
|
highlight: Function,
|
||||||
@@ -3690,7 +3690,7 @@ declare module 'electron' {
|
|||||||
showArrowButtons: boolean,
|
showArrowButtons: boolean,
|
||||||
mode: string,
|
mode: string,
|
||||||
continuous: boolean,
|
continuous: boolean,
|
||||||
}) => TouchBarScrubber;
|
}): TouchBarScrubber;
|
||||||
items: Array<ScrubberItem>;
|
items: Array<ScrubberItem>;
|
||||||
selectedStyle: string;
|
selectedStyle: string;
|
||||||
overlayStyle: string;
|
overlayStyle: string;
|
||||||
@@ -3699,7 +3699,7 @@ declare module 'electron' {
|
|||||||
continuous: boolean;
|
continuous: boolean;
|
||||||
}
|
}
|
||||||
declare class TouchBarSegmentedControl {
|
declare class TouchBarSegmentedControl {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
segmentStyle?:
|
segmentStyle?:
|
||||||
| ?'automatic'
|
| ?'automatic'
|
||||||
| 'rounded'
|
| 'rounded'
|
||||||
@@ -3713,28 +3713,28 @@ declare module 'electron' {
|
|||||||
segments: Array<SegmentedControlSegment>,
|
segments: Array<SegmentedControlSegment>,
|
||||||
selectedIndex?: ?number,
|
selectedIndex?: ?number,
|
||||||
change: Function,
|
change: Function,
|
||||||
}) => TouchBarSegmentedControl;
|
}): TouchBarSegmentedControl;
|
||||||
segmentStyle: string;
|
segmentStyle: string;
|
||||||
segments: Array<SegmentedControlSegment>;
|
segments: Array<SegmentedControlSegment>;
|
||||||
selectedIndex: number;
|
selectedIndex: number;
|
||||||
}
|
}
|
||||||
declare class TouchBarSlider {
|
declare class TouchBarSlider {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
label?: ?string,
|
label?: ?string,
|
||||||
value?: ?number,
|
value?: ?number,
|
||||||
minValue?: ?number,
|
minValue?: ?number,
|
||||||
maxValue?: ?number,
|
maxValue?: ?number,
|
||||||
change?: ?Function,
|
change?: ?Function,
|
||||||
}) => TouchBarSlider;
|
}): TouchBarSlider;
|
||||||
label: string;
|
label: string;
|
||||||
value: number;
|
value: number;
|
||||||
minValue: number;
|
minValue: number;
|
||||||
maxValue: number;
|
maxValue: number;
|
||||||
}
|
}
|
||||||
declare class TouchBarSpacer {
|
declare class TouchBarSpacer {
|
||||||
constructor: (options: {
|
constructor(options: {
|
||||||
size?: ?'small' | 'large' | 'flexible',
|
size?: ?'small' | 'large' | 'flexible',
|
||||||
}) => TouchBarSpacer;
|
}): TouchBarSpacer;
|
||||||
}
|
}
|
||||||
declare type Accelerator = any;
|
declare type Accelerator = any;
|
||||||
declare type WebFrame = any;
|
declare type WebFrame = any;
|
||||||
|
|||||||
2730
flow-typed/npm/lodash_v4.x.x.js
vendored
2730
flow-typed/npm/lodash_v4.x.x.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -44,7 +44,7 @@
|
|||||||
"eslint-plugin-prettier": "^2.4.0",
|
"eslint-plugin-prettier": "^2.4.0",
|
||||||
"eslint-plugin-react": "^7.5.1",
|
"eslint-plugin-react": "^7.5.1",
|
||||||
"eslint-plugin-relay": "^0.0.20",
|
"eslint-plugin-relay": "^0.0.20",
|
||||||
"flow-bin": "^0.76.0",
|
"flow-bin": "^0.84.0",
|
||||||
"glob": "^7.1.2",
|
"glob": "^7.1.2",
|
||||||
"jest": "^23.6.0",
|
"jest": "^23.6.0",
|
||||||
"prettier": "1.13.6",
|
"prettier": "1.13.6",
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ type TrackArgs = {|
|
|||||||
type SearchResultTree = {|
|
type SearchResultTree = {|
|
||||||
id: string,
|
id: string,
|
||||||
isMatch: Boolean,
|
isMatch: Boolean,
|
||||||
|
hasChildren: boolean,
|
||||||
children: ?Array<SearchResultTree>,
|
children: ?Array<SearchResultTree>,
|
||||||
element: Element,
|
element: Element,
|
||||||
axElement: Element,
|
axElement: Element,
|
||||||
@@ -476,11 +477,13 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getElementsFromSearchResultTree(tree: ?SearchResultTree) {
|
getElementsFromSearchResultTree(
|
||||||
|
tree: ?SearchResultTree,
|
||||||
|
): Array<SearchResultTree> {
|
||||||
if (!tree) {
|
if (!tree) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
var elements = [
|
let elements = [
|
||||||
{
|
{
|
||||||
id: tree.id,
|
id: tree.id,
|
||||||
isMatch: tree.isMatch,
|
isMatch: tree.isMatch,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export default class ErrorBoundary extends Component<
|
|||||||
</ErrorBoundaryContainer>
|
</ErrorBoundaryContainer>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return this.props.children;
|
return this.props.children || null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type {DataInspectorSetValue} from './DataInspector.js';
|
|||||||
import {PureComponent} from 'react';
|
import {PureComponent} from 'react';
|
||||||
import styled from '../../styled/index.js';
|
import styled from '../../styled/index.js';
|
||||||
import {SketchPicker} from 'react-color';
|
import {SketchPicker} from 'react-color';
|
||||||
import {Component} from 'react';
|
import {Component, Fragment} from 'react';
|
||||||
import Popover from '../Popover.js';
|
import Popover from '../Popover.js';
|
||||||
import {colors} from '../colors.js';
|
import {colors} from '../colors.js';
|
||||||
import Input from '../Input.js';
|
import Input from '../Input.js';
|
||||||
@@ -294,7 +294,7 @@ class ColorEditor extends Component<{
|
|||||||
render() {
|
render() {
|
||||||
const colorInfo = parseColor(this.props.value);
|
const colorInfo = parseColor(this.props.value);
|
||||||
if (!colorInfo) {
|
if (!colorInfo) {
|
||||||
return;
|
return <Fragment />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ export default class DataInspector extends Component<DataInspectorProps> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let propertyNodesContainer;
|
let propertyNodesContainer = null;
|
||||||
if (isExpandable && isExpanded) {
|
if (isExpandable && isExpanded) {
|
||||||
const propertyNodes = [];
|
const propertyNodes = [];
|
||||||
|
|
||||||
@@ -532,7 +532,7 @@ export default class DataInspector extends Component<DataInspectorProps> {
|
|||||||
if (typeof name !== 'undefined') {
|
if (typeof name !== 'undefined') {
|
||||||
nameElems.push(
|
nameElems.push(
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={tooltips && tooltips[name]}
|
title={tooltips != null && tooltips[name]}
|
||||||
key="name"
|
key="name"
|
||||||
options={nameTooltipOptions}>
|
options={nameTooltipOptions}>
|
||||||
<InspectorName>{name}</InspectorName>
|
<InspectorName>{name}</InspectorName>
|
||||||
|
|||||||
@@ -2803,9 +2803,10 @@ flat-cache@^1.2.1:
|
|||||||
graceful-fs "^4.1.2"
|
graceful-fs "^4.1.2"
|
||||||
write "^0.2.1"
|
write "^0.2.1"
|
||||||
|
|
||||||
flow-bin@^0.76.0:
|
flow-bin@^0.84.0:
|
||||||
version "0.76.0"
|
version "0.84.0"
|
||||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.76.0.tgz#eb00036991c3abc106743fcbc7ee321f02aa4faa"
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.84.0.tgz#4cb2364c750fb37a7840524fa62456b53f64cdcb"
|
||||||
|
integrity sha512-ocji8eEYp+YfICsm+F6cIHUcD7v5sb0/ADEXm6gyUKdjQzmSckMrPUdZtyfP973t3YGHKliUMxMvIBHyR5LbXQ==
|
||||||
|
|
||||||
flow-parser@^0.*:
|
flow-parser@^0.*:
|
||||||
version "0.81.0"
|
version "0.81.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user