migrate core plugins from flow to typescript

This commit is contained in:
Sebastian Sdorra
2019-10-21 12:13:08 +02:00
parent 85703161f6
commit 0703f1e2bd
104 changed files with 583 additions and 93542 deletions

View File

@@ -1,14 +0,0 @@
[declarations]
../../scm-ui/ui-types/.*
../../scm-ui/ui-components/.*
../../scm-ui/ui-extensions/.*
[include]
./src/**
../../scm-ui/ui-types/.*
../../scm-ui/ui-components/.*
../../scm-ui/ui-extensions/.*
[options]
module.system.node.resolve_dirname=../../node_modules
module.name_mapper='^@scm-manager\/ui-\([a-zA-Z0-9_\-]+\)$' -> '<PROJECT_ROOT>/../../scm-ui/ui-\1'

View File

@@ -1,49 +0,0 @@
// 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

@@ -1,23 +0,0 @@
// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37
// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x
type $npm$classnames$Classes =
| string
| { [className: string]: * }
| false
| void
| null;
declare module "classnames" {
declare module.exports: (
...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]>
) => string;
}
declare module "classnames/bind" {
declare module.exports: $Exports<"classnames">;
}
declare module "classnames/dedupe" {
declare module.exports: $Exports<"classnames">;
}

View File

@@ -1,269 +0,0 @@
// 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

@@ -1,66 +0,0 @@
// 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'>;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,331 +0,0 @@
// flow-typed signature: 23b805356f90ad9384dd88489654e380
// flow-typed version: e9374c5fe9/moment_v2.3.x/flow_>=v0.25.x
type moment$MomentOptions = {
y?: number | string,
year?: number | string,
years?: number | string,
M?: number | string,
month?: number | string,
months?: number | string,
d?: number | string,
day?: number | string,
days?: number | string,
date?: number | string,
h?: number | string,
hour?: number | string,
hours?: number | string,
m?: number | string,
minute?: number | string,
minutes?: number | string,
s?: number | string,
second?: number | string,
seconds?: number | string,
ms?: number | string,
millisecond?: number | string,
milliseconds?: number | string
};
type moment$MomentObject = {
years: number,
months: number,
date: number,
hours: number,
minutes: number,
seconds: number,
milliseconds: number
};
type moment$MomentCreationData = {
input: string,
format: string,
locale: Object,
isUTC: boolean,
strict: boolean
};
type moment$CalendarFormat = string | ((moment: moment$Moment) => string);
type moment$CalendarFormats = {
sameDay?: moment$CalendarFormat,
nextDay?: moment$CalendarFormat,
nextWeek?: moment$CalendarFormat,
lastDay?: moment$CalendarFormat,
lastWeek?: moment$CalendarFormat,
sameElse?: moment$CalendarFormat
};
declare class moment$LocaleData {
months(moment: moment$Moment): string,
monthsShort(moment: moment$Moment): string,
monthsParse(month: string): number,
weekdays(moment: moment$Moment): string,
weekdaysShort(moment: moment$Moment): string,
weekdaysMin(moment: moment$Moment): string,
weekdaysParse(weekDay: string): number,
longDateFormat(dateFormat: string): string,
isPM(date: string): boolean,
meridiem(hours: number, minutes: number, isLower: boolean): string,
calendar(
key:
| "sameDay"
| "nextDay"
| "lastDay"
| "nextWeek"
| "prevWeek"
| "sameElse",
moment: moment$Moment
): string,
relativeTime(
number: number,
withoutSuffix: boolean,
key: "s" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "M" | "MM" | "y" | "yy",
isFuture: boolean
): string,
pastFuture(diff: any, relTime: string): string,
ordinal(number: number): string,
preparse(str: string): any,
postformat(str: string): any,
week(moment: moment$Moment): string,
invalidDate(): string,
firstDayOfWeek(): number,
firstDayOfYear(): number
}
declare class moment$MomentDuration {
humanize(suffix?: boolean): string,
milliseconds(): number,
asMilliseconds(): number,
seconds(): number,
asSeconds(): number,
minutes(): number,
asMinutes(): number,
hours(): number,
asHours(): number,
days(): number,
asDays(): number,
months(): number,
asWeeks(): number,
weeks(): number,
asMonths(): number,
years(): number,
asYears(): number,
add(value: number | moment$MomentDuration | Object, unit?: string): this,
subtract(value: number | moment$MomentDuration | Object, unit?: string): this,
as(unit: string): number,
get(unit: string): number,
toJSON(): string,
toISOString(): string,
isValid(): boolean
}
declare class moment$Moment {
static ISO_8601: string,
static (
string?: string,
format?: string | Array<string>,
strict?: boolean
): moment$Moment,
static (
string?: string,
format?: string | Array<string>,
locale?: string,
strict?: boolean
): moment$Moment,
static (
initDate: ?Object | number | Date | Array<number> | moment$Moment | string
): moment$Moment,
static unix(seconds: number): moment$Moment,
static utc(): moment$Moment,
static utc(number: number | Array<number>): moment$Moment,
static utc(
str: string,
str2?: string | Array<string>,
str3?: string
): moment$Moment,
static utc(moment: moment$Moment): moment$Moment,
static utc(date: Date): moment$Moment,
static parseZone(): moment$Moment,
static parseZone(rawDate: string): moment$Moment,
static parseZone(
rawDate: string,
format: string | Array<string>
): moment$Moment,
static parseZone(
rawDate: string,
format: string,
strict: boolean
): moment$Moment,
static parseZone(
rawDate: string,
format: string,
locale: string,
strict: boolean
): moment$Moment,
isValid(): boolean,
invalidAt(): 0 | 1 | 2 | 3 | 4 | 5 | 6,
creationData(): moment$MomentCreationData,
millisecond(number: number): this,
milliseconds(number: number): this,
millisecond(): number,
milliseconds(): number,
second(number: number): this,
seconds(number: number): this,
second(): number,
seconds(): number,
minute(number: number): this,
minutes(number: number): this,
minute(): number,
minutes(): number,
hour(number: number): this,
hours(number: number): this,
hour(): number,
hours(): number,
date(number: number): this,
dates(number: number): this,
date(): number,
dates(): number,
day(day: number | string): this,
days(day: number | string): this,
day(): number,
days(): number,
weekday(number: number): this,
weekday(): number,
isoWeekday(number: number): this,
isoWeekday(): number,
dayOfYear(number: number): this,
dayOfYear(): number,
week(number: number): this,
weeks(number: number): this,
week(): number,
weeks(): number,
isoWeek(number: number): this,
isoWeeks(number: number): this,
isoWeek(): number,
isoWeeks(): number,
month(number: number): this,
months(number: number): this,
month(): number,
months(): number,
quarter(number: number): this,
quarter(): number,
year(number: number): this,
years(number: number): this,
year(): number,
years(): number,
weekYear(number: number): this,
weekYear(): number,
isoWeekYear(number: number): this,
isoWeekYear(): number,
weeksInYear(): number,
isoWeeksInYear(): number,
get(string: string): number,
set(unit: string, value: number): this,
set(options: { [unit: string]: number }): this,
static max(...dates: Array<moment$Moment>): moment$Moment,
static max(dates: Array<moment$Moment>): moment$Moment,
static min(...dates: Array<moment$Moment>): moment$Moment,
static min(dates: Array<moment$Moment>): moment$Moment,
add(
value: number | moment$MomentDuration | moment$Moment | Object,
unit?: string
): this,
subtract(
value: number | moment$MomentDuration | moment$Moment | string | Object,
unit?: string
): this,
startOf(unit: string): this,
endOf(unit: string): this,
local(): this,
utc(): this,
utcOffset(
offset: number | string,
keepLocalTime?: boolean,
keepMinutes?: boolean
): this,
utcOffset(): number,
format(format?: string): string,
fromNow(removeSuffix?: boolean): string,
from(
value: moment$Moment | string | number | Date | Array<number>,
removePrefix?: boolean
): string,
toNow(removePrefix?: boolean): string,
to(
value: moment$Moment | string | number | Date | Array<number>,
removePrefix?: boolean
): string,
calendar(refTime?: any, formats?: moment$CalendarFormats): string,
diff(
date: moment$Moment | string | number | Date | Array<number>,
format?: string,
floating?: boolean
): number,
valueOf(): number,
unix(): number,
daysInMonth(): number,
toDate(): Date,
toArray(): Array<number>,
toJSON(): string,
toISOString(
keepOffset?: boolean
): string,
toObject(): moment$MomentObject,
isBefore(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean,
isSame(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean,
isAfter(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean,
isSameOrBefore(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean,
isSameOrAfter(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean,
isBetween(
fromDate: moment$Moment | string | number | Date | Array<number>,
toDate?: ?moment$Moment | string | number | Date | Array<number>,
granularity?: ?string,
inclusion?: ?string
): boolean,
isDST(): boolean,
isDSTShifted(): boolean,
isLeapYear(): boolean,
clone(): moment$Moment,
static isMoment(obj: any): boolean,
static isDate(obj: any): boolean,
static locale(locale: string, localeData?: Object): string,
static updateLocale(locale: string, localeData?: ?Object): void,
static locale(locales: Array<string>): string,
locale(locale: string, customization?: Object | null): moment$Moment,
locale(): string,
static months(): Array<string>,
static monthsShort(): Array<string>,
static weekdays(): Array<string>,
static weekdaysShort(): Array<string>,
static weekdaysMin(): Array<string>,
static months(): string,
static monthsShort(): string,
static weekdays(): string,
static weekdaysShort(): string,
static weekdaysMin(): string,
static localeData(key?: string): moment$LocaleData,
static duration(
value: number | Object | string,
unit?: string
): moment$MomentDuration,
static isDuration(obj: any): boolean,
static normalizeUnits(unit: string): string,
static invalid(object: any): moment$Moment
}
declare module "moment" {
declare module.exports: Class<moment$Moment>;
}

View File

@@ -1,22 +0,0 @@
// 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

@@ -1,139 +0,0 @@
// 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,110 +0,0 @@
// 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;
declare type TranslatorProps = {|
t: TFunction,
i18nLoadedAt: Date,
i18n: Object
|};
declare type TranslatorPropsVoid = {
t: TFunction | void,
i18nLoadedAt: Date | void,
i18n: Object | void,
...
};
declare type Translator<P: {...}, Component: React$ComponentType<P>> = (
WrappedComponent: Component
) => React$ComponentType<
$Diff<React$ElementConfig<Component>, TranslatorPropsVoid>
>;
declare type TranslateOptions = $Shape<{
wait: boolean,
nsMode: "default" | "fallback",
bindi18n: false | string,
bindStore: false | string,
withRef: boolean,
translateFuncName: string,
i18n: Object,
usePureComponent: boolean,
...
}>;
declare function translate<P: {...}, Component: React$ComponentType<P>>(
namespaces?: | string
| Array<string>
| (($Diff<P, TranslatorPropsVoid>) => string | Array<string>),
options?: TranslateOptions
): Translator<P, Component>;
declare type I18nProps = {
i18n?: Object,
ns?: string | Array<string>,
children: (t: TFunction, {
i18n: Object,
t: TFunction,
...
}) => React$Node,
initialI18nStore?: Object,
initialLanguage?: string,
...
};
declare var I18n: React$ComponentType<I18nProps>;
declare type InterpolateProps = {
className?: string,
dangerouslySetInnerHTMLPartElement?: string,
i18n?: Object,
i18nKey?: string,
options?: Object,
parent?: string,
style?: Object,
t?: TFunction,
useDangerouslySetInnerHTML?: boolean,
...
};
declare var Interpolate: React$ComponentType<InterpolateProps>;
declare type TransProps = {
count?: number,
parent?: string,
i18n?: Object,
i18nKey?: string,
t?: TFunction,
...
};
declare var Trans: React$ComponentType<TransProps>;
declare type ProviderProps = {
i18n: Object,
children: React$Element<*>,
...
};
declare var I18nextProvider: React$ComponentType<ProviderProps>;
declare type NamespacesProps = {
components: Array<React$ComponentType<*>>,
i18n: { loadNamespaces: Function, ... },
...
};
declare function loadNamespaces(props: NamespacesProps): Promise<void>;
declare var reactI18nextModule: {
type: "3rdParty",
init: (instance: Object) => void,
...
};
declare function setDefaults(options: TranslateOptions): void;
declare function getDefaults(): TranslateOptions;
declare function getI18n(): Object;
declare function setI18n(instance: Object): void;
}

View File

@@ -1,137 +0,0 @@
// flow-typed signature: ba35d02d668b0d0a3e04a63a6847974e
// flow-typed version: <<STUB>>/react-jss_v8.6.1/flow_v0.79.1
/**
* This is an autogenerated libdef stub for:
*
* 'react-jss'
*
* 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-jss' {
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-jss/dist/react-jss' {
declare module.exports: any;
}
declare module 'react-jss/dist/react-jss.min' {
declare module.exports: any;
}
declare module 'react-jss/lib/compose' {
declare module.exports: any;
}
declare module 'react-jss/lib/compose.test' {
declare module.exports: any;
}
declare module 'react-jss/lib/contextTypes' {
declare module.exports: any;
}
declare module 'react-jss/lib/createHoc' {
declare module.exports: any;
}
declare module 'react-jss/lib/getDisplayName' {
declare module.exports: any;
}
declare module 'react-jss/lib/index' {
declare module.exports: any;
}
declare module 'react-jss/lib/index.test' {
declare module.exports: any;
}
declare module 'react-jss/lib/injectSheet' {
declare module.exports: any;
}
declare module 'react-jss/lib/injectSheet.test' {
declare module.exports: any;
}
declare module 'react-jss/lib/jss' {
declare module.exports: any;
}
declare module 'react-jss/lib/JssProvider' {
declare module.exports: any;
}
declare module 'react-jss/lib/JssProvider.test' {
declare module.exports: any;
}
declare module 'react-jss/lib/ns' {
declare module.exports: any;
}
declare module 'react-jss/lib/propTypes' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-jss/dist/react-jss.js' {
declare module.exports: $Exports<'react-jss/dist/react-jss'>;
}
declare module 'react-jss/dist/react-jss.min.js' {
declare module.exports: $Exports<'react-jss/dist/react-jss.min'>;
}
declare module 'react-jss/lib/compose.js' {
declare module.exports: $Exports<'react-jss/lib/compose'>;
}
declare module 'react-jss/lib/compose.test.js' {
declare module.exports: $Exports<'react-jss/lib/compose.test'>;
}
declare module 'react-jss/lib/contextTypes.js' {
declare module.exports: $Exports<'react-jss/lib/contextTypes'>;
}
declare module 'react-jss/lib/createHoc.js' {
declare module.exports: $Exports<'react-jss/lib/createHoc'>;
}
declare module 'react-jss/lib/getDisplayName.js' {
declare module.exports: $Exports<'react-jss/lib/getDisplayName'>;
}
declare module 'react-jss/lib/index.js' {
declare module.exports: $Exports<'react-jss/lib/index'>;
}
declare module 'react-jss/lib/index.test.js' {
declare module.exports: $Exports<'react-jss/lib/index.test'>;
}
declare module 'react-jss/lib/injectSheet.js' {
declare module.exports: $Exports<'react-jss/lib/injectSheet'>;
}
declare module 'react-jss/lib/injectSheet.test.js' {
declare module.exports: $Exports<'react-jss/lib/injectSheet.test'>;
}
declare module 'react-jss/lib/jss.js' {
declare module.exports: $Exports<'react-jss/lib/jss'>;
}
declare module 'react-jss/lib/JssProvider.js' {
declare module.exports: $Exports<'react-jss/lib/JssProvider'>;
}
declare module 'react-jss/lib/JssProvider.test.js' {
declare module.exports: $Exports<'react-jss/lib/JssProvider.test'>;
}
declare module 'react-jss/lib/ns.js' {
declare module.exports: $Exports<'react-jss/lib/ns'>;
}
declare module 'react-jss/lib/propTypes.js' {
declare module.exports: $Exports<'react-jss/lib/propTypes'>;
}

View File

@@ -1,123 +0,0 @@
// 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

@@ -1,182 +0,0 @@
// 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

@@ -1,56 +0,0 @@
// 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

@@ -1,726 +0,0 @@
// 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

@@ -1,484 +0,0 @@
// 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

@@ -6,7 +6,8 @@
"main": "src/main/js/index.js",
"scripts": {
"build": "ui-scripts plugin",
"watch": "ui-scripts plugin-watch"
"watch": "ui-scripts plugin-watch",
"typecheck": "tsc"
},
"babel": {
"presets": [

View File

@@ -1,16 +1,14 @@
//@flow
import React from "react";
import { repositories } from "@scm-manager/ui-components";
import type { Repository } from "@scm-manager/ui-types";
import { Repository } from "@scm-manager/ui-types";
import { translate } from "react-i18next";
type Props = {
repository: Repository,
t: string => string
}
repository: Repository;
t: (p: string) => string;
};
class ProtocolInformation extends React.Component<Props> {
render() {
const { repository, t } = this.props;
const href = repositories.getProtocolLinkByType(repository, "http");
@@ -26,7 +24,6 @@ class ProtocolInformation extends React.Component<Props> {
</div>
);
}
}
export default translate("plugins")(ProtocolInformation);

View File

@@ -1,16 +1,12 @@
//@flow
import React from "react";
import {Image} from "@scm-manager/ui-components";
import { Image } from "@scm-manager/ui-components";
type Props = {
};
type Props = {};
class SvnAvatar extends React.Component<Props> {
render() {
return <Image src="/images/svn-logo.gif" alt="Subversion Logo" />;
}
}
export default SvnAvatar;

View File

@@ -1,45 +1,51 @@
//@flow
import React from "react";
import type { Links } from "@scm-manager/ui-types";
import { Links } from "@scm-manager/ui-types";
import { translate } from "react-i18next";
import { InputField, Checkbox, Select } from "@scm-manager/ui-components";
import { Checkbox, Select } from "@scm-manager/ui-components";
type Configuration = {
compatibility: string,
enabledGZip: boolean,
_links: Links
compatibility: string;
enabledGZip: boolean;
_links: Links;
};
type Props = {
initialConfiguration: Configuration,
readOnly: boolean,
initialConfiguration: Configuration;
readOnly: boolean;
onConfigurationChange: (Configuration, boolean) => void,
onConfigurationChange: (p1: Configuration, p2: boolean) => void;
// context props
t: (string) => string
}
t: (p: string) => string;
};
type State = Configuration;
class SvnConfigurationForm extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
this.state = { ...props.initialConfiguration, validationErrors: [] };
this.state = {
...props.initialConfiguration
};
}
handleChange = (value: any, name: string) => {
this.setState({
[name]: value
}, () => this.props.onConfigurationChange(this.state, true));
handleChange = (value: any, name?: string) => {
if (!name) {
throw new Error("required name not set");
}
this.setState(
// @ts-ignore
{
[name]: value
},
() => this.props.onConfigurationChange(this.state, true)
);
};
compatibilityOptions = (values: string[]) => {
const options = [];
for (let value of values) {
options.push( this.compatibilityOption(value) );
for (const value of values) {
options.push(this.compatibilityOption(value));
}
return options;
};
@@ -53,9 +59,7 @@ class SvnConfigurationForm extends React.Component<Props, State> {
render() {
const { readOnly, t } = this.props;
const compatibilityOptions = this.compatibilityOptions([
"NONE", "PRE14", "PRE15", "PRE16", "PRE17", "WITH17"
]);
const compatibilityOptions = this.compatibilityOptions(["NONE", "PRE14", "PRE15", "PRE16", "PRE17", "WITH17"]);
return (
<>
@@ -78,7 +82,6 @@ class SvnConfigurationForm extends React.Component<Props, State> {
</>
);
}
}
export default translate("plugins")(SvnConfigurationForm);

View File

@@ -1,28 +1,25 @@
//@flow
import React from "react";
import { translate } from "react-i18next";
import { Title, Configuration } from "@scm-manager/ui-components";
import SvnConfigurationForm from "./SvnConfigurationForm";
type Props = {
link: string,
link: string;
// context props
t: (string) => string
}
t: (p: string) => string;
};
class SvnGlobalConfiguration extends React.Component<Props> {
render() {
const { link, t } = this.props;
const { link, t } = this.props;
return (
<div>
<Title title={t("scm-svn-plugin.config.title")}/>
<Configuration link={link} render={props => <SvnConfigurationForm {...props} />}/>
<Title title={t("scm-svn-plugin.config.title")} />
<Configuration link={link} render={(props: any) => <SvnConfigurationForm {...props} />} />
</div>
);
}
}
export default translate("plugins")(SvnGlobalConfiguration);

View File

@@ -1,11 +1,10 @@
// @flow
import { binder } from "@scm-manager/ui-extensions";
import { ConfigurationBinder as cfgBinder } from "@scm-manager/ui-components";
import ProtocolInformation from "./ProtocolInformation";
import SvnAvatar from "./SvnAvatar";
import SvnGlobalConfiguration from "./SvnGlobalConfiguration";
const svnPredicate = (props: Object) => {
const svnPredicate = (props: any) => {
return props.repository && props.repository.type === "svn";
};

View File

@@ -0,0 +1,67 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
"allowJs": true, /* Allow javascript files to be compiled. */
"checkJs": true, /* Report errors in .js files. */
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
"rootDir": "./src/main/js", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
"noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"skipLibCheck": true
},
"include": [
"./src/main/js"
]
}