Skip to content

Commit 794fe0c

Browse files
committed
chore: upgrade dev dependencies
1 parent c89385d commit 794fe0c

File tree

4 files changed

+684
-610
lines changed

4 files changed

+684
-610
lines changed

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -141,46 +141,46 @@
141141
"@babel/preset-typescript": "^7.9.0",
142142
"@emotion/cache": "^11.0.0-next.16",
143143
"@emotion/react": "^11.0.0-next.16",
144-
"@storybook/addon-actions": "^6.0.21",
145-
"@storybook/addon-viewport": "^6.0.21",
146-
"@storybook/react": "^6.0.21",
147-
"@storybook/theming": "^6.0.21",
148-
"@testing-library/jest-dom": "^5.5.0",
144+
"@storybook/addon-actions": "^6.0.28",
145+
"@storybook/addon-viewport": "^6.0.28",
146+
"@storybook/react": "^6.0.28",
147+
"@storybook/theming": "^6.0.28",
148+
"@testing-library/jest-dom": "^5.11.5",
149149
"@testing-library/react": "^11.0.2",
150150
"@types/jest": "^26.0.15",
151-
"@types/react": "^16.9.49",
152-
"@types/react-dom": "^16.9.6",
153-
"@typescript-eslint/eslint-plugin": "^4.5.0",
154-
"@typescript-eslint/parser": "^4.5.0",
151+
"@types/react": "^16.9.55",
152+
"@types/react-dom": "^16.9.9",
153+
"@typescript-eslint/eslint-plugin": "^4.6.1",
154+
"@typescript-eslint/parser": "^4.6.1",
155155
"babel-eslint": "^10.1.0",
156-
"babel-jest": "^26.6.0",
156+
"babel-jest": "^26.6.2",
157157
"babel-loader": "^8.1.0",
158158
"babel-plugin-dev-expression": "^0.2.2",
159159
"concurrently": "^5.1.0",
160160
"coveralls": "^3.0.11",
161-
"eslint": "^7.8.0",
162-
"eslint-config-react-app": "^5.2.1",
161+
"eslint": "^7.12.1",
162+
"eslint-config-react-app": "^6.0.0",
163163
"eslint-plugin-flowtype": "^5.2.0",
164164
"eslint-plugin-import": "^2.20.2",
165-
"eslint-plugin-jsx-a11y": "^6.2.3",
165+
"eslint-plugin-jsx-a11y": "^6.4.1",
166166
"eslint-plugin-react": "^7.21.5",
167167
"eslint-plugin-react-hooks": "^4.2.0",
168-
"framer-motion": "^2.9.3",
168+
"framer-motion": "^2.9.4",
169169
"husky": "^4.2.5",
170170
"intersection-observer": "^0.11.0",
171-
"jest": "^26.6.0",
172-
"lint-staged": "^10.1.3",
171+
"jest": "^26.6.2",
172+
"lint-staged": "^10.5.1",
173173
"microbundle": "^0.12.3",
174174
"npm-run-all": "^4.1.5",
175175
"prettier": "^2.0.4",
176176
"prettier-plugin-pkg": "^0.8.0",
177-
"react": "^17.0.0",
178-
"react-dom": "^17.0.0",
179-
"react-test-renderer": "^17.0.0",
180-
"typescript": "^4.0.2"
177+
"react": "^17.0.1",
178+
"react-dom": "^17.0.1",
179+
"react-test-renderer": "^17.0.1",
180+
"typescript": "^4.0.5"
181181
},
182182
"resolutions": {
183-
"react": "^17.0.0",
184-
"react-dom": "^17.0.0"
183+
"react": "^17.0.1",
184+
"react-dom": "^17.0.1"
185185
}
186186
}

src/stories/Hooks.story.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @jsx jsx */
22
import { jsx } from '@emotion/react';
33
import { action } from '@storybook/addon-actions';
4+
import { Meta } from '@storybook/react';
45
import { IntersectionOptions, useInView } from '../index';
56
import ScrollWrapper from './ScrollWrapper';
67
import Status from './Status';
@@ -14,6 +15,12 @@ type Props = {
1415
lazy?: boolean;
1516
};
1617

18+
const story: Meta = {
19+
title: 'useInView hook',
20+
};
21+
22+
export default story;
23+
1724
const HookComponent = ({
1825
options,
1926
className,
@@ -67,10 +74,6 @@ const HookComponent = ({
6774
);
6875
};
6976

70-
export default {
71-
title: 'useInView hook',
72-
};
73-
7477
export const basic = () => (
7578
<ScrollWrapper>
7679
<HookComponent />
@@ -142,7 +145,7 @@ export const skip = () => (
142145
export const TrackVisibility = () => {
143146
const ref = useRef<HTMLDivElement>(null);
144147
return (
145-
<div ref={ref}>
148+
<div ref={ref} css={{ margin: '0 1rem' }}>
146149
<div
147150
css={{
148151
color: 'white',

src/stories/InView.story.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { jsx } from '@emotion/react';
33
import * as React from 'react';
44
import { action } from '@storybook/addon-actions';
5+
import { Meta } from '@storybook/react';
56
import { InView } from '../index';
67
import ScrollWrapper from './ScrollWrapper';
78
import RootComponent from './Root';
@@ -14,6 +15,12 @@ type Props = {
1415
inView?: boolean;
1516
};
1617

18+
const story: Meta = {
19+
title: 'InView Component',
20+
};
21+
22+
export default story;
23+
1724
const Header = React.forwardRef<any, Props>((props: Props, ref) => (
1825
<div ref={ref} data-inview={props.inView}>
1926
{props.inView !== undefined ? <Status inView={props.inView} /> : null}
@@ -36,10 +43,6 @@ const Header = React.forwardRef<any, Props>((props: Props, ref) => (
3643
</div>
3744
));
3845

39-
export default {
40-
title: 'InView Component',
41-
};
42-
4346
export const basic = () => (
4447
<ScrollWrapper>
4548
<InView onChange={action('Child Observer inView')}>

0 commit comments

Comments
 (0)