Merge with upstream

This commit is contained in:
Florian Scholdei
2019-10-08 16:42:52 +02:00
113 changed files with 139059 additions and 228 deletions

View File

@@ -1,8 +1,14 @@
[ignore]
.*/node_modules/module-deps/.*
[include]
../ui-types
[libs]
[lints]
[options]
module.system.node.resolve_dirname=../../node_modules
module.name_mapper='^@scm-manager\/ui-types$' -> '<PROJECT_ROOT>/../ui-types'
[strict]

View File

@@ -0,0 +1,49 @@
// flow-typed signature: e87b860fca7047001bcde4b8780a8655
// flow-typed version: <<STUB>>/@scm-manager/ui-extensions_v0.1.2/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* '@scm-manager/ui-extensions'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@scm-manager/ui-extensions' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@scm-manager/ui-extensions/lib/binder' {
declare module.exports: any;
}
declare module '@scm-manager/ui-extensions/lib/ExtensionPoint' {
declare module.exports: any;
}
declare module '@scm-manager/ui-extensions/lib' {
declare module.exports: any;
}
// Filename aliases
declare module '@scm-manager/ui-extensions/lib/binder.js' {
declare module.exports: $Exports<'@scm-manager/ui-extensions/lib/binder'>;
}
declare module '@scm-manager/ui-extensions/lib/ExtensionPoint.js' {
declare module.exports: $Exports<'@scm-manager/ui-extensions/lib/ExtensionPoint'>;
}
declare module '@scm-manager/ui-extensions/lib/index' {
declare module.exports: $Exports<'@scm-manager/ui-extensions/lib'>;
}
declare module '@scm-manager/ui-extensions/lib/index.js' {
declare module.exports: $Exports<'@scm-manager/ui-extensions/lib'>;
}

View File

@@ -0,0 +1,269 @@
// flow-typed signature: 761f01d8db9f91fa67135cb2120c2b8e
// flow-typed version: <<STUB>>/enzyme_v3.10.0/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'enzyme'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'enzyme' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'enzyme/build/configuration' {
declare module.exports: any;
}
declare module 'enzyme/build/Debug' {
declare module.exports: any;
}
declare module 'enzyme/build/EnzymeAdapter' {
declare module.exports: any;
}
declare module 'enzyme/build/getAdapter' {
declare module.exports: any;
}
declare module 'enzyme/build' {
declare module.exports: any;
}
declare module 'enzyme/build/mount' {
declare module.exports: any;
}
declare module 'enzyme/build/ReactWrapper' {
declare module.exports: any;
}
declare module 'enzyme/build/render' {
declare module.exports: any;
}
declare module 'enzyme/build/RSTTraversal' {
declare module.exports: any;
}
declare module 'enzyme/build/selectors' {
declare module.exports: any;
}
declare module 'enzyme/build/shallow' {
declare module.exports: any;
}
declare module 'enzyme/build/ShallowWrapper' {
declare module.exports: any;
}
declare module 'enzyme/build/Utils' {
declare module.exports: any;
}
declare module 'enzyme/build/validateAdapter' {
declare module.exports: any;
}
declare module 'enzyme/mount' {
declare module.exports: any;
}
declare module 'enzyme/ReactWrapper' {
declare module.exports: any;
}
declare module 'enzyme/render' {
declare module.exports: any;
}
declare module 'enzyme/shallow' {
declare module.exports: any;
}
declare module 'enzyme/ShallowWrapper' {
declare module.exports: any;
}
declare module 'enzyme/src/configuration' {
declare module.exports: any;
}
declare module 'enzyme/src/Debug' {
declare module.exports: any;
}
declare module 'enzyme/src/EnzymeAdapter' {
declare module.exports: any;
}
declare module 'enzyme/src/getAdapter' {
declare module.exports: any;
}
declare module 'enzyme/src' {
declare module.exports: any;
}
declare module 'enzyme/src/mount' {
declare module.exports: any;
}
declare module 'enzyme/src/ReactWrapper' {
declare module.exports: any;
}
declare module 'enzyme/src/render' {
declare module.exports: any;
}
declare module 'enzyme/src/RSTTraversal' {
declare module.exports: any;
}
declare module 'enzyme/src/selectors' {
declare module.exports: any;
}
declare module 'enzyme/src/shallow' {
declare module.exports: any;
}
declare module 'enzyme/src/ShallowWrapper' {
declare module.exports: any;
}
declare module 'enzyme/src/Utils' {
declare module.exports: any;
}
declare module 'enzyme/src/validateAdapter' {
declare module.exports: any;
}
declare module 'enzyme/withDom' {
declare module.exports: any;
}
// Filename aliases
declare module 'enzyme/build/configuration.js' {
declare module.exports: $Exports<'enzyme/build/configuration'>;
}
declare module 'enzyme/build/Debug.js' {
declare module.exports: $Exports<'enzyme/build/Debug'>;
}
declare module 'enzyme/build/EnzymeAdapter.js' {
declare module.exports: $Exports<'enzyme/build/EnzymeAdapter'>;
}
declare module 'enzyme/build/getAdapter.js' {
declare module.exports: $Exports<'enzyme/build/getAdapter'>;
}
declare module 'enzyme/build/index' {
declare module.exports: $Exports<'enzyme/build'>;
}
declare module 'enzyme/build/index.js' {
declare module.exports: $Exports<'enzyme/build'>;
}
declare module 'enzyme/build/mount.js' {
declare module.exports: $Exports<'enzyme/build/mount'>;
}
declare module 'enzyme/build/ReactWrapper.js' {
declare module.exports: $Exports<'enzyme/build/ReactWrapper'>;
}
declare module 'enzyme/build/render.js' {
declare module.exports: $Exports<'enzyme/build/render'>;
}
declare module 'enzyme/build/RSTTraversal.js' {
declare module.exports: $Exports<'enzyme/build/RSTTraversal'>;
}
declare module 'enzyme/build/selectors.js' {
declare module.exports: $Exports<'enzyme/build/selectors'>;
}
declare module 'enzyme/build/shallow.js' {
declare module.exports: $Exports<'enzyme/build/shallow'>;
}
declare module 'enzyme/build/ShallowWrapper.js' {
declare module.exports: $Exports<'enzyme/build/ShallowWrapper'>;
}
declare module 'enzyme/build/Utils.js' {
declare module.exports: $Exports<'enzyme/build/Utils'>;
}
declare module 'enzyme/build/validateAdapter.js' {
declare module.exports: $Exports<'enzyme/build/validateAdapter'>;
}
declare module 'enzyme/mount.js' {
declare module.exports: $Exports<'enzyme/mount'>;
}
declare module 'enzyme/ReactWrapper.js' {
declare module.exports: $Exports<'enzyme/ReactWrapper'>;
}
declare module 'enzyme/render.js' {
declare module.exports: $Exports<'enzyme/render'>;
}
declare module 'enzyme/shallow.js' {
declare module.exports: $Exports<'enzyme/shallow'>;
}
declare module 'enzyme/ShallowWrapper.js' {
declare module.exports: $Exports<'enzyme/ShallowWrapper'>;
}
declare module 'enzyme/src/configuration.js' {
declare module.exports: $Exports<'enzyme/src/configuration'>;
}
declare module 'enzyme/src/Debug.js' {
declare module.exports: $Exports<'enzyme/src/Debug'>;
}
declare module 'enzyme/src/EnzymeAdapter.js' {
declare module.exports: $Exports<'enzyme/src/EnzymeAdapter'>;
}
declare module 'enzyme/src/getAdapter.js' {
declare module.exports: $Exports<'enzyme/src/getAdapter'>;
}
declare module 'enzyme/src/index' {
declare module.exports: $Exports<'enzyme/src'>;
}
declare module 'enzyme/src/index.js' {
declare module.exports: $Exports<'enzyme/src'>;
}
declare module 'enzyme/src/mount.js' {
declare module.exports: $Exports<'enzyme/src/mount'>;
}
declare module 'enzyme/src/ReactWrapper.js' {
declare module.exports: $Exports<'enzyme/src/ReactWrapper'>;
}
declare module 'enzyme/src/render.js' {
declare module.exports: $Exports<'enzyme/src/render'>;
}
declare module 'enzyme/src/RSTTraversal.js' {
declare module.exports: $Exports<'enzyme/src/RSTTraversal'>;
}
declare module 'enzyme/src/selectors.js' {
declare module.exports: $Exports<'enzyme/src/selectors'>;
}
declare module 'enzyme/src/shallow.js' {
declare module.exports: $Exports<'enzyme/src/shallow'>;
}
declare module 'enzyme/src/ShallowWrapper.js' {
declare module.exports: $Exports<'enzyme/src/ShallowWrapper'>;
}
declare module 'enzyme/src/Utils.js' {
declare module.exports: $Exports<'enzyme/src/Utils'>;
}
declare module 'enzyme/src/validateAdapter.js' {
declare module.exports: $Exports<'enzyme/src/validateAdapter'>;
}
declare module 'enzyme/withDom.js' {
declare module.exports: $Exports<'enzyme/withDom'>;
}

View File

@@ -0,0 +1,66 @@
// flow-typed signature: 9be79ea52a669f6c266677d1d0bd3e9d
// flow-typed version: <<STUB>>/gitdiff-parser_v0.1.2/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'gitdiff-parser'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'gitdiff-parser' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'gitdiff-parser/test/git.test' {
declare module.exports: any;
}
declare module 'gitdiff-parser/test/hg' {
declare module.exports: any;
}
declare module 'gitdiff-parser/test/hg.test' {
declare module.exports: any;
}
declare module 'gitdiff-parser/test/perf-parse-diff' {
declare module.exports: any;
}
declare module 'gitdiff-parser/test/perf' {
declare module.exports: any;
}
// Filename aliases
declare module 'gitdiff-parser/index' {
declare module.exports: $Exports<'gitdiff-parser'>;
}
declare module 'gitdiff-parser/index.js' {
declare module.exports: $Exports<'gitdiff-parser'>;
}
declare module 'gitdiff-parser/test/git.test.js' {
declare module.exports: $Exports<'gitdiff-parser/test/git.test'>;
}
declare module 'gitdiff-parser/test/hg.js' {
declare module.exports: $Exports<'gitdiff-parser/test/hg'>;
}
declare module 'gitdiff-parser/test/hg.test.js' {
declare module.exports: $Exports<'gitdiff-parser/test/hg.test'>;
}
declare module 'gitdiff-parser/test/perf-parse-diff.js' {
declare module.exports: $Exports<'gitdiff-parser/test/perf-parse-diff'>;
}
declare module 'gitdiff-parser/test/perf.js' {
declare module.exports: $Exports<'gitdiff-parser/test/perf'>;
}

View File

@@ -0,0 +1,22 @@
// flow-typed signature: 45d44f189fa426ca21dee3f5149a4f99
// flow-typed version: c6154227d1/query-string_v5.x.x/flow_>=v0.104.x
declare module "query-string" {
declare type ArrayFormat = "none" | "bracket" | "index";
declare type ParseOptions = {|
arrayFormat?: ArrayFormat
|};
declare type StringifyOptions = {|
arrayFormat?: ArrayFormat,
encode?: boolean,
strict?: boolean
|};
declare module.exports: {
extract(str: string): string,
parse(str: string, opts?: ParseOptions): Object,
stringify(obj: Object, opts?: StringifyOptions): string,
...
};
}

View File

@@ -0,0 +1,139 @@
// flow-typed signature: 35264e970923e4f3cda147e7c17e2407
// flow-typed version: <<STUB>>/react-diff-view_v1.8.1/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-diff-view'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-diff-view' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-diff-view/parse' {
declare module.exports: any;
}
declare module 'react-diff-view/src/CodeCell' {
declare module.exports: any;
}
declare module 'react-diff-view/src/Diff' {
declare module.exports: any;
}
declare module 'react-diff-view/src/Hunk' {
declare module.exports: any;
}
declare module 'react-diff-view/src' {
declare module.exports: any;
}
declare module 'react-diff-view/src/parse' {
declare module.exports: any;
}
declare module 'react-diff-view/src/propTypes' {
declare module.exports: any;
}
declare module 'react-diff-view/src/selectors' {
declare module.exports: any;
}
declare module 'react-diff-view/src/SplitChange' {
declare module.exports: any;
}
declare module 'react-diff-view/src/SplitHunk' {
declare module.exports: any;
}
declare module 'react-diff-view/src/SplitWidget' {
declare module.exports: any;
}
declare module 'react-diff-view/src/UnifiedChange' {
declare module.exports: any;
}
declare module 'react-diff-view/src/UnifiedHunk' {
declare module.exports: any;
}
declare module 'react-diff-view/src/UnifiedWidget' {
declare module.exports: any;
}
declare module 'react-diff-view/src/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-diff-view/index' {
declare module.exports: $Exports<'react-diff-view'>;
}
declare module 'react-diff-view/index.js' {
declare module.exports: $Exports<'react-diff-view'>;
}
declare module 'react-diff-view/parse.js' {
declare module.exports: $Exports<'react-diff-view/parse'>;
}
declare module 'react-diff-view/src/CodeCell.js' {
declare module.exports: $Exports<'react-diff-view/src/CodeCell'>;
}
declare module 'react-diff-view/src/Diff.js' {
declare module.exports: $Exports<'react-diff-view/src/Diff'>;
}
declare module 'react-diff-view/src/Hunk.js' {
declare module.exports: $Exports<'react-diff-view/src/Hunk'>;
}
declare module 'react-diff-view/src/index' {
declare module.exports: $Exports<'react-diff-view/src'>;
}
declare module 'react-diff-view/src/index.js' {
declare module.exports: $Exports<'react-diff-view/src'>;
}
declare module 'react-diff-view/src/parse.js' {
declare module.exports: $Exports<'react-diff-view/src/parse'>;
}
declare module 'react-diff-view/src/propTypes.js' {
declare module.exports: $Exports<'react-diff-view/src/propTypes'>;
}
declare module 'react-diff-view/src/selectors.js' {
declare module.exports: $Exports<'react-diff-view/src/selectors'>;
}
declare module 'react-diff-view/src/SplitChange.js' {
declare module.exports: $Exports<'react-diff-view/src/SplitChange'>;
}
declare module 'react-diff-view/src/SplitHunk.js' {
declare module.exports: $Exports<'react-diff-view/src/SplitHunk'>;
}
declare module 'react-diff-view/src/SplitWidget.js' {
declare module.exports: $Exports<'react-diff-view/src/SplitWidget'>;
}
declare module 'react-diff-view/src/UnifiedChange.js' {
declare module.exports: $Exports<'react-diff-view/src/UnifiedChange'>;
}
declare module 'react-diff-view/src/UnifiedHunk.js' {
declare module.exports: $Exports<'react-diff-view/src/UnifiedHunk'>;
}
declare module 'react-diff-view/src/UnifiedWidget.js' {
declare module.exports: $Exports<'react-diff-view/src/UnifiedWidget'>;
}
declare module 'react-diff-view/src/utils.js' {
declare module.exports: $Exports<'react-diff-view/src/utils'>;
}

View File

@@ -1,5 +1,5 @@
// flow-typed signature: 65d42f62f8de603dcc631ea5a6b00580
// flow-typed version: f3f13164e0/react-i18next_v7.x.x/flow_>=v0.64.x
// flow-typed signature: e48526194d458ea4787ca56d830092da
// flow-typed version: c6154227d1/react-i18next_v7.x.x/flow_>=v0.104.x
declare module "react-i18next" {
declare type TFunction = (key?: ?string, data?: ?Object) => string;
@@ -13,10 +13,11 @@ declare module "react-i18next" {
declare type TranslatorPropsVoid = {
t: TFunction | void,
i18nLoadedAt: Date | void,
i18n: Object | void
i18n: Object | void,
...
};
declare type Translator<P: {}, Component: React$ComponentType<P>> = (
declare type Translator<P: {...}, Component: React$ComponentType<P>> = (
WrappedComponent: Component
) => React$ComponentType<
$Diff<React$ElementConfig<Component>, TranslatorPropsVoid>
@@ -30,10 +31,11 @@ declare module "react-i18next" {
withRef: boolean,
translateFuncName: string,
i18n: Object,
usePureComponent: boolean
usePureComponent: boolean,
...
}>;
declare function translate<P: {}, Component: React$ComponentType<P>>(
declare function translate<P: {...}, Component: React$ComponentType<P>>(
namespaces?: | string
| Array<string>
| (($Diff<P, TranslatorPropsVoid>) => string | Array<string>),
@@ -43,9 +45,14 @@ declare module "react-i18next" {
declare type I18nProps = {
i18n?: Object,
ns?: string | Array<string>,
children: (t: TFunction, { i18n: Object, t: TFunction }) => React$Node,
children: (t: TFunction, {
i18n: Object,
t: TFunction,
...
}) => React$Node,
initialI18nStore?: Object,
initialLanguage?: string
initialLanguage?: string,
...
};
declare var I18n: React$ComponentType<I18nProps>;
@@ -58,7 +65,8 @@ declare module "react-i18next" {
parent?: string,
style?: Object,
t?: TFunction,
useDangerouslySetInnerHTML?: boolean
useDangerouslySetInnerHTML?: boolean,
...
};
declare var Interpolate: React$ComponentType<InterpolateProps>;
@@ -67,22 +75,29 @@ declare module "react-i18next" {
parent?: string,
i18n?: Object,
i18nKey?: string,
t?: TFunction
t?: TFunction,
...
};
declare var Trans: React$ComponentType<TransProps>;
declare type ProviderProps = { i18n: Object, children: React$Element<*> };
declare type ProviderProps = {
i18n: Object,
children: React$Element<*>,
...
};
declare var I18nextProvider: React$ComponentType<ProviderProps>;
declare type NamespacesProps = {
components: Array<React$ComponentType<*>>,
i18n: { loadNamespaces: Function }
i18n: { loadNamespaces: Function, ... },
...
};
declare function loadNamespaces(props: NamespacesProps): Promise<void>;
declare var reactI18nextModule: {
type: "3rdParty",
init: (instance: Object) => void
init: (instance: Object) => void,
...
};
declare function setDefaults(options: TranslateOptions): void;

View File

@@ -0,0 +1,123 @@
// flow-typed signature: 6bcbadac27a01caf160321668f1e53ce
// flow-typed version: <<STUB>>/react-markdown_v4.2.2/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-markdown'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-markdown' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-markdown/lib/ast-to-react' {
declare module.exports: any;
}
declare module 'react-markdown/lib/get-definitions' {
declare module.exports: any;
}
declare module 'react-markdown/lib/plugins/disallow-node' {
declare module.exports: any;
}
declare module 'react-markdown/lib/plugins/html-parser' {
declare module.exports: any;
}
declare module 'react-markdown/lib/plugins/naive-html' {
declare module.exports: any;
}
declare module 'react-markdown/lib/react-markdown' {
declare module.exports: any;
}
declare module 'react-markdown/lib/renderers' {
declare module.exports: any;
}
declare module 'react-markdown/lib/symbols' {
declare module.exports: any;
}
declare module 'react-markdown/lib/uri-transformer' {
declare module.exports: any;
}
declare module 'react-markdown/lib/with-html' {
declare module.exports: any;
}
declare module 'react-markdown/lib/wrap-table-rows' {
declare module.exports: any;
}
declare module 'react-markdown/plugins/html-parser' {
declare module.exports: any;
}
declare module 'react-markdown/umd/react-markdown' {
declare module.exports: any;
}
declare module 'react-markdown/with-html' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-markdown/lib/ast-to-react.js' {
declare module.exports: $Exports<'react-markdown/lib/ast-to-react'>;
}
declare module 'react-markdown/lib/get-definitions.js' {
declare module.exports: $Exports<'react-markdown/lib/get-definitions'>;
}
declare module 'react-markdown/lib/plugins/disallow-node.js' {
declare module.exports: $Exports<'react-markdown/lib/plugins/disallow-node'>;
}
declare module 'react-markdown/lib/plugins/html-parser.js' {
declare module.exports: $Exports<'react-markdown/lib/plugins/html-parser'>;
}
declare module 'react-markdown/lib/plugins/naive-html.js' {
declare module.exports: $Exports<'react-markdown/lib/plugins/naive-html'>;
}
declare module 'react-markdown/lib/react-markdown.js' {
declare module.exports: $Exports<'react-markdown/lib/react-markdown'>;
}
declare module 'react-markdown/lib/renderers.js' {
declare module.exports: $Exports<'react-markdown/lib/renderers'>;
}
declare module 'react-markdown/lib/symbols.js' {
declare module.exports: $Exports<'react-markdown/lib/symbols'>;
}
declare module 'react-markdown/lib/uri-transformer.js' {
declare module.exports: $Exports<'react-markdown/lib/uri-transformer'>;
}
declare module 'react-markdown/lib/with-html.js' {
declare module.exports: $Exports<'react-markdown/lib/with-html'>;
}
declare module 'react-markdown/lib/wrap-table-rows.js' {
declare module.exports: $Exports<'react-markdown/lib/wrap-table-rows'>;
}
declare module 'react-markdown/plugins/html-parser.js' {
declare module.exports: $Exports<'react-markdown/plugins/html-parser'>;
}
declare module 'react-markdown/umd/react-markdown.js' {
declare module.exports: $Exports<'react-markdown/umd/react-markdown'>;
}
declare module 'react-markdown/with-html.js' {
declare module.exports: $Exports<'react-markdown/with-html'>;
}

View File

@@ -0,0 +1,182 @@
// flow-typed signature: 0bc486c8fc04d0bb37efa138223e4f67
// flow-typed version: c6154227d1/react-router-dom_v4.x.x/flow_>=v0.104.x
declare module "react-router-dom" {
declare export var BrowserRouter: React$ComponentType<{|
basename?: string,
forceRefresh?: boolean,
getUserConfirmation?: GetUserConfirmation,
keyLength?: number,
children?: React$Node
|}>
declare export var HashRouter: React$ComponentType<{|
basename?: string,
getUserConfirmation?: GetUserConfirmation,
hashType?: "slash" | "noslash" | "hashbang",
children?: React$Node
|}>
declare export var Link: React$ComponentType<{
className?: string,
to: string | LocationShape,
replace?: boolean,
children?: React$Node,
...
}>
declare export var NavLink: React$ComponentType<{
to: string | LocationShape,
activeClassName?: string,
className?: string,
activeStyle?: Object,
style?: Object,
isActive?: (match: Match, location: Location) => boolean,
children?: React$Node,
exact?: boolean,
strict?: boolean,
...
}>
// NOTE: Below are duplicated from react-router. If updating these, please
// update the react-router and react-router-native types as well.
declare export type Location = {
pathname: string,
search: string,
hash: string,
state?: any,
key?: string,
...
};
declare export type LocationShape = {
pathname?: string,
search?: string,
hash?: string,
state?: any,
...
};
declare export type HistoryAction = "PUSH" | "REPLACE" | "POP";
declare export type RouterHistory = {
length: number,
location: Location,
action: HistoryAction,
listen(
callback: (location: Location, action: HistoryAction) => void
): () => void,
push(path: string | LocationShape, state?: any): void,
replace(path: string | LocationShape, state?: any): void,
go(n: number): void,
goBack(): void,
goForward(): void,
canGo?: (n: number) => boolean,
block(
callback: string | (location: Location, action: HistoryAction) => ?string
): () => void,
// createMemoryHistory
index?: number,
entries?: Array<Location>,
...
};
declare export type Match = {
params: { [key: string]: ?string, ... },
isExact: boolean,
path: string,
url: string,
...
};
declare export type ContextRouter = {|
history: RouterHistory,
location: Location,
match: Match,
staticContext?: StaticRouterContext
|};
declare type ContextRouterVoid = {
history: RouterHistory | void,
location: Location | void,
match: Match | void,
staticContext?: StaticRouterContext | void,
...
};
declare export type GetUserConfirmation = (
message: string,
callback: (confirmed: boolean) => void
) => void;
declare export type StaticRouterContext = { url?: string, ... };
declare export var StaticRouter: React$ComponentType<{|
basename?: string,
location?: string | Location,
context: StaticRouterContext,
children?: React$Node
|}>
declare export var MemoryRouter: React$ComponentType<{|
initialEntries?: Array<LocationShape | string>,
initialIndex?: number,
getUserConfirmation?: GetUserConfirmation,
keyLength?: number,
children?: React$Node
|}>
declare export var Router: React$ComponentType<{|
history: RouterHistory,
children?: React$Node
|}>
declare export var Prompt: React$ComponentType<{|
message: string | ((location: Location) => string | boolean),
when?: boolean
|}>
declare export var Redirect: React$ComponentType<{|
to: string | LocationShape,
push?: boolean,
from?: string,
exact?: boolean,
strict?: boolean
|}>
declare export var Route: React$ComponentType<{|
component?: React$ComponentType<*>,
render?: (router: ContextRouter) => React$Node,
children?: React$ComponentType<ContextRouter> | React$Node,
path?: string | Array<string>,
exact?: boolean,
strict?: boolean,
location?: LocationShape,
sensitive?: boolean
|}>
declare export var Switch: React$ComponentType<{|
children?: React$Node,
location?: Location
|}>
declare export function withRouter<Props: {...}, Component: React$ComponentType<Props>>(
WrappedComponent: Component
): React$ComponentType<$Diff<React$ElementConfig<Component>, ContextRouterVoid>>;
declare type MatchPathOptions = {
path?: string,
exact?: boolean,
sensitive?: boolean,
strict?: boolean,
...
};
declare export function matchPath(
pathname: string,
options?: MatchPathOptions | string,
parent?: Match
): null | Match;
declare export function generatePath(pattern?: string, params?: Object): string;
}

View File

@@ -0,0 +1,56 @@
// flow-typed signature: 030a0d51d7da2db8716b0c796bcd8992
// flow-typed version: <<STUB>>/react-router-enzyme-context_v1.2.0/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-router-enzyme-context'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-router-enzyme-context' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.cjs' {
declare module.exports: any;
}
declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.esm' {
declare module.exports: any;
}
declare module 'react-router-enzyme-context/rollup.config' {
declare module.exports: any;
}
declare module 'react-router-enzyme-context/src' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.cjs.js' {
declare module.exports: $Exports<'react-router-enzyme-context/dist/react-router-enzyme-context.cjs'>;
}
declare module 'react-router-enzyme-context/dist/react-router-enzyme-context.esm.js' {
declare module.exports: $Exports<'react-router-enzyme-context/dist/react-router-enzyme-context.esm'>;
}
declare module 'react-router-enzyme-context/rollup.config.js' {
declare module.exports: $Exports<'react-router-enzyme-context/rollup.config'>;
}
declare module 'react-router-enzyme-context/src/index' {
declare module.exports: $Exports<'react-router-enzyme-context/src'>;
}
declare module 'react-router-enzyme-context/src/index.js' {
declare module.exports: $Exports<'react-router-enzyme-context/src'>;
}

View File

@@ -0,0 +1,726 @@
// flow-typed signature: 0b6edc6705aa28ab46a24d08242af068
// flow-typed version: <<STUB>>/react-select_v2.4.4/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-select'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-select' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-select/dist/react-select.esm' {
declare module.exports: any;
}
declare module 'react-select/dist/react-select' {
declare module.exports: any;
}
declare module 'react-select/dist/react-select.min' {
declare module.exports: any;
}
declare module 'react-select/lib/accessibility' {
declare module.exports: any;
}
declare module 'react-select/lib/animated' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/Input' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/MultiValue' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/Placeholder' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/SingleValue' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/transitions' {
declare module.exports: any;
}
declare module 'react-select/lib/animated/ValueContainer' {
declare module.exports: any;
}
declare module 'react-select/lib/Async' {
declare module.exports: any;
}
declare module 'react-select/lib/AsyncCreatable' {
declare module.exports: any;
}
declare module 'react-select/lib/builtins' {
declare module.exports: any;
}
declare module 'react-select/lib/components/containers' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Control' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Group' {
declare module.exports: any;
}
declare module 'react-select/lib/components' {
declare module.exports: any;
}
declare module 'react-select/lib/components/indicators' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Input' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Menu' {
declare module.exports: any;
}
declare module 'react-select/lib/components/MultiValue' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Option' {
declare module.exports: any;
}
declare module 'react-select/lib/components/Placeholder' {
declare module.exports: any;
}
declare module 'react-select/lib/components/SingleValue' {
declare module.exports: any;
}
declare module 'react-select/lib/Creatable' {
declare module.exports: any;
}
declare module 'react-select/lib/diacritics' {
declare module.exports: any;
}
declare module 'react-select/lib/filters' {
declare module.exports: any;
}
declare module 'react-select/lib' {
declare module.exports: any;
}
declare module 'react-select/lib/index.umd' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/A11yText' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/DummyInput' {
declare module.exports: any;
}
declare module 'react-select/lib/internal' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/NodeResolver' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/react-fast-compare' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/ScrollBlock' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/ScrollCaptor' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/ScrollLock/constants' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/ScrollLock' {
declare module.exports: any;
}
declare module 'react-select/lib/internal/ScrollLock/utils' {
declare module.exports: any;
}
declare module 'react-select/lib/Select' {
declare module.exports: any;
}
declare module 'react-select/lib/stateManager' {
declare module.exports: any;
}
declare module 'react-select/lib/styles' {
declare module.exports: any;
}
declare module 'react-select/lib/theme' {
declare module.exports: any;
}
declare module 'react-select/lib/types' {
declare module.exports: any;
}
declare module 'react-select/lib/utils' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/Async.test' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/AsyncCreatable.test' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/constants' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/Creatable.test' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/Select.test' {
declare module.exports: any;
}
declare module 'react-select/src/__tests__/StateManaged.test' {
declare module.exports: any;
}
declare module 'react-select/src/accessibility' {
declare module.exports: any;
}
declare module 'react-select/src/animated' {
declare module.exports: any;
}
declare module 'react-select/src/animated/Input' {
declare module.exports: any;
}
declare module 'react-select/src/animated/MultiValue' {
declare module.exports: any;
}
declare module 'react-select/src/animated/Placeholder' {
declare module.exports: any;
}
declare module 'react-select/src/animated/SingleValue' {
declare module.exports: any;
}
declare module 'react-select/src/animated/transitions' {
declare module.exports: any;
}
declare module 'react-select/src/animated/ValueContainer' {
declare module.exports: any;
}
declare module 'react-select/src/Async' {
declare module.exports: any;
}
declare module 'react-select/src/AsyncCreatable' {
declare module.exports: any;
}
declare module 'react-select/src/builtins' {
declare module.exports: any;
}
declare module 'react-select/src/components/containers' {
declare module.exports: any;
}
declare module 'react-select/src/components/Control' {
declare module.exports: any;
}
declare module 'react-select/src/components/Group' {
declare module.exports: any;
}
declare module 'react-select/src/components' {
declare module.exports: any;
}
declare module 'react-select/src/components/indicators' {
declare module.exports: any;
}
declare module 'react-select/src/components/Input' {
declare module.exports: any;
}
declare module 'react-select/src/components/Menu' {
declare module.exports: any;
}
declare module 'react-select/src/components/MultiValue' {
declare module.exports: any;
}
declare module 'react-select/src/components/Option' {
declare module.exports: any;
}
declare module 'react-select/src/components/Placeholder' {
declare module.exports: any;
}
declare module 'react-select/src/components/SingleValue' {
declare module.exports: any;
}
declare module 'react-select/src/Creatable' {
declare module.exports: any;
}
declare module 'react-select/src/diacritics' {
declare module.exports: any;
}
declare module 'react-select/src/filters' {
declare module.exports: any;
}
declare module 'react-select/src' {
declare module.exports: any;
}
declare module 'react-select/src/index.umd' {
declare module.exports: any;
}
declare module 'react-select/src/internal/A11yText' {
declare module.exports: any;
}
declare module 'react-select/src/internal/DummyInput' {
declare module.exports: any;
}
declare module 'react-select/src/internal' {
declare module.exports: any;
}
declare module 'react-select/src/internal/NodeResolver' {
declare module.exports: any;
}
declare module 'react-select/src/internal/react-fast-compare' {
declare module.exports: any;
}
declare module 'react-select/src/internal/ScrollBlock' {
declare module.exports: any;
}
declare module 'react-select/src/internal/ScrollCaptor' {
declare module.exports: any;
}
declare module 'react-select/src/internal/ScrollLock/constants' {
declare module.exports: any;
}
declare module 'react-select/src/internal/ScrollLock' {
declare module.exports: any;
}
declare module 'react-select/src/internal/ScrollLock/utils' {
declare module.exports: any;
}
declare module 'react-select/src/Select' {
declare module.exports: any;
}
declare module 'react-select/src/stateManager' {
declare module.exports: any;
}
declare module 'react-select/src/styles' {
declare module.exports: any;
}
declare module 'react-select/src/theme' {
declare module.exports: any;
}
declare module 'react-select/src/types' {
declare module.exports: any;
}
declare module 'react-select/src/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-select/dist/react-select.esm.js' {
declare module.exports: $Exports<'react-select/dist/react-select.esm'>;
}
declare module 'react-select/dist/react-select.js' {
declare module.exports: $Exports<'react-select/dist/react-select'>;
}
declare module 'react-select/dist/react-select.min.js' {
declare module.exports: $Exports<'react-select/dist/react-select.min'>;
}
declare module 'react-select/lib/accessibility/index' {
declare module.exports: $Exports<'react-select/lib/accessibility'>;
}
declare module 'react-select/lib/accessibility/index.js' {
declare module.exports: $Exports<'react-select/lib/accessibility'>;
}
declare module 'react-select/lib/animated/index' {
declare module.exports: $Exports<'react-select/lib/animated'>;
}
declare module 'react-select/lib/animated/index.js' {
declare module.exports: $Exports<'react-select/lib/animated'>;
}
declare module 'react-select/lib/animated/Input.js' {
declare module.exports: $Exports<'react-select/lib/animated/Input'>;
}
declare module 'react-select/lib/animated/MultiValue.js' {
declare module.exports: $Exports<'react-select/lib/animated/MultiValue'>;
}
declare module 'react-select/lib/animated/Placeholder.js' {
declare module.exports: $Exports<'react-select/lib/animated/Placeholder'>;
}
declare module 'react-select/lib/animated/SingleValue.js' {
declare module.exports: $Exports<'react-select/lib/animated/SingleValue'>;
}
declare module 'react-select/lib/animated/transitions.js' {
declare module.exports: $Exports<'react-select/lib/animated/transitions'>;
}
declare module 'react-select/lib/animated/ValueContainer.js' {
declare module.exports: $Exports<'react-select/lib/animated/ValueContainer'>;
}
declare module 'react-select/lib/Async.js' {
declare module.exports: $Exports<'react-select/lib/Async'>;
}
declare module 'react-select/lib/AsyncCreatable.js' {
declare module.exports: $Exports<'react-select/lib/AsyncCreatable'>;
}
declare module 'react-select/lib/builtins.js' {
declare module.exports: $Exports<'react-select/lib/builtins'>;
}
declare module 'react-select/lib/components/containers.js' {
declare module.exports: $Exports<'react-select/lib/components/containers'>;
}
declare module 'react-select/lib/components/Control.js' {
declare module.exports: $Exports<'react-select/lib/components/Control'>;
}
declare module 'react-select/lib/components/Group.js' {
declare module.exports: $Exports<'react-select/lib/components/Group'>;
}
declare module 'react-select/lib/components/index' {
declare module.exports: $Exports<'react-select/lib/components'>;
}
declare module 'react-select/lib/components/index.js' {
declare module.exports: $Exports<'react-select/lib/components'>;
}
declare module 'react-select/lib/components/indicators.js' {
declare module.exports: $Exports<'react-select/lib/components/indicators'>;
}
declare module 'react-select/lib/components/Input.js' {
declare module.exports: $Exports<'react-select/lib/components/Input'>;
}
declare module 'react-select/lib/components/Menu.js' {
declare module.exports: $Exports<'react-select/lib/components/Menu'>;
}
declare module 'react-select/lib/components/MultiValue.js' {
declare module.exports: $Exports<'react-select/lib/components/MultiValue'>;
}
declare module 'react-select/lib/components/Option.js' {
declare module.exports: $Exports<'react-select/lib/components/Option'>;
}
declare module 'react-select/lib/components/Placeholder.js' {
declare module.exports: $Exports<'react-select/lib/components/Placeholder'>;
}
declare module 'react-select/lib/components/SingleValue.js' {
declare module.exports: $Exports<'react-select/lib/components/SingleValue'>;
}
declare module 'react-select/lib/Creatable.js' {
declare module.exports: $Exports<'react-select/lib/Creatable'>;
}
declare module 'react-select/lib/diacritics.js' {
declare module.exports: $Exports<'react-select/lib/diacritics'>;
}
declare module 'react-select/lib/filters.js' {
declare module.exports: $Exports<'react-select/lib/filters'>;
}
declare module 'react-select/lib/index' {
declare module.exports: $Exports<'react-select/lib'>;
}
declare module 'react-select/lib/index.js' {
declare module.exports: $Exports<'react-select/lib'>;
}
declare module 'react-select/lib/index.umd.js' {
declare module.exports: $Exports<'react-select/lib/index.umd'>;
}
declare module 'react-select/lib/internal/A11yText.js' {
declare module.exports: $Exports<'react-select/lib/internal/A11yText'>;
}
declare module 'react-select/lib/internal/DummyInput.js' {
declare module.exports: $Exports<'react-select/lib/internal/DummyInput'>;
}
declare module 'react-select/lib/internal/index' {
declare module.exports: $Exports<'react-select/lib/internal'>;
}
declare module 'react-select/lib/internal/index.js' {
declare module.exports: $Exports<'react-select/lib/internal'>;
}
declare module 'react-select/lib/internal/NodeResolver.js' {
declare module.exports: $Exports<'react-select/lib/internal/NodeResolver'>;
}
declare module 'react-select/lib/internal/react-fast-compare.js' {
declare module.exports: $Exports<'react-select/lib/internal/react-fast-compare'>;
}
declare module 'react-select/lib/internal/ScrollBlock.js' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollBlock'>;
}
declare module 'react-select/lib/internal/ScrollCaptor.js' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollCaptor'>;
}
declare module 'react-select/lib/internal/ScrollLock/constants.js' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollLock/constants'>;
}
declare module 'react-select/lib/internal/ScrollLock/index' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollLock'>;
}
declare module 'react-select/lib/internal/ScrollLock/index.js' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollLock'>;
}
declare module 'react-select/lib/internal/ScrollLock/utils.js' {
declare module.exports: $Exports<'react-select/lib/internal/ScrollLock/utils'>;
}
declare module 'react-select/lib/Select.js' {
declare module.exports: $Exports<'react-select/lib/Select'>;
}
declare module 'react-select/lib/stateManager.js' {
declare module.exports: $Exports<'react-select/lib/stateManager'>;
}
declare module 'react-select/lib/styles.js' {
declare module.exports: $Exports<'react-select/lib/styles'>;
}
declare module 'react-select/lib/theme.js' {
declare module.exports: $Exports<'react-select/lib/theme'>;
}
declare module 'react-select/lib/types.js' {
declare module.exports: $Exports<'react-select/lib/types'>;
}
declare module 'react-select/lib/utils.js' {
declare module.exports: $Exports<'react-select/lib/utils'>;
}
declare module 'react-select/src/__tests__/Async.test.js' {
declare module.exports: $Exports<'react-select/src/__tests__/Async.test'>;
}
declare module 'react-select/src/__tests__/AsyncCreatable.test.js' {
declare module.exports: $Exports<'react-select/src/__tests__/AsyncCreatable.test'>;
}
declare module 'react-select/src/__tests__/constants.js' {
declare module.exports: $Exports<'react-select/src/__tests__/constants'>;
}
declare module 'react-select/src/__tests__/Creatable.test.js' {
declare module.exports: $Exports<'react-select/src/__tests__/Creatable.test'>;
}
declare module 'react-select/src/__tests__/Select.test.js' {
declare module.exports: $Exports<'react-select/src/__tests__/Select.test'>;
}
declare module 'react-select/src/__tests__/StateManaged.test.js' {
declare module.exports: $Exports<'react-select/src/__tests__/StateManaged.test'>;
}
declare module 'react-select/src/accessibility/index' {
declare module.exports: $Exports<'react-select/src/accessibility'>;
}
declare module 'react-select/src/accessibility/index.js' {
declare module.exports: $Exports<'react-select/src/accessibility'>;
}
declare module 'react-select/src/animated/index' {
declare module.exports: $Exports<'react-select/src/animated'>;
}
declare module 'react-select/src/animated/index.js' {
declare module.exports: $Exports<'react-select/src/animated'>;
}
declare module 'react-select/src/animated/Input.js' {
declare module.exports: $Exports<'react-select/src/animated/Input'>;
}
declare module 'react-select/src/animated/MultiValue.js' {
declare module.exports: $Exports<'react-select/src/animated/MultiValue'>;
}
declare module 'react-select/src/animated/Placeholder.js' {
declare module.exports: $Exports<'react-select/src/animated/Placeholder'>;
}
declare module 'react-select/src/animated/SingleValue.js' {
declare module.exports: $Exports<'react-select/src/animated/SingleValue'>;
}
declare module 'react-select/src/animated/transitions.js' {
declare module.exports: $Exports<'react-select/src/animated/transitions'>;
}
declare module 'react-select/src/animated/ValueContainer.js' {
declare module.exports: $Exports<'react-select/src/animated/ValueContainer'>;
}
declare module 'react-select/src/Async.js' {
declare module.exports: $Exports<'react-select/src/Async'>;
}
declare module 'react-select/src/AsyncCreatable.js' {
declare module.exports: $Exports<'react-select/src/AsyncCreatable'>;
}
declare module 'react-select/src/builtins.js' {
declare module.exports: $Exports<'react-select/src/builtins'>;
}
declare module 'react-select/src/components/containers.js' {
declare module.exports: $Exports<'react-select/src/components/containers'>;
}
declare module 'react-select/src/components/Control.js' {
declare module.exports: $Exports<'react-select/src/components/Control'>;
}
declare module 'react-select/src/components/Group.js' {
declare module.exports: $Exports<'react-select/src/components/Group'>;
}
declare module 'react-select/src/components/index' {
declare module.exports: $Exports<'react-select/src/components'>;
}
declare module 'react-select/src/components/index.js' {
declare module.exports: $Exports<'react-select/src/components'>;
}
declare module 'react-select/src/components/indicators.js' {
declare module.exports: $Exports<'react-select/src/components/indicators'>;
}
declare module 'react-select/src/components/Input.js' {
declare module.exports: $Exports<'react-select/src/components/Input'>;
}
declare module 'react-select/src/components/Menu.js' {
declare module.exports: $Exports<'react-select/src/components/Menu'>;
}
declare module 'react-select/src/components/MultiValue.js' {
declare module.exports: $Exports<'react-select/src/components/MultiValue'>;
}
declare module 'react-select/src/components/Option.js' {
declare module.exports: $Exports<'react-select/src/components/Option'>;
}
declare module 'react-select/src/components/Placeholder.js' {
declare module.exports: $Exports<'react-select/src/components/Placeholder'>;
}
declare module 'react-select/src/components/SingleValue.js' {
declare module.exports: $Exports<'react-select/src/components/SingleValue'>;
}
declare module 'react-select/src/Creatable.js' {
declare module.exports: $Exports<'react-select/src/Creatable'>;
}
declare module 'react-select/src/diacritics.js' {
declare module.exports: $Exports<'react-select/src/diacritics'>;
}
declare module 'react-select/src/filters.js' {
declare module.exports: $Exports<'react-select/src/filters'>;
}
declare module 'react-select/src/index' {
declare module.exports: $Exports<'react-select/src'>;
}
declare module 'react-select/src/index.js' {
declare module.exports: $Exports<'react-select/src'>;
}
declare module 'react-select/src/index.umd.js' {
declare module.exports: $Exports<'react-select/src/index.umd'>;
}
declare module 'react-select/src/internal/A11yText.js' {
declare module.exports: $Exports<'react-select/src/internal/A11yText'>;
}
declare module 'react-select/src/internal/DummyInput.js' {
declare module.exports: $Exports<'react-select/src/internal/DummyInput'>;
}
declare module 'react-select/src/internal/index' {
declare module.exports: $Exports<'react-select/src/internal'>;
}
declare module 'react-select/src/internal/index.js' {
declare module.exports: $Exports<'react-select/src/internal'>;
}
declare module 'react-select/src/internal/NodeResolver.js' {
declare module.exports: $Exports<'react-select/src/internal/NodeResolver'>;
}
declare module 'react-select/src/internal/react-fast-compare.js' {
declare module.exports: $Exports<'react-select/src/internal/react-fast-compare'>;
}
declare module 'react-select/src/internal/ScrollBlock.js' {
declare module.exports: $Exports<'react-select/src/internal/ScrollBlock'>;
}
declare module 'react-select/src/internal/ScrollCaptor.js' {
declare module.exports: $Exports<'react-select/src/internal/ScrollCaptor'>;
}
declare module 'react-select/src/internal/ScrollLock/constants.js' {
declare module.exports: $Exports<'react-select/src/internal/ScrollLock/constants'>;
}
declare module 'react-select/src/internal/ScrollLock/index' {
declare module.exports: $Exports<'react-select/src/internal/ScrollLock'>;
}
declare module 'react-select/src/internal/ScrollLock/index.js' {
declare module.exports: $Exports<'react-select/src/internal/ScrollLock'>;
}
declare module 'react-select/src/internal/ScrollLock/utils.js' {
declare module.exports: $Exports<'react-select/src/internal/ScrollLock/utils'>;
}
declare module 'react-select/src/Select.js' {
declare module.exports: $Exports<'react-select/src/Select'>;
}
declare module 'react-select/src/stateManager.js' {
declare module.exports: $Exports<'react-select/src/stateManager'>;
}
declare module 'react-select/src/styles.js' {
declare module.exports: $Exports<'react-select/src/styles'>;
}
declare module 'react-select/src/theme.js' {
declare module.exports: $Exports<'react-select/src/theme'>;
}
declare module 'react-select/src/types.js' {
declare module.exports: $Exports<'react-select/src/types'>;
}
declare module 'react-select/src/utils.js' {
declare module.exports: $Exports<'react-select/src/utils'>;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,484 @@
// flow-typed signature: a55c22479779e4f28ad4dd10c702882a
// flow-typed version: a29423bb31/styled-components_v4.x.x/flow_>=v0.104.x
// @flow
declare module 'styled-components' {
declare type BuiltinElementInstances = {
a: React$ElementRef<'a'>,
abbr: React$ElementRef<'abbr'>,
address: React$ElementRef<'address'>,
area: React$ElementRef<'area'>,
article: React$ElementRef<'article'>,
aside: React$ElementRef<'aside'>,
audio: React$ElementRef<'audio'>,
b: React$ElementRef<'b'>,
base: React$ElementRef<'base'>,
bdi: React$ElementRef<'bdi'>,
bdo: React$ElementRef<'bdo'>,
big: React$ElementRef<'big'>,
blockquote: React$ElementRef<'blockquote'>,
body: React$ElementRef<'body'>,
br: React$ElementRef<'br'>,
button: React$ElementRef<'button'>,
canvas: React$ElementRef<'canvas'>,
caption: React$ElementRef<'caption'>,
cite: React$ElementRef<'cite'>,
code: React$ElementRef<'code'>,
col: React$ElementRef<'col'>,
colgroup: React$ElementRef<'colgroup'>,
data: React$ElementRef<'data'>,
datalist: React$ElementRef<'datalist'>,
dd: React$ElementRef<'dd'>,
del: React$ElementRef<'del'>,
details: React$ElementRef<'details'>,
dfn: React$ElementRef<'dfn'>,
dialog: React$ElementRef<'dialog'>,
div: React$ElementRef<'div'>,
dl: React$ElementRef<'dl'>,
dt: React$ElementRef<'dt'>,
em: React$ElementRef<'em'>,
embed: React$ElementRef<'embed'>,
fieldset: React$ElementRef<'fieldset'>,
figcaption: React$ElementRef<'figcaption'>,
figure: React$ElementRef<'figure'>,
footer: React$ElementRef<'footer'>,
form: React$ElementRef<'form'>,
h1: React$ElementRef<'h1'>,
h2: React$ElementRef<'h2'>,
h3: React$ElementRef<'h3'>,
h4: React$ElementRef<'h4'>,
h5: React$ElementRef<'h5'>,
h6: React$ElementRef<'h6'>,
head: React$ElementRef<'head'>,
header: React$ElementRef<'header'>,
hgroup: React$ElementRef<'hgroup'>,
hr: React$ElementRef<'hr'>,
html: React$ElementRef<'html'>,
i: React$ElementRef<'i'>,
iframe: React$ElementRef<'iframe'>,
img: React$ElementRef<'img'>,
input: React$ElementRef<'input'>,
ins: React$ElementRef<'ins'>,
kbd: React$ElementRef<'kbd'>,
label: React$ElementRef<'label'>,
legend: React$ElementRef<'legend'>,
li: React$ElementRef<'li'>,
link: React$ElementRef<'link'>,
main: React$ElementRef<'main'>,
map: React$ElementRef<'map'>,
mark: React$ElementRef<'mark'>,
menu: React$ElementRef<'menu'>,
meta: React$ElementRef<'meta'>,
meter: React$ElementRef<'meter'>,
nav: React$ElementRef<'nav'>,
noscript: React$ElementRef<'noscript'>,
object: React$ElementRef<'object'>,
ol: React$ElementRef<'ol'>,
optgroup: React$ElementRef<'optgroup'>,
option: React$ElementRef<'option'>,
output: React$ElementRef<'output'>,
p: React$ElementRef<'p'>,
param: React$ElementRef<'param'>,
picture: React$ElementRef<'picture'>,
pre: React$ElementRef<'pre'>,
progress: React$ElementRef<'progress'>,
q: React$ElementRef<'q'>,
rp: React$ElementRef<'rp'>,
rt: React$ElementRef<'rt'>,
ruby: React$ElementRef<'ruby'>,
s: React$ElementRef<'s'>,
samp: React$ElementRef<'samp'>,
script: React$ElementRef<'script'>,
section: React$ElementRef<'section'>,
select: React$ElementRef<'select'>,
small: React$ElementRef<'small'>,
source: React$ElementRef<'source'>,
span: React$ElementRef<'span'>,
strong: React$ElementRef<'strong'>,
style: React$ElementRef<'style'>,
sub: React$ElementRef<'sub'>,
summary: React$ElementRef<'summary'>,
sup: React$ElementRef<'sup'>,
table: React$ElementRef<'table'>,
tbody: React$ElementRef<'tbody'>,
td: React$ElementRef<'td'>,
textarea: React$ElementRef<'textarea'>,
tfoot: React$ElementRef<'tfoot'>,
th: React$ElementRef<'th'>,
thead: React$ElementRef<'thead'>,
time: React$ElementRef<'time'>,
title: React$ElementRef<'title'>,
tr: React$ElementRef<'tr'>,
track: React$ElementRef<'track'>,
u: React$ElementRef<'u'>,
ul: React$ElementRef<'ul'>,
var: React$ElementRef<'var'>,
video: React$ElementRef<'video'>,
wbr: React$ElementRef<'wbr'>,
// SVG
circle: React$ElementRef<'circle'>,
clipPath: React$ElementRef<'clipPath'>,
defs: React$ElementRef<'defs'>,
ellipse: React$ElementRef<'ellipse'>,
g: React$ElementRef<'g'>,
image: React$ElementRef<'image'>,
line: React$ElementRef<'line'>,
linearGradient: React$ElementRef<'linearGradient'>,
mask: React$ElementRef<'mask'>,
path: React$ElementRef<'path'>,
pattern: React$ElementRef<'pattern'>,
polygon: React$ElementRef<'polygon'>,
polyline: React$ElementRef<'polyline'>,
radialGradient: React$ElementRef<'radialGradient'>,
rect: React$ElementRef<'rect'>,
stop: React$ElementRef<'stop'>,
svg: React$ElementRef<'svg'>,
text: React$ElementRef<'text'>,
tspan: React$ElementRef<'tspan'>,
// Deprecated, should be HTMLUnknownElement, but Flow doesn't support it
keygen: React$ElementRef<'keygen'>,
menuitem: React$ElementRef<'menuitem'>,
...
}
declare type BuiltinElementType<ElementName: string> = $ElementType<BuiltinElementInstances, ElementName>
declare class InterpolatableComponent<P> extends React$Component<P> {
static +styledComponentId: string;
}
declare export type Interpolation<P> =
| ((executionContext: P) =>
| ((executionContext: P) => InterpolationBase)
| InterpolationBase
)
| Class<InterpolatableComponent<mixed>>
| InterpolationBase
declare export type InterpolationBase =
| CSSRules
| KeyFrames
| string
| number
// Should this be `mixed` perhaps?
declare export type CSSRules = Interpolation<any>[] // eslint-disable-line flowtype/no-weak-types
// This is not exported on purpose, since it's an implementation detail
declare type TaggedTemplateLiteral<I, R> = (strings: string[], ...interpolations: Interpolation<I>[]) => R
declare export type CSSConstructor = TaggedTemplateLiteral<any, CSSRules> // eslint-disable-line flowtype/no-weak-types
declare export type KeyFramesConstructor = TaggedTemplateLiteral<any, KeyFrames> // eslint-disable-line flowtype/no-weak-types
declare export type CreateGlobalStyleConstructor = TaggedTemplateLiteral<any, React$ComponentType<*>> // eslint-disable-line flowtype/no-weak-types
declare interface Tag<T> {
styleTag: HTMLStyleElement | null;
getIds(): string[];
hasNameForId(id: string, name: string): boolean;
insertMarker(id: string): T;
insertRules(id: string, cssRules: string[], name: ?string): void;
removeRules(id: string): void;
css(): string;
toHTML(additionalAttrs: ?string): string;
toElement(): React$Element<*>;
clone(): Tag<T>;
sealed: boolean;
}
// The `any`/weak types in here all come from `styled-components` directly, since those definitions were just copied over
declare export class StyleSheet {
static get master() : StyleSheet;
static get instance() : StyleSheet;
static reset(forceServer? : boolean) : void;
id : number;
forceServer : boolean;
target : ?HTMLElement;
tagMap : { [string]: Tag<any>, ... }; // eslint-disable-line flowtype/no-weak-types
deferred: { [string]: string[] | void, ... };
rehydratedNames: { [string]: boolean, ... };
ignoreRehydratedNames: { [string]: boolean, ... };
tags: Tag<any>[]; // eslint-disable-line flowtype/no-weak-types
importRuleTag: Tag<any>; // eslint-disable-line flowtype/no-weak-types
capacity: number;
clones: StyleSheet[];
constructor(?HTMLElement) : this;
rehydrate() : this;
clone() : StyleSheet;
sealAllTags() : void;
makeTag(tag : ?Tag<any>) : Tag<any>; // eslint-disable-line flowtype/no-weak-types
getImportRuleTag() : Tag<any>; // eslint-disable-line flowtype/no-weak-types
getTagForId(id : string): Tag<any>; // eslint-disable-line flowtype/no-weak-types
hasId(id: string) : boolean;
hasNameForId(id: string, name: string) : boolean;
deferredInject(id : string, cssRules : string[]) : void;
inject(id: string, cssRules : string[], name? : string) : void;
remove(id : string) : void;
toHtml() : string;
toReactElements() : React$ElementType[];
}
declare export class KeyFrames {
id : string;
name : string;
rules : string[];
constructor(name : string, rules : string[]) : this;
inject(StyleSheet) : void;
toString() : string;
getName() : string;
}
// I think any is appropriate here?
// eslint-disable-next-line flowtype/no-weak-types
declare export var css : CSSConstructor;
declare export var keyframes : KeyFramesConstructor;
declare export var createGlobalStyle : CreateGlobalStyleConstructor
declare export var ThemeProvider: React$ComponentType<{
children?: ?React$Node,
theme: mixed | (mixed) => mixed,
...
}>
declare type ThemeProps<T> = {|
theme: T
|}
declare type PropsWithTheme<Props, T> = {|
...ThemeProps<T>,
...$Exact<Props>
|}
declare export function withTheme<Theme, Config: {...}, Instance>(Component: React$AbstractComponent<Config, Instance>): React$AbstractComponent<$Diff<Config, ThemeProps<Theme | void>>, Instance>
declare export type StyledComponent<Props, Theme, Instance> = React$AbstractComponent<Props, Instance> & Class<InterpolatableComponent<Props>>
declare type StyledFactory<StyleProps, Theme, Instance> = {|
[[call]]: TaggedTemplateLiteral<PropsWithTheme<StyleProps, Theme>, StyledComponent<StyleProps, Theme, Instance>>;
+attrs: <A: {...}>(((StyleProps) => A) | A) => TaggedTemplateLiteral<
PropsWithTheme<{|...$Exact<StyleProps>, ...$Exact<A>|}, Theme>,
StyledComponent<React$Config<{|...$Exact<StyleProps>, ...$Exact<A>|}, $Exact<A>>, Theme, Instance>
>;
|}
declare type StyledShorthandFactory<V> = {|
[[call]]: <StyleProps, Theme>(string[], ...Interpolation<PropsWithTheme<StyleProps, Theme>>[]) => StyledComponent<StyleProps, Theme, V>;
+attrs: <A: {...}, StyleProps = {||}, Theme = {||}>(((StyleProps) => A) | A) => TaggedTemplateLiteral<
PropsWithTheme<{|...$Exact<StyleProps>, ...$Exact<A>|}, Theme>,
StyledComponent<React$Config<{|...$Exact<StyleProps>, ...$Exact<A>|}, $Exact<A>>, Theme, V>
>;
|}
declare type ConvenientShorthands = $ObjMap<
BuiltinElementInstances,
<V>(V) => StyledShorthandFactory<V>
>
declare interface Styled {
<StyleProps, Theme, ElementName: $Keys<BuiltinElementInstances>>(ElementName): StyledFactory<StyleProps, Theme, BuiltinElementType<ElementName>>;
<Comp: React$ComponentType<any>, Theme, OwnProps = React$ElementConfig<Comp>>(Comp): StyledFactory<{|...$Exact<OwnProps>|}, Theme, Comp>;
}
declare export default Styled & ConvenientShorthands
}
declare module 'styled-components/native' {
declare class InterpolatableComponent<P> extends React$Component<P> {
static +styledComponentId: string;
}
declare export type Interpolation<P> =
| ((executionContext: P) =>
| ((executionContext: P) => InterpolationBase) // eslint-disable-line flowtype/no-weak-types
| InterpolationBase
)
| Class<InterpolatableComponent<mixed>>
| InterpolationBase
declare export type InterpolationBase =
| CSSRules
| KeyFrames
| string
| number
// Should this be `mixed` perhaps?
declare export type CSSRules = Interpolation<any>[] // eslint-disable-line flowtype/no-weak-types
// This is not exported on purpose, since it's an implementation detail
declare type TaggedTemplateLiteral<I, R> = (strings: string[], ...interpolations: Interpolation<I>[]) => R
declare export type CSSConstructor = TaggedTemplateLiteral<any, CSSRules> // eslint-disable-line flowtype/no-weak-types
declare export type KeyFramesConstructor = TaggedTemplateLiteral<any, KeyFrames> // eslint-disable-line flowtype/no-weak-types
declare export type CreateGlobalStyleConstructor = TaggedTemplateLiteral<any, React$ComponentType<*>> // eslint-disable-line flowtype/no-weak-types
declare interface Tag<T> {
styleTag: HTMLStyleElement | null;
getIds(): string[];
hasNameForId(id: string, name: string): boolean;
insertMarker(id: string): T;
insertRules(id: string, cssRules: string[], name: ?string): void;
removeRules(id: string): void;
css(): string;
toHTML(additionalAttrs: ?string): string;
toElement(): React$Element<*>;
clone(): Tag<T>;
sealed: boolean;
}
// The `any`/weak types in here all come from `styled-components` directly, since those definitions were just copied over
declare export class StyleSheet {
static get master() : StyleSheet;
static get instance() : StyleSheet;
static reset(forceServer? : boolean) : void;
id : number;
forceServer : boolean;
target : ?HTMLElement;
tagMap : { [string]: Tag<any>, ... }; // eslint-disable-line flowtype/no-weak-types
deferred: { [string]: string[] | void, ... };
rehydratedNames: { [string]: boolean, ... };
ignoreRehydratedNames: { [string]: boolean, ... };
tags: Tag<any>[]; // eslint-disable-line flowtype/no-weak-types
importRuleTag: Tag<any>; // eslint-disable-line flowtype/no-weak-types
capacity: number;
clones: StyleSheet[];
constructor(?HTMLElement) : this;
rehydrate() : this;
clone() : StyleSheet;
sealAllTags() : void;
makeTag(tag : ?Tag<any>) : Tag<any>; // eslint-disable-line flowtype/no-weak-types
getImportRuleTag() : Tag<any>; // eslint-disable-line flowtype/no-weak-types
getTagForId(id : string): Tag<any>; // eslint-disable-line flowtype/no-weak-types
hasId(id: string) : boolean;
hasNameForId(id: string, name: string) : boolean;
deferredInject(id : string, cssRules : string[]) : void;
inject(id: string, cssRules : string[], name? : string) : void;
remove(id : string) : void;
toHtml() : string;
toReactElements() : React$ElementType[];
}
declare export class KeyFrames {
id : string;
name : string;
rules : string[];
constructor(name : string, rules : string[]) : this;
inject(StyleSheet) : void;
toString() : string;
getName() : string;
}
// I think any is appropriate here?
// eslint-disable-next-line flowtype/no-weak-types
declare export var css : CSSConstructor;
declare export var keyframes : KeyFramesConstructor;
declare export var createGlobalStyle : CreateGlobalStyleConstructor
declare export var ThemeProvider: React$ComponentType<{
children?: ?React$Node,
theme: mixed | (mixed) => mixed,
...
}>
declare type ThemeProps<T> = {|
theme: T
|}
declare type PropsWithTheme<Props, T> = {|
...ThemeProps<T>,
...$Exact<Props>
|}
declare export function withTheme<Theme, Config: {...}, Instance>(Component: React$AbstractComponent<Config, Instance>): React$AbstractComponent<$Diff<Config, ThemeProps<Theme | void>>, Instance>
declare export type StyledComponent<Props, Theme, Instance> = React$AbstractComponent<Props, Instance> & Class<InterpolatableComponent<Props>>
declare type StyledFactory<StyleProps, Theme, Instance> = {|
[[call]]: TaggedTemplateLiteral<PropsWithTheme<StyleProps, Theme>, StyledComponent<StyleProps, Theme, Instance>>;
+attrs: <A: {...}>(((StyleProps) => A) | A) => TaggedTemplateLiteral<
PropsWithTheme<{|...$Exact<StyleProps>, ...$Exact<A>|}, Theme>,
StyledComponent<React$Config<{|...$Exact<StyleProps>, ...$Exact<A>|}, $Exact<A>>, Theme, Instance>
>;
|}
declare type StyledShorthandFactory<V> = {|
[[call]]: <StyleProps, Theme>(string[], ...Interpolation<PropsWithTheme<StyleProps, Theme>>[]) => StyledComponent<StyleProps, Theme, V>;
+attrs: <A: {...}, StyleProps = {||}, Theme = {||}>(((StyleProps) => A) | A) => TaggedTemplateLiteral<
PropsWithTheme<{|...$Exact<StyleProps>, ...$Exact<A>|}, Theme>,
StyledComponent<React$Config<{|...$Exact<StyleProps>, ...$Exact<A>|}, $Exact<A>>, Theme, V>
>;
|}
declare type BuiltinElementInstances = {
ActivityIndicator: React$ComponentType<{...}>,
ActivityIndicatorIOS: React$ComponentType<{...}>,
ART: React$ComponentType<{...}>,
Button: React$ComponentType<{...}>,
DatePickerIOS: React$ComponentType<{...}>,
DrawerLayoutAndroid: React$ComponentType<{...}>,
Image: React$ComponentType<{...}>,
ImageBackground: React$ComponentType<{...}>,
ImageEditor: React$ComponentType<{...}>,
ImageStore: React$ComponentType<{...}>,
KeyboardAvoidingView: React$ComponentType<{...}>,
ListView: React$ComponentType<{...}>,
MapView: React$ComponentType<{...}>,
Modal: React$ComponentType<{...}>,
NavigatorIOS: React$ComponentType<{...}>,
Picker: React$ComponentType<{...}>,
PickerIOS: React$ComponentType<{...}>,
ProgressBarAndroid: React$ComponentType<{...}>,
ProgressViewIOS: React$ComponentType<{...}>,
ScrollView: React$ComponentType<{...}>,
SegmentedControlIOS: React$ComponentType<{...}>,
Slider: React$ComponentType<{...}>,
SliderIOS: React$ComponentType<{...}>,
SnapshotViewIOS: React$ComponentType<{...}>,
Switch: React$ComponentType<{...}>,
RecyclerViewBackedScrollView: React$ComponentType<{...}>,
RefreshControl: React$ComponentType<{...}>,
SafeAreaView: React$ComponentType<{...}>,
StatusBar: React$ComponentType<{...}>,
SwipeableListView: React$ComponentType<{...}>,
SwitchAndroid: React$ComponentType<{...}>,
SwitchIOS: React$ComponentType<{...}>,
TabBarIOS: React$ComponentType<{...}>,
Text: React$ComponentType<{...}>,
TextInput: React$ComponentType<{...}>,
ToastAndroid: React$ComponentType<{...}>,
ToolbarAndroid: React$ComponentType<{...}>,
Touchable: React$ComponentType<{...}>,
TouchableHighlight: React$ComponentType<{...}>,
TouchableNativeFeedback: React$ComponentType<{...}>,
TouchableOpacity: React$ComponentType<{...}>,
TouchableWithoutFeedback: React$ComponentType<{...}>,
View: React$ComponentType<{...}>,
ViewPagerAndroid: React$ComponentType<{...}>,
WebView: React$ComponentType<{...}>,
FlatList: React$ComponentType<{...}>,
SectionList: React$ComponentType<{...}>,
VirtualizedList: React$ComponentType<{...}>,
...
}
declare type BuiltinElementType<ElementName: string> = $ElementType<BuiltinElementInstances, ElementName>
declare type ConvenientShorthands = $ObjMap<
BuiltinElementInstances,
<V>(V) => StyledShorthandFactory<V>
>
declare interface Styled {
<StyleProps, Theme, ElementName: $Keys<BuiltinElementInstances>>(ElementName): StyledFactory<StyleProps, Theme, BuiltinElementType<ElementName>>;
<Comp: React$ComponentType<any>, Theme, OwnProps = React$ElementConfig<Comp>>(Comp): StyledFactory<{|...$Exact<OwnProps>|}, Theme, Comp>;
}
declare export default Styled & ConvenientShorthands
}

View File

@@ -19,7 +19,7 @@
"enzyme": "^3.5.0",
"enzyme-adapter-react-16": "^1.3.1",
"fetch-mock": "^7.2.5",
"flow-bin": "^0.79.1",
"flow-bin": "^0.109.0",
"flow-typed": "^2.5.1",
"jest": "^23.5.0",
"raf": "^3.4.0",