Skip to content

Commit 0dd1c80

Browse files
committed
chore: update deps + fix deprecation warnings
1 parent 81c0df0 commit 0dd1c80

File tree

14 files changed

+200
-148
lines changed

14 files changed

+200
-148
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause' --summary"
5252
},
5353
"devDependencies": {
54-
"@babel/core": "7.0.0-rc.1",
55-
"@babel/plugin-syntax-decorators": "7.0.0-rc.1",
56-
"@babel/plugin-syntax-jsx": "7.0.0-rc.1",
57-
"@babel/plugin-syntax-typescript": "7.0.0-rc.1",
54+
"@babel/core": "7.0.0-rc.2",
55+
"@babel/plugin-syntax-decorators": "7.0.0-rc.2",
56+
"@babel/plugin-syntax-jsx": "7.0.0-rc.2",
57+
"@babel/plugin-syntax-typescript": "7.0.0-rc.2",
5858
"@cypress/webpack-preprocessor": "2.0.1",
5959
"@types/chai": "4.1.4",
6060
"@types/dompurify": "^0.0.31",
@@ -65,29 +65,29 @@
6565
"@types/lodash": "^4.14.116",
6666
"@types/lunr": "^2.1.6",
6767
"@types/mark.js": "^8.11.1",
68-
"@types/marked": "^0.4.0",
68+
"@types/marked": "^0.4.1",
6969
"@types/prismjs": "^1.6.4",
7070
"@types/prop-types": "^15.5.5",
7171
"@types/react": "^16.4.11",
7272
"@types/react-dom": "^16.0.7",
7373
"@types/react-hot-loader": "^4.1.0",
7474
"@types/react-tabs": "^1.0.5",
7575
"@types/tapable": "1.0.4",
76-
"@types/webpack": "^4.4.10",
76+
"@types/webpack": "^4.4.11",
7777
"@types/webpack-env": "^1.13.0",
7878
"@types/yargs": "^11.1.1",
7979
"babel-loader": "8.0.0-beta.2",
8080
"babel-plugin-styled-components": "^1.5.1",
8181
"beautify-benchmark": "^0.2.4",
8282
"bundlesize": "^0.17.0",
83-
"conventional-changelog-cli": "^2.0.1",
83+
"conventional-changelog-cli": "^2.0.5",
8484
"copy-webpack-plugin": "^4.5.2",
8585
"core-js": "^2.5.7",
8686
"coveralls": "^3.0.2",
8787
"css-loader": "^1.0.0",
8888
"cypress": "~3.1.0",
8989
"deploy-to-gh-pages": "^1.3.6",
90-
"enzyme": "^3.4.3",
90+
"enzyme": "^3.4.4",
9191
"enzyme-adapter-react-16": "^1.2.0",
9292
"enzyme-to-json": "^3.3.4",
9393
"fork-ts-checker-webpack-plugin": "0.4.3",
@@ -113,7 +113,7 @@
113113
"tslint": "^5.11.0",
114114
"tslint-react": "^3.4.0",
115115
"typescript": "^3.0.1",
116-
"webpack": "^4.16.5",
116+
"webpack": "^4.17.1",
117117
"webpack-cli": "^3.1.0",
118118
"webpack-dev-server": "^3.1.5",
119119
"webpack-node-externals": "^1.6.0",
@@ -139,15 +139,15 @@
139139
"mobx-react": "^5.2.5",
140140
"openapi-sampler": "1.0.0-beta.14",
141141
"perfect-scrollbar": "^1.4.0",
142-
"polished": "^1.9.3",
142+
"polished": "^2.0.2",
143143
"prismjs": "^1.15.0",
144144
"prop-types": "^15.6.2",
145-
"react-dropdown": "^1.6.1",
146-
"react-hot-loader": "^4.3.4",
145+
"react-dropdown": "^1.6.2",
146+
"react-hot-loader": "^4.3.5",
147147
"react-tabs": "^2.0.0",
148148
"slugify": "^1.3.1",
149149
"stickyfill": "^1.1.1",
150-
"styled-components": "^3.4.2",
150+
"styled-components": "^3.4.5",
151151
"tslib": "^1.9.3"
152152
},
153153
"resolutions": {

src/common-elements/dropdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const StyledDropdown = withProps<DropdownProps>(styled(Dropdown))`
9393
}
9494
` as StyledComponentClass<any, DropdownProps>;
9595

96-
export const SimpleDropdown = StyledDropdown.extend`
96+
export const SimpleDropdown = styled(StyledDropdown)`
9797
margin-left: 10px;
9898
text-transform: none;
9999
font-size: 0.929em;

src/common-elements/fields-layout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export const PropertyCell = styled.td`
5454
}
5555
`;
5656

57-
export const PropertyCellWithInner = PropertyCell.extend`
57+
export const PropertyCellWithInner = styled(PropertyCell)`
5858
padding: 0;
5959
`;
6060

61-
export const PropertyNameCell = withProps<{ kind?: string }>(PropertyCell.extend)`
61+
export const PropertyNameCell = withProps<{ kind?: string }>(styled(PropertyCell))`
6262
vertical-align: top;
6363
line-height: 20px;
6464
white-space: nowrap;

src/common-elements/fields.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styled, { extensionsHook } from '../styled-components';
44
import { PropertyNameCell } from './fields-layout';
55
import { ShelfIcon } from './shelfs';
66

7-
export const ClickablePropertyNameCell = PropertyNameCell.extend`
7+
export const ClickablePropertyNameCell = styled(PropertyNameCell)`
88
cursor: pointer;
99
1010
${ShelfIcon} {
@@ -22,39 +22,39 @@ export const FieldLabel = styled.span`
2222
line-height: 20px;
2323
`;
2424

25-
export const TypePrefix = FieldLabel.extend`
25+
export const TypePrefix = styled(FieldLabel)`
2626
color: ${props => transparentize(0.2, props.theme.schema.typeNameColor)};
2727
`;
2828

29-
export const TypeName = FieldLabel.extend`
29+
export const TypeName = styled(FieldLabel)`
3030
color: ${props => props.theme.schema.typeNameColor};
3131
`;
3232

33-
export const TypeTitle = FieldLabel.extend`
33+
export const TypeTitle = styled(FieldLabel)`
3434
color: ${props => props.theme.schema.typeTitleColor};
3535
`;
3636

3737
export const TypeFormat = TypeName;
3838

39-
export const RequiredLabel = FieldLabel.withComponent('div').extend`
39+
export const RequiredLabel = styled(FieldLabel.withComponent('div'))`
4040
color: ${props => props.theme.schema.requireLabelColor};
4141
font-size: ${props => props.theme.schema.labelsTextSize};
4242
font-weight: normal;
4343
margin-left: 20px;
4444
line-height: 1;
4545
`;
4646

47-
export const RecursiveLabel = FieldLabel.extend`
47+
export const RecursiveLabel = styled(FieldLabel)`
4848
color: ${({ theme }) => theme.colors.warning.main};
4949
font-size: 13px;
5050
`;
5151

52-
export const NullableLabel = FieldLabel.extend`
52+
export const NullableLabel = styled(FieldLabel)`
5353
color: #3195a6;
5454
font-size: 13px;
5555
`;
5656

57-
export const PatternLabel = FieldLabel.extend`
57+
export const PatternLabel = styled(FieldLabel)`
5858
color: #3195a6;
5959
&::before,
6060
&::after {
@@ -63,7 +63,7 @@ export const PatternLabel = FieldLabel.extend`
6363
}
6464
`;
6565

66-
export const ExampleValue = FieldLabel.extend`
66+
export const ExampleValue = styled(FieldLabel)`
6767
border-radius: 2px;
6868
${({ theme }) => `
6969
background-color: ${transparentize(0.95, theme.colors.text.primary)};
@@ -79,7 +79,7 @@ export const ExampleValue = FieldLabel.extend`
7979
${extensionsHook('ExampleValue')};
8080
`;
8181

82-
export const ConstraintItem = FieldLabel.extend`
82+
export const ConstraintItem = styled(FieldLabel)`
8383
border-radius: 2px;
8484
${({ theme }) => `
8585
background-color: ${transparentize(0.95, theme.colors.primary.light)};

src/common-elements/panels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const RightPanel = styled.div`
4545
`};
4646
`;
4747

48-
export const DarkRightPanel = RightPanel.extend`
48+
export const DarkRightPanel = styled(RightPanel)`
4949
background-color: ${props => props.theme.rightPanel.backgroundColor};
5050
`;
5151

src/common-elements/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const Tabs = styled(ReactTabs)`
6464
}
6565
`;
6666

67-
export const SmallTabs = Tabs.extend`
67+
export const SmallTabs = styled(Tabs)`
6868
> ul {
6969
display: block;
7070
> li {

src/components/ApiInfo/styled.elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const delimiterWidth = 15;
55

66
export const ApiInfoWrap = MiddlePanel;
77

8-
export const ApiHeader = H1.extend`
8+
export const ApiHeader = styled(H1)`
99
margin-top: 0;
1010
margin-bottom: 0.5em;
1111

src/components/Markdown/styled.elements.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { headerCommonMixin, linkifyMixin } from '../../common-elements';
22
import { PrismDiv } from '../../common-elements/PrismDiv';
3-
import { css, extensionsHook, withProps } from '../../styled-components';
3+
import styled, { css, extensionsHook, withProps } from '../../styled-components';
44

55
export const linksCss = css`
66
a {
@@ -18,7 +18,7 @@ export const linksCss = css`
1818
`;
1919

2020
export const StyledMarkdownBlock = withProps<{ dense?: boolean; inline?: boolean }>(
21-
PrismDiv.extend,
21+
styled(PrismDiv),
2222
)`
2323
2424
font-family: ${props => props.theme.typography.fontFamily};

src/components/Operation/Operation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { ResponseSamples } from '../ResponseSamples/ResponseSamples';
1818
import { OperationModel as OperationType } from '../../services/models';
1919
import styled from '../../styled-components';
2020

21-
const OperationRow = Row.extend`
21+
const OperationRow = styled(Row)`
2222
backface-visibility: hidden;
2323
contain: content;
2424

src/components/PayloadSamples/styled.elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const MimeLabel = styled.div`
99
color: rgba(255, 255, 255, 0.8);
1010
`;
1111

12-
export const InvertedSimpleDropdown = StyledDropdown.extend`
12+
export const InvertedSimpleDropdown = styled(StyledDropdown)`
1313
margin-left: 10px;
1414
text-transform: none;
1515
font-size: 0.929em;

0 commit comments

Comments
 (0)