From 8d569fd46d336ce5c0e4755233563af66c099991 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 6 Nov 2018 21:58:32 -0800 Subject: [PATCH] Upgrade dependencies --- .../DocumentPreview/DocumentPreview.js | 4 +- app/components/DropToImport/DropToImport.js | 6 +- app/components/Modal/Modal.js | 36 +- app/components/PathToDocument.js | 4 +- .../RouteSidebarHidden/RouteSidebarHidden.js | 2 +- .../Sidebar/components/DocumentLink.js | 4 +- .../Sidebar/components/SidebarLink.js | 12 +- app/components/Tooltip/index.js | 16 +- app/index.js | 5 +- app/menus/CollectionMenu.js | 6 +- app/scenes/Document/Document.js | 10 +- app/scenes/Document/components/Editor.js | 2 +- app/scenes/Search/Search.js | 6 +- app/scenes/Search/components/SearchField.js | 10 +- .../npm/@tommoor/remove-markdown_vx.x.x.js | 38 ++ flow-typed/npm/babel-polyfill_v6.x.x.js | 4 + flow-typed/npm/babel-polyfill_vx.x.x.js | 67 -- flow-typed/npm/diff_vx.x.x.js | 172 +++++ flow-typed/npm/google-auth-library_vx.x.x.js | 130 ++++ flow-typed/npm/js-cookie_v2.x.x.js | 6 +- flow-typed/npm/jszip_vx.x.x.js | 298 ++++++++ flow-typed/npm/koa-bodyparser_v4.x.x.js | 6 +- flow-typed/npm/koa-sslify_vx.x.x.js | 52 ++ flow-typed/npm/koa_v2.x.x.js | 22 +- flow-typed/npm/lodash_v4.x.x.js | 635 ++++++++++-------- flow-typed/npm/outline-icons_vx.x.x.js | 32 +- flow-typed/npm/pg_v6.x.x.js | 299 +++++++++ flow-typed/npm/prettier_v1.x.x.js | 48 +- flow-typed/npm/randomstring_v1.x.x.js | 14 + flow-typed/npm/randomstring_vx.x.x.js | 52 -- flow-typed/npm/react-dropzone_v4.x.x.js | 6 +- flow-typed/npm/react-modal_v3.1.x.js | 8 +- flow-typed/npm/react-router-dom_v4.x.x.js | 180 +++++ flow-typed/npm/react-test-renderer_v16.x.x.js | 39 +- flow-typed/npm/redis_v2.x.x.js | 41 +- flow-typed/npm/rich-markdown-editor_vx.x.x.js | 25 +- flow-typed/npm/sequelize_v4.x.x.js | 163 +++-- flow-typed/npm/styled-components_vx.x.x.js | 130 ++++ flow-typed/npm/tmp_vx.x.x.js | 32 + .../npm/uglifyjs-webpack-plugin_vx.x.x.js | 74 ++ package.json | 8 +- server/pages/components/Layout.js | 5 +- shared/styles/globals.js | 4 +- yarn.lock | 179 ++--- 44 files changed, 2221 insertions(+), 671 deletions(-) create mode 100644 flow-typed/npm/@tommoor/remove-markdown_vx.x.x.js create mode 100644 flow-typed/npm/babel-polyfill_v6.x.x.js delete mode 100644 flow-typed/npm/babel-polyfill_vx.x.x.js create mode 100644 flow-typed/npm/diff_vx.x.x.js create mode 100644 flow-typed/npm/google-auth-library_vx.x.x.js create mode 100644 flow-typed/npm/jszip_vx.x.x.js create mode 100644 flow-typed/npm/koa-sslify_vx.x.x.js create mode 100644 flow-typed/npm/pg_v6.x.x.js create mode 100644 flow-typed/npm/randomstring_v1.x.x.js delete mode 100644 flow-typed/npm/randomstring_vx.x.x.js create mode 100644 flow-typed/npm/react-router-dom_v4.x.x.js create mode 100644 flow-typed/npm/styled-components_vx.x.x.js create mode 100644 flow-typed/npm/tmp_vx.x.x.js create mode 100644 flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js diff --git a/app/components/DocumentPreview/DocumentPreview.js b/app/components/DocumentPreview/DocumentPreview.js index f1d64ea9..11661a3a 100644 --- a/app/components/DocumentPreview/DocumentPreview.js +++ b/app/components/DocumentPreview/DocumentPreview.js @@ -15,7 +15,7 @@ type Props = { highlight?: ?string, context?: ?string, showCollection?: boolean, - innerRef?: *, + ref?: *, }; const StyledStar = withTheme(styled(({ solid, theme, ...props }) => ( @@ -131,7 +131,6 @@ class DocumentPreview extends React.Component { const { document, showCollection, - innerRef, highlight, context, ...rest @@ -147,7 +146,6 @@ class DocumentPreview extends React.Component { pathname: document.url, state: { title: document.title }, }} - innerRef={innerRef} {...rest} > diff --git a/app/components/DropToImport/DropToImport.js b/app/components/DropToImport/DropToImport.js index 3c5fa806..b2e86121 100644 --- a/app/components/DropToImport/DropToImport.js +++ b/app/components/DropToImport/DropToImport.js @@ -2,7 +2,7 @@ import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; -import { injectGlobal } from 'styled-components'; +import { createGlobalStyle } from 'styled-components'; import importFile from 'utils/importFile'; import invariant from 'invariant'; import _ from 'lodash'; @@ -21,8 +21,7 @@ type Props = { history: Object, }; -// eslint-disable-next-line -injectGlobal` +const GlobalStyles = createGlobalStyle` .activeDropZone { background: ${props => props.theme.slateDark}; svg { fill: ${props => props.theme.white}; } @@ -93,6 +92,7 @@ class DropToImport extends React.Component { multiple {...props} > + {this.isImporting && } {this.props.children} diff --git a/app/components/Modal/Modal.js b/app/components/Modal/Modal.js index 52c9161c..4903daac 100644 --- a/app/components/Modal/Modal.js +++ b/app/components/Modal/Modal.js @@ -1,7 +1,7 @@ // @flow import * as React from 'react'; import { observer } from 'mobx-react'; -import styled, { injectGlobal } from 'styled-components'; +import styled, { createGlobalStyle } from 'styled-components'; import breakpoint from 'styled-components-breakpoint'; import ReactModal from 'react-modal'; import { CloseIcon } from 'outline-icons'; @@ -15,8 +15,7 @@ type Props = { onRequestClose: () => *, }; -// eslint-disable-next-line -injectGlobal` +const GlobalStyles = createGlobalStyle` .ReactModal__Overlay { z-index: 100; } @@ -36,20 +35,23 @@ const Modal = ({ if (!isOpen) return null; return ( - - - {title &&

{title}

} - - - - {children} -
-
+ + + + + {title &&

{title}

} + + + + {children} +
+
+
); }; diff --git a/app/components/PathToDocument.js b/app/components/PathToDocument.js index d24c56e6..83a7ec42 100644 --- a/app/components/PathToDocument.js +++ b/app/components/PathToDocument.js @@ -18,7 +18,7 @@ const ResultWrapper = styled.div` const StyledGoToIcon = styled(GoToIcon)``; -const ResultWrapperLink = ResultWrapper.withComponent('a').extend` +const ResultWrapperLink = styled(ResultWrapper.withComponent('a'))` height: 32px; padding-top: 3px; padding-left: 5px; @@ -74,7 +74,7 @@ class PathToDocument extends React.Component { if (!result) return
; return ( - + {result.path .map(doc => {doc.title}) .reduce((prev, curr) => [prev, , curr])} diff --git a/app/components/RouteSidebarHidden/RouteSidebarHidden.js b/app/components/RouteSidebarHidden/RouteSidebarHidden.js index 7cf768e0..b80c57af 100644 --- a/app/components/RouteSidebarHidden/RouteSidebarHidden.js +++ b/app/components/RouteSidebarHidden/RouteSidebarHidden.js @@ -19,7 +19,7 @@ class RouteSidebarHidden extends React.Component { } render() { - const { component, ...rest } = this.props; + const { component, ui, ...rest } = this.props; const Component = component; return } />; } diff --git a/app/components/Sidebar/components/DocumentLink.js b/app/components/Sidebar/components/DocumentLink.js index 43bd9eb2..ce9d324f 100644 --- a/app/components/Sidebar/components/DocumentLink.js +++ b/app/components/Sidebar/components/DocumentLink.js @@ -12,7 +12,7 @@ type Props = { document: NavigationNode, history: Object, activeDocument: ?Document, - activeDocumentRef?: HTMLElement => void, + activeDocumentRef?: (?HTMLElement) => *, prefetchDocument: (documentId: string) => Promise, depth: number, }; @@ -51,7 +51,7 @@ class DocumentLink extends React.Component { (icon ? '-20px;' : '0')}; + margin-left: ${props => (props.icon ? '-20px;' : '0')}; color: ${props => props.theme.slateDark}; font-size: 15px; cursor: pointer; @@ -37,8 +37,6 @@ const StyledNavLink = styled(NavLink)` } `; -const StyledDiv = StyledNavLink.withComponent('div'); - type Props = { to?: string | Object, onClick?: (SyntheticEvent<*>) => *, @@ -103,26 +101,26 @@ class SidebarLink extends React.Component { hideExpandToggle, exact, } = this.props; - const Component = to ? StyledNavLink : StyledDiv; const showExpandIcon = expandedContent && !hideExpandToggle ? true : undefined; return ( - {icon && {icon}} {showExpandIcon && ( )} {children} - + {/* Collection */ expand && hideExpandToggle && expandedContent} {/* Document */ this.expanded && !hideExpandToggle && expandedContent} {menu && {menu}} diff --git a/app/components/Tooltip/index.js b/app/components/Tooltip/index.js index c8ef00ae..8cb76f13 100644 --- a/app/components/Tooltip/index.js +++ b/app/components/Tooltip/index.js @@ -1,9 +1,19 @@ // @flow +import * as React from 'react'; import { TooltipTrigger } from 'pui-react-tooltip'; -import { injectGlobal } from 'styled-components'; +import { createGlobalStyle } from 'styled-components'; -injectGlobal` +const GlobalStyles = createGlobalStyle` .tooltip:hover .tooltip-container:not(.tooltip-container-hidden){visibility:visible;opacity:1}.tooltip-container{visibility:hidden;-webkit-transition:opacity ease-out 0.2s;transition:opacity ease-out 0.2s;z-index:10;position:absolute;bottom:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0 0 8px 0;text-align:left}.tooltip-container.tooltip-container-visible{visibility:visible}.tooltip-container.tooltip-hoverable:after{content:"";position:absolute;width:calc(100% + 16px);height:calc(100% + 16px);top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.tooltip-container .tooltip-content{white-space:nowrap;padding:4px 8px;font-size:12px;line-height:16px;font-weight:400;letter-spacing:0;text-transform:none;background-color:#243641;color:#fff;border-radius:2px;border:1px solid #243641;box-shadow:0px 2px 2px 0px rgba(36, 54, 65, .1),0px 0px 2px 0px rgba(36, 54, 65, .1)}.tooltip-container .tooltip-content:before{content:"";z-index:1;position:absolute;bottom:-4px;left:50%;-webkit-transform:translateX(-50%) rotateZ(45deg);transform:translateX(-50%) rotateZ(45deg);background-color:#243641;border-bottom:1px solid #243641;border-right:1px solid #243641;width:8px;height:8px}.tooltip-container .tooltip-content:after{content:"";box-sizing:content-box;z-index:-1;position:absolute;bottom:-4px;left:50%;-webkit-transform:translateX(-50%) rotateZ(45deg);transform:translateX(-50%) rotateZ(45deg);background-color:#243641;box-shadow:0px 2px 2px 0px rgba(36, 54, 65, .1),0px 0px 2px 0px rgba(36, 54, 65, .1);width:8px;height:8px}.tooltip{position:relative;display:inline-block}.tooltip.tooltip-light .tooltip-content{background-color:#fff;color:#243641;border:1px solid #DFE5E8}.tooltip.tooltip-light .tooltip-content:before{background-color:#fff;border-bottom:1px solid #DFE5E8;border-right:1px solid #DFE5E8}.tooltip.tooltip-light .tooltip-content:after{background-color:#fff}.tooltip.tooltip-bottom .tooltip-container{top:100%;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:8px 0 0 0}.tooltip.tooltip-bottom .tooltip-container .tooltip-content:before{bottom:auto;top:-4px;border-top:1px solid #243641;border-right:none;border-bottom:none;border-left:1px solid #243641}.tooltip.tooltip-bottom .tooltip-container .tooltip-content:after{bottom:auto;top:-4px}.tooltip.tooltip-bottom.tooltip-light .tooltip-content:before{border-top:1px solid #DFE5E8;border-left:1px solid #DFE5E8}.tooltip.tooltip-right .tooltip-container{top:50%;bottom:auto;left:100%;-webkit-transform:translatey(-50%);transform:translatey(-50%);margin:0 0 0 8px}.tooltip.tooltip-right .tooltip-container .tooltip-content:before{bottom:auto;left:-4px;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg);border-top:none;border-right:none;border-bottom:1px solid #243641;border-left:1px solid #243641}.tooltip.tooltip-right .tooltip-container .tooltip-content:after{bottom:auto;left:-4px;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg)}.tooltip.tooltip-right.tooltip-light .tooltip-content:before{border-bottom:1px solid #DFE5E8;border-left:1px solid #DFE5E8}.tooltip.tooltip-left .tooltip-container{top:50%;bottom:auto;right:100%;left:auto;-webkit-transform:translatey(-50%);transform:translatey(-50%);margin:0 8px 0 0}.tooltip.tooltip-left .tooltip-container .tooltip-content:before{bottom:auto;right:-4px;left:auto;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg);border-top:1px solid #243641;border-right:1px solid #243641;border-bottom:none;border-left:none}.tooltip.tooltip-left .tooltip-container .tooltip-content:after{bottom:auto;right:-4px;left:auto;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg)}.tooltip.tooltip-left.tooltip-light .tooltip-content:before{border-top:1px solid #DFE5E8;border-right:1px solid #DFE5E8}.tooltip-sm.tooltip-container{width:120px}.tooltip-sm.tooltip-container .tooltip-content{white-space:normal}.tooltip-md.tooltip-container{width:240px}.tooltip-md.tooltip-container .tooltip-content{white-space:normal}.tooltip-lg.tooltip-container{width:360px}.tooltip-lg.tooltip-container .tooltip-content{white-space:normal}.tether-element{z-index:99}.overlay-trigger{color:#1B78B3;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out;-webkit-transition-property:background-color, color, opacity;transition-property:background-color, color, opacity}.overlay-trigger:hover,.overlay-trigger:focus{color:#1f8ace;cursor:pointer;outline:none;text-decoration:none}.overlay-trigger:active,.overlay-trigger.active{color:#176698} `; -export default TooltipTrigger; +const Tooltip = function(props: *) { + return ( + + + + + ); +}; + +export default Tooltip; diff --git a/app/index.js b/app/index.js index 3f9b7b27..b2d2ab8e 100644 --- a/app/index.js +++ b/app/index.js @@ -7,7 +7,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import stores from 'stores'; import theme from 'shared/styles/theme'; -import globalStyles from 'shared/styles/globals'; +import GlobalStyles from 'shared/styles/globals'; import 'shared/styles/prism.css'; import ErrorBoundary from 'components/ErrorBoundary'; @@ -20,13 +20,12 @@ if (__DEV__) { DevTools = require('mobx-react-devtools').default; // eslint-disable-line global-require } -globalStyles(); - const element = document.getElementById('root'); if (element) { render( + diff --git a/app/menus/CollectionMenu.js b/app/menus/CollectionMenu.js index 671e3dc6..e2103a96 100644 --- a/app/menus/CollectionMenu.js +++ b/app/menus/CollectionMenu.js @@ -23,7 +23,7 @@ type Props = { @observer class CollectionMenu extends React.Component { - file: HTMLInputElement; + file: ?HTMLInputElement; onNewDocument = (ev: SyntheticEvent<*>) => { ev.preventDefault(); @@ -35,7 +35,7 @@ class CollectionMenu extends React.Component { ev.preventDefault(); // simulate a click on the file upload input element - this.file.click(); + if (this.file) this.file.click(); }; onFilePicked = async (ev: SyntheticEvent<*>) => { @@ -74,7 +74,7 @@ class CollectionMenu extends React.Component { (this.file = ref)} + ref={ref => (this.file = ref)} onChange={this.onFilePicked} accept="text/markdown, text/plain" /> diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 16dccfaa..14cfdb9b 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -357,8 +357,14 @@ class DocumentScene extends React.Component { {this.isEditing && ( - - + + )} {!isShare && ( diff --git a/app/scenes/Document/components/Editor.js b/app/scenes/Document/components/Editor.js index 37e82d4c..69f4bee8 100644 --- a/app/scenes/Document/components/Editor.js +++ b/app/scenes/Document/components/Editor.js @@ -83,7 +83,7 @@ class Editor extends React.Component { return ( { - firstDocument: HTMLElement; + firstDocument: ?DocumentPreview; @observable results: SearchResult[] = []; @observable query: string = ''; @@ -206,9 +206,7 @@ class Search extends React.Component { return ( - index === 0 && this.setFirstDocumentRef(ref) - } + ref={ref => index === 0 && this.setFirstDocumentRef(ref)} key={document.id} document={document} highlight={this.query} diff --git a/app/scenes/Search/components/SearchField.js b/app/scenes/Search/components/SearchField.js index 934db77e..07d67016 100644 --- a/app/scenes/Search/components/SearchField.js +++ b/app/scenes/Search/components/SearchField.js @@ -10,18 +10,14 @@ type Props = { }; class SearchField extends React.Component { - input: HTMLInputElement; + input: ?HTMLInputElement; handleChange = (ev: SyntheticEvent<*>) => { this.props.onChange(ev.currentTarget.value ? ev.currentTarget.value : ''); }; focusInput = (ev: SyntheticEvent<*>) => { - this.input.focus(); - }; - - setRef = (ref: HTMLInputElement) => { - this.input = ref; + if (this.input) this.input.focus(); }; render() { @@ -35,7 +31,7 @@ class SearchField extends React.Component { /> (this.input = ref)} onChange={this.handleChange} spellCheck="false" placeholder="search…" diff --git a/flow-typed/npm/@tommoor/remove-markdown_vx.x.x.js b/flow-typed/npm/@tommoor/remove-markdown_vx.x.x.js new file mode 100644 index 00000000..4f58f917 --- /dev/null +++ b/flow-typed/npm/@tommoor/remove-markdown_vx.x.x.js @@ -0,0 +1,38 @@ +// flow-typed signature: 34ca0e3549dbccf06b1bfc979378b478 +// flow-typed version: <>/@tommoor/remove-markdown_v0.3.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * '@tommoor/remove-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 '@tommoor/remove-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 '@tommoor/remove-markdown/test/remove-markdown' { + declare module.exports: any; +} + +// Filename aliases +declare module '@tommoor/remove-markdown/index' { + declare module.exports: $Exports<'@tommoor/remove-markdown'>; +} +declare module '@tommoor/remove-markdown/index.js' { + declare module.exports: $Exports<'@tommoor/remove-markdown'>; +} +declare module '@tommoor/remove-markdown/test/remove-markdown.js' { + declare module.exports: $Exports<'@tommoor/remove-markdown/test/remove-markdown'>; +} diff --git a/flow-typed/npm/babel-polyfill_v6.x.x.js b/flow-typed/npm/babel-polyfill_v6.x.x.js new file mode 100644 index 00000000..f6ab99df --- /dev/null +++ b/flow-typed/npm/babel-polyfill_v6.x.x.js @@ -0,0 +1,4 @@ +// flow-typed signature: 28eccd914ac7bd65de204cb1d8d37cfe +// flow-typed version: 7b122e75af/babel-polyfill_v6.x.x/flow_>=v0.30.x + +declare module 'babel-polyfill' {} diff --git a/flow-typed/npm/babel-polyfill_vx.x.x.js b/flow-typed/npm/babel-polyfill_vx.x.x.js deleted file mode 100644 index 51aa827b..00000000 --- a/flow-typed/npm/babel-polyfill_vx.x.x.js +++ /dev/null @@ -1,67 +0,0 @@ -// flow-typed signature: 5a748d46bf980bce1150ad979eb02e73 -// flow-typed version: <>/babel-polyfill_v^6.13.0/flow_v0.71.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-polyfill' - * - * 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 'babel-polyfill' { - 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 'babel-polyfill/browser' { - declare module.exports: any; -} - -declare module 'babel-polyfill/dist/polyfill' { - declare module.exports: any; -} - -declare module 'babel-polyfill/dist/polyfill.min' { - declare module.exports: any; -} - -declare module 'babel-polyfill/lib/index' { - declare module.exports: any; -} - -declare module 'babel-polyfill/scripts/postpublish' { - declare module.exports: any; -} - -declare module 'babel-polyfill/scripts/prepublish' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-polyfill/browser.js' { - declare module.exports: $Exports<'babel-polyfill/browser'>; -} -declare module 'babel-polyfill/dist/polyfill.js' { - declare module.exports: $Exports<'babel-polyfill/dist/polyfill'>; -} -declare module 'babel-polyfill/dist/polyfill.min.js' { - declare module.exports: $Exports<'babel-polyfill/dist/polyfill.min'>; -} -declare module 'babel-polyfill/lib/index.js' { - declare module.exports: $Exports<'babel-polyfill/lib/index'>; -} -declare module 'babel-polyfill/scripts/postpublish.js' { - declare module.exports: $Exports<'babel-polyfill/scripts/postpublish'>; -} -declare module 'babel-polyfill/scripts/prepublish.js' { - declare module.exports: $Exports<'babel-polyfill/scripts/prepublish'>; -} diff --git a/flow-typed/npm/diff_vx.x.x.js b/flow-typed/npm/diff_vx.x.x.js new file mode 100644 index 00000000..ce91707d --- /dev/null +++ b/flow-typed/npm/diff_vx.x.x.js @@ -0,0 +1,172 @@ +// flow-typed signature: 0f5b991da0eab55a46333d265138ba11 +// flow-typed version: <>/diff_v3.5.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'diff' + * + * 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 'diff' { + 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 'diff/dist/diff' { + declare module.exports: any; +} + +declare module 'diff/dist/diff.min' { + declare module.exports: any; +} + +declare module 'diff/lib/convert/dmp' { + declare module.exports: any; +} + +declare module 'diff/lib/convert/xml' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/array' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/base' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/character' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/css' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/json' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/line' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/sentence' { + declare module.exports: any; +} + +declare module 'diff/lib/diff/word' { + declare module.exports: any; +} + +declare module 'diff/lib/index' { + declare module.exports: any; +} + +declare module 'diff/lib/patch/apply' { + declare module.exports: any; +} + +declare module 'diff/lib/patch/create' { + declare module.exports: any; +} + +declare module 'diff/lib/patch/merge' { + declare module.exports: any; +} + +declare module 'diff/lib/patch/parse' { + declare module.exports: any; +} + +declare module 'diff/lib/util/array' { + declare module.exports: any; +} + +declare module 'diff/lib/util/distance-iterator' { + declare module.exports: any; +} + +declare module 'diff/lib/util/params' { + declare module.exports: any; +} + +declare module 'diff/runtime' { + declare module.exports: any; +} + +// Filename aliases +declare module 'diff/dist/diff.js' { + declare module.exports: $Exports<'diff/dist/diff'>; +} +declare module 'diff/dist/diff.min.js' { + declare module.exports: $Exports<'diff/dist/diff.min'>; +} +declare module 'diff/lib/convert/dmp.js' { + declare module.exports: $Exports<'diff/lib/convert/dmp'>; +} +declare module 'diff/lib/convert/xml.js' { + declare module.exports: $Exports<'diff/lib/convert/xml'>; +} +declare module 'diff/lib/diff/array.js' { + declare module.exports: $Exports<'diff/lib/diff/array'>; +} +declare module 'diff/lib/diff/base.js' { + declare module.exports: $Exports<'diff/lib/diff/base'>; +} +declare module 'diff/lib/diff/character.js' { + declare module.exports: $Exports<'diff/lib/diff/character'>; +} +declare module 'diff/lib/diff/css.js' { + declare module.exports: $Exports<'diff/lib/diff/css'>; +} +declare module 'diff/lib/diff/json.js' { + declare module.exports: $Exports<'diff/lib/diff/json'>; +} +declare module 'diff/lib/diff/line.js' { + declare module.exports: $Exports<'diff/lib/diff/line'>; +} +declare module 'diff/lib/diff/sentence.js' { + declare module.exports: $Exports<'diff/lib/diff/sentence'>; +} +declare module 'diff/lib/diff/word.js' { + declare module.exports: $Exports<'diff/lib/diff/word'>; +} +declare module 'diff/lib/index.js' { + declare module.exports: $Exports<'diff/lib/index'>; +} +declare module 'diff/lib/patch/apply.js' { + declare module.exports: $Exports<'diff/lib/patch/apply'>; +} +declare module 'diff/lib/patch/create.js' { + declare module.exports: $Exports<'diff/lib/patch/create'>; +} +declare module 'diff/lib/patch/merge.js' { + declare module.exports: $Exports<'diff/lib/patch/merge'>; +} +declare module 'diff/lib/patch/parse.js' { + declare module.exports: $Exports<'diff/lib/patch/parse'>; +} +declare module 'diff/lib/util/array.js' { + declare module.exports: $Exports<'diff/lib/util/array'>; +} +declare module 'diff/lib/util/distance-iterator.js' { + declare module.exports: $Exports<'diff/lib/util/distance-iterator'>; +} +declare module 'diff/lib/util/params.js' { + declare module.exports: $Exports<'diff/lib/util/params'>; +} +declare module 'diff/runtime.js' { + declare module.exports: $Exports<'diff/runtime'>; +} diff --git a/flow-typed/npm/google-auth-library_vx.x.x.js b/flow-typed/npm/google-auth-library_vx.x.x.js new file mode 100644 index 00000000..94c789b7 --- /dev/null +++ b/flow-typed/npm/google-auth-library_vx.x.x.js @@ -0,0 +1,130 @@ +// flow-typed signature: 178bc1353a5bc8f7a0b81e60cc7e569c +// flow-typed version: <>/google-auth-library_v^1.5.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'google-auth-library' + * + * 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 'google-auth-library' { + 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 'google-auth-library/build/src/auth/authclient' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/computeclient' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/credentials' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/envDetect' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/googleauth' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/iam' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/jwtaccess' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/jwtclient' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/loginticket' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/oauth2client' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/auth/refreshclient' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/index' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/options' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/pemverifier' { + declare module.exports: any; +} + +declare module 'google-auth-library/build/src/transporters' { + declare module.exports: any; +} + +// Filename aliases +declare module 'google-auth-library/build/src/auth/authclient.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/authclient'>; +} +declare module 'google-auth-library/build/src/auth/computeclient.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/computeclient'>; +} +declare module 'google-auth-library/build/src/auth/credentials.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/credentials'>; +} +declare module 'google-auth-library/build/src/auth/envDetect.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/envDetect'>; +} +declare module 'google-auth-library/build/src/auth/googleauth.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/googleauth'>; +} +declare module 'google-auth-library/build/src/auth/iam.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/iam'>; +} +declare module 'google-auth-library/build/src/auth/jwtaccess.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/jwtaccess'>; +} +declare module 'google-auth-library/build/src/auth/jwtclient.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/jwtclient'>; +} +declare module 'google-auth-library/build/src/auth/loginticket.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/loginticket'>; +} +declare module 'google-auth-library/build/src/auth/oauth2client.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/oauth2client'>; +} +declare module 'google-auth-library/build/src/auth/refreshclient.js' { + declare module.exports: $Exports<'google-auth-library/build/src/auth/refreshclient'>; +} +declare module 'google-auth-library/build/src/index.js' { + declare module.exports: $Exports<'google-auth-library/build/src/index'>; +} +declare module 'google-auth-library/build/src/options.js' { + declare module.exports: $Exports<'google-auth-library/build/src/options'>; +} +declare module 'google-auth-library/build/src/pemverifier.js' { + declare module.exports: $Exports<'google-auth-library/build/src/pemverifier'>; +} +declare module 'google-auth-library/build/src/transporters.js' { + declare module.exports: $Exports<'google-auth-library/build/src/transporters'>; +} diff --git a/flow-typed/npm/js-cookie_v2.x.x.js b/flow-typed/npm/js-cookie_v2.x.x.js index 215629f4..2453f240 100644 --- a/flow-typed/npm/js-cookie_v2.x.x.js +++ b/flow-typed/npm/js-cookie_v2.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3ec9bf9b258f375a8abeff95acd8b2ad -// flow-typed version: cd78efc61a/js-cookie_v2.x.x/flow_>=v0.38.x +// flow-typed signature: 09c1fe82fbc9e980fc0fd1c8dee0628b +// flow-typed version: 91c31c78d9/js-cookie_v2.x.x/flow_>=v0.38.x declare module 'js-cookie' { declare type CookieOptions = { @@ -19,7 +19,7 @@ declare module 'js-cookie' { get(...args: Array): { [key: string]: string }; get(name: string, ...args: Array): string | void; remove(name: string, options?: CookieOptions): void; - getJSON(name: string): mixed; + getJSON(name: string): Object; withConverter(converter: ConverterFunc | ConverterObj): this; noConflict(): this; } diff --git a/flow-typed/npm/jszip_vx.x.x.js b/flow-typed/npm/jszip_vx.x.x.js new file mode 100644 index 00000000..6ba471fa --- /dev/null +++ b/flow-typed/npm/jszip_vx.x.x.js @@ -0,0 +1,298 @@ +// flow-typed signature: 8e32d5e372e2df42a22f7d8915f1c450 +// flow-typed version: <>/jszip_v3.1.5/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'jszip' + * + * 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 'jszip' { + 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 'jszip/dist/jszip' { + declare module.exports: any; +} + +declare module 'jszip/dist/jszip.min' { + declare module.exports: any; +} + +declare module 'jszip/lib/base64' { + declare module.exports: any; +} + +declare module 'jszip/lib/compressedObject' { + declare module.exports: any; +} + +declare module 'jszip/lib/compressions' { + declare module.exports: any; +} + +declare module 'jszip/lib/crc32' { + declare module.exports: any; +} + +declare module 'jszip/lib/defaults' { + declare module.exports: any; +} + +declare module 'jszip/lib/external' { + declare module.exports: any; +} + +declare module 'jszip/lib/flate' { + declare module.exports: any; +} + +declare module 'jszip/lib/generate/index' { + declare module.exports: any; +} + +declare module 'jszip/lib/generate/ZipFileWorker' { + declare module.exports: any; +} + +declare module 'jszip/lib/index' { + declare module.exports: any; +} + +declare module 'jszip/lib/license_header' { + declare module.exports: any; +} + +declare module 'jszip/lib/load' { + declare module.exports: any; +} + +declare module 'jszip/lib/nodejs/NodejsStreamInputAdapter' { + declare module.exports: any; +} + +declare module 'jszip/lib/nodejs/NodejsStreamOutputAdapter' { + declare module.exports: any; +} + +declare module 'jszip/lib/nodejsUtils' { + declare module.exports: any; +} + +declare module 'jszip/lib/object' { + declare module.exports: any; +} + +declare module 'jszip/lib/readable-stream-browser' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/ArrayReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/DataReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/NodeBufferReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/readerFor' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/StringReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/Uint8ArrayReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/signature' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/ConvertWorker' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/Crc32Probe' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/DataLengthProbe' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/DataWorker' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/GenericWorker' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/StreamHelper' { + declare module.exports: any; +} + +declare module 'jszip/lib/support' { + declare module.exports: any; +} + +declare module 'jszip/lib/utf8' { + declare module.exports: any; +} + +declare module 'jszip/lib/utils' { + declare module.exports: any; +} + +declare module 'jszip/lib/zipEntries' { + declare module.exports: any; +} + +declare module 'jszip/lib/zipEntry' { + declare module.exports: any; +} + +declare module 'jszip/lib/zipObject' { + declare module.exports: any; +} + +declare module 'jszip/vendor/FileSaver' { + declare module.exports: any; +} + +// Filename aliases +declare module 'jszip/dist/jszip.js' { + declare module.exports: $Exports<'jszip/dist/jszip'>; +} +declare module 'jszip/dist/jszip.min.js' { + declare module.exports: $Exports<'jszip/dist/jszip.min'>; +} +declare module 'jszip/lib/base64.js' { + declare module.exports: $Exports<'jszip/lib/base64'>; +} +declare module 'jszip/lib/compressedObject.js' { + declare module.exports: $Exports<'jszip/lib/compressedObject'>; +} +declare module 'jszip/lib/compressions.js' { + declare module.exports: $Exports<'jszip/lib/compressions'>; +} +declare module 'jszip/lib/crc32.js' { + declare module.exports: $Exports<'jszip/lib/crc32'>; +} +declare module 'jszip/lib/defaults.js' { + declare module.exports: $Exports<'jszip/lib/defaults'>; +} +declare module 'jszip/lib/external.js' { + declare module.exports: $Exports<'jszip/lib/external'>; +} +declare module 'jszip/lib/flate.js' { + declare module.exports: $Exports<'jszip/lib/flate'>; +} +declare module 'jszip/lib/generate/index.js' { + declare module.exports: $Exports<'jszip/lib/generate/index'>; +} +declare module 'jszip/lib/generate/ZipFileWorker.js' { + declare module.exports: $Exports<'jszip/lib/generate/ZipFileWorker'>; +} +declare module 'jszip/lib/index.js' { + declare module.exports: $Exports<'jszip/lib/index'>; +} +declare module 'jszip/lib/license_header.js' { + declare module.exports: $Exports<'jszip/lib/license_header'>; +} +declare module 'jszip/lib/load.js' { + declare module.exports: $Exports<'jszip/lib/load'>; +} +declare module 'jszip/lib/nodejs/NodejsStreamInputAdapter.js' { + declare module.exports: $Exports<'jszip/lib/nodejs/NodejsStreamInputAdapter'>; +} +declare module 'jszip/lib/nodejs/NodejsStreamOutputAdapter.js' { + declare module.exports: $Exports<'jszip/lib/nodejs/NodejsStreamOutputAdapter'>; +} +declare module 'jszip/lib/nodejsUtils.js' { + declare module.exports: $Exports<'jszip/lib/nodejsUtils'>; +} +declare module 'jszip/lib/object.js' { + declare module.exports: $Exports<'jszip/lib/object'>; +} +declare module 'jszip/lib/readable-stream-browser.js' { + declare module.exports: $Exports<'jszip/lib/readable-stream-browser'>; +} +declare module 'jszip/lib/reader/ArrayReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/ArrayReader'>; +} +declare module 'jszip/lib/reader/DataReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/DataReader'>; +} +declare module 'jszip/lib/reader/NodeBufferReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/NodeBufferReader'>; +} +declare module 'jszip/lib/reader/readerFor.js' { + declare module.exports: $Exports<'jszip/lib/reader/readerFor'>; +} +declare module 'jszip/lib/reader/StringReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/StringReader'>; +} +declare module 'jszip/lib/reader/Uint8ArrayReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/Uint8ArrayReader'>; +} +declare module 'jszip/lib/signature.js' { + declare module.exports: $Exports<'jszip/lib/signature'>; +} +declare module 'jszip/lib/stream/ConvertWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/ConvertWorker'>; +} +declare module 'jszip/lib/stream/Crc32Probe.js' { + declare module.exports: $Exports<'jszip/lib/stream/Crc32Probe'>; +} +declare module 'jszip/lib/stream/DataLengthProbe.js' { + declare module.exports: $Exports<'jszip/lib/stream/DataLengthProbe'>; +} +declare module 'jszip/lib/stream/DataWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/DataWorker'>; +} +declare module 'jszip/lib/stream/GenericWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/GenericWorker'>; +} +declare module 'jszip/lib/stream/StreamHelper.js' { + declare module.exports: $Exports<'jszip/lib/stream/StreamHelper'>; +} +declare module 'jszip/lib/support.js' { + declare module.exports: $Exports<'jszip/lib/support'>; +} +declare module 'jszip/lib/utf8.js' { + declare module.exports: $Exports<'jszip/lib/utf8'>; +} +declare module 'jszip/lib/utils.js' { + declare module.exports: $Exports<'jszip/lib/utils'>; +} +declare module 'jszip/lib/zipEntries.js' { + declare module.exports: $Exports<'jszip/lib/zipEntries'>; +} +declare module 'jszip/lib/zipEntry.js' { + declare module.exports: $Exports<'jszip/lib/zipEntry'>; +} +declare module 'jszip/lib/zipObject.js' { + declare module.exports: $Exports<'jszip/lib/zipObject'>; +} +declare module 'jszip/vendor/FileSaver.js' { + declare module.exports: $Exports<'jszip/vendor/FileSaver'>; +} diff --git a/flow-typed/npm/koa-bodyparser_v4.x.x.js b/flow-typed/npm/koa-bodyparser_v4.x.x.js index ea6ad3a6..0fbfc702 100644 --- a/flow-typed/npm/koa-bodyparser_v4.x.x.js +++ b/flow-typed/npm/koa-bodyparser_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 89e31dc3d71df377b34d408f5725e57a -// flow-typed version: 60fd29d2cf/koa-bodyparser_v4.x.x/flow_>=v0.56.x +// flow-typed signature: db2ab32952e719c6656cef681be04c96 +// flow-typed version: e969a7af52/koa-bodyparser_v4.x.x/flow_>=v0.56.x declare module "koa-bodyparser" { declare type Context = Object; @@ -24,5 +24,5 @@ declare module "koa-bodyparser" { onerror?: (err: Error, ctx: Context) => void |}; - declare export default function bodyParser(opts?: Options): Middleware; + declare module.exports: (opts?: Options) => Middleware; } diff --git a/flow-typed/npm/koa-sslify_vx.x.x.js b/flow-typed/npm/koa-sslify_vx.x.x.js new file mode 100644 index 00000000..e20ad8a6 --- /dev/null +++ b/flow-typed/npm/koa-sslify_vx.x.x.js @@ -0,0 +1,52 @@ +// flow-typed signature: ff33d86d918ff9102533115616ed317d +// flow-typed version: <>/koa-sslify_v2.1.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'koa-sslify' + * + * 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 'koa-sslify' { + 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 'koa-sslify/test/koa-sslify-azure-test' { + declare module.exports: any; +} + +declare module 'koa-sslify/test/koa-sslify-proto-test' { + declare module.exports: any; +} + +declare module 'koa-sslify/test/koa-sslify-test' { + declare module.exports: any; +} + +// Filename aliases +declare module 'koa-sslify/index' { + declare module.exports: $Exports<'koa-sslify'>; +} +declare module 'koa-sslify/index.js' { + declare module.exports: $Exports<'koa-sslify'>; +} +declare module 'koa-sslify/test/koa-sslify-azure-test.js' { + declare module.exports: $Exports<'koa-sslify/test/koa-sslify-azure-test'>; +} +declare module 'koa-sslify/test/koa-sslify-proto-test.js' { + declare module.exports: $Exports<'koa-sslify/test/koa-sslify-proto-test'>; +} +declare module 'koa-sslify/test/koa-sslify-test.js' { + declare module.exports: $Exports<'koa-sslify/test/koa-sslify-test'>; +} diff --git a/flow-typed/npm/koa_v2.x.x.js b/flow-typed/npm/koa_v2.x.x.js index a393cd47..62f8db31 100644 --- a/flow-typed/npm/koa_v2.x.x.js +++ b/flow-typed/npm/koa_v2.x.x.js @@ -1,17 +1,17 @@ -// flow-typed signature: 1a33220ead1c6b6e3205a55b2a2ec3a0 -// flow-typed version: 18b7d8b101/koa_v2.x.x/flow_>=v0.47.x +// flow-typed signature: 225656ba2479b8c1dd8b10776913e73f +// flow-typed version: b7d0245d00/koa_v2.x.x/flow_>=v0.47.x /* * Type def from from source code of koa. * this: https://github.com/koajs/koa/commit/08eb1a20c3975230aa1fe1c693b0cd1ac7a0752b * previous: https://github.com/koajs/koa/commit/fabf5864c6a5dca0782b867a263b1b0825a05bf9 - * + * * Changelog * breaking: remove unused app.name * breaking: ctx.throw([status], [msg], [properties]) (caused by http-errors (#957) ) **/ declare module 'koa' { - // Currently, import type doesnt work well ? + // Currently, import type doesn't work well ? // so copy `Server` from flow/lib/node.js#L820 declare class Server extends net$Server { listen(port?: number, hostname?: string, backlog?: number, callback?: Function): Server, @@ -196,15 +196,15 @@ declare module 'koa' { }; // https://github.com/pillarjs/cookies declare type CookiesSetOptions = { - maxAge: number, // milliseconds from Date.now() for expiry - expires: Date, //cookie's expiration date (expires at the end of session by default). - path: string, // the path of the cookie (/ by default). domain: string, // domain of the cookie (no default). - secure: boolean, // false by default for HTTP, true by default for HTTPS - httpOnly: boolean, // a boolean indicating whether the cookie is only to be sent over HTTP(S), + maxAge: number, // milliseconds from Date.now() for expiry + expires?: Date, //cookie's expiration date (expires at the end of session by default). + path?: string, // the path of the cookie (/ by default). + secure?: boolean, // false by default for HTTP, true by default for HTTPS + httpOnly?: boolean, // a boolean indicating whether the cookie is only to be sent over HTTP(S), // and not made available to client JavaScript (true by default). - signed: boolean, // whether the cookie is to be signed (false by default) - overwrite: boolean, // whether to overwrite previously set cookies of the same name (false by default). + signed?: boolean, // whether the cookie is to be signed (false by default) + overwrite?: boolean, // whether to overwrite previously set cookies of the same name (false by default). }; declare type Cookies = { get: (name: string, options?: {signed: boolean}) => string|void, diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js index a6e563b8..0ee52940 100644 --- a/flow-typed/npm/lodash_v4.x.x.js +++ b/flow-typed/npm/lodash_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9b30c25bfb40dd9968c9c9f32b43ce75 -// flow-typed version: 6aad05d35e/lodash_v4.x.x/flow_>=v0.63.x +// flow-typed signature: 911f4ab10b9a871625482b7b6622b76b +// flow-typed version: a0e86fa7fb/lodash_v4.x.x/flow_>=v0.63.x declare module "lodash" { declare type __CurriedFunction1 = (...r: [AA]) => R; @@ -214,14 +214,24 @@ declare module "lodash" { // Array chunk(array?: ?Array, size?: ?number): Array>; compact(array?: ?Array): Array; - concat(base?: ?Array, ...elements: Array): Array; - difference(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray): Array; + concat( + base?: ?$ReadOnlyArray, + ...elements: Array + ): Array; + difference( + array?: ?$ReadOnlyArray, + ...values: Array> + ): Array; differenceBy( array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): T[]; - differenceWith(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray, comparator?: ?Comparator): T[]; + differenceWith( + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, + comparator?: ?Comparator + ): T[]; drop(array?: ?Array, n?: ?number): Array; dropRight(array?: ?Array, n?: ?number): Array; dropRightWhile(array?: ?Array, predicate?: ?Predicate): Array; @@ -238,7 +248,7 @@ declare module "lodash" { fromIndex?: ?number ): number; findIndex( - array: void | null, + array: void | null, predicate?: ?Predicate, fromIndex?: ?number ): -1; @@ -253,159 +263,179 @@ declare module "lodash" { fromIndex?: ?number ): -1; // alias of _.head - first(array: ?Array): T; + first(array: ?$ReadOnlyArray): T; flatten(array?: ?Array | X>): Array; - flattenDeep(array?: ?any[]): Array; - flattenDepth(array?: ?any[], depth?: ?number): any[]; + flattenDeep(array?: ?(any[])): Array; + flattenDepth(array?: ?(any[]), depth?: ?number): any[]; fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; - head(array: ?Array): T; + head(array: ?$ReadOnlyArray): T; indexOf(array: Array, value: T, fromIndex?: number): number; - indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; + indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; initial(array: ?Array): Array; - intersection(...arrays?: Array>): Array; + intersection(...arrays?: Array<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; intersectionBy( - a1?: ?Array, - a2?: ?Array, + a1?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): Array; intersectionBy( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): Array; intersectionBy( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - a4?: ?Array, + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): Array; + intersectionBy( + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + a4?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionWith(a1?: ?Array, comparator?: ?Comparator): Array; intersectionWith( - a1?: ?Array, - a2?: ?Array, + a1?: ?$ReadOnlyArray, comparator?: ?Comparator ): Array; intersectionWith( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, comparator?: ?Comparator ): Array; intersectionWith( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - a4?: ?Array, + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + comparator?: ?Comparator + ): Array; + intersectionWith( + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + a4?: ?$ReadOnlyArray, comparator?: ?Comparator ): Array; join(array: Array, separator?: ?string): string; - join(array: void | null, separator?: ?string): ''; - last(array: ?Array): T; + join(array: void | null, separator?: ?string): ""; + last(array: ?$ReadOnlyArray): T; lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; - lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; + lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; nth(array: T[], n?: ?number): T; - nth(array: void | null, n?: ?number): void; + nth(array: void | null, n?: ?number): void; pull(array: Array, ...values?: Array): Array; - pull(array: T, ...values?: Array): T; + pull(array: T, ...values?: Array): T; pullAll(array: Array, values?: ?Array): Array; - pullAll(array: T, values?: ?Array): T; + pullAll(array: T, values?: ?Array): T; pullAllBy( array: Array, values?: ?Array, iteratee?: ?ValueOnlyIteratee ): Array; - pullAllBy( + pullAllBy( array: T, values?: ?Array, iteratee?: ?ValueOnlyIteratee ): T; - pullAllWith(array: T[], values?: ?T[], comparator?: ?Function): T[]; - pullAllWith(array: T, values?: ?Array, comparator?: ?Function): T; + pullAllWith(array: T[], values?: ?(T[]), comparator?: ?Function): T[]; + pullAllWith( + array: T, + values?: ?Array, + comparator?: ?Function + ): T; pullAt(array?: ?Array, ...indexed?: Array): Array; pullAt(array?: ?Array, indexed?: ?Array): Array; remove(array?: ?Array, predicate?: ?Predicate): Array; reverse(array: Array): Array; - reverse(array: T): T; - slice(array?: ?Array, start?: ?number, end?: ?number): Array; + reverse(array: T): T; + slice( + array?: ?$ReadOnlyArray, + start?: ?number, + end?: ?number + ): Array; sortedIndex(array: Array, value: T): number; - sortedIndex(array: void | null, value: ?T): 0; + sortedIndex(array: void | null, value: ?T): 0; sortedIndexBy( array: Array, value?: ?T, iteratee?: ?ValueOnlyIteratee ): number; sortedIndexBy( - array: void | null, + array: void | null, value?: ?T, iteratee?: ?ValueOnlyIteratee ): 0; sortedIndexOf(array: Array, value: T): number; - sortedIndexOf(array: void | null, value?: ?T): -1; + sortedIndexOf(array: void | null, value?: ?T): -1; sortedLastIndex(array: Array, value: T): number; - sortedLastIndex(array: void | null, value?: ?T): 0; + sortedLastIndex(array: void | null, value?: ?T): 0; sortedLastIndexBy( array: Array, value: T, iteratee?: ValueOnlyIteratee ): number; sortedLastIndexBy( - array: void | null, + array: void | null, value?: ?T, iteratee?: ?ValueOnlyIteratee ): 0; sortedLastIndexOf(array: Array, value: T): number; - sortedLastIndexOf(array: void | null, value?: ?T): -1; + sortedLastIndexOf(array: void | null, value?: ?T): -1; sortedUniq(array?: ?Array): Array; - sortedUniqBy(array?: ?Array, iteratee?: ?(value: T) => mixed): Array; + sortedUniqBy( + array?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; tail(array?: ?Array): Array; take(array?: ?Array, n?: ?number): Array; takeRight(array?: ?Array, n?: ?number): Array; takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; takeWhile(array?: ?Array, predicate?: ?Predicate): Array; - union(...arrays?: Array>): Array; + union(...arrays?: Array<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works - unionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; unionBy( - a1?: ?Array, - a2: Array, + a1?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): Array; + unionBy( + a1?: ?$ReadOnlyArray, + a2: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; unionBy( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; unionBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; //Workaround until (...parameter: T, parameter2: U) works unionWith(a1?: ?Array, comparator?: ?Comparator): Array; unionWith( - a1: Array, - a2: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, comparator?: Comparator ): Array; unionWith( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, comparator?: Comparator ): Array; unionWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, comparator?: Comparator ): Array; uniq(array?: ?Array): Array; @@ -413,7 +443,7 @@ declare module "lodash" { uniqWith(array?: ?Array, comparator?: ?Comparator): Array; unzip(array?: ?Array): Array; unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; - without(array?: ?Array, ...values?: Array): Array; + without(array?: ?$ReadOnlyArray, ...values?: Array): Array; xor(...array: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works xorBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; @@ -455,7 +485,7 @@ declare module "lodash" { a4: Array, comparator?: Comparator ): Array; - zip(a1?: ?A[], a2?: ?B[]): Array<[A, B]>; + zip(a1?: ?(A[]), a2?: ?(B[])): Array<[A, B]>; zip(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>; zip(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>; zip( @@ -467,9 +497,9 @@ declare module "lodash" { ): Array<[A, B, C, D, E]>; zipObject(props: Array, values?: ?Array): { [key: K]: V }; - zipObject(props: void | null, values?: ?Array): {}; + zipObject(props: void | null, values?: ?Array): {}; zipObjectDeep(props: any[], values?: ?any): Object; - zipObjectDeep(props: void | null, values?: ?any): {}; + zipObjectDeep(props: void | null, values?: ?any): {}; zipWith(a1?: ?Array): Array<[A]>; zipWith(a1: Array, iteratee: (A) => T): Array; @@ -509,20 +539,20 @@ declare module "lodash" { // Collection countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; - countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; + countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; // alias of _.forEach - each(array: Array, iteratee?: ?Iteratee): Array; - each(array: T, iteratee?: ?Iteratee): T; + each(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + each(array: T, iteratee?: ?Iteratee): T; each(object: T, iteratee?: ?OIteratee): T; // alias of _.forEachRight - eachRight(array: Array, iteratee?: ?Iteratee): Array; - eachRight(array: T, iteratee?: ?Iteratee): T; + eachRight(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + eachRight(array: T, iteratee?: ?Iteratee): T; eachRight(object: T, iteratee?: OIteratee): T; every(array?: ?$ReadOnlyArray, iteratee?: ?Iteratee): boolean; every(object: T, iteratee?: OIteratee): boolean; - filter(array?: ?Array, predicate?: ?Predicate): Array; - filter( + filter(array?: ?$ReadOnlyArray, predicate?: ?Predicate): Array; + filter( object: T, predicate?: OPredicate ): Array; @@ -532,11 +562,11 @@ declare module "lodash" { fromIndex?: ?number ): T | void; find( - array: void | null, + array: void | null, predicate?: ?Predicate, fromIndex?: ?number ): void; - find( + find( object: T, predicate?: OPredicate, fromIndex?: number @@ -546,7 +576,7 @@ declare module "lodash" { predicate?: ?Predicate, fromIndex?: ?number ): T | void; - findLast( + findLast( object: T, predicate?: ?OPredicate ): V; @@ -576,30 +606,34 @@ declare module "lodash" { iteratee?: OFlatMapIteratee, depth?: number ): Array; - forEach(array: Array, iteratee?: ?Iteratee): Array; - forEach(array: T, iteratee?: ?Iteratee): T; + forEach(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + forEach(array: T, iteratee?: ?Iteratee): T; forEach(object: T, iteratee?: ?OIteratee): T; - forEachRight(array: Array, iteratee?: ?Iteratee): Array; - forEachRight(array: T, iteratee?: ?Iteratee): T; + forEachRight( + array: $ReadOnlyArray, + iteratee?: ?Iteratee + ): Array; + forEachRight(array: T, iteratee?: ?Iteratee): T; forEachRight(object: T, iteratee?: ?OIteratee): T; groupBy( array: $ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): { [key: V]: Array }; - groupBy( - array: void | null, - iteratee?: ?ValueOnlyIteratee - ): {}; - groupBy( + groupBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; + groupBy( object: T, iteratee?: ValueOnlyIteratee ): { [key: V]: Array }; - includes(array: Array, value: T, fromIndex?: ?number): boolean; - includes(array: void | null, value?: ?T, fromIndex?: ?number): false; + includes( + array: $ReadOnlyArray, + value: T, + fromIndex?: ?number + ): boolean; + includes(array: void | null, value?: ?T, fromIndex?: ?number): false; includes(object: T, value: any, fromIndex?: number): boolean; includes(str: string, value: string, fromIndex?: number): boolean; invokeMap( - array?: ?Array, + array?: ?$ReadOnlyArray, path?: ?((value: T) => Array | string) | Array | string, ...args?: Array ): Array; @@ -611,20 +645,17 @@ declare module "lodash" { keyBy( array: $ReadOnlyArray, iteratee?: ?ValueOnlyIteratee - ): { [key: V]: ?T }; - keyBy( - array: void | null, - iteratee?: ?ValueOnlyIteratee<*> - ): {}; + ): { [key: V]: T }; + keyBy(array: void | null, iteratee?: ?ValueOnlyIteratee<*>): {}; keyBy( object: T, iteratee?: ?ValueOnlyIteratee - ): { [key: V]: ?A }; + ): { [key: V]: A }; map(array?: ?Array, iteratee?: ?MapIterator): Array; map( array: ?$ReadOnlyArray, iteratee?: ReadOnlyMapIterator - ): Array, + ): Array; map( object: ?T, iteratee?: OMapIterator @@ -652,12 +683,12 @@ declare module "lodash" { array?: ?Array, predicate?: ?Predicate ): [Array, Array]; - partition( + partition( object: T, predicate?: OPredicate ): [Array, Array]; reduce( - array: Array, + array: $ReadOnlyArray, iteratee?: ( accumulator: U, value: T, @@ -667,7 +698,7 @@ declare module "lodash" { accumulator?: U ): U; reduce( - array: void | null, + array: void | null, iteratee?: ?( accumulator: U, value: T, @@ -675,14 +706,14 @@ declare module "lodash" { array: ?Array ) => U, accumulator?: ?U - ): void | null; + ): void | null; reduce( object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U ): U; reduceRight( - array: void | null, + array: void | null, iteratee?: ?( accumulator: U, value: T, @@ -690,9 +721,9 @@ declare module "lodash" { array: ?Array ) => U, accumulator?: ?U - ): void | null; + ): void | null; reduceRight( - array: Array, + array: $ReadOnlyArray, iteratee?: ?( accumulator: U, value: T, @@ -706,8 +737,8 @@ declare module "lodash" { iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U, accumulator?: ?U ): U; - reject(array: ?Array, predicate?: Predicate): Array; - reject( + reject(array: ?$ReadOnlyArray, predicate?: Predicate): Array; + reject( object?: ?T, predicate?: ?OPredicate ): Array; @@ -717,10 +748,10 @@ declare module "lodash" { sampleSize(object: T, n?: number): Array; shuffle(array: ?Array): Array; shuffle(object: T): Array; - size(collection: Array | Object | string): number; + size(collection: $ReadOnlyArray | Object | string): number; some(array: ?$ReadOnlyArray, predicate?: Predicate): boolean; - some(array: void | null, predicate?: ?Predicate): false; - some( + some(array: void | null, predicate?: ?Predicate): false; + some( object?: ?T, predicate?: OPredicate ): boolean; @@ -796,15 +827,15 @@ declare module "lodash" { eq(value: any, other: any): boolean; gt(value: any, other: any): boolean; gte(value: any, other: any): boolean; - isArguments(value: void | null): false; + isArguments(value: void | null): false; isArguments(value: any): boolean; isArray(value: Array): true; isArray(value: any): false; isArrayBuffer(value: ArrayBuffer): true; isArrayBuffer(value: any): false; - isArrayLike(value: Array | string | {length: number}): true; + isArrayLike(value: Array | string | { length: number }): true; isArrayLike(value: any): false; - isArrayLikeObject(value: {length: number} | Array): true; + isArrayLikeObject(value: { length: number } | Array): true; isArrayLikeObject(value: any): false; isBoolean(value: boolean): true; isBoolean(value: any): false; @@ -814,7 +845,7 @@ declare module "lodash" { isDate(value: any): false; isElement(value: Element): true; isElement(value: any): false; - isEmpty(value: void | null | '' | {} | [] | number | boolean): true; + isEmpty(value: void | null | "" | {} | [] | number | boolean): true; isEmpty(value: any): boolean; isEqual(value: any, other: any): boolean; isEqualWith( @@ -837,7 +868,7 @@ declare module "lodash" { isFunction(value: any): false; isInteger(value: number): boolean; isInteger(value: any): false; - isLength(value: void | null): false; + isLength(value: void | null): false; isLength(value: any): boolean; isMap(value: Map): true; isMap(value: any): false; @@ -853,11 +884,11 @@ declare module "lodash" { source: U ) => boolean | void ): boolean; - isNaN(value: Function | string | void | null | Object): false; isNaN(value: number): boolean; - isNative(value: number | string | void | null | Object): false; + isNaN(value: any): false; + isNative(value: number | string | void | null | Object): false; isNative(value: any): boolean; - isNil(value: void | null): true; + isNil(value: void | null): true; isNil(value: any): false; isNull(value: null): true; isNull(value: any): false; @@ -865,7 +896,7 @@ declare module "lodash" { isNumber(value: any): false; isObject(value: Object): true; isObject(value: any): false; - isObjectLike(value: void | null): false; + isObjectLike(value: void | null): false; isObjectLike(value: any): boolean; isPlainObject(value: Object): true; isPlainObject(value: any): false; @@ -876,9 +907,7 @@ declare module "lodash" { isSet(value: Set): true; isSet(value: any): false; isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; + isString(value: any): false; isSymbol(value: Symbol): true; isSymbol(value: any): false; isTypedArray(value: $TypedArray): true; @@ -892,18 +921,18 @@ declare module "lodash" { lt(value: any, other: any): boolean; lte(value: any, other: any): boolean; toArray(value: any): Array; - toFinite(value: void | null): 0; + toFinite(value: void | null): 0; toFinite(value: any): number; - toInteger(value: void | null): 0; + toInteger(value: void | null): 0; toInteger(value: any): number; - toLength(value: void | null): 0; + toLength(value: void | null): 0; toLength(value: any): number; - toNumber(value: void | null): 0; + toNumber(value: void | null): 0; toNumber(value: any): number; toPlainObject(value: any): Object; - toSafeInteger(value: void | null): 0; + toSafeInteger(value: void | null): 0; toSafeInteger(value: any): number; - toString(value: void | null): ''; + toString(value: void | null): ""; toString(value: any): string; // Math @@ -912,11 +941,11 @@ declare module "lodash" { divide(dividend: number, divisor: number): number; floor(number: number, precision?: number): number; max(array: ?Array): T; - maxBy(array: ?Array, iteratee?: Iteratee): T; + maxBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; mean(array: Array<*>): number; meanBy(array: Array, iteratee?: Iteratee): number; min(array: ?Array): T; - minBy(array: ?Array, iteratee?: Iteratee): T; + minBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; multiply(multiplier: number, multiplicand: number): number; round(number: number, precision?: number): number; subtract(minuend: number, subtrahend: number): number; @@ -930,7 +959,7 @@ declare module "lodash" { random(lower?: number, upper?: number, floating?: boolean): number; // Object - assign(object?: ?Object, ...sources?: Array): Object; + assign(object?: ?Object, ...sources?: Array): Object; assignIn(): {}; assignIn(a: A, b: B): A & B; assignIn(a: A, b: B, c: C): A & B & C; @@ -1041,9 +1070,9 @@ declare module "lodash" { at(object?: ?Object, ...paths: Array): Array; at(object?: ?Object, paths: Array): Array; create(prototype: T, properties: Object): $Supertype; - create(prototype: any, properties: void | null): {}; - defaults(object?: ?Object, ...sources?: Array): Object; - defaultsDeep(object?: ?Object, ...sources?: Array): Object; + create(prototype: any, properties: void | null): {}; + defaults(object?: ?Object, ...sources?: Array): Object; + defaultsDeep(object?: ?Object, ...sources?: Array): Object; // alias for _.toPairs entries(object?: ?Object): Array<[string, any]>; // alias for _.toPairsIn @@ -1104,47 +1133,47 @@ declare module "lodash" { source: A | B | C | D ) => any | void ): Object; - findKey( + findKey( object: T, predicate?: ?OPredicate ): string | void; - findKey( - object: void | null, + findKey( + object: void | null, predicate?: ?OPredicate ): void; - findLastKey( + findLastKey( object: T, predicate?: ?OPredicate ): string | void; - findLastKey( - object: void | null, + findLastKey( + object: void | null, predicate?: ?OPredicate ): void; forIn(object: Object, iteratee?: ?OIteratee<*>): Object; - forIn(object: void | null, iteratee?: ?OIteratee<*>): null; + forIn(object: void | null, iteratee?: ?OIteratee<*>): null; forInRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; + forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; forOwn(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; forOwnRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; functions(object?: ?Object): Array; functionsIn(object?: ?Object): Array; get( - object?: ?Object | ?Array, - path?: ?Array | string, + object?: ?Object | ?$ReadOnlyArray | void | null, + path?: ?$ReadOnlyArray | string | number, defaultValue?: any ): any; has(object: Object, path: Array | string): boolean; - has(object: Object, path: void | null): false; + has(object: Object, path: void | null): false; has(object: void | null, path?: ?Array | ?string): false; hasIn(object: Object, path: Array | string): boolean; - hasIn(object: Object, path: void | null): false; + hasIn(object: Object, path: void | null): false; hasIn(object: void | null, path?: ?Array | ?string): false; invert(object: Object, multiVal?: ?boolean): Object; - invert(object: void | null, multiVal?: ?boolean): {}; + invert(object: void | null, multiVal?: ?boolean): {}; invertBy(object: Object, iteratee?: ?Function): Object; - invertBy(object: void | null, iteratee?: ?Function): {}; + invertBy(object: void | null, iteratee?: ?Function): {}; invoke( object?: ?Object, path?: ?Array | string, @@ -1154,9 +1183,9 @@ declare module "lodash" { keys(object?: ?Object): Array; keysIn(object?: ?Object): Array; mapKeys(object: Object, iteratee?: ?OIteratee<*>): Object; - mapKeys(object: void | null, iteratee?: ?OIteratee<*>): {}; + mapKeys(object: void | null, iteratee?: ?OIteratee<*>): {}; mapValues(object: Object, iteratee?: ?OIteratee<*>): Object; - mapValues(object: void | null, iteratee?: ?OIteratee<*>): {}; + mapValues(object: void | null, iteratee?: ?OIteratee<*>): {}; merge(object?: ?Object, ...sources?: Array): Object; mergeWith(): {}; mergeWith( @@ -1210,41 +1239,36 @@ declare module "lodash" { ): Object; omit(object?: ?Object, ...props: Array): Object; omit(object?: ?Object, props: Array): Object; - omitBy( + omitBy( object: T, predicate?: ?OPredicate ): Object; - omitBy( - object: T, - predicate?: ?OPredicate - ): {}; + omitBy(object: void | null, predicate?: ?OPredicate): {}; pick(object?: ?Object, ...props: Array): Object; pick(object?: ?Object, props: Array): Object; - pickBy( + pickBy( object: T, predicate?: ?OPredicate ): Object; - pickBy( - object: T, - predicate?: ?OPredicate - ): {}; + pickBy(object: void | null, predicate?: ?OPredicate): {}; result( object?: ?Object, path?: ?Array | string, defaultValue?: any ): any; set(object: Object, path?: ?Array | string, value: any): Object; - set( + set( object: T, path?: ?Array | string, - value?: ?any): T; + value?: ?any + ): T; setWith( object: T, path?: ?Array | string, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any ): Object; - setWith( + setWith( object: T, path?: ?Array | string, value?: ?any, @@ -1258,26 +1282,27 @@ declare module "lodash" { accumulator?: any ): any; transform( - collection: void | null, + collection: void | null, iteratee?: ?OIteratee<*>, accumulator?: ?any ): {}; unset(object: Object, path?: ?Array | ?string): boolean; - unset(object: void | null, path?: ?Array | ?string): true; + unset(object: void | null, path?: ?Array | ?string): true; update(object: Object, path: string[] | string, updater: Function): Object; - update( + update( object: T, - path?: ?string[] | ?string, - updater?: ?Function): T; + path?: ?(string[]) | ?string, + updater?: ?Function + ): T; updateWith( object: Object, - path?: ?string[] | ?string, + path?: ?(string[]) | ?string, updater?: ?Function, customizer?: ?Function ): Object; - updateWith( + updateWith( object: T, - path?: ?string[] | ?string, + path?: ?(string[]) | ?string, updater?: ?Function, customizer?: ?Function ): T; @@ -1294,75 +1319,79 @@ declare module "lodash" { // String camelCase(string: string): string; - camelCase(string: void | null): ''; + camelCase(string: void | null): ""; capitalize(string: string): string; - capitalize(string: void | null): ''; + capitalize(string: void | null): ""; deburr(string: string): string; - deburr(string: void | null): ''; + deburr(string: void | null): ""; endsWith(string: string, target?: string, position?: ?number): boolean; - endsWith(string: void | null, target?: ?string, position?: ?number): false; + endsWith(string: void | null, target?: ?string, position?: ?number): false; escape(string: string): string; - escape(string: void | null): ''; + escape(string: void | null): ""; escapeRegExp(string: string): string; - escapeRegExp(string: void | null): ''; + escapeRegExp(string: void | null): ""; kebabCase(string: string): string; - kebabCase(string: void | null): ''; + kebabCase(string: void | null): ""; lowerCase(string: string): string; - lowerCase(string: void | null): ''; + lowerCase(string: void | null): ""; lowerFirst(string: string): string; - lowerFirst(string: void | null): ''; + lowerFirst(string: void | null): ""; pad(string?: ?string, length?: ?number, chars?: ?string): string; padEnd(string?: ?string, length?: ?number, chars?: ?string): string; padStart(string?: ?string, length?: ?number, chars?: ?string): string; parseInt(string: string, radix?: ?number): number; repeat(string: string, n?: ?number): string; - repeat(string: void | null, n?: ?number): ''; + repeat(string: void | null, n?: ?number): ""; replace( string: string, pattern: RegExp | string, replacement: ((string: string) => string) | string ): string; replace( - string: void | null, + string: void | null, pattern?: ?RegExp | ?string, replacement: ?((string: string) => string) | ?string - ): ''; + ): ""; snakeCase(string: string): string; - snakeCase(string: void | null): ''; + snakeCase(string: void | null): ""; split( string?: ?string, separator?: ?RegExp | ?string, limit?: ?number ): Array; startCase(string: string): string; - startCase(string: void | null): ''; + startCase(string: void | null): ""; startsWith(string: string, target?: string, position?: number): boolean; - startsWith(string: void | null, target?: ?string, position?: ?number): false; + startsWith( + string: void | null, + target?: ?string, + position?: ?number + ): false; template(string?: ?string, options?: ?TemplateSettings): Function; toLower(string: string): string; - toLower(string: void | null): ''; + toLower(string: void | null): ""; toUpper(string: string): string; - toUpper(string: void | null): ''; + toUpper(string: void | null): ""; trim(string: string, chars?: string): string; - trim(string: void | null, chars?: ?string): ''; + trim(string: void | null, chars?: ?string): ""; trimEnd(string: string, chars?: ?string): string; - trimEnd(string: void | null, chars?: ?string): ''; + trimEnd(string: void | null, chars?: ?string): ""; trimStart(string: string, chars?: ?string): string; - trimStart(string: void | null, chars?: ?string): ''; + trimStart(string: void | null, chars?: ?string): ""; truncate(string: string, options?: TruncateOptions): string; - truncate(string: void | null, options?: ?TruncateOptions): ''; + truncate(string: void | null, options?: ?TruncateOptions): ""; unescape(string: string): string; - unescape(string: void | null): ''; + unescape(string: void | null): ""; upperCase(string: string): string; - upperCase(string: void | null): ''; + upperCase(string: void | null): ""; upperFirst(string: string): string; - upperFirst(string: void | null): ''; + upperFirst(string: void | null): ""; words(string?: ?string, pattern?: ?RegExp | ?string): Array; // Util attempt(func: Function, ...args: Array): any; bindAll(object: Object, methodNames?: ?Array): Object; - bindAll(object: T, methodNames?: ?Array): T; + bindAll(object: T, methodNames?: ?Array): T; bindAll(object: Object, ...methodNames: Array): Object; cond(pairs?: ?NestedArray): Function; conforms(source?: ?Object): Function; @@ -1374,8 +1403,8 @@ declare module "lodash" { // NaN is a number instead of its own type, otherwise it would behave like null/void defaultTo(value: T1, defaultValue: T2): T1 | T2; defaultTo(value: T1, defaultValue: T2): T2; - flow: ($ComposeReverse & (funcs: Array) => Function); - flowRight: ($Compose & (funcs: Array) => Function); + flow: $ComposeReverse & ((funcs: Array) => Function); + flowRight: $Compose & ((funcs: Array) => Function); identity(value: T): T; iteratee(func?: any): Function; matches(source?: ?Object): Function; @@ -1409,7 +1438,7 @@ declare module "lodash" { stubObject(): {}; stubString(): ""; stubTrue(): true; - times(n?: ?number, ...rest?: Array): Array; + times(n?: ?number, ...rest?: Array): Array; times(n: number, iteratee: (i: number) => T): Array; toPath(value: any): Array; uniqueId(prefix?: ?string): string; @@ -1646,14 +1675,18 @@ declare module "lodash/fp" { array: $ReadOnlyArray ): T[]; differenceWith( - values: $ReadOnlyArray - ): ((comparator: Comparator) => (array: $ReadOnlyArray) => T[]) & - ((comparator: Comparator, array: $ReadOnlyArray) => T[]); - differenceWith( - values: $ReadOnlyArray, comparator: Comparator - ): (array: $ReadOnlyArray) => T[]; - differenceWith(values: $ReadOnlyArray, comparator: Comparator, array: $ReadOnlyArray): T[]; + ): ((first: $ReadOnly) => (second: $ReadOnly) => T[]) & + ((first: $ReadOnly, second: $ReadOnly) => T[]); + differenceWith( + comparator: Comparator, + first: $ReadOnly + ): (second: $ReadOnly) => T[]; + differenceWith( + comparator: Comparator, + first: $ReadOnly, + second: $ReadOnly + ): T[]; drop(n: number): (array: Array) => Array; drop(n: number, array: Array): Array; dropLast(n: number): (array: Array) => Array; @@ -1723,14 +1756,14 @@ declare module "lodash/fp" { array: $ReadOnlyArray ): number; // alias of _.head - first(array: Array): T; + first(array: $ReadOnlyArray): T; flatten(array: Array | X>): Array; unnest(array: Array | X>): Array; flattenDeep(array: any[]): Array; flattenDepth(depth: number): (array: any[]) => any[]; flattenDepth(depth: number, array: any[]): any[]; fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; - head(array: Array): T; + head(array: $ReadOnlyArray): T; indexOf(value: T): (array: Array) => number; indexOf(value: T, array: Array): number; indexOfFrom( @@ -1854,10 +1887,7 @@ declare module "lodash/fp" { sortedLastIndexOf(value: T): (array: Array) => number; sortedLastIndexOf(value: T, array: Array): number; sortedUniq(array: Array): Array; - sortedUniqBy( - iteratee: (value: T) => mixed - ): (array: Array) => Array; - sortedUniqBy(iteratee: (value: T) => mixed, array: Array): Array; + sortedUniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; tail(array: Array): Array; take(n: number): (array: Array) => Array; take(n: number, array: Array): Array; @@ -1994,18 +2024,18 @@ declare module "lodash/fp" { // alias of _.forEach each( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; each( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; // alias of _.forEachRight eachRight( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; eachRight( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; every( iteratee: Iteratee | OIteratee @@ -2023,10 +2053,10 @@ declare module "lodash/fp" { ): boolean; filter( predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; filter( predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; find( predicate: Predicate | OPredicate @@ -2109,17 +2139,17 @@ declare module "lodash/fp" { ): Array; forEach( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; forEach( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; forEachRight( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; forEachRight( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; groupBy( iteratee: ValueOnlyIteratee @@ -2194,10 +2224,10 @@ declare module "lodash/fp" { ): { [key: V]: T }; map( iteratee: MapIterator | OMapIterator - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; map( iteratee: MapIterator | OMapIterator, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; map(iteratee: (char: string) => any): (str: string) => string; map(iteratee: (char: string) => any, str: string): string; @@ -2274,7 +2304,7 @@ declare module "lodash/fp" { ): (collection: Array | { [id: any]: T }) => Array; sampleSize(n: number, collection: Array | { [id: any]: T }): Array; shuffle(collection: Array | { [id: any]: T }): Array; - size(collection: Array | Object | string): number; + size(collection: $ReadOnlyArray | Object | string): number; some( predicate: Predicate | OPredicate ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; @@ -2290,15 +2320,17 @@ declare module "lodash/fp" { collection: $ReadOnlyArray | { [id: any]: T } ): boolean; sortBy( - iteratees: | $ReadOnlyArray | OIteratee> - | Iteratee - | OIteratee + iteratees: + | $ReadOnlyArray | OIteratee> + | Iteratee + | OIteratee ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; sortBy( - iteratees: | $ReadOnlyArray | OIteratee> - | Iteratee - | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T }, + iteratees: + | $ReadOnlyArray | OIteratee> + | Iteratee + | OIteratee, + collection: $ReadOnlyArray | { [id: any]: T } ): Array; // Date @@ -2505,9 +2537,7 @@ declare module "lodash/fp" { isSafeInteger(value: any): boolean; isSet(value: any): boolean; isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; + isString(value: any): false; isSymbol(value: any): boolean; isTypedArray(value: any): boolean; isUndefined(value: any): boolean; @@ -2767,8 +2797,13 @@ declare module "lodash/fp" { forOwnRight(iteratee: OIteratee<*>, object: Object): Object; functions(object: Object): Array; functionsIn(object: Object): Array; - get(path: Array | string): (object: Object | Array) => any; - get(path: Array | string, object: Object | Array): any; + get( + path: $ReadOnlyArray | string | number + ): (object: Object | $ReadOnlyArray | void | null) => any; + get( + path: $ReadOnlyArray | string | number, + object: Object | $ReadOnlyArray | void | null + ): any; prop(path: Array | string): (object: Object | Array) => any; prop(path: Array | string, object: Object | Array): any; path(path: Array | string): (object: Object | Array) => any; @@ -2778,15 +2813,18 @@ declare module "lodash/fp" { ): (( path: Array | string ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); + (( + path: Array | string, + object: Object | $ReadOnlyArray | void | null + ) => any); getOr( defaultValue: any, path: Array | string - ): (object: Object | Array) => any; + ): (object: Object | $ReadOnlyArray | void | null) => any; getOr( defaultValue: any, path: Array | string, - object: Object | Array + object: Object | $ReadOnlyArray | void | null ): any; propOr( defaultValue: any @@ -3131,10 +3169,10 @@ declare module "lodash/fp" { defaultTo(defaultValue: T2, value: T1): T1 | T2; defaultTo(defaultValue: T2): (value: T1) => T2; defaultTo(defaultValue: T2, value: T1): T2; - flow: ($ComposeReverse & (funcs: Array) => Function); - pipe: ($ComposeReverse & (funcs: Array) => Function); - flowRight: ($Compose & (funcs: Array) => Function); - compose: ($Compose & (funcs: Array) => Function); + flow: $ComposeReverse & ((funcs: Array) => Function); + pipe: $ComposeReverse & ((funcs: Array) => Function); + flowRight: $Compose & ((funcs: Array) => Function); + compose: $Compose & ((funcs: Array) => Function); compose(funcs: Array): Function; identity(value: T): T; iteratee(func: any): Function; @@ -4475,7 +4513,10 @@ declare module "lodash/fp/differenceBy" { } declare module "lodash/fp/differenceWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "differenceWith">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "differenceWith" + >; } declare module "lodash/fp/drop" { @@ -4491,7 +4532,10 @@ declare module "lodash/fp/dropRight" { } declare module "lodash/fp/dropRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropRightWhile">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "dropRightWhile" + >; } declare module "lodash/fp/dropWhile" { @@ -4519,7 +4563,10 @@ declare module "lodash/fp/findLastIndex" { } declare module "lodash/fp/findLastIndexFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastIndexFrom">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "findLastIndexFrom" + >; } declare module "lodash/fp/first" { @@ -4571,11 +4618,17 @@ declare module "lodash/fp/intersection" { } declare module "lodash/fp/intersectionBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "intersectionBy">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "intersectionBy" + >; } declare module "lodash/fp/intersectionWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "intersectionWith">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "intersectionWith" + >; } declare module "lodash/fp/join" { @@ -4591,7 +4644,10 @@ declare module "lodash/fp/lastIndexOf" { } declare module "lodash/fp/lastIndexOfFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lastIndexOfFrom">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "lastIndexOfFrom" + >; } declare module "lodash/fp/nth" { @@ -4643,15 +4699,24 @@ declare module "lodash/fp/sortedIndexOf" { } declare module "lodash/fp/sortedLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedLastIndex">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndex" + >; } declare module "lodash/fp/sortedLastIndexBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedLastIndexBy">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndexBy" + >; } declare module "lodash/fp/sortedLastIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedLastIndexOf">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndexOf" + >; } declare module "lodash/fp/sortedUniq" { @@ -4679,7 +4744,10 @@ declare module "lodash/fp/takeLast" { } declare module "lodash/fp/takeRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeRightWhile">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "takeRightWhile" + >; } declare module "lodash/fp/takeLastWhile" { @@ -4731,7 +4799,10 @@ declare module "lodash/fp/xor" { } declare module "lodash/fp/symmetricDifference" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "symmetricDifference">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifference" + >; } declare module "lodash/fp/xorBy" { @@ -4739,7 +4810,10 @@ declare module "lodash/fp/xorBy" { } declare module "lodash/fp/symmetricDifferenceBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "symmetricDifferenceBy">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifferenceBy" + >; } declare module "lodash/fp/xorWith" { @@ -4747,7 +4821,10 @@ declare module "lodash/fp/xorWith" { } declare module "lodash/fp/symmetricDifferenceWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "symmetricDifferenceWith">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifferenceWith" + >; } declare module "lodash/fp/zip" { @@ -5119,7 +5196,10 @@ declare module "lodash/fp/isArrayLike" { } declare module "lodash/fp/isArrayLikeObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArrayLikeObject">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "isArrayLikeObject" + >; } declare module "lodash/fp/isBoolean" { @@ -5399,7 +5479,10 @@ declare module "lodash/fp/assignWith" { } declare module "lodash/fp/assignInAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignInAllWith">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "assignInAllWith" + >; } declare module "lodash/fp/extendAllWith" { @@ -5439,7 +5522,10 @@ declare module "lodash/fp/defaultsDeep" { } declare module "lodash/fp/defaultsDeepAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultsDeepAll">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "defaultsDeepAll" + >; } declare module "lodash/fp/entries" { @@ -5787,7 +5873,10 @@ declare module "lodash/fp/trimStart" { } declare module "lodash/fp/trimCharsStart" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimCharsStart">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "trimCharsStart" + >; } declare module "lodash/fp/truncate" { @@ -5863,7 +5952,10 @@ declare module "lodash/fp/matches" { } declare module "lodash/fp/matchesProperty" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "matchesProperty">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "matchesProperty" + >; } declare module "lodash/fp/propEq" { @@ -5943,7 +6035,10 @@ declare module "lodash/fp/rangeRight" { } declare module "lodash/fp/rangeStepRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rangeStepRight">; + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "rangeStepRight" + >; } declare module "lodash/fp/runInContext" { diff --git a/flow-typed/npm/outline-icons_vx.x.x.js b/flow-typed/npm/outline-icons_vx.x.x.js index 453c1cbf..e6911d44 100644 --- a/flow-typed/npm/outline-icons_vx.x.x.js +++ b/flow-typed/npm/outline-icons_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b9fcff5cf9372b696aa69b214d896dbe -// flow-typed version: <>/outline-icons_v^1.0.2/flow_v0.71.0 +// flow-typed signature: 2cdcd7d87c53bb68b860d9c0fcc5ecd5 +// flow-typed version: <>/outline-icons_v^1.3.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,6 +26,10 @@ declare module 'outline-icons/lib/components/BackIcon' { declare module.exports: any; } +declare module 'outline-icons/lib/components/BillingIcon' { + declare module.exports: any; +} + declare module 'outline-icons/lib/components/BlockQuoteIcon' { declare module.exports: any; } @@ -66,6 +70,10 @@ declare module 'outline-icons/lib/components/EditIcon' { declare module.exports: any; } +declare module 'outline-icons/lib/components/ExpandedIcon' { + declare module.exports: any; +} + declare module 'outline-icons/lib/components/GoToIcon' { declare module.exports: any; } @@ -130,6 +138,10 @@ declare module 'outline-icons/lib/components/OrderedListIcon' { declare module.exports: any; } +declare module 'outline-icons/lib/components/PadlockIcon' { + declare module.exports: any; +} + declare module 'outline-icons/lib/components/PinIcon' { declare module.exports: any; } @@ -162,6 +174,10 @@ declare module 'outline-icons/lib/components/TableIcon' { declare module.exports: any; } +declare module 'outline-icons/lib/components/TeamIcon' { + declare module.exports: any; +} + declare module 'outline-icons/lib/components/TodoListIcon' { declare module.exports: any; } @@ -182,6 +198,9 @@ declare module 'outline-icons/lib/index' { declare module 'outline-icons/lib/components/BackIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/BackIcon'>; } +declare module 'outline-icons/lib/components/BillingIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/BillingIcon'>; +} declare module 'outline-icons/lib/components/BlockQuoteIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/BlockQuoteIcon'>; } @@ -212,6 +231,9 @@ declare module 'outline-icons/lib/components/DocumentIcon.js' { declare module 'outline-icons/lib/components/EditIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/EditIcon'>; } +declare module 'outline-icons/lib/components/ExpandedIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/ExpandedIcon'>; +} declare module 'outline-icons/lib/components/GoToIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/GoToIcon'>; } @@ -260,6 +282,9 @@ declare module 'outline-icons/lib/components/OpenIcon.js' { declare module 'outline-icons/lib/components/OrderedListIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/OrderedListIcon'>; } +declare module 'outline-icons/lib/components/PadlockIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/PadlockIcon'>; +} declare module 'outline-icons/lib/components/PinIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/PinIcon'>; } @@ -284,6 +309,9 @@ declare module 'outline-icons/lib/components/StrikethroughIcon.js' { declare module 'outline-icons/lib/components/TableIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/TableIcon'>; } +declare module 'outline-icons/lib/components/TeamIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/TeamIcon'>; +} declare module 'outline-icons/lib/components/TodoListIcon.js' { declare module.exports: $Exports<'outline-icons/lib/components/TodoListIcon'>; } diff --git a/flow-typed/npm/pg_v6.x.x.js b/flow-typed/npm/pg_v6.x.x.js new file mode 100644 index 00000000..47458a5f --- /dev/null +++ b/flow-typed/npm/pg_v6.x.x.js @@ -0,0 +1,299 @@ +// flow-typed signature: 054aac13189fe3a826a6d6c3a5952f6c +// flow-typed version: 14df781cee/pg_v6.x.x/flow_>=v0.28.x + +declare module pg { + // Note: Currently There are some issues in Function overloading. + // https://github.com/facebook/flow/issues/2423 + // So i temporarily remove the + // `((event: string, listener: Function) => EventEmitter );` + // from all overloading for EventEmitter.on(). + + // `any` types exised in this file, cause of currently `mixed` did not work well + // in Function Overloading. + + // `Function` types exised in this file, cause of they come from another + // untyped npm lib. + + /* Cause of > + /* + * PgPoolConfig's properties are passed unchanged to both + * the node-postgres Client constructor and the node-pool constructor + * allowing you to fully configure the behavior of both + * node-pool (https://github.com/coopernurse/node-pool) + */ + declare type PgPoolConfig = { + // node-pool ---------------- + name: string, + create: Function, + destroy: Function, + max: number, + min: number, + refreshIdle: boolean, + idleTimeoutMillis: number, + reapIntervalMillis: number, + returnToHead: boolean, + priorityRange: number, + validate: Function, + validateAsync: Function, + log: Function, + + // node-postgres Client ------ + //database user's name + user: string, + //name of database to connect + database: string, + //database user's password + password: string, + //database port + port: number, + // database host. defaults to localhost + host?: string, + // whether to try SSL/TLS to connect to server. default value: false + ssl?: boolean, + // name displayed in the pg_stat_activity view and included in CSV log entries + // default value: process.env.PGAPPNAME + application_name?: string, + // fallback value for the application_name configuration parameter + // default value: false + fallback_application_name?: string, + + // pg-pool + Client: mixed, + Promise: mixed, + onCreate: Function, + }; + + /* + * Not extends from Client, cause some of Client's functions(ex: connect and end) + * should not be used by PoolClient (which returned from Pool.connect). + */ + declare type PoolClient = { + release(error?: mixed): void, + + query: + ( (query: QueryConfig|string, callback?: QueryCallback) => Query ) & + ( (text: string, values: Array, callback?: QueryCallback) => Query ), + + on: + ((event: 'drain', listener: () => void) => events$EventEmitter )& + ((event: 'error', listener: (err: PG_ERROR) => void) => events$EventEmitter )& + ((event: 'notification', listener: (message: any) => void) => events$EventEmitter )& + ((event: 'notice', listener: (message: any) => void) => events$EventEmitter )& + ((event: 'end', listener: () => void) => events$EventEmitter ), + } + + declare type PoolConnectCallback = (error: PG_ERROR|null, + client: PoolClient|null, done: DoneCallback) => void; + declare type DoneCallback = (error?: mixed) => void; + // https://github.com/facebook/flow/blob/master/lib/node.js#L581 + // on() returns a events$EventEmitter + declare class Pool extends events$EventEmitter { + constructor(options: $Shape, Client?: Class): void; + connect(cb?: PoolConnectCallback): Promise; + take(cb?: PoolConnectCallback): Promise; + end(cb?: DoneCallback): Promise; + + // Note: not like the pg's Client, the Pool.query return a Promise, + // not a Thenable Query which Client returned. + // And there is a flow(<0.34) issue here, when Array, + // the overloading will not work + query: + ( (query: QueryConfig|string, callback?: QueryCallback) => Promise ) & + ( (text: string, values: Array, callback?: QueryCallback) => Promise); + + /* flow issue: https://github.com/facebook/flow/issues/2423 + * When this fixed, this overloading can be used. + */ + /* + on: + ((event: 'connect', listener: (client: PoolClient) => void) => events$EventEmitter )& + ((event: 'acquire', listener: (client: PoolClient) => void) => events$EventEmitter )& + ((event: "error", listener: (err: PG_ERROR) => void) => events$EventEmitter )& + ((event: string, listener: Function) => events$EventEmitter); + */ + } + + // <<------------- copy from 'pg-pool' ------------------------------ + + + // error + declare type PG_ERROR = { + name: string, + length: number, + severity: string, + code: string, + detail: string|void, + hint: string|void, + position: string|void, + internalPosition: string|void, + internalQuery: string|void, + where: string|void, + schema: string|void, + table: string|void, + column: string|void, + dataType: string|void, + constraint: string|void, + file: string|void, + line: string|void, + routine: string|void + }; + + declare type ClientConfig = { + //database user's name + user?: string, + //name of database to connect + database?: string, + //database user's password + password?: string, + //database port + port?: number, + // database host. defaults to localhost + host?: string, + // whether to try SSL/TLS to connect to server. default value: false + ssl?: boolean, + // name displayed in the pg_stat_activity view and included in CSV log entries + // default value: process.env.PGAPPNAME + application_name?: string, + // fallback value for the application_name configuration parameter + // default value: false + fallback_application_name?: string, + } + + declare type Row = { + [key: string]: mixed, + }; + declare type ResultSet = { + command: string, + rowCount: number, + oid: number, + rows: Array, + }; + declare type ResultBuilder = { + command: string, + rowCount: number, + oid: number, + rows: Array, + addRow: (row: Row) => void, + }; + declare type QueryConfig = { + name?: string, + text: string, + values?: any[], + }; + + declare type QueryCallback = (err: PG_ERROR|null, result: ResultSet|void) => void; + declare type ClientConnectCallback = (err: PG_ERROR|null, client: Client|void) => void; + + /* + * lib/query.js + * Query extends from EventEmitter in source code. + * but in Flow there is no multiple extends. + * And in Flow await is a `declare function $await(p: Promise | T): T;` + * seems can not resolve a Thenable's value type directly + * so `Query extends Promise` to make thing temporarily work. + * like this: + * const q = client.query('select * from some'); + * q.on('row',cb); // Event + * const result = await q; // or await + * + * ToDo: should find a better way. + */ + declare class Query extends Promise { + then( + onFulfill?: ?((value: ResultSet) => Promise | U), + onReject?: ?((error: PG_ERROR) => Promise | U) + ): Promise; + // Because then and catch return a Promise, + // .then.catch will lose catch's type information PG_ERROR. + catch( + onReject?: ?((error: PG_ERROR) => Promise | U) + ): Promise; + + on : + ((event: 'row', listener: (row: Row, result: ResultBuilder) => void) => events$EventEmitter )& + ((event: 'end', listener: (result: ResultBuilder) => void) => events$EventEmitter )& + ((event: 'error', listener: (err: PG_ERROR) => void) => events$EventEmitter ); + } + + /* + * lib/client.js + * Note: not extends from EventEmitter, for This Type returned by on(). + * Flow's EventEmitter force return a EventEmitter in on(). + * ToDo: Not sure in on() if return events$EventEmitter or this will be more suitable + * return this will restrict event to given literial when chain on().on().on(). + * return a events$EventEmitter will fallback to raw EventEmitter, when chains + */ + declare class Client { + constructor(config?: string | ClientConfig): void; + connect(callback?: ClientConnectCallback):void; + end(): void; + + escapeLiteral(str: string): string; + escapeIdentifier(str: string): string; + + query: + ( (query: QueryConfig|string, callback?: QueryCallback) => Query ) & + ( (text: string, values: Array, callback?: QueryCallback) => Query ); + + on: + ((event: 'drain', listener: () => void) => this )& + ((event: 'error', listener: (err: PG_ERROR) => void) => this )& + ((event: 'notification', listener: (message: any) => void) => this )& + ((event: 'notice', listener: (message: any) => void) => this )& + ((event: 'end', listener: () => void) => this ); + } + + /* + * require('pg-types') + */ + declare type TypeParserText = (value: string) => any; + declare type TypeParserBinary = (value: Buffer) => any; + declare type Types = { + getTypeParser: + ((oid: number, format?: 'text') => TypeParserText )& + ((oid: number, format: 'binary') => TypeParserBinary ); + + setTypeParser: + ((oid: number, format?: 'text', parseFn: TypeParserText) => void )& + ((oid: number, format: 'binary', parseFn: TypeParserBinary) => void)& + ((oid: number, parseFn: TypeParserText) => void), + } + + /* + * lib/index.js ( class PG) + */ + declare class PG extends events$EventEmitter { + types: Types; + Client: Class; + Pool: Class; + Connection: mixed; //Connection is used internally by the Client. + constructor(client: Client): void; + native: { // native binding, have the same capability like PG + types: Types; + Client: Class; + Pool: Class; + Connection: mixed; + }; + // The end(),connect(),cancel() in PG is abandoned ? + } + + // These class are not exposed by pg. + declare type PoolType = Pool; + declare type PGType = PG; + declare type QueryType = Query; + // module export, keep same structure with index.js + declare module.exports: PG; +} diff --git a/flow-typed/npm/prettier_v1.x.x.js b/flow-typed/npm/prettier_v1.x.x.js index 0c244915..f7e7b6ea 100644 --- a/flow-typed/npm/prettier_v1.x.x.js +++ b/flow-typed/npm/prettier_v1.x.x.js @@ -1,12 +1,12 @@ -// flow-typed signature: 4eed8da2dc730dc33e7710b465eaa44b -// flow-typed version: cc7a557b34/prettier_v1.x.x/flow_>=v0.56.x +// flow-typed signature: 066c92e9ccb5f0711df8d73cbca837d6 +// flow-typed version: 9e32affdbd/prettier_v1.x.x/flow_>=v0.56.x declare module "prettier" { - declare type AST = Object; - declare type Doc = Object; - declare type FastPath = Object; + declare export type AST = Object; + declare export type Doc = Object; + declare export type FastPath = Object; - declare type PrettierParserName = + declare export type PrettierParserName = | "babylon" | "flow" | "typescript" @@ -19,17 +19,17 @@ declare module "prettier" { | "markdown" | "vue"; - declare type PrettierParser = { + declare export type PrettierParser = { [name: PrettierParserName]: (text: string, options?: Object) => AST }; - declare type CustomParser = ( + declare export type CustomParser = ( text: string, parsers: PrettierParser, options: Options ) => AST; - declare type Options = {| + declare export type Options = {| printWidth?: number, tabWidth?: number, useTabs?: boolean, @@ -49,13 +49,13 @@ declare module "prettier" { plugins?: Array |}; - declare type Plugin = { + declare export type Plugin = { languages: SupportLanguage, parsers: { [parserName: string]: Parser }, printers: { [astFormat: string]: Printer } }; - declare type Parser = { + declare export type Parser = { parse: ( text: string, parsers: { [parserName: string]: Parser }, @@ -64,7 +64,7 @@ declare module "prettier" { astFormat: string }; - declare type Printer = { + declare export type Printer = { print: ( path: FastPath, options: Object, @@ -78,7 +78,7 @@ declare module "prettier" { ) => ?Doc }; - declare type CursorOptions = {| + declare export type CursorOptions = {| cursorOffset: number, printWidth?: $PropertyType, tabWidth?: $PropertyType, @@ -97,18 +97,18 @@ declare module "prettier" { plugins?: $PropertyType |}; - declare type CursorResult = {| + declare export type CursorResult = {| formatted: string, cursorOffset: number |}; - declare type ResolveConfigOptions = {| + declare export type ResolveConfigOptions = {| useCache?: boolean, config?: string, editorconfig?: boolean |}; - declare type SupportLanguage = { + declare export type SupportLanguage = { name: string, since: string, parsers: Array, @@ -124,7 +124,7 @@ declare module "prettier" { vscodeLanguageIds: Array }; - declare type SupportOption = {| + declare export type SupportOption = {| since: string, type: "int" | "boolean" | "choice" | "path", deprecated?: string, @@ -136,18 +136,18 @@ declare module "prettier" { choices?: SupportOptionChoice |}; - declare type SupportOptionRedirect = {| + declare export type SupportOptionRedirect = {| options: string, value: SupportOptionValue |}; - declare type SupportOptionRange = {| + declare export type SupportOptionRange = {| start: number, end: number, step: number |}; - declare type SupportOptionChoice = {| + declare export type SupportOptionChoice = {| value: boolean | string, description?: string, since?: string, @@ -155,20 +155,20 @@ declare module "prettier" { redirect?: SupportOptionValue |}; - declare type SupportOptionValue = number | boolean | string; + declare export type SupportOptionValue = number | boolean | string; - declare type SupportInfo = {| + declare export type SupportInfo = {| languages: Array, options: Array |}; - declare type Prettier = {| + declare export type Prettier = {| format: (source: string, options?: Options) => string, check: (source: string, options?: Options) => boolean, formatWithCursor: (source: string, options: CursorOptions) => CursorResult, resolveConfig: { (filePath: string, options?: ResolveConfigOptions): Promise, - sync(filePath: string, options?: ResolveConfigOptions): Promise + sync(filePath: string, options?: ResolveConfigOptions): ?Options }, clearConfigCache: () => void, getSupportInfo: (version?: string) => SupportInfo diff --git a/flow-typed/npm/randomstring_v1.x.x.js b/flow-typed/npm/randomstring_v1.x.x.js new file mode 100644 index 00000000..e2dda030 --- /dev/null +++ b/flow-typed/npm/randomstring_v1.x.x.js @@ -0,0 +1,14 @@ +// flow-typed signature: c10f305aa12406310715d4b7862531d1 +// flow-typed version: 748523bcf1/randomstring_v1.x.x/flow_>=v0.62.x + +declare module "randomstring" { + declare type GenerateOptions = { + length?: number; + readable?: boolean; + charset?: string; + capitalization?: string; + }; + declare module.exports: { + generate: (options?: GenerateOptions | number) => string + } +} diff --git a/flow-typed/npm/randomstring_vx.x.x.js b/flow-typed/npm/randomstring_vx.x.x.js deleted file mode 100644 index 587c481d..00000000 --- a/flow-typed/npm/randomstring_vx.x.x.js +++ /dev/null @@ -1,52 +0,0 @@ -// flow-typed signature: 0b5a9e3ddbb48e4532d5be95fa91a314 -// flow-typed version: <>/randomstring_v1.1.5/flow_v0.71.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'randomstring' - * - * 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 'randomstring' { - 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 'randomstring/lib/charset' { - declare module.exports: any; -} - -declare module 'randomstring/lib/randomstring' { - declare module.exports: any; -} - -declare module 'randomstring/test/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'randomstring/index' { - declare module.exports: $Exports<'randomstring'>; -} -declare module 'randomstring/index.js' { - declare module.exports: $Exports<'randomstring'>; -} -declare module 'randomstring/lib/charset.js' { - declare module.exports: $Exports<'randomstring/lib/charset'>; -} -declare module 'randomstring/lib/randomstring.js' { - declare module.exports: $Exports<'randomstring/lib/randomstring'>; -} -declare module 'randomstring/test/index.js' { - declare module.exports: $Exports<'randomstring/test/index'>; -} diff --git a/flow-typed/npm/react-dropzone_v4.x.x.js b/flow-typed/npm/react-dropzone_v4.x.x.js index 0991d2d9..7fbf5eda 100644 --- a/flow-typed/npm/react-dropzone_v4.x.x.js +++ b/flow-typed/npm/react-dropzone_v4.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: 8c363caa55dbf77d9ea18d964c715f0b -// flow-typed version: 36aaaa262e/react-dropzone_v4.x.x/flow_>=v0.53.x +// flow-typed signature: b7af14fb84f1e89e79e941a6bcd03d15 +// flow-typed version: 80022b0008/react-dropzone_v4.x.x/flow_>=v0.53.x declare module "react-dropzone" { declare type ChildrenProps = { draggedFiles: Array, - acceptedFile: Array, + acceptedFiles: Array, rejectedFiles: Array, isDragActive: boolean, isDragAccept: boolean, diff --git a/flow-typed/npm/react-modal_v3.1.x.js b/flow-typed/npm/react-modal_v3.1.x.js index 7f9764a8..9fdf7dd4 100644 --- a/flow-typed/npm/react-modal_v3.1.x.js +++ b/flow-typed/npm/react-modal_v3.1.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 919d09445f69c0a85f337d1cdb035dc3 -// flow-typed version: b63741deb2/react-modal_v3.1.x/flow_>=v0.54.1 +// flow-typed signature: 07baeb1a13e7992234dac3ebfeeb3c4f +// flow-typed version: ee87414e77/react-modal_v3.1.x/flow_>=v0.54.1 declare module 'react-modal' { declare type DefaultProps = { @@ -35,8 +35,8 @@ declare module 'react-modal' { beforeClose: string }, appElement?: HTMLElement | string | null, - onAfterOpen?: () => void, - onRequestClose?: () => void, + onAfterOpen?: () => void | Promise, + onRequestClose?: (SyntheticEvent<>) => void, aria?: { [key: string]: string }, diff --git a/flow-typed/npm/react-router-dom_v4.x.x.js b/flow-typed/npm/react-router-dom_v4.x.x.js new file mode 100644 index 00000000..3b9819bc --- /dev/null +++ b/flow-typed/npm/react-router-dom_v4.x.x.js @@ -0,0 +1,180 @@ +// flow-typed signature: 53be1849af6037db65e90a7abc558afe +// flow-typed version: f4e99ca1ed/react-router-dom_v4.x.x/flow_>=v0.63.x + +declare module "react-router-dom" { + import type { ComponentType, ElementConfig, Node, Component } from 'react'; + + declare export var BrowserRouter: Class> + + declare export var HashRouter: Class> + + declare export var Link: Class> + + declare export var NavLink: Class boolean, + children?: 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: (location: Location, action: HistoryAction) => boolean + ): void, + // createMemoryHistory + index?: number, + entries?: Array + }; + + 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: Class> + + declare export var MemoryRouter: Class, + initialIndex?: number, + getUserConfirmation?: GetUserConfirmation, + keyLength?: number, + children?: Node + |}>> + + declare export var Router: Class> + + declare export var Prompt: Class string | boolean), + when?: boolean + |}>> + + declare export var Redirect: Class> + + declare export var Route: Class, + render?: (router: ContextRouter) => Node, + children?: ComponentType | Node, + path?: string, + exact?: boolean, + strict?: boolean, + location?: LocationShape, + sensitive?: boolean + |}>> + + declare export var Switch: Class> + + declare export function withRouter>( + Component: WrappedComponent + ): ComponentType< + $Diff>, 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; +} diff --git a/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js index 1f9a271c..d4a7146e 100644 --- a/flow-typed/npm/react-test-renderer_v16.x.x.js +++ b/flow-typed/npm/react-test-renderer_v16.x.x.js @@ -1,9 +1,11 @@ -// flow-typed signature: 2d946f2ec4aba5210b19d053c411a59d -// flow-typed version: 95b3e05165/react-test-renderer_v16.x.x/flow_>=v0.47.x +// flow-typed signature: 9b9f4128694a7f68659d945b81fb78ff +// flow-typed version: 46dfe79a54/react-test-renderer_v16.x.x/flow_>=v0.47.x // Type definitions for react-test-renderer 16.x.x // Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer +type ReactComponentInstance = React$Component; + type ReactTestRendererJSON = { type: string, props: { [propName: string]: any }, @@ -12,12 +14,12 @@ type ReactTestRendererJSON = { type ReactTestRendererTree = ReactTestRendererJSON & { nodeType: "component" | "host", - instance: any, + instance: ?ReactComponentInstance, rendered: null | ReactTestRendererTree }; type ReactTestInstance = { - instance: any, + instance: ?ReactComponentInstance, type: string, props: { [propName: string]: any }, parent: null | ReactTestInstance, @@ -41,22 +43,33 @@ type ReactTestInstance = { ): ReactTestInstance[] }; -type ReactTestRenderer = { - toJSON(): null | ReactTestRendererJSON, - toTree(): null | ReactTestRendererTree, - unmount(nextElement?: React$Element): void, - update(nextElement: React$Element): void, - getInstance(): null | ReactTestInstance, - root: ReactTestInstance -}; - type TestRendererOptions = { createNodeMock(element: React$Element): any }; declare module "react-test-renderer" { + declare export type ReactTestRenderer = { + toJSON(): null | ReactTestRendererJSON, + toTree(): null | ReactTestRendererTree, + unmount(nextElement?: React$Element): void, + update(nextElement: React$Element): void, + getInstance(): ?ReactComponentInstance, + root: ReactTestInstance + }; + declare function create( nextElement: React$Element, options?: TestRendererOptions ): ReactTestRenderer; } + +declare module "react-test-renderer/shallow" { + declare export default class ShallowRenderer { + static createRenderer(): ShallowRenderer; + getMountedInstance(): ReactTestInstance; + getRenderOutput>(): E; + getRenderOutput(): React$Element; + render(element: React$Element, context?: any): void; + unmount(): void; + } +} diff --git a/flow-typed/npm/redis_v2.x.x.js b/flow-typed/npm/redis_v2.x.x.js index 869d6c59..9c98b6ae 100644 --- a/flow-typed/npm/redis_v2.x.x.js +++ b/flow-typed/npm/redis_v2.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e8c17d9b50ca24293a9bd00a8aa54f9e -// flow-typed version: a80cb215a2/redis_v2.x.x/flow_>=v0.34.x +// flow-typed signature: 1b39d667486345a987ed0a37e2ce3601 +// flow-typed version: 79f2090f89/redis_v2.x.x/flow_>=v0.34.x /* This module definition is by no means complete. A lot of methods of the RedisClient class are missing */ @@ -108,6 +108,7 @@ declare type $npm$redis$DelF = $npm$redis$DelWithArrayKeys declare module "redis" { declare class RedisClient extends events$EventEmitter mixins RedisClientPromisified { + connected: boolean, hmset: ( key: string, map: {[key: string]: string}, @@ -213,6 +214,41 @@ declare module "redis" { timeout: number, callback?: (error: ?Error, timeoutWasSet: number) => void ) => void; + incr: ( + key: string, + callback: (error: ?Error, result: ?number) => void + ) => void; + incrby: ( + key: string, + increment: number, + callback: (error: ?Error, result: ?number) => void + ) => void; + incrbyfloat: ( + key: string, + increment: number, + callback: (error: ?Error, result: ?string) => void + ) => void; + decr: ( + key: string, + callback: (error: ?Error, result: ?number) => void + ) => void; + decrby: ( + key: string, + decrement: number, + callback: (error: ?Error, result: ?number) => void + ) => void; + hincrby: ( + key: string, + field: string, + increment: number, + callback: (error: ?Error, result: ?number) => void + ) => void; + hincrbyfloat: ( + key: string, + field: string, + increment: number, + callback: (error: ?Error, result: ?string) => void + ) => void; } declare class RedisClientPromisified extends RedisClient { @@ -256,6 +292,7 @@ declare module "redis" { source: string, destination: string ) => Promise | Promise; + flushallAsync: () => Promise; publishAsync: (topic: string, value: any) => Promise; subscribeAsync: (topic: string) => Promise; unsubscribeAsync: (topic: string) => Promise; diff --git a/flow-typed/npm/rich-markdown-editor_vx.x.x.js b/flow-typed/npm/rich-markdown-editor_vx.x.x.js index db3a8425..47f2746d 100644 --- a/flow-typed/npm/rich-markdown-editor_vx.x.x.js +++ b/flow-typed/npm/rich-markdown-editor_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 550e8486051eb406c3e315910d591be9 -// flow-typed version: <>/rich-markdown-editor_v^0.2.2/flow_v0.71.0 +// flow-typed signature: b9dcab5c03d1b9a4a8a4697c6ea86dac +// flow-typed version: <>/rich-markdown-editor_v6.0.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -222,6 +222,10 @@ declare module 'rich-markdown-editor/lib/components/Placeholder' { declare module.exports: any; } +declare module 'rich-markdown-editor/lib/components/Text' { + declare module.exports: any; +} + declare module 'rich-markdown-editor/lib/components/TodoItem' { declare module.exports: any; } @@ -294,10 +298,18 @@ declare module 'rich-markdown-editor/lib/plugins/EditList' { declare module.exports: any; } +declare module 'rich-markdown-editor/lib/plugins/Ellipsis' { + declare module.exports: any; +} + declare module 'rich-markdown-editor/lib/plugins/KeyboardShortcuts' { declare module.exports: any; } +declare module 'rich-markdown-editor/lib/plugins/MarkdownPaste' { + declare module.exports: any; +} + declare module 'rich-markdown-editor/lib/plugins/MarkdownShortcuts' { declare module.exports: any; } @@ -469,6 +481,9 @@ declare module 'rich-markdown-editor/lib/components/Paragraph.js' { declare module 'rich-markdown-editor/lib/components/Placeholder.js' { declare module.exports: $Exports<'rich-markdown-editor/lib/components/Placeholder'>; } +declare module 'rich-markdown-editor/lib/components/Text.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Text'>; +} declare module 'rich-markdown-editor/lib/components/TodoItem.js' { declare module.exports: $Exports<'rich-markdown-editor/lib/components/TodoItem'>; } @@ -523,9 +538,15 @@ declare module 'rich-markdown-editor/lib/plugins.js' { declare module 'rich-markdown-editor/lib/plugins/EditList.js' { declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/EditList'>; } +declare module 'rich-markdown-editor/lib/plugins/Ellipsis.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/Ellipsis'>; +} declare module 'rich-markdown-editor/lib/plugins/KeyboardShortcuts.js' { declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/KeyboardShortcuts'>; } +declare module 'rich-markdown-editor/lib/plugins/MarkdownPaste.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/MarkdownPaste'>; +} declare module 'rich-markdown-editor/lib/plugins/MarkdownShortcuts.js' { declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/MarkdownShortcuts'>; } diff --git a/flow-typed/npm/sequelize_v4.x.x.js b/flow-typed/npm/sequelize_v4.x.x.js index 5eafb540..013d43b8 100644 --- a/flow-typed/npm/sequelize_v4.x.x.js +++ b/flow-typed/npm/sequelize_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 49e774d9ee879e091011a2dd99b67ebb -// flow-typed version: 1e384ef764/sequelize_v4.x.x/flow_>=v0.42.x +// flow-typed signature: 9b2cb7cedee72afe6d144951c88d49a5 +// flow-typed version: 03c38d65cd/sequelize_v4.x.x/flow_>=v0.42.x // @flow @@ -77,7 +77,7 @@ declare module "sequelize" { * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. * @param options the options passed to `this.save`. */ - (newAssociation?: TInstance | TInstancePrimaryKey, options?: BelongsToSetOneOptions & InstanceSaveOptions): Promise + (newAssociation: ?(TInstance | TInstancePrimaryKey), options?: BelongsToSetOneOptions & InstanceSaveOptions): Promise } /** @@ -104,13 +104,13 @@ declare module "sequelize" { * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ * @see Model */ - declare export type BelongsToCreateOne = { + declare export type BelongsToCreateOne = { /** * Create a new instance of the associated model and associate it with this. * @param values The values used to create the association. * @param options The options passed to `target.create` and `setAssociation`. */ - (values?: $Shape, options?: BelongsToCreateOneOptions & CreateOptions & BelongsToSetOneOptions): Promise + (values?: TInitAttributes, options?: BelongsToCreateOneOptions & CreateOptions & BelongsToSetOneOptions): Promise } @@ -187,7 +187,7 @@ declare module "sequelize" { * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. * @param options The options passed to `getAssocation` and `target.save`. */ - (newAssociation?: TInstance | TInstancePrimaryKey, options?: HasOneSetOneOptions & HasOneGetOneOptions & InstanceSaveOptions): Promise + (newAssociation: ?(TInstance | TInstancePrimaryKey), options?: HasOneSetOneOptions & HasOneGetOneOptions & InstanceSaveOptions): Promise } @@ -215,13 +215,13 @@ declare module "sequelize" { * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ * @see Model */ - declare export type HasOneCreateOne = { + declare export type HasOneCreateOne = { /** * Create a new instance of the associated model and associate it with this. * @param values The values used to create the association. * @param options The options passed to `target.create` and `setAssociation`. */ - (values?: $Shape, options?: HasOneCreateOneOptions & HasOneSetOneOptions & CreateOptions): Promise + (values?: TInitAttributes, options?: HasOneCreateOneOptions & HasOneSetOneOptions & CreateOptions): Promise } @@ -318,7 +318,7 @@ declare module "sequelize" { * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. * @param options The options passed to `target.findAll` and `update`. */ - (newAssociations?: Array, options?: HasManySetManyOptions & AnyFindOptions & InstanceUpdateOptions): Promise + (newAssociations: ?$ReadOnlyArray, options?: HasManySetManyOptions & AnyFindOptions & InstanceUpdateOptions): Promise } @@ -364,7 +364,7 @@ declare module "sequelize" { * @param newAssociations An array of instances or primary key of instances to associate with this. * @param options The options passed to `target.update`. */ - (newAssociations?: Array, options?: HasManyAddManyOptions & InstanceUpdateOptions): Promise + (newAssociations: $ReadOnlyArray, options?: HasManyAddManyOptions & InstanceUpdateOptions): Promise } @@ -410,7 +410,7 @@ declare module "sequelize" { * @param newAssociation An instance or the primary key of an instance to associate with this. * @param options The options passed to `target.update`. */ - (newAssociation?: TInstance | TInstancePrimaryKey, options?: HasManyAddOneOptions & InstanceUpdateOptions): Promise + (newAssociation: TInstance | TInstancePrimaryKey, options?: HasManyAddOneOptions & InstanceUpdateOptions): Promise } @@ -445,13 +445,13 @@ declare module "sequelize" { * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ * @see Model */ - declare export type HasManyCreateOne> = { + declare export type HasManyCreateOne> = { /** * Create a new instance of the associated model and associate it with this. * @param values The values used to create the association. * @param options The options to use when creating the association. */ - (values?: $Shape, options?: HasManyCreateOneOptions & CreateOptions): Promise + (values?: TInitAttributes, options?: HasManyCreateOneOptions & CreateOptions): Promise } @@ -492,7 +492,7 @@ declare module "sequelize" { * @param oldAssociated The instance or the primary key of the instance to un-associate. * @param options The options passed to `target.update`. */ - (oldAssociated?: TInstance | TInstancePrimaryKey, options?: HasManyRemoveOneOptions & InstanceUpdateOptions): Promise + (oldAssociated: TInstance | TInstancePrimaryKey, options?: HasManyRemoveOneOptions & InstanceUpdateOptions): Promise } @@ -533,7 +533,7 @@ declare module "sequelize" { * @param oldAssociated An array of instances or primary key of instances to un-associate. * @param options The options passed to `target.update`. */ - (oldAssociateds?: Array, options?: HasManyRemoveManyOptions & InstanceUpdateOptions): Promise + (oldAssociateds?: $ReadOnlyArray, options?: HasManyRemoveManyOptions & InstanceUpdateOptions): Promise } @@ -615,7 +615,7 @@ declare module "sequelize" { * @param targets An array of instances or primary key of instances to check. * @param options The options passed to `getAssociations`. */ - (targets: Array, options?: HasManyHasManyOptions & HasManyGetManyOptions): Promise + (targets: $ReadOnlyArray, options?: HasManyHasManyOptions & HasManyGetManyOptions): Promise } @@ -762,7 +762,7 @@ declare module "sequelize" { * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. */ - (newAssociations?: Array, options?: BelongsToManySetManyOptions & + (newAssociations: ?($ReadOnlyArray), options?: BelongsToManySetManyOptions & AnyFindOptions & BulkCreateOptions & InstanceUpdateOptions & @@ -815,7 +815,7 @@ declare module "sequelize" { * @param newAssociations An array of instances or primary key of instances to associate with this. * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. */ - (newAssociations?: Array, options?: BelongsToManyAddManyOptions & + (newAssociations: $ReadOnlyArray, options?: BelongsToManyAddManyOptions & AnyFindOptions & BulkCreateOptions & InstanceUpdateOptions & @@ -868,7 +868,7 @@ declare module "sequelize" { * @param newAssociation An instance or the primary key of an instance to associate with this. * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. */ - (newAssociation?: TInstance | TInstancePrimaryKey, options?: BelongsToManyAddOneOptions & + (newAssociation: TInstance | TInstancePrimaryKey, options?: BelongsToManyAddOneOptions & AnyFindOptions & BulkCreateOptions & InstanceUpdateOptions & @@ -910,13 +910,13 @@ declare module "sequelize" { * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ * @see Model */ - declare export type BelongsToManyCreateOne, TJoinTableAttributes> = { + declare export type BelongsToManyCreateOne, TJoinTableAttributes> = { /** * Create a new instance of the associated model and associate it with this. * @param values The values used to create the association. * @param options Options passed to `create` and `add`. Can also hold additional attributes for the join table. */ - (values?: $Shape, options?: BelongsToManyCreateOneOptions & CreateOptions & { + (values?: TInitAttributes, options?: BelongsToManyCreateOneOptions & CreateOptions & { through?: TJoinTableAttributes }): Promise } @@ -959,7 +959,7 @@ declare module "sequelize" { * @param oldAssociated The instance or the primary key of the instance to un-associate. * @param options The options passed to `through.destroy`. */ - (oldAssociated?: TInstance | TInstancePrimaryKey, options?: BelongsToManyRemoveOneOptions & InstanceDestroyOptions): Promise + (oldAssociated: TInstance | TInstancePrimaryKey, options?: BelongsToManyRemoveOneOptions & InstanceDestroyOptions): Promise } @@ -1000,7 +1000,7 @@ declare module "sequelize" { * @param oldAssociated An array of instances or primary key of instances to un-associate. * @param options The options passed to `through.destroy`. */ - (oldAssociateds?: Array, options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions): Promise + (oldAssociateds?: $ReadOnlyArray, options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions): Promise } @@ -1082,7 +1082,7 @@ declare module "sequelize" { * @param targets An array of instances or primary key of instances to check. * @param options The options passed to `getAssociations`. */ - (targets: Array, options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions): Promise + (targets: $ReadOnlyArray, options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions): Promise } @@ -1341,7 +1341,7 @@ declare module "sequelize" { * A string or a data type */ type: DataTypeAbstract, - + allowNull?: boolean, values?: Array, @@ -1468,7 +1468,7 @@ declare module "sequelize" { TargetInitAttributes: Object, Target: Model, ThroughAttributes: Object, - Through: Model + Through: Model > extends Association { associationType: 'BelongsToMany'; foreignKey: string; @@ -2145,7 +2145,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction, + transaction?: ?Transaction, /** * An optional parameter to specify the schema search_path (Postgres only) @@ -2166,7 +2166,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction + transaction?: ?Transaction } @@ -2187,7 +2187,7 @@ declare module "sequelize" { /** * Transaction to run the query in */ - transaction?: Transaction + transaction?: ?Transaction } @@ -2247,7 +2247,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction, + transaction?: ?Transaction, /** * An optional parameter to specify the schema search_path (Postgres only) @@ -2336,7 +2336,7 @@ declare module "sequelize" { * * The `Array` is to support string with replacements, like `['id > ?', 25]` */ - declare export type WhereOptions = WhereAttributeHash | AndOperator | OrOperator | where | fn | Array; + declare export type WhereOptions = WhereAttributeHash | AndOperator | OrOperator | where | fn | $ReadOnlyArray; /** * Example: `$any: [2,3]` becomes `ANY ARRAY[2, 3]::INTEGER` @@ -2344,12 +2344,12 @@ declare module "sequelize" { * _PG only_ */ declare export type AnyOperator = { - $any: Array; + $any: $ReadOnlyArray; } /** Undocumented? */ declare export type AllOperator = { - $all: Array; + $all: $ReadOnlyArray; } /** @@ -2364,7 +2364,7 @@ declare module "sequelize" { * * _PG only_ */ - $any?: Array; + $any?: $ReadOnlyArray; /** Example: `$gte: 6,` becomes `>= 6` */ $gte?: number | string | Date; @@ -2385,10 +2385,10 @@ declare module "sequelize" { $between?: [number, number]; /** Example: `$in: [1, 2],` becomes `IN [1, 2]` */ - $in?: Array | literal; + $in?: $ReadOnlyArray | literal; /** Example: `$notIn: [1, 2],` becomes `NOT IN [1, 2]` */ - $notIn?: Array | literal; + $notIn?: $ReadOnlyArray | literal; /** * Examples: @@ -2461,12 +2461,12 @@ declare module "sequelize" { /** Example: `$or: [{a: 5}, {a: 6}]` becomes `(a = 5 OR a = 6)` */ declare export type OrOperator = { - [$or: Symbol | '$or']: WhereOperators | WhereAttributeHash | Array | Array | WhereOperators | WhereAttributeHash | where | AndOperator>; + [$or: Symbol | '$or']: WhereOperators | WhereAttributeHash | $ReadOnlyArray | Array | WhereOperators | WhereAttributeHash | where | AndOperator>; } /** Example: `$and: {a: 5}` becomes `AND (a = 5)` */ declare export type AndOperator = { - [$and: Symbol | '$and']: WhereOperators | WhereAttributeHash | Array | Array | WhereOperators | WhereAttributeHash | where | OrOperator>; + [$and: Symbol | '$and']: WhereOperators | WhereAttributeHash | $ReadOnlyArray | Array | WhereOperators | WhereAttributeHash | where | OrOperator>; } /** @@ -2474,7 +2474,7 @@ declare module "sequelize" { */ declare export type WhereGeometryOptions = { type: string; - coordinates: Array | number>; + coordinates: $ReadOnlyArray | number>; } /** @@ -2492,7 +2492,7 @@ declare module "sequelize" { | OrOperator | AndOperator | WhereGeometryOptions - | Array; // implicit $or + | $ReadOnlyArray; // implicit $or /** * A hash of attributes to describe your search. @@ -2575,7 +2575,7 @@ declare module "sequelize" { /** * Load further nested related models */ - include?: Array> | IncludeOptions>, + include?: $ReadOnlyArray> | IncludeOptions>, /** * If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will @@ -2635,7 +2635,7 @@ declare module "sequelize" { If your association are set up with an `as` (eg. `X.hasMany(Y, { as: 'Z }`, you need to specify Z in the as attribute when eager loading Y). */ - include?: Array> | IncludeOptions>, + include?: $ReadOnlyArray> | IncludeOptions>, /** * Specifies an ordering. If a string is provided, it will be escaped. Using an array, you can provide @@ -2647,13 +2647,13 @@ declare module "sequelize" { string | col | literal | - Array< + $ReadOnlyArray< string | col | literal | Class> | {model: Class>, as?: string} | - Array< + $ReadOnlyArray< string | number | Class> | @@ -2729,7 +2729,7 @@ declare module "sequelize" { /** * Include options. See `find` for details */ - include?: Array>| IncludeOptions>, + include?: $ReadOnlyArray>| IncludeOptions>, /** * Apply COUNT(DISTINCT(col)) @@ -2739,7 +2739,7 @@ declare module "sequelize" { /** * Used in conjustion with `group` */ - attributes?: Array, + attributes?: $ReadOnlyArray, /** * For creating complex counts. Will return multiple rows as needed. @@ -2770,7 +2770,7 @@ declare module "sequelize" { * TODO: See set */ - include?: Array> | IncludeOptions> + include?: $ReadOnlyArray> | IncludeOptions> } & ReturningOptions @@ -2941,7 +2941,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction + transaction?: ?Transaction } & LoggingOptions /** @@ -2983,7 +2983,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction, + transaction?: ?Transaction, /** * If true, the updatedAt timestamp will not be updated. @@ -3031,7 +3031,7 @@ declare module "sequelize" { /** * Transaction to run query under */ - transaction?: Transaction, + transaction?: ?Transaction, /** * If true, the updatedAt timestamp will not be updated. @@ -3064,7 +3064,7 @@ declare module "sequelize" { /** * The transaction that the query should be executed under */ - transaction?: Transaction, + transaction?: ?Transaction, /** * When `true`, the first returned value of `aggregateFunction` is cast to `dataType` and returned. @@ -3084,6 +3084,14 @@ declare module "sequelize" { declare export class Model { static init(attributes: DefineAttributes, options: DefineOptions): this, + static QueryInterface: QueryInterface, + + static QueryGenerator: any, + + static sequelize: Sequelize, + + sequelize: Sequelize, + /** * The options this model was initialized with */ @@ -3189,7 +3197,7 @@ declare module "sequelize" { model will clear the previous scope. */ static scope( - options?: string | ScopeOptions | Array): Class, + options?: string | ScopeOptions | $ReadOnlyArray): Class, /** * Search for multiple instances. @@ -3603,6 +3611,26 @@ declare module "sequelize" { fn: AsyncFn2): void, static afterUpdate(fn: AsyncFn2): void, + /** + * A hook that is run before upserting + * @param name + * @param fn A callback function that is called with attributes, options + */ + static beforeUpsert( + name: string, + fn: AsyncFn2): void, + static beforeUpsert(fn: AsyncFn2): void, + + /** + * A hook that is run after upserting + * @param name + * @param fn A callback function that is called with result of upsert(), options + */ + static afterUpsert( + name: string, + fn: AsyncFn2): void, + static afterUpsert(fn: AsyncFn2): void, + /** * A hook that is run before creating instances in bulk * @param name @@ -3892,7 +3920,7 @@ declare module "sequelize" { TargetInitAttributes: Object, Target: Model, ThroughAttributes: Object, - Through: Model + Through: Model >( target: Class, options: AssociationOptionsBelongsToMany @@ -3995,7 +4023,7 @@ declare module "sequelize" { If changed is called without an argument and no keys have changed, it will return `false`. */ changed(key: $Keys): boolean, - changed(): boolean | string[], + changed(): boolean | Array<$Keys>, /** * Returns the previous value for key from `_previousDataValues`. @@ -4799,13 +4827,13 @@ declare module "sequelize" { * Either an object of named parameter replacements in the format `:param` or an array of unnamed * replacements to replace `?` in your SQL. */ - replacements?: Object | Array, + replacements?: Object | $ReadOnlyArray, /** * Either an object of named bind parameter in the format `$param` or an array of unnamed * bind parameter to replace `$1`, `$2`, ... in your SQL. */ - bind?: Object | Array, + bind?: Object | $ReadOnlyArray, /** * Force the query to use the write pool, regardless of the query type. @@ -4866,17 +4894,17 @@ declare module "sequelize" { * is: ["^[a-z]+$",'i'] // will only allow letters * is: /^[a-z]+$/i // same as the previous example using real RegExp */ - is?: string | Array| RegExp | { + is?: string | $ReadOnlyArray| RegExp | { msg: string, - args: string | Array| RegExp + args: string | $ReadOnlyArray| RegExp }, /** * not: ["[a-z]",'i'] // will not allow letters */ - not?: string | Array| RegExp | { + not?: string | $ReadOnlyArray| RegExp | { msg: string, - args: string | Array| RegExp + args: string | $ReadOnlyArray| RegExp }, /** @@ -5183,7 +5211,7 @@ declare module "sequelize" { (field name), `length` (create a prefix index of length chars), `order` (the direction the column should be sorted in), `collate` (the collation (sort order) for the column) */ - fields?: Array, /** * How many times a failing query is automatically retried. Set to 0 to disable retrying on SQL_BUSY error. @@ -6148,15 +6176,15 @@ declare module "sequelize" { * An AND query * @param args Each argument will be joined by AND */ - static and(...args: Array): AndOperator, - and(...args: Array): AndOperator, + static and(...args: $ReadOnlyArray): AndOperator, + and(...args: $ReadOnlyArray): AndOperator, /** * An OR query * @param args Each argument will be joined by OR */ - static or(...args: Array): OrOperator, - or(...args: Array): OrOperator, + static or(...args: $ReadOnlyArray): OrOperator, + or(...args: $ReadOnlyArray): OrOperator, /** * Creates an object representing nested where conditions for postgres's json data-type. @@ -7416,4 +7444,3 @@ declare module "sequelize" { logic: string | Object } } - diff --git a/flow-typed/npm/styled-components_vx.x.x.js b/flow-typed/npm/styled-components_vx.x.x.js new file mode 100644 index 00000000..8e2a2c3f --- /dev/null +++ b/flow-typed/npm/styled-components_vx.x.x.js @@ -0,0 +1,130 @@ +// flow-typed signature: cf12e9fab4c41b9ccf9fa8e75c00e74c +// flow-typed version: <>/styled-components_v4.0.3/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'styled-components' + * + * 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 'styled-components' { + 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 'styled-components/dist/styled-components-macro.cjs' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components-macro.esm' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components.browser.cjs' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components.browser.esm' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components.cjs' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components.esm' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components' { + declare module.exports: any; +} + +declare module 'styled-components/dist/styled-components.min' { + declare module.exports: any; +} + +declare module 'styled-components/native/dist/styled-components.native.cjs' { + declare module.exports: any; +} + +declare module 'styled-components/native/dist/styled-components.native.esm' { + declare module.exports: any; +} + +declare module 'styled-components/primitives/dist/styled-components-primitives.cjs' { + declare module.exports: any; +} + +declare module 'styled-components/primitives/dist/styled-components-primitives.esm' { + declare module.exports: any; +} + +declare module 'styled-components/scripts/postinstall' { + declare module.exports: any; +} + +declare module 'styled-components/test-utils/index' { + declare module.exports: any; +} + +declare module 'styled-components/test-utils/setupTestFramework' { + declare module.exports: any; +} + +// Filename aliases +declare module 'styled-components/dist/styled-components-macro.cjs.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components-macro.cjs'>; +} +declare module 'styled-components/dist/styled-components-macro.esm.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components-macro.esm'>; +} +declare module 'styled-components/dist/styled-components.browser.cjs.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components.browser.cjs'>; +} +declare module 'styled-components/dist/styled-components.browser.esm.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components.browser.esm'>; +} +declare module 'styled-components/dist/styled-components.cjs.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components.cjs'>; +} +declare module 'styled-components/dist/styled-components.esm.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components.esm'>; +} +declare module 'styled-components/dist/styled-components.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components'>; +} +declare module 'styled-components/dist/styled-components.min.js' { + declare module.exports: $Exports<'styled-components/dist/styled-components.min'>; +} +declare module 'styled-components/native/dist/styled-components.native.cjs.js' { + declare module.exports: $Exports<'styled-components/native/dist/styled-components.native.cjs'>; +} +declare module 'styled-components/native/dist/styled-components.native.esm.js' { + declare module.exports: $Exports<'styled-components/native/dist/styled-components.native.esm'>; +} +declare module 'styled-components/primitives/dist/styled-components-primitives.cjs.js' { + declare module.exports: $Exports<'styled-components/primitives/dist/styled-components-primitives.cjs'>; +} +declare module 'styled-components/primitives/dist/styled-components-primitives.esm.js' { + declare module.exports: $Exports<'styled-components/primitives/dist/styled-components-primitives.esm'>; +} +declare module 'styled-components/scripts/postinstall.js' { + declare module.exports: $Exports<'styled-components/scripts/postinstall'>; +} +declare module 'styled-components/test-utils/index.js' { + declare module.exports: $Exports<'styled-components/test-utils/index'>; +} +declare module 'styled-components/test-utils/setupTestFramework.js' { + declare module.exports: $Exports<'styled-components/test-utils/setupTestFramework'>; +} diff --git a/flow-typed/npm/tmp_vx.x.x.js b/flow-typed/npm/tmp_vx.x.x.js new file mode 100644 index 00000000..b0e4b9ab --- /dev/null +++ b/flow-typed/npm/tmp_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 904869861e7edd1f3dde79042150393f +// flow-typed version: <>/tmp_v0.0.33/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'tmp' + * + * 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 'tmp' { + 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 'tmp/lib/tmp' { + declare module.exports: any; +} + +// Filename aliases +declare module 'tmp/lib/tmp.js' { + declare module.exports: $Exports<'tmp/lib/tmp'>; +} diff --git a/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js b/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js new file mode 100644 index 00000000..b37e8e99 --- /dev/null +++ b/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js @@ -0,0 +1,74 @@ +// flow-typed signature: 77f5d8d713dbb3d128c5c8092d25f395 +// flow-typed version: <>/uglifyjs-webpack-plugin_v1.2.5/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'uglifyjs-webpack-plugin' + * + * 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 'uglifyjs-webpack-plugin' { + 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 'uglifyjs-webpack-plugin/dist/cjs' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/index' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/uglify/index' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/uglify/minify' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/uglify/versions' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/uglify/worker' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/dist/utils/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'uglifyjs-webpack-plugin/dist/cjs.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/cjs'>; +} +declare module 'uglifyjs-webpack-plugin/dist/index.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/index'>; +} +declare module 'uglifyjs-webpack-plugin/dist/uglify/index.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/index'>; +} +declare module 'uglifyjs-webpack-plugin/dist/uglify/minify.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/minify'>; +} +declare module 'uglifyjs-webpack-plugin/dist/uglify/versions.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/versions'>; +} +declare module 'uglifyjs-webpack-plugin/dist/uglify/worker.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/worker'>; +} +declare module 'uglifyjs-webpack-plugin/dist/utils/index.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/utils/index'>; +} diff --git a/package.json b/package.json index 5a217c0a..a6d52ddc 100644 --- a/package.json +++ b/package.json @@ -146,9 +146,9 @@ "query-string": "^4.3.4", "randomstring": "1.1.5", "raw-loader": "^0.5.1", - "react": "^16.4.0", + "react": "^16.6.0", "react-avatar-editor": "^10.3.0", - "react-dom": "^16.4.0", + "react-dom": "^16.6.0", "react-dropzone": "4.2.1", "react-helmet": "^5.2.0", "react-keydown": "^1.7.3", @@ -160,7 +160,7 @@ "react-waypoint": "^7.3.1", "redis": "^2.6.2", "redis-lock": "^0.1.0", - "rich-markdown-editor": "5.0.5", + "rich-markdown-editor": "6.0.1", "safestart": "1.1.0", "sequelize": "4.28.6", "sequelize-cli": "^2.7.0", @@ -169,7 +169,7 @@ "string-hash": "^1.1.0", "string-replace-to-array": "^1.0.3", "style-loader": "^0.18.2", - "styled-components": "^3.4.8", + "styled-components": "4.0.3", "styled-components-breakpoint": "^1.0.1", "styled-components-grid": "^2.2.0", "styled-normalize": "^2.2.1", diff --git a/server/pages/components/Layout.js b/server/pages/components/Layout.js index 97d04ce5..addec1d4 100644 --- a/server/pages/components/Layout.js +++ b/server/pages/components/Layout.js @@ -5,7 +5,7 @@ import styled from 'styled-components'; import breakpoint from 'styled-components-breakpoint'; import { TopNavigation, BottomNavigation } from './Navigation'; import Analytics from '../../../shared/components/Analytics'; -import globalStyles from '../../../shared/styles/globals'; +import GlobalStyles from '../../../shared/styles/globals'; import prefetchTags from '../../utils/prefetchTags'; export const title = 'Outline'; @@ -18,11 +18,10 @@ type Props = { }; function Layout({ children }: Props) { - globalStyles(); - return ( + {title} diff --git a/shared/styles/globals.js b/shared/styles/globals.js index 6bdb1a67..0f36fd88 100644 --- a/shared/styles/globals.js +++ b/shared/styles/globals.js @@ -1,9 +1,9 @@ // @flow import styledNormalize from 'styled-normalize'; -import { injectGlobal } from 'styled-components'; +import { createGlobalStyle } from 'styled-components'; import base from './base'; -export default () => injectGlobal` +export default createGlobalStyle` ${styledNormalize} ${base} `; diff --git a/yarn.lock b/yarn.lock index 1cf22515..85a4f5c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,6 +18,12 @@ esutils "^2.0.2" js-tokens "^3.0.0" +"@babel/helper-annotate-as-pure@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32" + dependencies: + "@babel/types" "^7.0.0" + "@babel/helper-function-name@7.0.0-beta.31": version "7.0.0-beta.31" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.31.tgz#afe63ad799209989348b1109b44feb66aa245f57" @@ -63,6 +69,24 @@ lodash "^4.2.0" to-fast-properties "^2.0.0" +"@babel/types@^7.0.0": + version "7.1.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1.5.tgz#12fe64e91a431234b7017b4227a78cc0eec4e081" + dependencies: + esutils "^2.0.2" + lodash "^4.17.10" + to-fast-properties "^2.0.0" + +"@emotion/is-prop-valid@^0.6.8": + version "0.6.8" + resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.6.8.tgz#68ad02831da41213a2089d2cab4e8ac8b30cbd85" + dependencies: + "@emotion/memoize" "^0.6.6" + +"@emotion/memoize@^0.6.6": + version "0.6.6" + resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.6.6.tgz#004b98298d04c7ca3b4f50ca2035d4f60d2eed1b" + "@tommoor/remove-markdown@0.3.1": version "0.3.1" resolved "https://registry.yarnpkg.com/@tommoor/remove-markdown/-/remove-markdown-0.3.1.tgz#25e7b845d52fcfadf149a3a6a468a931fee7619b" @@ -724,6 +748,13 @@ babel-plugin-react-transform@^2.0.2: dependencies: lodash "^4.6.1" +"babel-plugin-styled-components@>= 1": + version "1.8.0" + resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.8.0.tgz#9dd054c8e86825203449a852a5746f29f2dab857" + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + lodash "^4.17.10" + babel-plugin-styled-components@^1.1.7: version "1.2.0" resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.2.0.tgz#8bb8f9e69119bb8dee408c8d36a0dfef5191f3c7" @@ -1471,13 +1502,6 @@ buffer@4.9.1, buffer@^4.3.0: ieee754 "^1.1.4" isarray "^1.0.0" -buffer@^5.0.3: - version "5.0.7" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.0.7.tgz#570a290b625cf2603290c1149223d27ccf04db97" - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - buffers@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" @@ -2368,9 +2392,9 @@ css-selector-tokenizer@^0.7.0: fastparse "^1.1.1" regexpu-core "^1.0.0" -css-to-react-native@^2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.0.4.tgz#cf4cc407558b3474d4ba8be1a2cd3b6ce713101b" +css-to-react-native@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.2.2.tgz#c077d0f7bf3e6c915a539e7325821c9dd01f9965" dependencies: css-color-keywords "^1.0.0" fbjs "^0.8.5" @@ -4330,6 +4354,10 @@ has-flag@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + has-gulplog@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/has-gulplog/-/has-gulplog-0.1.0.tgz#6414c82913697da51590397dafb12f22967811ce" @@ -4479,10 +4507,6 @@ hoist-non-react-statics@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz#343db84c6018c650778898240135a1420ee22ce0" -hoist-non-react-statics@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40" - home-or-tmp@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" @@ -5036,7 +5060,7 @@ is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" -is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: +is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" dependencies: @@ -6418,6 +6442,10 @@ lodash@^4.1.1: version "4.17.5" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" +lodash@^4.17.10: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + lodash@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551" @@ -6571,6 +6599,10 @@ mem@^1.1.0: dependencies: mimic-fn "^1.0.0" +memoize-one@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-4.0.3.tgz#cdfdd942853f1a1b4c71c5336b8c49da0bf0273c" + memoizee@^0.4.3: version "0.4.9" resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.9.tgz#ea1c005f5c4c31d89a4a10e24db83fbf61cdd4f3" @@ -8025,6 +8057,13 @@ prop-types@^15.0.0, prop-types@^15.5.7, prop-types@^15.6.0: loose-envify "^1.3.1" object-assign "^4.1.1" +prop-types@^15.6.2: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + proto-list@~1.2.1: version "1.2.4" resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" @@ -8209,23 +8248,14 @@ react-deep-force-update@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.1.1.tgz#bcd31478027b64b3339f108921ab520b4313dc2c" -react-dom@^16.2.0: - version "16.3.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.3.2.tgz#cb90f107e09536d683d84ed5d4888e9640e0e4df" +react-dom@^16.6.0: + version "16.6.1" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.6.1.tgz#5476e08694ae504ae385a28b62ecc4fe3a29add9" dependencies: - fbjs "^0.8.16" loose-envify "^1.1.0" object-assign "^4.1.1" - prop-types "^15.6.0" - -react-dom@^16.4.0: - version "16.4.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.0" + prop-types "^15.6.2" + scheduler "^0.11.0" react-dropzone@4.2.1: version "4.2.1" @@ -8247,9 +8277,9 @@ react-immutable-proptypes@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/react-immutable-proptypes/-/react-immutable-proptypes-2.1.0.tgz#023d6f39bb15c97c071e9e60d00d136eac5fa0b4" -react-is@^16.3.1: - version "16.3.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.3.2.tgz#f4d3d0e2f5fbb6ac46450641eb2e25bf05d36b22" +react-is@^16.6.0: + version "16.6.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.6.1.tgz#f77b1c3d901be300abe8d58645b7a59e794e5982" react-keydown@^1.7.3: version "1.9.4" @@ -8365,23 +8395,14 @@ react-waypoint@^7.3.1: consolidated-events "^1.1.0" prop-types "^15.0.0" -react@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba" +react@^16.6.0: + version "16.6.1" + resolved "https://registry.yarnpkg.com/react/-/react-16.6.1.tgz#ee2aef4f0a09e494594882029821049772f915fe" dependencies: - fbjs "^0.8.16" loose-envify "^1.1.0" object-assign "^4.1.1" - prop-types "^15.6.0" - -react@^16.4.0: - version "16.4.2" - resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.0" + prop-types "^15.6.2" + scheduler "^0.11.0" read-all-stream@^3.0.0: version "3.1.0" @@ -8854,9 +8875,9 @@ retry-axios@0.3.2, retry-axios@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/retry-axios/-/retry-axios-0.3.2.tgz#5757c80f585b4cc4c4986aa2ffd47a60c6d35e13" -rich-markdown-editor@5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-5.0.5.tgz#b44d8aefa17f83e9dadfe28e121a63ff236b557b" +rich-markdown-editor@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-6.0.1.tgz#a2f36f4596d2ba7757dd1f9dfa9e9976fbc99911" dependencies: "@tommoor/slate-drop-or-paste-images" "^0.8.1" babel-plugin-transform-async-to-generator "^6.24.1" @@ -8867,8 +8888,8 @@ rich-markdown-editor@5.0.5: eslint-plugin-prettier "^2.6.0" immutable "^3.8.2" outline-icons "^1.0.0" - react "^16.2.0" - react-dom "^16.2.0" + react "^16.6.0" + react-dom "^16.6.0" react-keydown "^1.9.7" react-medium-image-zoom "^3.0.10" react-portal "^4.1.4" @@ -8876,14 +8897,14 @@ rich-markdown-editor@5.0.5: slate-collapse-on-escape "^0.6.1" slate-edit-code "^0.15.5" slate-edit-list "^0.11.3" - slate-md-serializer "4.1.1" + slate-md-serializer "5.1.0" slate-paste-linkify "^0.5.1" slate-plain-serializer "0.5.4" slate-prism "^0.5.0" slate-react "^0.12.3" slate-trailing-block "^0.5.0" slugify "^1.3.0" - styled-components "^3.2.3" + styled-components "4.0.3" right-align@^0.1.1: version "0.1.3" @@ -8997,6 +9018,13 @@ sax@>=0.6.0, sax@^1.2.1, sax@~1.2.1: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" +scheduler@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.11.0.tgz#def1f1bfa6550cc57981a87106e65e8aea41a6b5" + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + schema-utils@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" @@ -9237,9 +9265,9 @@ slate-edit-list@^0.11.3: version "0.11.3" resolved "https://registry.yarnpkg.com/slate-edit-list/-/slate-edit-list-0.11.3.tgz#d27ff2ff93a83bef49131a6a44b87a9558c9d44c" -slate-md-serializer@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/slate-md-serializer/-/slate-md-serializer-4.1.1.tgz#0b6f569a2018feff50d2258934fa8044d3d130a5" +slate-md-serializer@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/slate-md-serializer/-/slate-md-serializer-5.1.0.tgz#07b01fec49fa5bd47619bbccafb477712d30f848" slate-paste-linkify@^0.5.1: version "0.5.1" @@ -9687,34 +9715,19 @@ styled-components-grid@^2.2.0: react-create-component-from-tag-prop "^1.4.0" styled-components-breakpoint "^2.0.2" -styled-components@^3.2.3: - version "3.2.6" - resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.2.6.tgz#99e6e75a746bdedd295a17e03dd1493055a1cc3b" +styled-components@4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.0.3.tgz#6c1a95a93857aa613fdfc26ad40899217100d8c3" dependencies: - buffer "^5.0.3" - css-to-react-native "^2.0.3" - fbjs "^0.8.16" - hoist-non-react-statics "^2.5.0" - is-plain-object "^2.0.1" + "@emotion/is-prop-valid" "^0.6.8" + babel-plugin-styled-components ">= 1" + css-to-react-native "^2.2.2" + memoize-one "^4.0.0" prop-types "^15.5.4" - react-is "^16.3.1" + react-is "^16.6.0" stylis "^3.5.0" stylis-rule-sheet "^0.0.10" - supports-color "^3.2.3" - -styled-components@^3.4.8: - version "3.4.9" - resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.4.9.tgz#519abeb351b37be5b7de6a15ff9e4efeb9d772da" - dependencies: - buffer "^5.0.3" - css-to-react-native "^2.0.3" - fbjs "^0.8.16" - hoist-non-react-statics "^2.5.0" - prop-types "^15.5.4" - react-is "^16.3.1" - stylis "^3.5.0" - stylis-rule-sheet "^0.0.10" - supports-color "^3.2.3" + supports-color "^5.5.0" styled-normalize@^2.2.1: version "2.2.1" @@ -9754,6 +9767,12 @@ supports-color@^4.2.1: dependencies: has-flag "^2.0.0" +supports-color@^5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + dependencies: + has-flag "^3.0.0" + svgo@^0.7.0: version "0.7.2" resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5"