Upgrade dependencies

This commit is contained in:
Tom Moor 2018-11-06 21:58:32 -08:00
parent 690feb6040
commit 8d569fd46d
44 changed files with 2221 additions and 671 deletions

View File

@ -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<Props> {
const {
document,
showCollection,
innerRef,
highlight,
context,
...rest
@ -147,7 +146,6 @@ class DocumentPreview extends React.Component<Props> {
pathname: document.url,
state: { title: document.title },
}}
innerRef={innerRef}
{...rest}
>
<Heading>

View File

@ -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<Props> {
multiple
{...props}
>
<GlobalStyles />
{this.isImporting && <LoadingIndicator />}
{this.props.children}
</Dropzone>

View File

@ -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 (
<StyledModal
contentLabel={title}
onRequestClose={onRequestClose}
isOpen={isOpen}
{...rest}
>
<Content column>
{title && <h1>{title}</h1>}
<Close onClick={onRequestClose}>
<CloseIcon size={32} />
</Close>
{children}
</Content>
</StyledModal>
<React.Fragment>
<GlobalStyles />
<StyledModal
contentLabel={title}
onRequestClose={onRequestClose}
isOpen={isOpen}
{...rest}
>
<Content column>
{title && <h1>{title}</h1>}
<Close onClick={onRequestClose}>
<CloseIcon size={32} />
</Close>
{children}
</Content>
</StyledModal>
</React.Fragment>
);
};

View File

@ -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<Props> {
if (!result) return <div />;
return (
<Component innerRef={ref} onClick={this.handleClick} selectable href>
<Component ref={ref} onClick={this.handleClick} selectable href>
{result.path
.map(doc => <span key={doc.id}>{doc.title}</span>)
.reduce((prev, curr) => [prev, <StyledGoToIcon />, curr])}

View File

@ -19,7 +19,7 @@ class RouteSidebarHidden extends React.Component<Props> {
}
render() {
const { component, ...rest } = this.props;
const { component, ui, ...rest } = this.props;
const Component = component;
return <Route {...rest} render={props => <Component {...props} />} />;
}

View File

@ -12,7 +12,7 @@ type Props = {
document: NavigationNode,
history: Object,
activeDocument: ?Document,
activeDocumentRef?: HTMLElement => void,
activeDocumentRef?: (?HTMLElement) => *,
prefetchDocument: (documentId: string) => Promise<void>,
depth: number,
};
@ -51,7 +51,7 @@ class DocumentLink extends React.Component<Props> {
<Flex
column
key={document.id}
innerRef={isActiveDocument ? activeDocumentRef : undefined}
ref={isActiveDocument ? activeDocumentRef : undefined}
onMouseEnter={this.handleMouseEnter}
>
<DropToImport

View File

@ -27,7 +27,7 @@ const StyledNavLink = styled(NavLink)`
overflow: hidden;
text-overflow: ellipsis;
padding: 4px 0;
margin-left: ${({ icon }) => (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<Props> {
hideExpandToggle,
exact,
} = this.props;
const Component = to ? StyledNavLink : StyledDiv;
const showExpandIcon =
expandedContent && !hideExpandToggle ? true : undefined;
return (
<Wrapper menuOpen={menuOpen} column>
<Component
<StyledNavLink
icon={showExpandIcon}
activeStyle={this.activeStyle}
style={active ? this.activeStyle : undefined}
onClick={onClick}
to={to}
exact={exact !== false}
to={to}
as={to ? undefined : 'div'}
>
{icon && <IconWrapper>{icon}</IconWrapper>}
{showExpandIcon && (
<StyledGoTo expanded={this.expanded} onClick={this.handleClick} />
)}
<Content onClick={this.handleExpand}>{children}</Content>
</Component>
</StyledNavLink>
{/* Collection */ expand && hideExpandToggle && expandedContent}
{/* Document */ this.expanded && !hideExpandToggle && expandedContent}
{menu && <Action>{menu}</Action>}

View File

@ -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 (
<React.Fragment>
<GlobalStyles />
<TooltipTrigger {...props} />
</React.Fragment>
);
};
export default Tooltip;

View File

@ -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(
<React.Fragment>
<GlobalStyles />
<ThemeProvider theme={theme}>
<ErrorBoundary>
<Provider {...stores}>

View File

@ -23,7 +23,7 @@ type Props = {
@observer
class CollectionMenu extends React.Component<Props> {
file: HTMLInputElement;
file: ?HTMLInputElement;
onNewDocument = (ev: SyntheticEvent<*>) => {
ev.preventDefault();
@ -35,7 +35,7 @@ class CollectionMenu extends React.Component<Props> {
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<Props> {
<span>
<HiddenInput
type="file"
innerRef={ref => (this.file = ref)}
ref={ref => (this.file = ref)}
onChange={this.onFilePicked}
accept="text/markdown, text/plain"
/>

View File

@ -357,8 +357,14 @@ class DocumentScene extends React.Component<Props> {
<Container justify="center" column auto>
{this.isEditing && (
<React.Fragment>
<Prompt when={this.isDirty} message={DISCARD_CHANGES} />
<Prompt when={this.isUploading} message={UPLOADING_WARNING} />
<Prompt
when={this.isDirty || false}
message={DISCARD_CHANGES}
/>
<Prompt
when={this.isUploading || false}
message={UPLOADING_WARNING}
/>
</React.Fragment>
)}
{!isShare && (

View File

@ -83,7 +83,7 @@ class Editor extends React.Component<Props> {
return (
<React.Fragment>
<StyledEditor
innerRef={this.setEditorRef}
ref={this.setEditorRef}
renderPlaceholder={this.renderPlaceholder}
schema={schema}
{...this.props}

View File

@ -61,7 +61,7 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)`
@observer
class Search extends React.Component<Props> {
firstDocument: HTMLElement;
firstDocument: ?DocumentPreview;
@observable results: SearchResult[] = [];
@observable query: string = '';
@ -206,9 +206,7 @@ class Search extends React.Component<Props> {
return (
<DocumentPreview
innerRef={ref =>
index === 0 && this.setFirstDocumentRef(ref)
}
ref={ref => index === 0 && this.setFirstDocumentRef(ref)}
key={document.id}
document={document}
highlight={this.query}

View File

@ -10,18 +10,14 @@ type Props = {
};
class SearchField extends React.Component<Props> {
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<Props> {
/>
<StyledInput
{...this.props}
innerRef={this.setRef}
ref={ref => (this.input = ref)}
onChange={this.handleChange}
spellCheck="false"
placeholder="search…"

View File

@ -0,0 +1,38 @@
// flow-typed signature: 34ca0e3549dbccf06b1bfc979378b478
// flow-typed version: <<STUB>>/@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'>;
}

View File

@ -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' {}

View File

@ -1,67 +0,0 @@
// flow-typed signature: 5a748d46bf980bce1150ad979eb02e73
// flow-typed version: <<STUB>>/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'>;
}

172
flow-typed/npm/diff_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,172 @@
// flow-typed signature: 0f5b991da0eab55a46333d265138ba11
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -0,0 +1,130 @@
// flow-typed signature: 178bc1353a5bc8f7a0b81e60cc7e569c
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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<void>): { [key: string]: string };
get(name: string, ...args: Array<void>): string | void;
remove(name: string, options?: CookieOptions): void;
getJSON(name: string): mixed;
getJSON(name: string): Object;
withConverter(converter: ConverterFunc | ConverterObj): this;
noConflict(): this;
}

298
flow-typed/npm/jszip_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,298 @@
// flow-typed signature: 8e32d5e372e2df42a22f7d8915f1c450
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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;
}

52
flow-typed/npm/koa-sslify_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,52 @@
// flow-typed signature: ff33d86d918ff9102533115616ed317d
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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,

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// flow-typed signature: b9fcff5cf9372b696aa69b214d896dbe
// flow-typed version: <<STUB>>/outline-icons_v^1.0.2/flow_v0.71.0
// flow-typed signature: 2cdcd7d87c53bb68b860d9c0fcc5ecd5
// flow-typed version: <<STUB>>/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'>;
}

299
flow-typed/npm/pg_v6.x.x.js vendored Normal file
View File

@ -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 <flow 0.36 did not support export type very well,
// so copy the types from pg-pool
// https://github.com/flowtype/flow-typed/issues/16
// https://github.com/facebook/flow/commit/843389f89c69516506213e298096a14867a45061
const Pool = require('pg-pool');
import type {
PgPoolConfig,
PoolConnectCallback,
DoneCallback,
PoolClient
} from 'pg-pool';
*/
// ------------- copy from 'pg-pool' ------------>>
/*
* 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<any>, 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<PgPoolConfig>, Client?: Class<Client>): void;
connect(cb?: PoolConnectCallback): Promise<PoolClient>;
take(cb?: PoolConnectCallback): Promise<PoolClient>;
end(cb?: DoneCallback): Promise<void>;
// 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<mixed>,
// the overloading will not work
query:
( (query: QueryConfig|string, callback?: QueryCallback) => Promise<ResultSet> ) &
( (text: string, values: Array<any>, callback?: QueryCallback) => Promise<ResultSet>);
/* 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<Row>,
};
declare type ResultBuilder = {
command: string,
rowCount: number,
oid: number,
rows: Array<Row>,
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<T>(p: Promise<T> | 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<ResultSet> {
then<U>(
onFulfill?: ?((value: ResultSet) => Promise<U> | U),
onReject?: ?((error: PG_ERROR) => Promise<U> | U)
): Promise<U>;
// Because then and catch return a Promise,
// .then.catch will lose catch's type information PG_ERROR.
catch<U>(
onReject?: ?((error: PG_ERROR) => Promise<U> | U)
): Promise<U>;
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<any>, 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<Client>;
Pool: Class<Pool>;
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<Client>;
Pool: Class<Pool>;
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;
}

View File

@ -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<string | Plugin>
|};
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<Options, "printWidth">,
tabWidth?: $PropertyType<Options, "tabWidth">,
@ -97,18 +97,18 @@ declare module "prettier" {
plugins?: $PropertyType<Options, "plugins">
|};
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<string>,
@ -124,7 +124,7 @@ declare module "prettier" {
vscodeLanguageIds: Array<string>
};
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<SupportLanguage>,
options: Array<SupportOption>
|};
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<?Options>,
sync(filePath: string, options?: ResolveConfigOptions): Promise<?Options>
sync(filePath: string, options?: ResolveConfigOptions): ?Options
},
clearConfigCache: () => void,
getSupportInfo: (version?: string) => SupportInfo

14
flow-typed/npm/randomstring_v1.x.x.js vendored Normal file
View File

@ -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
}
}

View File

@ -1,52 +0,0 @@
// flow-typed signature: 0b5a9e3ddbb48e4532d5be95fa91a314
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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<File>,
acceptedFile: Array<File>,
acceptedFiles: Array<File>,
rejectedFiles: Array<File>,
isDragActive: boolean,
isDragAccept: boolean,

View File

@ -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<void>,
onRequestClose?: (SyntheticEvent<>) => void,
aria?: {
[key: string]: string
},

View File

@ -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<Component<{|
basename?: string,
forceRefresh?: boolean,
getUserConfirmation?: GetUserConfirmation,
keyLength?: number,
children?: Node
|}>>
declare export var HashRouter: Class<Component<{|
basename?: string,
getUserConfirmation?: GetUserConfirmation,
hashType?: "slash" | "noslash" | "hashbang",
children?: Node
|}>>
declare export var Link: Class<Component<{
className?: string,
to: string | LocationShape,
replace?: boolean,
children?: Node
}>>
declare export var NavLink: Class<Component<{
to: string | LocationShape,
activeClassName?: string,
className?: string,
activeStyle?: Object,
style?: Object,
isActive?: (match: Match, location: Location) => 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<Location>
};
declare export type Match = {
params: { [key: string]: ?string },
isExact: boolean,
path: string,
url: string
};
declare export type ContextRouter = {|
history: RouterHistory,
location: Location,
match: Match,
staticContext?: StaticRouterContext
|};
declare type ContextRouterVoid = {
history: RouterHistory | void,
location: Location | void,
match: Match | void,
staticContext?: StaticRouterContext | void
};
declare export type GetUserConfirmation = (
message: string,
callback: (confirmed: boolean) => void
) => void;
declare export type StaticRouterContext = {
url?: string
};
declare export var StaticRouter: Class<Component<{|
basename?: string,
location?: string | Location,
context: StaticRouterContext,
children?: Node
|}>>
declare export var MemoryRouter: Class<Component<{|
initialEntries?: Array<LocationShape | string>,
initialIndex?: number,
getUserConfirmation?: GetUserConfirmation,
keyLength?: number,
children?: Node
|}>>
declare export var Router: Class<Component<{|
history: RouterHistory,
children?: Node
|}>>
declare export var Prompt: Class<Component<{|
message: string | ((location: Location) => string | boolean),
when?: boolean
|}>>
declare export var Redirect: Class<Component<{|
to: string | LocationShape,
push?: boolean,
from?: string,
exact?: boolean,
strict?: boolean
|}>>
declare export var Route: Class<Component<{|
component?: ComponentType<*>,
render?: (router: ContextRouter) => Node,
children?: ComponentType<ContextRouter> | Node,
path?: string,
exact?: boolean,
strict?: boolean,
location?: LocationShape,
sensitive?: boolean
|}>>
declare export var Switch: Class<Component<{|
children?: Node,
location?: Location
|}>>
declare export function withRouter<WrappedComponent: ComponentType<*>>(
Component: WrappedComponent
): ComponentType<
$Diff<ElementConfig<$Supertype<WrappedComponent>>, ContextRouterVoid>
>;
declare type MatchPathOptions = {
path?: string,
exact?: boolean,
sensitive?: boolean,
strict?: boolean
};
declare export function matchPath(
pathname: string,
options?: MatchPathOptions | string,
parent?: Match
): null | Match;
declare export function generatePath(pattern?: string, params?: Object): string;
}

View File

@ -1,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<any>;
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<any>): void,
update(nextElement: React$Element<any>): void,
getInstance(): null | ReactTestInstance,
root: ReactTestInstance
};
type TestRendererOptions = {
createNodeMock(element: React$Element<any>): any
};
declare module "react-test-renderer" {
declare export type ReactTestRenderer = {
toJSON(): null | ReactTestRendererJSON,
toTree(): null | ReactTestRendererTree,
unmount(nextElement?: React$Element<any>): void,
update(nextElement: React$Element<any>): void,
getInstance(): ?ReactComponentInstance,
root: ReactTestInstance
};
declare function create(
nextElement: React$Element<any>,
options?: TestRendererOptions
): ReactTestRenderer;
}
declare module "react-test-renderer/shallow" {
declare export default class ShallowRenderer {
static createRenderer(): ShallowRenderer;
getMountedInstance(): ReactTestInstance;
getRenderOutput<E: React$Element<any>>(): E;
getRenderOutput(): React$Element<any>;
render(element: React$Element<any>, context?: any): void;
unmount(): void;
}
}

View File

@ -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<string> | Promise<void>;
flushallAsync: () => Promise<void>;
publishAsync: (topic: string, value: any) => Promise<void>;
subscribeAsync: (topic: string) => Promise<void>;
unsubscribeAsync: (topic: string) => Promise<void>;

View File

@ -1,5 +1,5 @@
// flow-typed signature: 550e8486051eb406c3e315910d591be9
// flow-typed version: <<STUB>>/rich-markdown-editor_v^0.2.2/flow_v0.71.0
// flow-typed signature: b9dcab5c03d1b9a4a8a4697c6ea86dac
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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<any>): Promise<void>
(newAssociation: ?(TInstance | TInstancePrimaryKey), options?: BelongsToSetOneOptions & InstanceSaveOptions<any>): Promise<void>
}
/**
@ -104,13 +104,13 @@ declare module "sequelize" {
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
* @see Model
*/
declare export type BelongsToCreateOne<TAttributes> = {
declare export type BelongsToCreateOne<TInitAttributes> = {
/**
* 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<TAttributes>, options?: BelongsToCreateOneOptions & CreateOptions<any> & BelongsToSetOneOptions): Promise<void>
(values?: TInitAttributes, options?: BelongsToCreateOneOptions & CreateOptions<any> & BelongsToSetOneOptions): Promise<void>
}
@ -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<any>): Promise<void>
(newAssociation: ?(TInstance | TInstancePrimaryKey), options?: HasOneSetOneOptions & HasOneGetOneOptions & InstanceSaveOptions<any>): Promise<void>
}
@ -215,13 +215,13 @@ declare module "sequelize" {
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/
* @see Model
*/
declare export type HasOneCreateOne<TAttributes> = {
declare export type HasOneCreateOne<TInitAttributes> = {
/**
* 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<TAttributes>, options?: HasOneCreateOneOptions & HasOneSetOneOptions & CreateOptions<any>): Promise<void>
(values?: TInitAttributes, options?: HasOneCreateOneOptions & HasOneSetOneOptions & CreateOptions<any>): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: HasManySetManyOptions & AnyFindOptions & InstanceUpdateOptions<any>): Promise<void>
(newAssociations: ?$ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: HasManySetManyOptions & AnyFindOptions & InstanceUpdateOptions<any>): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: HasManyAddManyOptions & InstanceUpdateOptions<any>): Promise<void>
(newAssociations: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: HasManyAddManyOptions & InstanceUpdateOptions<any>): Promise<void>
}
@ -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<any>): Promise<void>
(newAssociation: TInstance | TInstancePrimaryKey, options?: HasManyAddOneOptions & InstanceUpdateOptions<any>): Promise<void>
}
@ -445,13 +445,13 @@ declare module "sequelize" {
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see Model
*/
declare export type HasManyCreateOne<TAttributes, TInstance: Model<TAttributes>> = {
declare export type HasManyCreateOne<TInitAttributes, TInstance: Model<any, TInitAttributes>> = {
/**
* 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<TAttributes>, options?: HasManyCreateOneOptions & CreateOptions<any>): Promise<TInstance>
(values?: TInitAttributes, options?: HasManyCreateOneOptions & CreateOptions<any>): Promise<TInstance>
}
@ -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<any>): Promise<void>
(oldAssociated: TInstance | TInstancePrimaryKey, options?: HasManyRemoveOneOptions & InstanceUpdateOptions<any>): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: HasManyRemoveManyOptions & InstanceUpdateOptions<any>): Promise<void>
(oldAssociateds?: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: HasManyRemoveManyOptions & InstanceUpdateOptions<any>): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: HasManyHasManyOptions & HasManyGetManyOptions): Promise<boolean>
(targets: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: HasManyHasManyOptions & HasManyGetManyOptions): Promise<boolean>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: BelongsToManySetManyOptions &
(newAssociations: ?($ReadOnlyArray<TInstance | TInstancePrimaryKey>), options?: BelongsToManySetManyOptions &
AnyFindOptions &
BulkCreateOptions<any> &
InstanceUpdateOptions<any> &
@ -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<TInstance | TInstancePrimaryKey>, options?: BelongsToManyAddManyOptions &
(newAssociations: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: BelongsToManyAddManyOptions &
AnyFindOptions &
BulkCreateOptions<any> &
InstanceUpdateOptions<any> &
@ -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<any> &
InstanceUpdateOptions<any> &
@ -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<TAttributes, TInstance: Model<TAttributes>, TJoinTableAttributes> = {
declare export type BelongsToManyCreateOne<TInitAttributes, TInstance: Model<any, TInitAttributes>, 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<TAttributes>, options?: BelongsToManyCreateOneOptions & CreateOptions<any> & {
(values?: TInitAttributes, options?: BelongsToManyCreateOneOptions & CreateOptions<any> & {
through?: TJoinTableAttributes
}): Promise<TInstance>
}
@ -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<void>
(oldAssociated: TInstance | TInstancePrimaryKey, options?: BelongsToManyRemoveOneOptions & InstanceDestroyOptions): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions): Promise<void>
(oldAssociateds?: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions): Promise<void>
}
@ -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<TInstance | TInstancePrimaryKey>, options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions): Promise<boolean>
(targets: $ReadOnlyArray<TInstance | TInstancePrimaryKey>, options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions): Promise<boolean>
}
@ -1341,7 +1341,7 @@ declare module "sequelize" {
* A string or a data type
*/
type: DataTypeAbstract,
allowNull?: boolean,
values?: Array<any>,
@ -1468,7 +1468,7 @@ declare module "sequelize" {
TargetInitAttributes: Object,
Target: Model<TargetAttributes, TargetInitAttributes>,
ThroughAttributes: Object,
Through: Model<ThroughAttributes>
Through: Model<ThroughAttributes, any>
> extends Association<Source, Target> {
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<string | number>` is to support string with replacements, like `['id > ?', 25]`
*/
declare export type WhereOptions = WhereAttributeHash | AndOperator | OrOperator | where | fn | Array<string | number | AndOperator | OrOperator>;
declare export type WhereOptions = WhereAttributeHash | AndOperator | OrOperator | where | fn | $ReadOnlyArray<string | number | AndOperator | OrOperator>;
/**
* 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<string | number>;
$any: $ReadOnlyArray<string | number>;
}
/** Undocumented? */
declare export type AllOperator = {
$all: Array<string | number>;
$all: $ReadOnlyArray<string | number>;
}
/**
@ -2364,7 +2364,7 @@ declare module "sequelize" {
*
* _PG only_
*/
$any?: Array<string | number>;
$any?: $ReadOnlyArray<string | number>;
/** 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<string | number> | literal;
$in?: $ReadOnlyArray<string | number> | literal;
/** Example: `$notIn: [1, 2],` becomes `NOT IN [1, 2]` */
$notIn?: Array<string | number> | literal;
$notIn?: $ReadOnlyArray<string | number> | 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<string> | Array<number> | WhereOperators | WhereAttributeHash | where | AndOperator>;
[$or: Symbol | '$or']: WhereOperators | WhereAttributeHash | $ReadOnlyArray<Array<string> | Array<number> | WhereOperators | WhereAttributeHash | where | AndOperator>;
}
/** Example: `$and: {a: 5}` becomes `AND (a = 5)` */
declare export type AndOperator = {
[$and: Symbol | '$and']: WhereOperators | WhereAttributeHash | Array<Array<string> | Array<number> | WhereOperators | WhereAttributeHash | where | OrOperator>;
[$and: Symbol | '$and']: WhereOperators | WhereAttributeHash | $ReadOnlyArray<Array<string> | Array<number> | WhereOperators | WhereAttributeHash | where | OrOperator>;
}
/**
@ -2474,7 +2474,7 @@ declare module "sequelize" {
*/
declare export type WhereGeometryOptions = {
type: string;
coordinates: Array<Array<number> | number>;
coordinates: $ReadOnlyArray<Array<number> | number>;
}
/**
@ -2492,7 +2492,7 @@ declare module "sequelize" {
| OrOperator
| AndOperator
| WhereGeometryOptions
| Array<string | number | WhereAttributeHash>; // implicit $or
| $ReadOnlyArray<string | number | WhereAttributeHash>; // implicit $or
/**
* A hash of attributes to describe your search.
@ -2575,7 +2575,7 @@ declare module "sequelize" {
/**
* Load further nested related models
*/
include?: Array<Class<Model<any>> | IncludeOptions<any, any>>,
include?: $ReadOnlyArray<Class<Model<any>> | IncludeOptions<any, any>>,
/**
* 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<Class<Model<any>> | IncludeOptions<any, any>>,
include?: $ReadOnlyArray<Class<Model<any>> | IncludeOptions<any, any>>,
/**
* 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<any>> |
{model: Class<Model<any>>, as?: string} |
Array<
$ReadOnlyArray<
string |
number |
Class<Model<any>> |
@ -2729,7 +2729,7 @@ declare module "sequelize" {
/**
* Include options. See `find` for details
*/
include?: Array<Class<Model<any>>| IncludeOptions<any, any>>,
include?: $ReadOnlyArray<Class<Model<any>>| IncludeOptions<any, any>>,
/**
* Apply COUNT(DISTINCT(col))
@ -2739,7 +2739,7 @@ declare module "sequelize" {
/**
* Used in conjustion with `group`
*/
attributes?: Array<string | [string, string]>,
attributes?: $ReadOnlyArray<string | [string, string]>,
/**
* For creating complex counts. Will return multiple rows as needed.
@ -2770,7 +2770,7 @@ declare module "sequelize" {
*
TODO: See set
*/
include?: Array<Class<Model<any>> | IncludeOptions<any, any>>
include?: $ReadOnlyArray<Class<Model<any>> | IncludeOptions<any, any>>
} & 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<TAttributes, TInitAttributes = TAttributes, TPlainAttributes = TAttributes> {
static init(attributes: DefineAttributes, options: DefineOptions<this>): 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<string | ScopeOptions>): Class<this>,
options?: string | ScopeOptions | $ReadOnlyArray<string | ScopeOptions>): Class<this>,
/**
* Search for multiple instances.
@ -3603,6 +3611,26 @@ declare module "sequelize" {
fn: AsyncFn2<this, Object>): void,
static afterUpdate(fn: AsyncFn2<this, Object>): 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<TInitAttributes, Object>): void,
static beforeUpsert(fn: AsyncFn2<TInitAttributes, Object>): 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<boolean | [this, boolean], Object>): void,
static afterUpsert(fn: AsyncFn2<boolean | [this, boolean], Object>): void,
/**
* A hook that is run before creating instances in bulk
* @param name
@ -3892,7 +3920,7 @@ declare module "sequelize" {
TargetInitAttributes: Object,
Target: Model<TargetAttributes, TargetInitAttributes>,
ThroughAttributes: Object,
Through: Model<ThroughAttributes>
Through: Model<ThroughAttributes, any>
>(
target: Class<Target>,
options: AssociationOptionsBelongsToMany<Through>
@ -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<TAttributes>): boolean,
changed(): boolean | string[],
changed(): boolean | Array<$Keys<TAttributes>>,
/**
* 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<string | number | boolean | Date>,
replacements?: Object | $ReadOnlyArray<string | number | boolean | Date>,
/**
* 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<string | number | boolean | Date>,
bind?: Object | $ReadOnlyArray<string | number | boolean | Date>,
/**
* 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<string | RegExp>| RegExp | {
is?: string | $ReadOnlyArray<string | RegExp>| RegExp | {
msg: string,
args: string | Array<string | RegExp>| RegExp
args: string | $ReadOnlyArray<string | RegExp>| RegExp
},
/**
* not: ["[a-z]",'i'] // will not allow letters
*/
not?: string | Array<string | RegExp>| RegExp | {
not?: string | $ReadOnlyArray<string | RegExp>| RegExp | {
msg: string,
args: string | Array<string | RegExp>| RegExp
args: string | $ReadOnlyArray<string | RegExp>| 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<string | fn | {
fields?: $ReadOnlyArray<string | fn | {
attribute: string,
length: number,
order: string,
@ -5691,9 +5719,9 @@ declare module "sequelize" {
*/
declare export type RetryOptions = {
/**
* Only retry a query if the error matches one of these strings.
* Only retry a query if the error matches one of these strings or Regexes.
*/
match?: string[],
match?: Array<string | RegExp>,
/**
* 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<string | Object>): AndOperator,
and(...args: Array<string | Object>): AndOperator,
static and(...args: $ReadOnlyArray<string | Object>): AndOperator,
and(...args: $ReadOnlyArray<string | Object>): AndOperator,
/**
* An OR query
* @param args Each argument will be joined by OR
*/
static or(...args: Array<string | Object>): OrOperator,
or(...args: Array<string | Object>): OrOperator,
static or(...args: $ReadOnlyArray<string | Object>): OrOperator,
or(...args: $ReadOnlyArray<string | Object>): OrOperator,
/**
* Creates an object representing nested where conditions for postgres's json data-type.
@ -7416,4 +7444,3 @@ declare module "sequelize" {
logic: string | Object
}
}

View File

@ -0,0 +1,130 @@
// flow-typed signature: cf12e9fab4c41b9ccf9fa8e75c00e74c
// flow-typed version: <<STUB>>/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'>;
}

32
flow-typed/npm/tmp_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,32 @@
// flow-typed signature: 904869861e7edd1f3dde79042150393f
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -0,0 +1,74 @@
// flow-typed signature: 77f5d8d713dbb3d128c5c8092d25f395
// flow-typed version: <<STUB>>/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'>;
}

View File

@ -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",

View File

@ -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 (
<html lang="en">
<head>
<GlobalStyles />
<Helmet>
<title>{title}</title>
<meta charset="utf-8" />

View File

@ -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}
`;

179
yarn.lock
View File

@ -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"